/* ============================================================
   NDONDOL INFOS — Système d'ambiance visuelle V2
   Média local indépendant : terres du Baol réchauffées,
   or sahélien, indigo boubou. Aucun code institutionnel.
   ============================================================ */
:root {
  /* Marque */
  --primaire: #c4622d;        /* terracotta Baol */
  --primaire-fonce: #9a4a20;
  --or: #e8b429;              /* or sahélien */
  --indigo: #3d4e7a;          /* indigo boubou — annuaire/pratique */
  --acacia: #5c7a45;          /* vert végétal, touches nature */

  /* Tons du Baol */
  --ocre: #c97b3d;
  --terre: #8c5a2b;
  --sable: #ede0c8;
  --sable-clair: #faf6ee;

  /* Neutres */
  --encre: #26211a;
  --encre-douce: #57503f;
  --brun-nuit: #2b211a;
  --blanc: #ffffff;

  /* Lumière sahélienne */
  --sunset-haut: #f9d9a3;
  --sunset-bas: #ef9f56;

  --font-display: 'Fraunces', Georgia, serif;
  --font-text: 'Public Sans', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 33, 26, 0.10);
  --shadow-hover: 0 18px 44px rgba(38, 33, 26, 0.16);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-text);
  color: var(--encre);
  background: var(--sable-clair);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(38,33,26,0.08);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--encre);
  font-family: var(--font-display); font-size: 1.05rem;
}
.nav-mark { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); flex: none; }
.nav-badge {
  font-family: var(--font-text);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primaire-fonce);
  border: 1px solid rgba(196,98,45,0.5); border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 30px); }
.nav-links a {
  text-decoration: none; color: var(--encre); font-weight: 500; font-size: 0.95rem;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 100%; height: 2px; background: var(--primaire);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s ease;
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--primaire); color: var(--blanc) !important;
  padding: 9px 20px; border-radius: 999px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.nav-cta:hover { background: var(--primaire-fonce); transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 24px; height: 2px; background: var(--encre);
  margin: 5px 0; transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 860px) {
  .nav-badge { display: none; }
}
@media (max-width: 760px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; background: var(--sable-clair);
    flex-direction: column; justify-content: center; gap: 30px;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { z-index: 110; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ ACCROCHE ÉDITORIALE ============ */
.hero {
  position: relative;
  min-height: 76vh; min-height: 76svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sunset-haut), var(--sunset-bas));
  padding: 110px clamp(20px, 7vw, 110px) 70px;
}
.hero-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-content { position: relative; z-index: 2; }
.hero-kicker {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--encre); font-weight: 600; margin-bottom: 14px;
  background: rgba(250,246,238,0.55); padding: 6px 14px; border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.04; color: var(--encre);
  max-width: 12ch;
  text-shadow: 0 2px 24px rgba(250, 246, 238, 0.5);
}
.hero-sub {
  margin-top: 20px; font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--encre); max-width: 46ch;
  background: rgba(250,246,238,0.45); padding: 10px 16px; border-radius: 10px;
  backdrop-filter: blur(4px);
}
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 14px 30px; border-radius: 999px; font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s, background 0.3s;
  will-change: transform;
}
.btn-primary { background: var(--primaire); color: var(--blanc); box-shadow: 0 8px 24px rgba(196,98,45,0.35); }
.btn-primary:hover { background: var(--primaire-fonce); box-shadow: 0 12px 32px rgba(196,98,45,0.45); }
.btn-ghost {
  background: rgba(250,246,238,0.65); color: var(--encre);
  border: 1.5px solid var(--encre); backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: var(--sable-clair); }

/* ============ SECTIONS COMMUNES ============ */
.section { padding: clamp(70px, 12vh, 130px) 0; position: relative; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }
.section-kicker {
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 700; color: var(--primaire); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.12; margin-bottom: 22px; color: var(--encre);
}
.section-lead { font-size: clamp(1rem, 2vw, 1.15rem); color: var(--encre-douce); max-width: 62ch; margin-bottom: 40px; }

/* ============ MOT DE L'ÉDITEUR ============ */
.section-editeur { background: var(--brun-nuit); color: var(--sable-clair); text-align: center; }
.section-editeur .section-kicker { color: var(--or); }
.editeur-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  line-height: 1.4; color: var(--sable-clair);
}
.editeur-signature { margin-top: 24px; color: var(--or); letter-spacing: 0.08em; font-weight: 600; }

/* ============ ACTUALITÉS ============ */
.section-actus { background: var(--sable-clair); }
.badge-cat {
  display: inline-block;
  background: var(--primaire); color: var(--blanc);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 999px;
  transition: background 0.3s ease;
}
.badge-acacia { background: var(--acacia); }
.badge-indigo { background: var(--indigo); }
.actu-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.85rem; color: var(--encre-douce);
  margin-bottom: 12px;
}
.actu-une {
  display: grid; grid-template-columns: minmax(220px, 2fr) 3fr;
  background: var(--blanc); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.actu-une-visuel svg { width: 100%; height: 100%; object-fit: cover; }
.actu-une-texte { padding: 32px 30px; }
.actu-une-texte h3 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 12px; line-height: 1.2;
}
.actu-une-texte > p { color: var(--encre-douce); max-width: 58ch; }
.actu-signature { margin-top: 14px; font-weight: 600; color: var(--primaire); font-size: 0.9rem; }
@media (max-width: 700px) {
  .actu-une { grid-template-columns: 1fr; }
  .actu-une-visuel { max-height: 180px; }
  .actu-une-visuel svg { height: 180px; }
}
.actu-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; line-height: 1.25; }
.actu-card p { color: var(--encre-douce); font-size: 0.95rem; }
.actu-tag {
  margin-top: 14px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--or) !important;
}
.actu-card-cta { border: 2px dashed rgba(196,98,45,0.45); box-shadow: none; background: transparent; }

/* ============ CARTES COMMUNES ============ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}
.card {
  background: var(--blanc); border-radius: var(--radius); padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.35s;
  will-change: transform;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--encre-douce); font-size: 0.95rem; }
.card-link { color: var(--primaire); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.card-link:hover { text-decoration: underline; }

/* ============ ANNUAIRE ============ */
.section-annuaire { background: var(--sable); }
.section-annuaire .section-kicker { color: var(--indigo); }
.annu-card { border-top: 3px solid transparent; }
.annu-card:hover { border-top-color: var(--indigo); }
.annu-etat {
  margin-top: 12px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo) !important;
}
.annuaire-note {
  margin-top: 36px; padding: 18px 24px; border-radius: var(--radius);
  background: rgba(61,78,122,0.08); border-left: 4px solid var(--indigo);
  font-size: 0.95rem;
}
.annuaire-note a { color: var(--indigo); font-weight: 600; }

/* ============ PATRIMOINE / STATS ============ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 20px;
}
.stat-card {
  background: var(--blanc); border-radius: var(--radius); padding: 30px 24px;
  box-shadow: var(--shadow); border-top: 4px solid var(--primaire);
}
.stat-card:nth-child(2) { border-top-color: var(--or); }
.stat-card:nth-child(3) { border-top-color: var(--acacia); }
.stat-card:nth-child(4) { border-top-color: var(--indigo); }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem); color: var(--encre);
}
.stat-unit { font-family: var(--font-display); font-size: 1.6rem; color: var(--primaire); }
.stat-card p { color: var(--encre-douce); margin-top: 6px; font-size: 0.95rem; }
.stats-note { margin-top: 18px; font-size: 0.8rem; color: var(--encre-douce); font-style: italic; }

/* ============ COMMUNAUTÉ ============ */
.section-communaute {
  background: linear-gradient(180deg, var(--sable-clair) 0%, var(--sable) 100%);
}
.attract-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px; margin-top: 10px;
}
.attract-card {
  background: var(--blanc); border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow);
  border-bottom: 4px solid var(--primaire);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.attract-card:nth-child(2) { border-bottom-color: var(--or); }
.attract-card:nth-child(3) { border-bottom-color: var(--indigo); }
.attract-card:nth-child(4) { border-bottom-color: var(--acacia); }
.attract-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.attract-card h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.attract-card p { color: var(--encre-douce); font-size: 0.95rem; }

/* ============ PARTICIPER ============ */
.section-participer { background: var(--primaire-fonce); color: var(--sable-clair); }
.section-participer .section-kicker { color: var(--or); }
.section-participer .section-title { color: var(--blanc); }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px; margin: 34px 0;
}
.contact-block h3 {
  font-family: var(--font-display); font-size: 1.1rem;
  color: var(--or); margin-bottom: 10px;
}
.contact-block p { font-size: 0.95rem; color: rgba(250,246,238,0.88); }
.contact-block a { color: var(--or); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.section-participer .btn-primary { background: var(--or); color: var(--encre); box-shadow: 0 8px 24px rgba(232,180,41,0.3); }
.section-participer .btn-primary:hover { background: #d9a41f; }
.section-participer .btn-ghost { border-color: var(--sable-clair); color: var(--sable-clair); background: transparent; }
.section-participer .btn-ghost:hover { background: rgba(250,246,238,0.1); }

/* ============ FOOTER ============ */
.footer { background: var(--brun-nuit); color: rgba(250,246,238,0.8); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-family: var(--font-display); }
.footer-brand .nav-mark { width: 26px; height: 26px; }
.footer-disclaimer { font-size: 0.8rem; max-width: 62ch; color: rgba(250,246,238,0.65); }
.footer-disclaimer a { color: var(--or); }

/* ============ ÉTATS D'ANIMATION (JS les active) ============ */
.reveal-lines, .reveal-chars { will-change: transform, opacity; }
body.js-anim .reveal-lines,
body.js-anim .reveal-chars { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  body.js-anim .reveal-lines,
  body.js-anim .reveal-chars { opacity: 1 !important; transform: none !important; }
  .card, .attract-card, .btn { transition: none; }
}
