/* ============================================================
   LORD - Association solidaire (La Rochelle)
   styles.css
   ============================================================ */

:root {
  --primary: #0e6b58;
  --primary-dark: #08453a;
  --primary-light: #1a8b73;
  --accent: #d4a82e;
  --accent-dark: #a17f1f;
  --bg: #ffffff;
  --bg-soft: #f4faf8;
  --bg-alt: #e8f3ef;
  --bg-warm: #fbf6ec;
  --text: #1a2a26;
  --text-soft: #475a55;
  --muted: #7a8a86;
  --border: #d9e6e1;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgba(8, 69, 58, 0.06);
  --shadow: 0 4px 18px rgba(8, 69, 58, 0.10);
  --shadow-lg: 0 16px 44px rgba(8, 69, 58, 0.16);
  --radius: 12px;
  --radius-lg: 18px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--primary-light); text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--text);
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
}
h1 { font-size: clamp(2rem, 3.6vw, 2.95rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 2.5vw, 2.1rem); font-weight: 700; margin-bottom: .6em; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .4em; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ===== Top bar (legal info + language) ===== */
.top-bar {
  background: var(--primary-dark);
  color: #cfe7df;
  font-size: .82rem;
  padding: 7px 0;
}
.top-bar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: #fff; }
.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.lang-switch a {
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .5px;
  border: 1px solid rgba(255,255,255,.18);
  text-transform: uppercase;
  font-size: .72rem;
}
.lang-switch a:hover, .lang-switch a.active {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 16px;
}
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 50px; width: auto; }

.main-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.93rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--primary);
  text-decoration: none;
}
.main-nav a.active {
  color: var(--primary);
  background: var(--bg-alt);
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: transform .1s ease, background .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.btn:hover { background: var(--primary-light); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 9px 20px; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary-dark); }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }
.btn-light:hover { background: var(--bg-warm); color: var(--primary); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--text);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 6px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: #fff;
  padding: 100px 0 120px;
  background:
    linear-gradient(135deg, rgba(8, 69, 58, .88), rgba(14, 107, 88, .80)),
    url('https://images.unsplash.com/photo-1469571486292-0ba58a3f068b?w=1800&q=80&auto=format&fit=crop') center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 820px; }
.hero p.lead {
  color: #e7f3ef;
  font-size: 1.18rem;
  max-width: 740px;
  margin-top: 18px;
}
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { box-shadow: var(--shadow); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .85rem;
  margin-bottom: 22px;
}
.hero-badge::before {
  content: "";
  display: block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

/* Page hero (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0 80px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #d8ebe5; max-width: 760px; }
.page-hero .breadcrumbs a { color: #cfe7df; }
.page-hero .breadcrumbs a:hover { color: #fff; }

/* ===== Section / Cards ===== */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
section.warm { background: var(--bg-warm); }

.section-eyebrow {
  display: inline-block;
  color: var(--primary-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: .8rem;
  margin-bottom: 8px;
}
.section-title { max-width: 800px; }
.section-intro { max-width: 800px; color: var(--text-soft); font-size: 1.05rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 38px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 880px){ .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card .card-body { padding: 22px; }
.card h3 { color: var(--primary-dark); }
.card .card-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
}
.card .card-link::after { content: " →"; }
.card .pill {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 8px;
}

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Stats / KPI */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 38px;
}
.stat {
  background: #fff;
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.stat .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  font-family: Georgia, serif;
}
.stat .label { color: var(--muted); font-size: .95rem; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; margin: 0; }
.cta-banner p { color: #d8ebe5; margin: 0; max-width: 600px; }

/* Article body */
.article-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 60px 0 90px;
}
.article-hero h1 { color: #fff; }
.article-hero p { color: #d8ebe5; max-width: 780px; }
.article-meta { color: #b8d2c9; font-size: .9rem; margin-top: 6px; }

.prose {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  margin-top: -50px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}
@media (max-width: 700px) { .prose { padding: 26px 22px; } }
.prose h2 { margin-top: 30px; color: var(--primary-dark); }
.prose h3 { margin-top: 22px; color: var(--primary); }
.prose ul li, .prose ol li { margin-bottom: 6px; color: var(--text-soft); }
.prose .callout {
  background: var(--bg-warm);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.prose .callout-info {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.prose img { border-radius: var(--radius); margin: 18px 0; box-shadow: var(--shadow-sm); }

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary-dark);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Georgia, serif;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] { background: var(--bg-soft); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info p { margin: 6px 0; }
.contact-info strong { color: var(--text); }

form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
form label { font-weight: 600; font-size: .92rem; color: var(--text); display: block; margin-bottom: 6px; }
form input, form textarea, form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
form input:focus, form textarea:focus, form select:focus {
  outline: 2px solid var(--primary-light);
  outline-offset: 1px;
  border-color: var(--primary-light);
}
form .form-row { margin-bottom: 14px; }
form button { width: auto; padding: 14px 28px; font-size: 1rem; }

/* Donate options */
.donate-tier {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.donate-tier .tier {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}
.donate-tier .tier:hover, .donate-tier .tier.selected {
  border-color: var(--primary);
  background: var(--bg-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.donate-tier .tier .amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: Georgia, serif;
}
.donate-tier .tier .desc {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 4px;
}

/* Programs list */
.program-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.program-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.program-row img { width: 100%; height: 100%; object-fit: cover; }
.program-row .body { padding: 22px 22px 22px 0; }
.program-row h3 { color: var(--primary-dark); margin-top: 8px; }
@media (max-width: 700px) {
  .program-row { grid-template-columns: 1fr; }
  .program-row img { aspect-ratio: 16 / 9; }
  .program-row .body { padding: 18px 22px 22px; }
}

/* Footer */
.site-footer {
  background: #07332a;
  color: #c5d8d2;
  padding: 64px 0 30px;
  margin-top: 60px;
}
.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: Georgia, serif;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c5d8d2; }
.site-footer a:hover { color: #fff; }
.footer-brand p { color: #92a8a2; font-size: .92rem; }
.footer-legal {
  border-top: 1px solid #114e41;
  margin-top: 32px;
  padding-top: 18px;
  text-align: center;
  font-size: .87rem;
  color: #8da59f;
}
.footer-legal p { color: #8da59f; margin: 4px 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--primary); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.list-checks { list-style: none; padding: 0; }
.list-checks li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.list-checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}
.list-arrows { list-style: none; padding: 0; }
.list-arrows li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 8px;
  color: var(--text-soft);
}
.list-arrows li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-dark);
  font-weight: 800;
}

/* Quote */
.quote-block {
  background: var(--bg-warm);
  border-left: 5px solid var(--accent);
  padding: 22px 28px;
  border-radius: 8px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.08rem;
  font-family: Georgia, serif;
}
.quote-block cite { display: block; margin-top: 8px; font-style: normal; font-weight: 700; color: var(--primary-dark); font-size: .92rem; }

/* Trust badge row */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  align-items: center;
}
.trust-badges .badge {
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text-soft);
  box-shadow: var(--shadow-sm);
}
.trust-badges .badge strong { color: var(--primary-dark); }

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, var(--bg-warm), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}
.highlight-box h3 { color: var(--primary-dark); }

/* Skip-link a11y */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: static;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 6px 0;
}
