/* ------------------------------------------------------------------ */
/* Actions Écologiques Françaises — feuille de style                   */
/* ------------------------------------------------------------------ */

:root {
  --bg: #FAF8F2;
  --bg-alt: #F1EEE2;
  --surface: #FFFFFF;
  --ink: #1E281C;
  --ink-soft: #52604C;
  --ink-faint: #8A9483;
  --line: rgba(30, 40, 28, 0.12);
  --line-soft: rgba(30, 40, 28, 0.07);
  --green: #2F4A2F;
  --green-deep: #1C2E1C;
  --green-light: #5C7C52;
  --terracotta: #C1552E;
  --terracotta-soft: #E9C8B6;
  --cream: #FAF8F2;
  --shadow: 0 30px 60px -30px rgba(20, 30, 18, 0.35);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12160F;
    --bg-alt: #171C13;
    --surface: #1B2117;
    --ink: #EDEFE8;
    --ink-soft: #B6C0AC;
    --ink-faint: #7C8874;
    --line: rgba(237, 239, 232, 0.12);
    --line-soft: rgba(237, 239, 232, 0.07);
    --green-light: #8CA876;
    --terracotta-soft: #4A2E20;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.serif {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(250, 248, 242, 0.78);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-color: var(--line);
  padding: 12px 0;
}
@media (prefers-color-scheme: dark) {
  .site-header.is-scrolled { background: rgba(18, 22, 15, 0.78); }
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-name { font-size: 15px; line-height: 1.15; }
.brand-name small { display: block; font-weight: 400; color: var(--ink-faint); font-size: 11px; letter-spacing: 0.02em; }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--green); }
@media (prefers-color-scheme: dark) {
  .nav-links a:hover { color: var(--green-light); }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #FAF8F2;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .3s var(--ease), background .3s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--green-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 24px; height: 24px; }

.mobile-panel { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-panel {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1;
    display: none;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 6px;
  }
  .mobile-panel.is-open { display: flex; }
  .mobile-panel a {
    text-decoration: none;
    color: var(--ink);
    font-family: 'Fraunces', serif;
    font-size: 28px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-panel .nav-cta { margin-top: 24px; align-self: flex-start; }
}

/* ---------------------------- Hero ---------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  transform: scale(1.06);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,22,15,0.18) 0%, rgba(18,22,15,0.08) 30%, rgba(18,22,15,0.55) 100%);
}
.hero-inner {
  position: relative;
  padding-bottom: 96px;
  color: #FAF8F2;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  margin: 0 0 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 46ch;
  color: rgba(250, 248, 242, 0.88);
  margin: 0 0 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-primary {
  background: var(--cream);
  color: var(--green-deep);
}
.btn-primary:hover { transform: translateY(-2px); background: #fff; }
.btn-outline {
  border: 1px solid rgba(250, 248, 242, 0.45);
  color: #FAF8F2;
}
.btn-outline:hover { border-color: #FAF8F2; transform: translateY(-2px); }
.btn-dark {
  background: var(--green);
  color: #FAF8F2;
}
.btn-dark:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green-light); color: var(--green); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  right: 40px; bottom: 44px;
  writing-mode: vertical-rl;
  color: rgba(250, 248, 242, 0.7);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 46px;
  background: rgba(250, 248, 242, 0.5);
}
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------------------------- Section shell ---------------------------- */
section { position: relative; }
.section-pad { padding: 128px 0; }
@media (max-width: 760px) { .section-pad { padding: 84px 0; } }
.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}
.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 20px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin: 0;
}
.eyebrow-dark { color: var(--green); }
@media (prefers-color-scheme: dark) { .eyebrow-dark { color: var(--green-light); } }

/* ---------------------------- Mission ---------------------------- */
.mission {
  background: var(--bg);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .mission-grid { grid-template-columns: 1fr; gap: 48px; }
}
.mission-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.32;
  color: var(--green-deep);
  margin: 0 0 24px;
}
@media (prefers-color-scheme: dark) { .mission-quote { color: var(--ink); } }
.mission-quote span { color: var(--terracotta); }
.mission-cite {
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.mission-copy p {
  color: var(--ink-soft);
  font-size: 1.04rem;
  margin: 0 0 20px;
}
.mission-copy p:last-child { margin-bottom: 0; }

/* ---------------------------- Cards ---------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 900px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  padding: 40px 34px;
  transition: background .35s var(--ease);
}
.card:hover { background: var(--bg-alt); }
.card-icon {
  width: 42px; height: 42px;
  margin-bottom: 26px;
  color: var(--green);
}
@media (prefers-color-scheme: dark) { .card-icon { color: var(--green-light); } }
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.28rem;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* ---------------------------- ODD pills ---------------------------- */
.odd {
  background: var(--green-deep);
  color: #FAF8F2;
}
.odd .section-head h2 { color: #FAF8F2; }
.odd .section-head p { color: rgba(250,248,242,0.72); }
.odd .eyebrow { color: var(--green-light); }
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0; margin: 0; list-style: none;
}
.pill-list li {
  border: 1px solid rgba(250, 248, 242, 0.22);
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 0.95rem;
  color: rgba(250, 248, 242, 0.92);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
}

/* ---------------------------- Full bleed image ---------------------------- */
.bleed {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
}
.bleed img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.bleed-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 48px;
  background: linear-gradient(0deg, rgba(18,22,15,0.55), transparent);
  color: #FAF8F2;
}
.bleed-caption p {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  max-width: 34ch;
  margin: 0;
}

/* ---------------------------- Timeline / recognition ---------------------------- */
.recognition {
  background: var(--bg-alt);
}
.recog-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
}
@media (max-width: 900px) { .recog-grid { grid-template-columns: 1fr; gap: 48px; } }
.recog-copy p { color: var(--ink-soft); font-size: 1.04rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 18px 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); }

.timeline {
  list-style: none;
  margin: 0; padding: 0;
  border-left: 1px solid var(--line);
}
.timeline li {
  position: relative;
  padding: 0 0 40px 32px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -5px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-alt);
}
@media (prefers-color-scheme: dark) { .timeline li::before { border-color: var(--bg-alt); } }
.timeline time {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 6px;
}
.timeline h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.12rem;
  margin: 0 0 6px;
}
.timeline p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------------------------- Registry / transparency ---------------------------- */
.registry {
  background: var(--bg);
}
.registry-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) { .registry-panel { grid-template-columns: 1fr; } }
.registry-media { position: relative; min-height: 320px; }
.registry-media img { width: 100%; height: 100%; object-fit: cover; }
.registry-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(18,22,15,0.5));
}
.registry-media-caption {
  position: absolute; left: 24px; bottom: 20px;
  color: #FAF8F2; font-size: 13px;
  letter-spacing: 0.02em;
}
.registry-body { padding: 48px; }
@media (max-width: 500px) { .registry-body { padding: 32px 24px; } }
.registry-list { margin: 0 0 32px; padding: 0; list-style: none; }
.registry-list li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.registry-list li:first-child { padding-top: 0; }
.registry-list dt, .registry-list .k {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.registry-list .v {
  text-align: right;
  font-weight: 500;
  color: var(--ink);
}
.registry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.status-active {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
}
@media (prefers-color-scheme: dark) { .status-active { color: var(--green-light); } }
.status-active::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

/* ---------------------------- Contact ---------------------------- */
.contact {
  background: var(--green-deep);
  color: #FAF8F2;
}
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: end;
}
@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; gap: 36px; } }
.contact h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  line-height: 1.08;
}
.contact p.lede { color: rgba(250,248,242,0.75); font-size: 1.05rem; max-width: 46ch; margin: 0; }
.contact-email {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #FAF8F2;
  text-decoration: none;
  border-bottom: 1px solid rgba(250,248,242,0.35);
  padding-bottom: 6px;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.contact-email:hover { border-color: var(--terracotta); color: var(--terracotta-soft); }
.contact-meta {
  margin-top: 28px;
  font-size: 0.92rem;
  color: rgba(250,248,242,0.6);
  line-height: 1.7;
}

/* ---------------------------- Footer ---------------------------- */
.site-footer {
  background: var(--green-deep);
  color: rgba(250,248,242,0.75);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(250,248,242,0.1);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250,248,242,0.1);
  margin-bottom: 20px;
}
.footer-brand { font-family: 'Fraunces', serif; font-size: 1.1rem; color: #FAF8F2; }
.footer-brand small { display: block; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(250,248,242,0.55); margin-top: 4px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; color: rgba(250,248,242,0.75); font-size: 13.5px; }
.footer-links a:hover { color: #FAF8F2; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(250,248,242,0.45);
}
.footer-bottom a { color: rgba(250,248,242,0.55); text-decoration: none; }
.footer-bottom a:hover { color: rgba(250,248,242,0.85); }
