/* ═══════════════════════════════════════════════════════════════
   SAUVEGARDE DU PATRIMOINE MARITIME GIRONDIN · ANTENNE DE MÉRIGNAC
   Design: Refined Editorial / Literary Magazine
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:    #f7f3ec;
  --ink:      #1a1612;
  --ink-mid:  #3d3530;
  --ink-soft: #6b5e54;
  --accent:   #C8A96E;
  --navy:     #1B3A5C;
  --serif:    Georgia, 'Times New Roman', serif;
  --max:      1200px;
  --gutter:   2.5rem;
  --rh:       rgba(26,22,18,0.72);
  --r:        rgba(26,22,18,0.22);
  --rl:       rgba(26,22,18,0.10);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
p { margin-bottom: 1.3em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy); }
a:hover { text-decoration-color: var(--accent); }

/* ── Typography ─────────────────────────────────────────── */
.kicker {
  display: block;
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.display-xl {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6.5vw, 5.75rem);
  font-weight: normal;
  font-style: italic;
  line-height: 1.06;
  color: var(--ink);
}
.display-lg {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: normal;
  line-height: 1.12;
  color: var(--ink);
}
.display-md {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: normal;
  line-height: 1.2;
}
.display-sm {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: normal;
  line-height: 1.3;
}

.body-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-mid);
}
.body-text p { margin-bottom: 1.45em; }
.body-text p:last-child { margin-bottom: 0; }

.drop-cap::first-letter {
  float: left;
  font-size: 5.25rem;
  line-height: 0.82;
  margin: 0.04em 0.12em 0 0;
  color: var(--navy);
  font-style: italic;
  font-family: var(--serif);
}

/* ── Rules ──────────────────────────────────────────────── */
hr { border: none; margin: 0; }
hr.rh  { border-top: 2px solid var(--rh); }
hr.r   { border-top: 1px solid var(--r);  }
hr.rl  { border-top: 1px solid var(--rl); }
.bdr-h { border-top: 2px solid var(--rh); }
.bdr   { border-top: 1px solid var(--r);  }
.bdr-l { border-top: 1px solid var(--rl); }

/* ── Layout ─────────────────────────────────────────────── */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section    { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 8rem 0; }

/* ── Site Header ────────────────────────────────────────── */
.site-header {
  background: var(--ivory);
  border-bottom: 1px solid var(--r);
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 200;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo     { height: 44px; width: auto; }
.brand-wordmark { height: 30px; width: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 17px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.site-nav a {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a.active {
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
}

/* ── Site Footer ────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(247,243,236,0.65);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.6fr;
  gap: 4rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo {
  height: 50px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-wordmark {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
}
.footer-tagline {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(247,243,236,0.4);
  font-family: var(--serif);
  font-style: italic;
  margin-top: 0.25rem;
}
.footer-col h4 {
  font-family: var(--serif);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: normal;
  margin-bottom: 1.1rem;
}
.footer-col p,
.footer-col a {
  font-size: 0.82rem;
  line-height: 1.85;
  color: rgba(247,243,236,0.55);
  display: block;
  margin-bottom: 0.35rem;
  text-decoration: none;
  font-family: var(--serif);
  word-break: break-word;
}
.footer-col a:hover { color: var(--ivory); text-decoration: none; }
.footer-col nav { display: flex; flex-direction: column; gap: 0.3rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 3.5rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid rgba(247,243,236,0.10);
  font-size: 0.7rem;
  color: rgba(247,243,236,0.28);
  font-family: var(--serif);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 5.5rem 0 0; }
.hero-text {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 3.5rem;
}
.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 68ch;
  font-style: italic;
}
.hero-image img {
  width: 100%;
  height: 62vh;
  min-height: 360px;
  max-height: 660px;
  object-fit: cover;
  object-position: center 35%;
}
.hero-caption {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.8rem var(--gutter);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rl);
}

/* ── Stats Row ──────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--rh);
  border-bottom: 1px solid var(--r);
}
.stat-item {
  padding: 3rem 2rem;
  text-align: center;
  border-right: 1px solid var(--r);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-family: var(--serif);
}

/* ── Magazine Columns ───────────────────────────────────── */
.mag-cols {
  column-count: 2;
  column-gap: 4.5rem;
  column-rule: 1px solid var(--rl);
}

/* ── Highlights ─────────────────────────────────────────── */
.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--rh);
}
.hl-item {
  padding: 2.75rem 2.5rem 2.75rem 0;
  border-right: 1px solid var(--rl);
}
.hl-item:last-child  { border-right: none; padding-right: 0; }
.hl-item:first-child { padding-left: 0; }
.hl-item + .hl-item  { padding-left: 2.5rem; }
.hl-icon  { display: block; font-size: 1.3rem; margin-bottom: 1rem; }
.hl-title {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.7rem;
  line-height: 1.25;
}
.hl-blurb { font-size: 0.875rem; line-height: 1.82; color: var(--ink-mid); }

/* ── Pull Quote ─────────────────────────────────────────── */
.pull-quote {
  border-top: 2px solid var(--rh);
  border-bottom: 1px solid var(--r);
  padding: 4.5rem var(--gutter);
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.48;
  max-width: 860px;
  margin: 0 auto;
}
.pull-quote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ── Mat Photo ──────────────────────────────────────────── */
.mat-photo {
  background: #fff;
  padding: 1.25rem 1.25rem 2.75rem;
  margin: 4rem 0;
}
.mat-photo img { width: 100%; height: auto; }
.mat-photo figcaption {
  font-style: italic;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.55;
}

/* ── CTA Strip ──────────────────────────────────────────── */
.cta-strip {
  background: var(--navy);
  padding: 6rem var(--gutter);
  text-align: center;
}
.cta-strip .kicker { color: rgba(200,169,110,0.85); margin-bottom: 1.25rem; }
.cta-strip .display-md { color: var(--ivory); margin-bottom: 2.75rem; }
.btn-cta {
  display: inline-block;
  padding: 0.9rem 2.75rem;
  border: 1px solid rgba(247,243,236,0.4);
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-cta:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── Page Header ────────────────────────────────────────── */
.page-header {
  padding: 5.5rem 0 4rem;
  border-bottom: 2px solid var(--rh);
}

/* ── Contents Register ──────────────────────────────────── */
.register {
  list-style: none;
  border-top: 2px solid var(--rh);
  margin-top: 3rem;
}
.register-item {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rl);
}
.reg-icon { font-size: 1rem; line-height: 1; color: var(--accent); }
.reg-title {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.25;
}
.reg-blurb { font-size: 0.875rem; line-height: 1.78; color: var(--ink-mid); }

/* ── Programme Detail ───────────────────────────────────── */
.prog-detail {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--r);
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 6rem;
  align-items: start;
}
.prog-label { position: sticky; top: 120px; }
.prog-icon  { font-size: 1.5rem; margin-bottom: 0.75rem; display: block; }
.prog-title {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.25;
}
.prog-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-mid);
}
.prog-body p { margin-bottom: 1.25em; }
.prog-body p:last-child { margin-bottom: 0; }

/* ── Trustees ───────────────────────────────────────────── */
.trustees { list-style: none; border-top: 2px solid var(--rh); margin-top: 2.5rem; }
.trustee {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rl);
}
.trustee-name { font-size: 1.15rem; font-style: italic; color: var(--navy); }
.trustee-role {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Ways ───────────────────────────────────────────────── */
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--rh);
  margin-top: 4rem;
}
.way-item {
  padding: 3rem 2.5rem 3rem 0;
  border-right: 1px solid var(--rl);
}
.way-item:last-child { border-right: none; padding-right: 0; }
.way-item:not(:first-child) { padding-left: 2.5rem; }
.way-icon  { display: block; font-size: 1.4rem; margin-bottom: 1rem; }
.way-title { font-size: 1.15rem; font-style: italic; color: var(--navy); margin-bottom: 0.7rem; }
.way-blurb { font-size: 0.875rem; line-height: 1.82; color: var(--ink-mid); }

/* ── Blog / Article Teasers ─────────────────────────────── */
.article-list { border-top: 2px solid var(--rh); }
.art-teaser {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
  padding: 4rem 0;
  border-bottom: 1px solid var(--r);
}
.art-teaser-title {
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-style: italic;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-weight: normal;
}
.art-teaser-title a { color: inherit; text-decoration: none; }
.art-teaser-title a:hover { color: var(--navy); }
.art-teaser-dek {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.68;
  margin-bottom: 1.5rem;
}
.read-more {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.read-more:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.art-mat {
  background: #fff;
  padding: 0.875rem 0.875rem 2rem;
  flex-shrink: 0;
}
.art-mat img { width: 100%; }
.art-mat figcaption {
  font-style: italic;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  text-align: center;
  line-height: 1.5;
}

/* ── Article Page ───────────────────────────────────────── */
.art-header {
  padding: 5.5rem 0 3.5rem;
  border-bottom: 2px solid var(--rh);
}
.art-header-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.art-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-style: italic;
  font-weight: normal;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.art-dek-large {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.68;
  max-width: 66ch;
}
.art-body-wrap {
  max-width: 840px;
  margin: 0 auto;
  padding: 4.5rem var(--gutter);
}
.art-body p {
  font-size: 1rem;
  line-height: 1.92;
  color: var(--ink-mid);
  margin-bottom: 1.5em;
}
.art-body p:last-child { margin-bottom: 0; }
.art-back { padding: 2.5rem 0 5rem; border-top: 1px solid var(--r); }
.art-back a {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.art-back a:hover { color: var(--navy); }

/* ── Colophon / Contact ─────────────────────────────────── */
.colophon { padding: 5.5rem 0; }
.colophon-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 7rem;
  align-items: start;
}
.colophon-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}
.colophon-address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 2.1;
  color: var(--ink-mid);
}
.colophon-email { word-break: break-all; }
.contact-form-section {
  padding: 5.5rem 0;
  border-top: 1px solid var(--r);
}
.contact-form { max-width: 600px; }
.form-row { margin-bottom: 2rem; }
.form-row label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
  font-family: var(--serif);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--r);
  background: transparent;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  padding: 0.5rem 0;
  outline: none;
  appearance: none;
  border-radius: 0;
}
.form-row input:focus,
.form-row textarea:focus { border-bottom-color: var(--navy); }
.form-row textarea { resize: vertical; min-height: 130px; line-height: 1.75; }
.btn-submit {
  background: var(--navy);
  color: var(--ivory);
  border: none;
  padding: 0.9rem 2.75rem;
  font-family: var(--serif);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-submit:hover { background: var(--ink); }

/* ── Mission box ────────────────────────────────────────── */
.mission-box {
  border-top: 2px solid var(--rh);
  border-bottom: 1px solid var(--r);
  padding: 4rem var(--gutter);
  text-align: center;
  margin: 5rem 0;
}
.mission-box p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.75;
  max-width: 800px;
  margin: 0 auto;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --gutter: 1.75rem; }
  html { font-size: 17px; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    border-top: 1px solid var(--r);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
  }
  .site-nav.open { display: flex; }

  .mag-cols { column-count: 1; }
  .highlights { grid-template-columns: 1fr; }
  .hl-item { border-right: none; border-bottom: 1px solid var(--rl); padding: 2.25rem 0; }
  .hl-item:last-child { border-bottom: none; }
  .hl-item:first-child { padding-top: 2.25rem; }
  .hl-item + .hl-item { padding-left: 0; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--rl); }
  .stat-item:last-child { border-bottom: none; }
  .ways { grid-template-columns: 1fr; }
  .way-item { border-right: none; border-bottom: 1px solid var(--rl); padding: 2.5rem 0; }
  .way-item:last-child { border-bottom: none; }
  .way-item:not(:first-child) { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .pull-quote { padding: 3rem var(--gutter); }
  .art-teaser { grid-template-columns: 1fr; gap: 2rem; }
  .prog-detail { grid-template-columns: 1fr; gap: 2.5rem; }
  .prog-label { position: static; }
  .colophon-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  html { font-size: 16px; }
  .hero-image img { height: 55vw; min-height: 220px; }
  .section { padding: 3.75rem 0; }
  .pull-quote blockquote { font-size: 1.3rem; }
  .stat-item { padding: 2rem 1.5rem; }
  .trustee { flex-direction: column; gap: 0.25rem; }
}
