/* ═══════════════════════════════════════════════
   GRAS-ONG — Feuille de styles principale
   Auteur  : GRAS-ONG / RICO
   Version : 1.0 — Mars 2026
   ═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-dark   : #1a4a2e;
  --green-mid    : #2d7a4f;
  --green-light  : #4caf82;
  --green-pale   : #e8f5ee;
  --green-accent : #8bc34a;
  --gold         : #c8a84b;
  --gold-light   : #d4b05a;
  --text-dark    : #1a2e1f;
  --text-mid     : #3a5a42;
  --text-light   : #6b8f72;
  --white        : #ffffff;
  --off-white    : #f7faf8;
  --border       : #d4e8db;
  --radius-sm    : 8px;
  --radius-md    : 12px;
  --radius-lg    : 16px;
  --shadow       : 0 4px 24px rgba(26,74,46,0.08);
  --transition   : 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ───────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--green-dark);
  margin-bottom: 14px;
  font-weight: 700;
}
.section-sub {
  font-size: 15px;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}

/* ── NOTIFICATION TOAST ───────────────────────── */
.notif {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  border-left: 3px solid var(--green-accent);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
  max-width: 300px;
  box-shadow: var(--shadow);
}
.notif.show { transform: translateY(0); opacity: 1; }

/* ── LANGUAGE BAR ─────────────────────────────── */
.lang-bar {
  background: var(--green-dark);
  padding: 6px 40px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  padding: 3px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark);
}

/* ── NAVIGATION ───────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 32px;
  z-index: 100;
  padding: 0 40px;
  box-shadow: 0 2px 12px rgba(26,74,46,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-circle {
  width: 46px;
  height: 46px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: var(--green-dark); }
.logo-sub   { font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--text-light); letter-spacing: 0.5px; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 6px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text-mid);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  background: var(--green-pale);
  color: var(--green-dark);
  font-weight: 500;
}
.nav-cta {
  background: var(--green-mid);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--green-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ──────────────────────────────── */
.nav-mobile-open {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 20px;
  flex-direction: column !important;
  gap: 4px !important;
  z-index: 99;
  box-shadow: var(--shadow);
}
.nav-mobile-open .nav-link { text-align: left; padding: 10px 14px; font-size: 14px; }

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: var(--green-dark);
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 64px 40px 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(76,175,130,0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(139,195,74,0.1) 0%, transparent 50%);
}
.hero-leaves {
  position: absolute; right: 0; top: 0; bottom: 0; width: 45%; opacity: 0.05;
  background-image: repeating-linear-gradient(45deg, var(--green-light) 0, var(--green-light) 1px, transparent 0, transparent 50%);
  background-size: 30px 30px;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200,168,75,0.15);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(32px, 5vw, 50px);
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.15;
}
.hero h1 em { color: var(--green-accent); font-style: normal; }
.hero p { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 32px; max-width: 500px; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.35);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); }

.hero-stats {
  position: absolute;
  bottom: 0;
  right: 40px;
  display: flex;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px 30px;
  text-align: center;
}
.stat-card:first-child { border-radius: 12px 0 0 0; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); font-weight: 700; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.8px; margin-top: 4px; }

/* ── SECTIONS COMMUNES ────────────────────────── */
.section { padding: 80px 40px; }

.about    { background: var(--off-white); }
.domains  { background: var(--white); }
.projects { background: var(--green-dark); }
.news     { background: var(--off-white); }
.gallery  { background: var(--white); }
.partners { background: var(--off-white); }
.join     { background: var(--green-mid); }
.contact  { background: var(--off-white); }

/* ── À PROPOS ─────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.about-text p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.value-pills  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
}
.about-visual {
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vision-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border-left: 3px solid var(--green-mid);
}
.vision-card h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 6px; font-weight: 500; }
.vision-card p  { font-size: 14px; color: var(--text-dark); line-height: 1.6; }

/* ── DOMAINES ─────────────────────────────────── */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.domain-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--transition);
}
.domain-card:hover {
  background: var(--green-pale);
  border-color: var(--green-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.domain-icon {
  width: 46px;
  height: 46px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 22px;
  transition: background var(--transition);
}
.domain-card:hover .domain-icon { background: var(--white); }
.domain-card h3 { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--green-dark); margin-bottom: 6px; }
.domain-card p  { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ── PROJETS ──────────────────────────────────── */
.projects .section-label { color: var(--green-accent); }
.projects .section-title { color: var(--white); }
.projects .section-sub   { color: rgba(255,255,255,0.6); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.project-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: background var(--transition);
}
.project-card:hover { background: rgba(255,255,255,0.09); }
.project-tag {
  display: inline-block;
  background: rgba(139,195,74,0.15);
  border: 1px solid rgba(139,195,74,0.3);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  color: var(--green-accent);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.project-card h3 { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.project-card p  { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.project-status  { display: flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.4); }
.status-dot      { width: 6px; height: 6px; border-radius: 50%; background: var(--green-accent); flex-shrink: 0; }

/* ── ACTUALITÉS ───────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}
.news-card:hover { transform: translateY(-4px); border-color: var(--green-light); box-shadow: var(--shadow); }
.news-img        { height: 140px; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.news-body       { padding: 18px; }
.news-date       { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.news-card h3    { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--green-dark); line-height: 1.5; margin-bottom: 8px; }
.news-card p     { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.read-more       { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green-mid); margin-top: 12px; cursor: pointer; font-weight: 500; font-family: 'DM Sans', sans-serif; background: none; border: none; padding: 0; }

/* ── GALERIE ──────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 180px 180px;
  gap: 12px;
  margin-top: 48px;
}
.gallery-item {
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition);
  overflow: hidden;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item.tall  { grid-row: span 2; }
.gallery-item.wide  { grid-column: span 2; }

/* ── PARTENAIRES ──────────────────────────────── */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
  justify-content: center;
}
.partner-logo {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  transition: all var(--transition);
  cursor: default;
}
.partner-logo:hover { border-color: var(--green-mid); color: var(--green-dark); background: var(--green-pale); }

/* ── ADHÉSION ─────────────────────────────────── */
.join .section-label { color: var(--green-accent); }
.join .section-title { color: var(--white); }
.join-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.join-desc { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-top: 16px; }
.join-fees { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.fee-item  {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fee-label  { font-size: 14px; color: rgba(255,255,255,0.8); }
.fee-amount { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); font-weight: 700; }

/* ── CARD (formulaires) ───────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; color: var(--green-dark); margin-bottom: 24px; }

/* ── FORMULAIRES ──────────────────────────────── */
.form-group       { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border var(--transition);
  background: var(--off-white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  background: var(--white);
}
.form-group textarea { height: 90px; resize: vertical; }
.submit-btn {
  width: 100%;
  background: var(--green-mid);
  color: var(--white);
  padding: 13px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  margin-top: 4px;
  transition: background var(--transition);
}
.submit-btn:hover    { background: var(--green-dark); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.msg-notice {
  background: var(--green-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--green-dark);
  margin-top: 12px;
  display: none;
}

/* ── CONTACT ──────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-item h4 { font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; font-weight: 500; }
.contact-item p  { font-size: 14px; color: var(--text-dark); line-height: 1.6; }
.contact-item a  { color: var(--green-mid); }
.contact-item a:hover { text-decoration: underline; }

/* ── FOOTER ───────────────────────────────────── */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 40px 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 240px;
}
.devise       { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.devise-word  { font-size: 13px; color: var(--gold); font-weight: 500; letter-spacing: 1px; }
.devise-sep   { font-size: 12px; color: rgba(255,255,255,0.2); }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-link {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: color var(--transition);
  background: transparent;
  border: none;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  margin-bottom: 10px;
  width: 100%;
}
.footer-link:hover { color: rgba(255,255,255,0.9); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p,
.footer-bottom span { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ── RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .domains-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  nav    { padding: 0 20px; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  .nav-cta    { display: none; }

  .hero { padding: 40px 20px 100px; }
  .hero-stats {
    position: static;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .stat-card:first-child { border-radius: 10px 0 0 0; }

  .section { padding: 52px 20px; }

  .about-grid,
  .join-inner,
  .contact-grid { grid-template-columns: 1fr; }

  .news-grid    { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lang-bar     { padding: 6px 20px; }
}

@media (max-width: 580px) {
  .domains-grid,
  .projects-grid,
  .news-grid    { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid  { grid-template-columns: 1fr; }
  .hero-stats   { gap: 0; }
  .stat-card    { flex: 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
