/* Guignolée St-Richard — modern responsive restyle.
   Heritage burgundy (#330022) carried forward as a warm wine, paired with a giving gold,
   evergreen touch, and a warm ivory page. Dependency-free, mobile-first. */
:root {
  --wine: #7a1f3a;
  --wine-deep: #4a1226;
  --wine-soft: #9d3556;
  --gold: #e3a13a;
  --gold-deep: #c4852a;
  --green: #2f6b4f;
  --ivory: #fbf6ef;
  --cream: #f3eae0;
  --ink: #2a2230;
  --muted: #574f5e;   /* darkened for stronger contrast (older readers) */
  --line: #e7dccf;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(74, 18, 38, .14);
  --shadow-sm: 0 4px 14px rgba(74, 18, 38, .10);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; font-size: 17px; }  /* larger base = easier reading */
/* clear keyboard focus ring for accessibility */
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--ivory);
  line-height: 1.65; -webkit-font-smoothing: antialiased;
}
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.15; color: var(--wine-deep); margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }
a { color: var(--wine); }
img { max-width: 100%; display: block; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  font: 600 1rem var(--sans); text-decoration: none; border: 0; border-radius: 999px;
  padding: .72em 1.4em; transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--gold); color: #3a2708; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--gold-deep); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.24); }
.btn-lg { padding: .85em 1.7em; font-size: 1.06rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(251,246,239,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--wine-deep); }
.brand-mark { font-size: 26px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 1.18rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
  padding: .5em .42em; border-radius: 8px; }
.nav > a:not(.nav-cta):hover { background: var(--cream); color: var(--wine); }
.nav-cta { margin-left: 4px; padding-inline: .9em; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 40px; background: none;
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; height: 2.5px; background: var(--wine-deep); border-radius: 2px; margin: 4px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(58,14,30,.96) 0%, rgba(74,18,38,.86) 42%, rgba(122,31,58,.64) 100%),
    url("images/photos/2014/05.jpg") center 35%/cover no-repeat;
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 360px at 80% -10%, rgba(227,161,58,.28), transparent 60%); }
.hero-inner { position: relative; padding: clamp(46px, 8vw, 92px) 0 clamp(56px, 8vw, 96px); max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700;
  color: var(--gold); margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 1rem + 4.6vw, 3.7rem); margin-bottom: .35em; }
.lede { font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem); color: rgba(255,255,255,.92); max-width: 60ch; }
.date-badge { display: inline-flex; flex-direction: column; gap: 2px; margin: 22px 0 26px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 20px; backdrop-filter: blur(4px); }
.db-label { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--gold); font-weight: 700; }
.db-date { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.db-sub { font-size: .86rem; color: rgba(255,255,255,.82); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- sections ---------- */
.section { padding: clamp(54px, 8vw, 92px) 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 60ch; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700;
  color: var(--gold-deep); margin: 0 0 8px; }
.kicker-light { color: var(--gold); }
.section-sub { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-sub { color: rgba(255,255,255,.82); }

.grid-2 { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.grid-2-wide { grid-template-columns: 1.4fr 1fr; align-items: start; }
.kicker + h2 { margin-bottom: .5em; }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--wine); border-bottom: 2px solid var(--gold); padding-bottom: 1px; }
.link-arrow:hover { color: var(--gold-deep); }

.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.how-list li { display: flex; gap: 14px; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.how-ic { font-size: 30px; flex: 0 0 auto; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 18px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 2vw, 2.9rem);
  color: var(--wine); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; }
.stat-wide { grid-column: span 2; background: linear-gradient(120deg, var(--wine), var(--wine-soft)); border: 0; }
.stat-wide b, .stat-wide span { color: #fff; }
.stat-wide span { color: rgba(255,255,255,.85); }
.impact-note { max-width: 70ch; margin: 28px auto 0; text-align: center; color: var(--muted); }

/* ---------- donation cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card-feature { border: 2px solid var(--gold); box-shadow: var(--shadow); position: relative; }
.card-ic { font-size: 34px; margin-bottom: 8px; }
.card address { font-style: normal; color: var(--ink); line-height: 1.7; }
.card-tag { margin-top: auto; display: inline-block; align-self: flex-start; background: var(--cream);
  color: var(--wine); font-size: .82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.hilite { font-family: var(--serif); font-size: 1.25rem; color: var(--green); font-weight: 700; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- benevolat (dark) ---------- */
.section-dark { background: linear-gradient(160deg, var(--wine-deep), var(--wine)); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.card-v { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 22px 22px; }
.card-v h3 { border-bottom: 2px solid var(--gold); padding-bottom: 10px; margin-bottom: 12px; }
.card-v ul { margin: 0; padding-left: 18px; }
.card-v li { margin-bottom: 8px; color: rgba(255,255,255,.92); }
.card-v em { color: var(--gold); font-style: normal; }
.benevolat-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; margin-top: 30px; background: rgba(0,0,0,.18); border-radius: var(--radius); padding: 20px 24px; }
.benevolat-cta p { margin: 0; }
.benevolat-cta a[href^="tel"], .section-dark a { color: var(--gold); }

/* ---------- gallery ---------- */
.gallery-year { margin-bottom: 34px; }
.gallery-year h3 { display: flex; align-items: center; gap: 12px; }
.gallery-year h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid button { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-grid button:hover img { transform: scale(1.06); }

/* ---------- letter from the president ---------- */
.letter-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.letter {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow); border-top: 5px solid var(--gold);
}
.letter-title { font-family: var(--serif); font-size: 1.45rem; color: var(--wine-deep); margin: 0 0 1.1em;
  padding-bottom: .5em; border-bottom: 1px solid var(--line); }
.letter p { color: #38303f; }
.letter h4 { font-family: var(--sans); font-size: 1.06rem; color: var(--wine); margin: 1.6em 0 .5em; }
.letter h4.sub { font-size: .95rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .04em;
  border-left: 3px solid var(--gold); padding-left: 10px; margin-top: 1.3em; }
.letter ul { margin: .2em 0 1em; padding-left: 1.25em; }
.letter li { margin-bottom: .55em; color: #4a4150; }
.letter .bilan { background: var(--cream); border-radius: 12px; padding: 4px 18px 4px 34px; margin: .4em 0 1.2em; }
.letter .bilan li { color: var(--wine-deep); font-weight: 600; }
.signature { margin-top: 1.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.signature .sig-name { font-family: var(--serif); font-size: 1.35rem; color: var(--wine-deep); }
.signature .sig-role { color: var(--muted); }
.letter-aside { display: grid; gap: 18px; position: sticky; top: 84px; }

/* ---------- about ---------- */
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); }
.aside-card h3 { border-bottom: 2px solid var(--gold); padding-bottom: 10px; }
.facts { margin: 0; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); margin: 0; }
.facts dd { margin: 0; font-weight: 600; text-align: right; color: var(--wine-deep); }

/* ---------- footer ---------- */
.site-footer { background: var(--wine-deep); color: rgba(255,255,255,.86); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: 14px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.6); }
.foot-blurb { color: rgba(255,255,255,.7); margin-top: 14px; font-size: .95rem; max-width: 34ch; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 9px; font-size: .95rem; }
.foot-links a { color: rgba(255,255,255,.9); text-decoration: none; }
.foot-links a:hover { color: var(--gold); }
.partner-logos { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-logos img { height: 38px; width: auto; background: #fff; border-radius: 8px; padding: 5px 8px; }
.foot-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
  font-size: .85rem; color: rgba(255,255,255,.6); text-align: center; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,8,14,.92);
  display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; right: 22px; font-size: 26px; }
.lb-nav { font-size: 40px; padding: 0 18px; }
.lb-close, .lb-nav { background: none; border: 0; color: #fff; cursor: pointer; opacity: .85; }
.lb-close:hover, .lb-nav:hover { opacity: 1; }
.lb-prev { position: absolute; left: 8px; } .lb-next { position: absolute; right: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 10px 6vw 18px;
    gap: 2px; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .28s; }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: .7em .6em; border-radius: 10px; }
  .nav-cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .grid-2, .grid-2-wide { grid-template-columns: 1fr; }
  .letter-grid { grid-template-columns: 1fr; }
  .letter-aside { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat-wide { grid-column: span 2; }
  .cards, .cards-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .benevolat-cta { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
