/*
Theme Name: CROFAZ
Theme URI: https://crofaz.sn
Author: CROFAZ
Author URI: https://crofaz.sn
Description: Thème officiel du Cadre Régional de Concertation des Opérateurs de la Filière Anacarde de Ziguinchor, Casamance, Sénégal.
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: crofaz
Tags: agriculture, senegal, casamance, anacarde
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&family=Playfair+Display:ital,wght@0,700;1,400&display=swap');

:root {
  --green:       #2d7a2d;
  --green-dark:  #1a5c1a;
  --green-light: #4caf50;
  --green-pale:  #e8f5e9;
  --gold:        #d4a017;
  --gold-light:  #f5c842;
  --white:       #ffffff;
  --gray-100:    #f8f9fa;
  --gray-200:    #e9ecef;
  --gray-600:    #6c757d;
  --gray-800:    #343a40;
  --dark:        #0d1f0d;
  --shadow:      0 10px 40px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.20);
  --radius:      16px;
  --radius-lg:   24px;
  --transition:  all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--gray-800); background: var(--white);
  overflow-x: hidden; line-height: 1.7;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2.5rem; transition: var(--transition);
  background: transparent;
}
.navbar.scrolled, .navbar.solid {
  background: rgba(13,31,13,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--gold); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--green);
}
.nav-logo img { width: 100%; height: 100%; object-fit: cover; }
.nav-title { font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: 3px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; padding: 8px 13px; border-radius: 8px;
  transition: var(--transition); display: flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links a.active, .nav-links .current-menu-item > a {
  color: var(--gold-light); background: rgba(255,255,255,0.09);
}
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; border-radius: 4px; transition: var(--transition); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 28px; border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.5px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition); text-transform: uppercase;
}
.btn-primary  { background: var(--gold); color: var(--dark); border-color: var(--gold); }
.btn-primary:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212,160,23,.4); }
.btn-outline  { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover  { background: rgba(255,255,255,.1); border-color: #fff; transform: translateY(-2px); }
.btn-white    { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-white:hover    { background: var(--gold-light); color: var(--dark); transform: translateY(-2px); }
.btn-green    { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover    { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(45,122,45,.4); }
.full-width   { width: 100%; justify-content: center; }

/* ── SECTION / CONTAINER ── */
.section    { padding: 5.5rem 2.5rem; }
.section-sm { padding: 3rem 2.5rem; }
.container  { max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header.left { text-align: left; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px; margin-bottom: .75rem;
  font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  background: var(--green-pale); color: var(--green-dark);
}
.section-tag.gold  { background: rgba(212,160,23,.15); color: var(--gold); }
.section-tag.white { background: rgba(255,255,255,.15); color: #fff; }
.section-header h2 { font-size: clamp(1.7rem,3.5vw,2.7rem); font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: .75rem; }
.section-header.light h2 { color: #fff; }
.section-header p { color: var(--gray-600); font-size: 1rem; }
.section-header.light p { color: rgba(255,255,255,.6); }

.bg-green { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
.bg-dark  { background: var(--dark); }
.bg-gray  { background: var(--gray-100); }

/* ── PAGE HERO ── */
.page-hero {
  min-height: 55vh;
  display: flex; align-items: flex-end;
  padding: 130px 2.5rem 4rem;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,31,13,.85) 0%, rgba(26,92,26,.7) 60%, rgba(13,31,13,.5) 100%);
}
.page-hero-deco {
  position: absolute; right: 5%; bottom: -20px;
  font-size: 14rem; opacity: .07; pointer-events: none; line-height: 1;
}
.page-hero-content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
  color: #fff; animation: fadeInUp .7s ease both;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; margin-bottom: 1rem;
  font-size: .75rem; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 1px;
}
.breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb i { font-size: .6rem; }
.page-hero-content h1 { font-size: clamp(2rem,5vw,3.6rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.page-hero-content p { opacity: .78; max-width: 620px; font-size: 1rem; line-height: 1.75; }

/* ── STATS BAR ── */
.stats-bar { background: var(--dark); }
.stats-container { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  display: flex; align-items: center; gap: 1rem; padding: 2rem;
  color: #fff; border-right: 1px solid rgba(255,255,255,.07);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-item > i { font-size: 2rem; color: var(--gold); flex-shrink: 0; }
.stat-number { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.stat-item p { font-size: .73rem; color: rgba(255,255,255,.45); margin-top: 2px; text-transform: uppercase; letter-spacing: .5px; }

/* ── CONTACT ── */
.contact-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: var(--radius);
  background: var(--gray-100); margin-bottom: 1.2rem;
  transition: var(--transition);
}
.contact-item:hover { background: var(--green-pale); }
.contact-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-item h4 { font-size: .84rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
.contact-item p  { font-size: .84rem; color: var(--gray-600); margin: 0; }
.social-links { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: .95rem; transition: var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--dark); transform: translateY(-3px); }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .74rem; font-weight: 700; color: var(--dark); text-transform: uppercase; letter-spacing: .5px; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border-radius: 10px;
  border: 2px solid var(--gray-200);
  font-family: 'Montserrat', sans-serif; font-size: .88rem;
  color: var(--dark); background: #fff; outline: none; transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,122,45,.1); }
.form-group textarea { resize: vertical; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: rgba(255,255,255,.62); }
.footer-top { padding: 5rem 2.5rem 3rem; }
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo-box { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--gold); overflow: hidden; background: var(--green); display: flex; align-items: center; justify-content: center; }
.footer-logo-box img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand h3 { font-size: 1.45rem; font-weight: 900; color: #fff; letter-spacing: 3px; }
.footer-brand p { font-size: .82rem; line-height: 1.75; }
.footer-col h4 { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a { color: rgba(255,255,255,.52); text-decoration: none; font-size: .83rem; transition: var(--transition); display: flex; align-items: center; gap: 6px; }
.footer-col ul a:hover { color: var(--gold-light); padding-left: 4px; }
.footer-newsletter h4 { color: #fff; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: .75rem; }
.footer-newsletter > p { font-size: .82rem; margin-bottom: 1rem; }
.newsletter-form { display: flex; border-radius: 10px; overflow: hidden; }
.newsletter-form input { flex: 1; padding: 12px 16px; background: rgba(255,255,255,.08); border: none; color: #fff; font-family: 'Montserrat',sans-serif; font-size: .84rem; outline: none; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.3); }
.newsletter-form button { background: var(--gold); border: none; color: var(--dark); padding: 12px 18px; cursor: pointer; font-size: 1rem; transition: var(--transition); }
.newsletter-form button:hover { background: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.5rem 2.5rem; }
.footer-bottom-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { font-size: .77rem; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--green-dark); color: #fff;
  padding: .9rem 1.4rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); transition: transform .4s cubic-bezier(.4,0,.2,1);
  font-size: .88rem; font-weight: 600; pointer-events: none;
}
.toast.show { transform: translateY(0); }
.toast i { color: var(--gold-light); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }
@keyframes zoomOut { from { transform: scale(1.08); } to { transform: scale(1.0); } }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 8px rgba(212,160,23,.12), 0 20px 60px rgba(0,0,0,.4); }
  50%      { box-shadow: 0 0 0 18px rgba(212,160,23,.04), 0 20px 60px rgba(0,0,0,.4); }
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-container { grid-template-columns: repeat(2,1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.07); }
}
@media(max-width:768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 80px; left: 0; right: 0; background: rgba(13,31,13,.98); padding: 1rem; gap: .5rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
