/* ═══════════════════════════════════════════════════════════
   CULTIVE — Page publique campagnes (/cultive)
   ═══════════════════════════════════════════════════════════ */
.cult-container { max-width: 1240px; padding: 0 1rem 3rem; }

/* ─── HERO ──────────────────────────────────────────── */
.cult-hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  margin-bottom: 2rem;
  isolation: isolate;
}
.cult-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(244,115,36,.45) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(58,153,102,.55) 0%, transparent 50%),
    linear-gradient(135deg, #1a3d2b 0%, #245c3e 50%, #2d7a52 100%);
  z-index: -2;
}
.cult-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15,30,22,.4) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20 L20 0 L40 20 L20 40 Z' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='1'/%3E%3C/svg%3E");
  z-index: -1;
}
.cult-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 1rem 3rem;
  color: #fff;
}
.cult-hero__main { max-width: 640px; }
.cult-hero__badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .85rem;
  background: rgba(244,115,36,.95);
  color: #fff;
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 12px rgba(244,115,36,.4);
}
.cult-hero__title {
  font-size: 2.6rem; font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.cult-hero__title span {
  background: linear-gradient(90deg, #fbd4b8, #f7924f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cult-hero__sub {
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.cult-hero__ctas { display: flex; flex-wrap: wrap; gap: .7rem; }

.cult-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem;
  border-radius: 12px;
  font-size: .95rem; font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  border: 2px solid transparent;
}
.cult-cta--primary {
  background: #fff; color: #245c3e;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.cult-cta--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.28); background: #f3f4f6; }
.cult-cta--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.cult-cta--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Stats hero (encadré glass) ───────────────────────── */
.cult-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.3);
}
.cult-stat {
  background: rgba(255,255,255,.08);
  padding: .85rem .95rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
}
.cult-stat__value {
  font-size: 1.65rem; font-weight: 800;
  color: #fff; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.cult-stat__label {
  font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-top: .3rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.cult-stat__bar {
  height: 5px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
  margin-top: .5rem;
}
.cult-stat__bar > div {
  height: 100%;
  background: linear-gradient(90deg, #f7924f, #f47324);
  border-radius: 999px;
}
.cult-stat__sub {
  font-size: .68rem; color: rgba(255,255,255,.7);
  margin-top: .25rem;
}

/* ─── SECTIONS ──────────────────────────────────────── */
.cult-section { margin-bottom: 2.5rem; scroll-margin-top: 80px; }
.cult-section__head { margin-bottom: 1.25rem; }
.cult-section__head--row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem;
}
.cult-section__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: 1.4rem; font-weight: 800;
  color: var(--color-text, #1f2937);
  margin: 0;
}
.cult-section__title svg { color: var(--savane-orange-500, #f47324); }
.cult-section__count {
  font-size: .78rem; font-weight: 700;
  background: var(--savane-orange-100, #fef2ea);
  color: var(--savane-orange-700, #c44d00);
  padding: .25rem .65rem;
  border-radius: 999px;
}
.cult-section__sub {
  font-size: .92rem;
  color: var(--color-text-muted, #6b7280);
  margin: .35rem 0 0;
}

/* Section urgente — accent rouge/orange */
.cult-section--urgent .cult-section__title { color: #c44d00; }
.cult-section--urgent .cult-section__count { background: #fee2e2; color: #b91c1c; }

.cult-pulse {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ef4444;
  position: relative;
  flex-shrink: 0;
}
.cult-pulse::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: cult-pulse 1.6s ease-out infinite;
}
@keyframes cult-pulse {
  0%   { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ─── FILTRES ───────────────────────────────────────── */
.cult-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  background: #fff;
  padding: .75rem;
  border-radius: 14px;
  border: 1px solid var(--color-border, #e5e7eb);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.cult-filter { flex: 1 1 220px; min-width: 0; }
.cult-filter input {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  font-size: .88rem;
  background: var(--savane-gris-50, #f9fafb);
}
.cult-filter input:focus { outline: 2px solid var(--savane-orange-300, #f7924f); border-color: transparent; }
.cult-filter__select {
  padding: .6rem .8rem;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 10px;
  font-size: .85rem; font-weight: 500;
  background: var(--savane-gris-50, #f9fafb);
  color: var(--color-text);
  cursor: pointer;
}
.cult-filter__submit {
  padding: .6rem 1.2rem;
  background: var(--savane-orange-500, #f47324);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .85rem; font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.cult-filter__submit:hover { background: var(--savane-orange-600, #e05a00); }
.cult-filter__reset {
  padding: .6rem .9rem;
  color: var(--color-text-muted);
  font-size: .82rem;
  text-decoration: none;
  align-self: center;
}
.cult-filter__reset:hover { color: var(--savane-orange-600); text-decoration: underline; }

/* ─── GRILLE CAMPAGNES ──────────────────────────────── */
.cult-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cult-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cult-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
  border-color: var(--savane-orange-400, #f7924f);
}
.cult-card--urgent { border-color: #fca5a5; }
.cult-card--urgent:hover { border-color: #ef4444; box-shadow: 0 10px 24px rgba(239,68,68,.18); }
.cult-card--almost { border-color: var(--savane-vert-400, #72cc96); }
.cult-card--almost:hover { border-color: var(--savane-vert-600); box-shadow: 0 10px 24px rgba(58,153,102,.2); }

.cult-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--savane-vert-300), var(--savane-vert-600));
  background-size: cover;
  background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.cult-card__emoji { font-size: 3rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.cult-card__urgency {
  position: absolute; top: .65rem; left: .65rem;
  background: #ef4444;
  color: #fff;
  padding: .28rem .6rem;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  box-shadow: 0 2px 8px rgba(239,68,68,.4);
}
.cult-card__urgency--almost {
  background: var(--savane-vert-600, #3a9966);
  box-shadow: 0 2px 8px rgba(58,153,102,.4);
}
.cult-card__usage {
  position: absolute; top: .65rem; right: .65rem;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: .25rem .55rem;
  border-radius: 6px;
  font-size: .68rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.cult-card__body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.cult-card__title {
  font-weight: 700; font-size: 1rem;
  color: var(--color-text, #1f2937);
  line-height: 1.3;
  margin-bottom: .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.cult-card__coop {
  display: flex; align-items: center; gap: .3rem;
  font-size: .78rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: .85rem;
}
.cult-card__coop svg { color: var(--savane-orange-500); flex-shrink: 0; }
.cult-card__bar {
  height: 8px;
  background: var(--savane-gris-100, #f3f4f6);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: .55rem;
}
.cult-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--savane-orange-400, #f7924f), var(--savane-orange-600, #e05a00));
  border-radius: 999px;
  transition: width .4s ease;
}
.cult-card--almost .cult-card__bar-fill { background: linear-gradient(90deg, var(--savane-vert-500), var(--savane-vert-700)); }
.cult-card__amounts {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
  color: var(--color-text);
  margin-bottom: .65rem;
}
.cult-card__amounts strong { color: var(--savane-vert-700, #2d7a52); font-size: .95rem; }
.cult-card__pct {
  font-size: 1.1rem; font-weight: 800;
  color: var(--savane-orange-600, #e05a00);
}
.cult-card--almost .cult-card__pct { color: var(--savane-vert-700); }
.cult-card__footer {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: .65rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  font-size: .78rem;
  color: var(--color-text-muted);
}
.cult-card__cta {
  font-weight: 700;
  color: var(--savane-orange-600, #e05a00);
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.cult-empty {
  background: #fff;
  border: 2px dashed var(--color-border, #e5e7eb);
  border-radius: 16px;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.cult-empty__icon { font-size: 3.5rem; margin-bottom: .5rem; }
.cult-empty h3 { font-size: 1.2rem; color: var(--color-text); margin: .5rem 0; }
.cult-empty p { color: var(--color-text-muted); margin: 0 auto 1.25rem; max-width: 400px; }

/* ─── COMMENT ÇA MARCHE ─────────────────────────────── */
.cult-howto {
  background: linear-gradient(135deg, var(--savane-orange-100, #fef2ea), #fff 60%, var(--savane-vert-100, #e8f8ed));
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  margin: 3rem 0 2rem;
  text-align: center;
}
.cult-howto__title {
  font-size: 1.6rem; font-weight: 800;
  color: var(--color-text, #1f2937);
  margin: 0 0 1.75rem;
}
.cult-howto__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.cult-howto__step {
  background: #fff;
  padding: 1.5rem 1.25rem;
  border-radius: 14px;
  position: relative;
  border: 1px solid var(--color-border);
  text-align: left;
}
.cult-howto__num {
  position: absolute; top: -14px; left: 1.25rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--savane-orange-500, #f47324);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 10px rgba(244,115,36,.35);
}
.cult-howto__icon { font-size: 2rem; margin-bottom: .5rem; }
.cult-howto__step h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--color-text);
  margin: .25rem 0 .5rem;
}
.cult-howto__step p {
  font-size: .88rem; line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
}

/* ─── CTA FINAL ─────────────────────────────────────── */
.cult-final-cta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1.25rem;
  background: linear-gradient(135deg, #245c3e, #2d7a52);
  color: #fff;
  padding: 2rem 2.25rem;
  border-radius: 18px;
  margin-top: 1rem;
  box-shadow: 0 8px 24px rgba(45,122,82,.3);
}
.cult-final-cta h2 { font-size: 1.4rem; margin: 0 0 .35rem; color: #fff; }
.cult-final-cta p { margin: 0; color: rgba(255,255,255,.9); font-size: .95rem; }

/* ─── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 960px) {
  .cult-hero__inner { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 1rem 2rem; }
  .cult-hero__title { font-size: 2rem; }
  .cult-hero__stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .cult-hero__inner { padding: 2rem 1rem 1.5rem; }
  .cult-hero__badge { font-size: .68rem; }
  .cult-hero__title { font-size: 1.65rem; }
  .cult-hero__sub { font-size: .92rem; }
  .cult-hero__ctas .cult-cta { flex: 1; justify-content: center; padding: .7rem 1rem; font-size: .88rem; }
  .cult-hero__stats { grid-template-columns: repeat(2, 1fr); padding: 1rem; gap: .65rem; }
  .cult-stat__value { font-size: 1.3rem; }

  .cult-section { margin-bottom: 1.75rem; }
  .cult-section__title { font-size: 1.15rem; }

  .cult-filters { padding: .6rem; gap: .5rem; }
  .cult-filter { flex: 1 1 100%; }
  .cult-filter__select { flex: 1 1 calc(50% - .25rem); font-size: .8rem; }
  .cult-filter__submit { flex: 1 1 100%; }

  .cult-grid { grid-template-columns: 1fr; gap: 1rem; }
  .cult-card__title { font-size: .95rem; }

  .cult-howto { padding: 1.75rem 1rem; }
  .cult-howto__title { font-size: 1.25rem; }
  .cult-howto__grid { grid-template-columns: 1fr; gap: 1.25rem; }

  .cult-final-cta { padding: 1.5rem 1.25rem; flex-direction: column; align-items: stretch; text-align: center; }
  .cult-final-cta h2 { font-size: 1.2rem; }
  .cult-final-cta .cult-cta { justify-content: center; }
}
