/* Association Jérémie Cohen — design public sobre et digne */
:root {
  --ink: #23262e;
  --muted: #6d7078;
  --paper: #faf8f4;
  --white: #ffffff;
  --blue: #1b2a4a;
  --blue2: #24365e;
  --gold: #c4a45f;
  --gold-2: #b3924e;
  --line: #e6e1d7;
  --radius: 10px;
  --shadow: 0 2px 14px rgba(27, 42, 74, 0.08);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--blue); line-height: 1.25; }
.wrap { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.small { font-size: 0.86rem; }
.muted { color: var(--muted); }

/* ---------- topbar ---------- */
.topbar { background: var(--blue); color: #cfd6e4; font-size: 0.82rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; }
.langswitch { display: flex; gap: 2px; flex-wrap: wrap; }
.langswitch a { color: #cfd6e4; text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.langswitch a.on, .langswitch a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.topbar-social { display: flex; gap: 4px; }
.topbar-social a { color: #cfd6e4; text-decoration: none; padding: 4px 9px; border-radius: 4px; font-weight: 700; }
.topbar-social a:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- header ---------- */
.header { background: var(--white); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 60; }
.header-in { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.logo { height: 52px; width: auto; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-family: var(--serif); font-size: 1.05rem; }
.brand-txt em { font-style: normal; font-size: 0.74rem; color: var(--gold-2); letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink); font-size: 0.92rem; padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--paper); }
.nav a.on { color: var(--blue); font-weight: 600; box-shadow: inset 0 -2px 0 var(--gold); border-radius: 6px 6px 0 0; }
.donate-btn { background: var(--gold); color: #fff; border: 0; padding: 10px 18px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.donate-btn:hover { background: var(--gold-2); }
.burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--blue); }

/* ---------- boutons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; border: 0; padding: 11px 22px; border-radius: 999px; font-size: 0.95rem; cursor: pointer; }
.btn:hover { background: var(--blue2); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: var(--gold-2); }
.btn.line { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.line:hover { background: var(--blue); color: #fff; }

/* ---------- hero / carrousel ---------- */
.hero { position: relative; }
.carousel { position: relative; height: min(72vh, 620px); min-height: 380px; overflow: hidden; background: var(--blue); }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0; transition: opacity 0.9s ease; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; z-index: 1; }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.15) 55%, rgba(15, 23, 42, 0.25) 100%); }
.slide-content { position: relative; z-index: 2; padding-bottom: 64px; color: #fff; }
.slide-content h1 { color: #fff; font-size: clamp(1.7rem, 4.2vw, 3rem); text-shadow: 0 2px 18px rgba(0,0,0,0.45); max-width: 750px; }
.slide-content p { font-size: clamp(1rem, 2vw, 1.25rem); margin: 10px 0 18px; max-width: 640px; text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
.car-prev, .car-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; background: rgba(255,255,255,0.16); color: #fff; border: 0; font-size: 1.9rem; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; backdrop-filter: blur(3px); }
.car-prev:hover, .car-next:hover { background: rgba(255,255,255,0.32); }
.car-prev { inset-inline-start: 16px; }
.car-next { inset-inline-end: 16px; }
.car-dots { position: absolute; bottom: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.car-dots .dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; }
.car-dots .dot.on { background: var(--gold); }

/* ---------- bandes / sections ---------- */
.donate-band { background: var(--blue); color: #fff; }
.donate-band-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 20px; flex-wrap: wrap; }
.donate-band p { font-family: var(--serif); font-size: 1.15rem; max-width: 760px; }
.section { padding: 56px 0; }
.section.alt { background: #f1ede4; }
.sec-title { font-size: 1.7rem; margin-bottom: 26px; position: relative; padding-bottom: 12px; }
.sec-title::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 56px; height: 3px; background: var(--gold); border-radius: 2px; }
.page-head { background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%); color: #fff; padding: 46px 0; }
.page-head h1 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.page-head p { max-width: 720px; margin-top: 8px; color: #d9dfeb; }

/* ---------- cartes articles ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(27, 42, 74, 0.14); }
.card-img { height: 185px; background-size: cover; background-position: center; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.card-body time { font-size: 0.8rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: 0.06em; }
.card-body h3 { font-size: 1.15rem; }
.card-body p { font-size: 0.92rem; color: var(--muted); }
.card .more { color: var(--blue); font-weight: 600; font-size: 0.9rem; margin-top: auto; }

/* ---------- story / rich text ---------- */
.rich { font-size: 1.02rem; }
.rich p { margin-bottom: 1em; }
.rich h2, .rich h3 { margin: 1.4em 0 0.5em; }
.rich img { border-radius: var(--radius); margin: 12px 0; }
.rich blockquote { border-inline-start: 3px solid var(--gold); padding-inline-start: 16px; color: var(--muted); font-style: italic; margin: 1em 0; }
.rich ul, .rich ol { padding-inline-start: 1.4em; margin-bottom: 1em; }
.story-body { columns: 1; }
.backlink { text-decoration: none; font-size: 0.9rem; }
.article-page h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: 6px 0 18px; }
.article-page time { color: var(--gold-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 22px; }

/* ---------- vidéos ---------- */
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame { aspect-ratio: 16 / 9; background: #0f172a; position: relative; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card p { padding: 12px 16px; font-size: 0.92rem; }

/* ---------- chronologie ---------- */
.timeline { position: relative; padding-inline-start: 26px; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 7px; width: 2px; background: var(--line); }
.tl-item { position: relative; margin-bottom: 26px; }
.tl-dot { position: absolute; inset-inline-start: -26px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.tl-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.tl-card time { color: var(--gold-2); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tl-card h3 { margin: 4px 0 6px; }
.tl-card img { border-radius: 8px; margin-top: 10px; max-height: 320px; object-fit: cover; }

/* ---------- galerie ---------- */
.photo-grid { columns: 3 260px; column-gap: 18px; }
.photo-item { break-inside: avoid; margin-bottom: 18px; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo-item img { display: block; width: 100%; cursor: zoom-in; }
.photo-item figcaption { padding: 10px 14px; font-size: 0.85rem; color: var(--muted); }
.lightbox { position: fixed; inset: 0; background: rgba(10, 14, 24, 0.92); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 6px; }

/* ---------- mur de soutien ---------- */
.support-wall { columns: 3 280px; column-gap: 20px; }
.home-wall { columns: 2 320px; }
.support-msg { break-inside: avoid; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 20px; border-top: 3px solid var(--gold); }
.support-msg p { font-family: var(--serif); font-style: italic; font-size: 0.98rem; }
.support-msg footer { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }

/* ---------- presse / agenda ---------- */
.press-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.press-item { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: 8px; box-shadow: var(--shadow); padding: 14px 18px; text-decoration: none; color: var(--ink); flex-wrap: wrap; }
.press-item:hover { box-shadow: 0 6px 18px rgba(27,42,74,0.13); }
.press-date { color: var(--gold-2); font-size: 0.82rem; min-width: 110px; }
.press-title { font-weight: 600; flex: 1; }
.press-source { color: var(--muted); font-size: 0.85rem; }
.agenda-list { display: flex; flex-direction: column; gap: 14px; }
.agenda-item { display: flex; gap: 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; }
.agenda-date { font-family: var(--serif); color: var(--gold-2); font-weight: 700; min-width: 130px; }

/* ---------- association ---------- */
.assoc-portrait img { border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow); }
.statuts-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-top: 30px; border-inline-start: 4px solid var(--gold); }
.statuts-box h3 { margin-bottom: 6px; }
.statuts-box .btn { margin-top: 12px; }

/* ---------- formulaires ---------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.form-card h3 { margin-bottom: 4px; }
.form-card label { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.form-card label small { font-weight: 400; color: var(--muted); }
.form-card input, .form-card textarea { border: 1.5px solid var(--line); border-radius: 8px; padding: 11px 13px; font: inherit; background: var(--paper); }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); background: #fff; }
.form-card .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }
.form-feedback { font-weight: 600; }
.form-feedback.ok { color: #1a7a3c; }
.form-feedback.err { color: #b3261e; }
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; align-items: start; }
.contact-side { background: var(--blue); color: #d9dfeb; border-radius: var(--radius); padding: 28px; }
.contact-side h3 { color: #fff; margin-bottom: 8px; }
.contact-side a { color: #fff; }

/* ---------- footer ---------- */
.footer { background: var(--blue); color: #c3cbdb; margin-top: 40px; }
.footer a { color: #dfe5f0; text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px; padding: 46px 20px 30px; }
.footer-grid h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-grid > div > a { display: block; padding: 3px 0; font-size: 0.9rem; }
.footer-logo { height: 60px; margin-bottom: 12px; filter: brightness(0) invert(1) opacity(0.9); }
.footer-grid p { font-size: 0.88rem; }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-social.dark a { background: rgba(255,255,255,0.18); color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-top: 8px; }
.newsletter-form input[type=email] { flex: 1; border: 0; border-radius: 6px; padding: 10px 12px; font: inherit; min-width: 0; }
.newsletter-form button { background: var(--gold); border: 0; color: #fff; border-radius: 6px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding: 14px 0; font-size: 0.82rem; }

/* ---------- modal dons ---------- */
.modal { position: fixed; inset: 0; background: rgba(10, 14, 24, 0.6); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-card { background: #fff; border-radius: 14px; padding: 34px; max-width: 460px; width: 100%; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.modal-close { position: absolute; top: 10px; inset-inline-end: 14px; background: none; border: 0; font-size: 1.7rem; cursor: pointer; color: var(--muted); }
.donate-links { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.donate-link { display: flex; align-items: baseline; gap: 10px; justify-content: center; background: var(--blue); color: #fff; text-decoration: none; padding: 13px; border-radius: 8px; font-weight: 600; }
.donate-link:hover { background: var(--blue2); }
.donate-link small { font-weight: 400; opacity: 0.8; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; box-shadow: 0 12px 20px rgba(0,0,0,0.1); }
  .nav.open { display: flex; }
  .nav a.on { box-shadow: none; background: var(--paper); }
  .burger { display: block; margin-inline-start: auto; }
  .nav + .donate-btn, .donate-btn { margin-inline-start: auto; }
  .header-in { gap: 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .agenda-item { flex-direction: column; gap: 6px; }
}
@media (max-width: 560px) {
  .section { padding: 38px 0; }
  .donate-btn span { display: none; }
  .slide-content { padding-bottom: 48px; }
}
