/* ============================================================
   Redistribute.Money — feuille de style globale
   Direction : journal imprimé brutaliste / éditorial militant
   ============================================================ */

:root {
  --ink:   #0A0A0A;
  --paper: #F2EDE4;
  --red:   #D12B1F;
  --dim:   #6B6560;
  --rule:  rgba(10,10,10,0.15);
  --green: #1D6A4A;
  --amber: #8B6010;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

/* ── Typographie ── */
.display { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.01em; line-height: 0.92; }
.cond    { font-family: 'Barlow Condensed', sans-serif; }

.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ── Layout ── */
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.rule-h { border-top: 1px solid var(--rule); }
.rule-b { border-bottom: 1px solid var(--rule); }

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 2px solid var(--red);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.brand em { font-style: normal; color: var(--red); }

.nav-links { display: flex; gap: 1.75rem; list-style: none; }

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.current { color: #fff; }

.nav-links a.current { border-bottom: 2px solid var(--red); padding-bottom: 2px; }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  border: none;
  padding: 0.45rem 1.25rem;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.85; }

/* Burger mobile */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
}

/* ── TICKER ── */
.ticker { background: var(--red); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: scroll-ticker 40s linear infinite; }

.ticker-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 2.5rem;
}

.ticker-dot { color: rgba(255,255,255,0.4); padding: 0.4rem 0; }

@keyframes scroll-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ── */
.section-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 3px double var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.section-rule { height: 1px; background: var(--rule); }

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.page-title .red { color: var(--red); }

/* ── BOUTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 2px solid var(--red);
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}

.btn-primary:hover { background: transparent; color: var(--red); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  text-decoration: none;
  border: 2px solid rgba(10,10,10,0.25);
  transition: border-color 0.15s;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.3); }
.btn-ghost.on-dark:hover { border-color: #fff; }

/* ── GRILLES DE CELLULES ── */
.cells-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--rule);
  margin-top: 2rem;
}

.cell {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.fact-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--ink);
}

.fact-num.accent { color: var(--red); }

.fact-text {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--dim);
}

.fact-source {
  margin-top: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.3);
}

/* ── CAUSES ── */
.cause-cell {
  padding: 1.75rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.cause-cell:hover { background: rgba(10,10,10,0.03); }

.cause-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.cause-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.2;
}

.cause-desc {
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dim);
  flex: 1;
}

.cause-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

.cause-tax {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--green);
}

.urgency {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

.u-red   { background: rgba(209,43,31,0.1);  color: var(--red); }
.u-amber { background: rgba(180,120,20,0.1); color: var(--amber); }
.u-green { background: rgba(29,106,74,0.1);  color: var(--green); }

/* ── FILTRES ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }

.filter-btn {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(10,10,10,0.2);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover  { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ── PROGRESS ── */
.progress-track { height: 4px; background: rgba(10,10,10,0.1); }
.progress-fill  { height: 100%; transition: width 1.5s ease; }

.progress-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  color: var(--dim);
  margin-top: 0.4rem;
}

/* ── BLOCS SOMBRES ── */
.dark-band { background: var(--ink); color: #fff; }

.dark-band .eyebrow { color: rgba(255,255,255,0.35); }

/* ── QUOTE ── */
.quote-section { background: var(--red); padding: 4rem 2rem; text-align: center; }

.big-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
}

.big-quote em { font-style: normal; color: rgba(255,255,255,0.4); }

/* ── CALCULATEUR ── */
.calc-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  display: block;
  margin-bottom: 0.5rem;
}

.calc-input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.15s;
  letter-spacing: 0.02em;
}

.calc-input:focus { border-color: var(--red); }
.calc-input::placeholder { color: rgba(255,255,255,0.2); }

.pct-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }

.pill {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.15s;
}

.pill:hover  { border-color: rgba(255,255,255,0.6); color: #fff; }
.pill.active { background: var(--red); border-color: var(--red); color: #fff; }

.result-row { padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

.result-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.result-val {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.2rem;
  line-height: 1;
  color: #fff;
  margin-top: 0.25rem;
}

.result-val.green { color: #4EC994; }

.result-val.small {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

/* ── NEWSLETTER ── */
.nl-section {
  padding: 3.5rem 0;
  border-top: 3px double var(--ink);
  border-bottom: 3px double var(--ink);
}

.nl-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.nl-form { display: flex; max-width: 520px; }

.nl-input {
  flex: 1;
  background: transparent;
  border: 1px solid rgba(10,10,10,0.3);
  border-right: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.8rem 1.25rem;
  outline: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.nl-input:focus { border-color: var(--ink); }
.nl-input::placeholder { color: var(--dim); }

/* ── FOOTER ── */
footer { background: var(--ink); color: rgba(255,255,255,0.4); padding: 3rem 0 2rem; }

.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1rem;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-links a {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── DIVERS ── */
.col-divider { background: var(--rule); }

.prose p {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dim);
  margin-bottom: 1.25rem;
}

.prose strong { font-weight: 600; color: var(--ink); }

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.4s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.2; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cells-3 { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nl-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 3rem;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--red);
  }

  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .cells-3 { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 0.5rem; }
  .section-rule { display: none; }
}
