/* Hallmark · genre: playful · macrostructure: Split Studio · theme: custom
 * vibe: "warm, inviting, neighbourhood community" · paper: oklch(97% 0.012 20) · accent: oklch(59% 0.235 10.5)
 * display: Hanken Grotesk / Caveat (existing brand) · axes: light / geometric-sans / warm
 * nav: N1b (adapted, anchor links) · footer: Ft5 Statement · studied: no · context: explicit
 */

/* ---- WP preset variable bridge ---- */
:root {
  --rose:     var(--wp--preset--color--rose);
  --rose-700: var(--wp--preset--color--rose-700);
  --rose-200: var(--wp--preset--color--rose-200);
  --rose-50:  var(--wp--preset--color--rose-50);
  --lime-300: var(--wp--preset--color--lime-300);
  --lime-700: var(--wp--preset--color--lime-700);
  --white:    var(--wp--preset--color--white);
  --paper:    var(--wp--preset--color--paper);
  --paper-2:  var(--wp--preset--color--paper-2);
  --page:     var(--wp--preset--color--page);
  --ink-900:  var(--wp--preset--color--ink-900);
  --ink-700:  var(--wp--preset--color--ink-700);
  --ink-500:  var(--wp--preset--color--ink-500);
  --ink-300:  var(--wp--preset--color--ink-300);
  --line:     var(--wp--preset--color--line);
  --font-sans: var(--wp--preset--font-family--sans);
  --font-hand: var(--wp--preset--font-family--hand);
  --text-on-rose: #ffffff;
  --text-on-lime: var(--ink-900);
  --label-color: var(--rose);
  --link:      var(--rose);
  --link-hover: var(--rose-700);
  --radius:    12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --fw-semibold: 600;
  --fw-bold:   700;
  --fw-extra:  800;
  --label-size: 0.8125rem;
  --ls-label:  0.14em;
  --lh-body:   1.6;
  --shadow-whisper: 0 1px 2px rgba(37,29,29,0.05), 0 10px 24px -12px rgba(37,29,29,0.14);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-short: 160ms;
  --dur-med: 220ms;
  --z-sticky: 200;
}

/* ---- Reset & base ---- */
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Section rhythm ---- */
.site-main { padding-left: 20px; padding-right: 20px; }
.site-section {
  padding-top: 56px;
  padding-bottom: 56px;
}
.site-section.is-tight { padding-top: 36px; padding-bottom: 36px; }

/* ---- Base typography ---- */
h1, h2, h3, h4 {
  color: var(--ink-900);
  font-weight: var(--fw-extra);
  line-height: 1.2;
  margin: 0 0 16px;
}
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
p { color: var(--ink-700); line-height: var(--lh-body); }

/* ---- Section label (small, above a diptych's text column) ---- */
.section-label {
  display: inline-block;
  font-size: var(--label-size);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--label-color);
  margin: 0 0 12px;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(253,242,242,0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav-inner {
  padding: 14px 20px;
  gap: 20px;
}
.site-nav-logo { margin: 0; flex: none; }
.site-nav-logo img { display: block; width: 120px; height: auto; }
.site-nav-links { gap: 28px; }
.site-nav-links p { margin: 0; }
.site-nav-links a {
  color: var(--ink-700);
  font-weight: var(--fw-semibold);
  font-size: 14px;
}
.site-nav-links a:hover { color: var(--rose); }
.site-nav-cta-wrap { margin: 0; }
.btn-nav-cta {
  display: inline-block;
  background: var(--rose);
  color: #fff !important;
  font-weight: var(--fw-bold);
  font-size: 14px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.btn-nav-cta:hover { background: var(--rose-700); color: #fff !important; }
.btn-nav-cta:active { transform: translateY(1px); }

@media (max-width: 640px) {
  .site-nav .site-nav-links { display: none; }
  .site-nav-logo img { width: 96px; }
}

/* ============================================================
   Footer — Ft5 Statement
   ============================================================ */
.site-footer {
  padding: 64px 20px 40px;
  border-top: 1px solid var(--line);
}
.footer-statement {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: var(--fw-extra);
  color: var(--ink-900);
  max-width: 16ch;
  margin: 0 0 40px;
  line-height: 1.2;
}
.footer-meta { gap: 8px 24px; }
.footer-org {
  font-size: 14px;
  font-weight: var(--fw-bold);
  color: var(--ink-900);
  margin: 0;
}
.footer-contact {
  font-size: 14px;
  color: var(--ink-500);
  margin: 0;
}
.footer-contact a { color: var(--rose); font-weight: var(--fw-semibold); }
.footer-contact a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .site-main { padding-left: 16px; padding-right: 16px; }
  .site-section { padding-top: 56px; padding-bottom: 56px; }
}

/* ============================================================
   Hero — Split Studio diptych
   ============================================================ */
.hero-split { gap: 48px; }
.hero-statement {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: var(--fw-extra);
  line-height: 1.25;
  color: var(--ink-900);
  margin: 0 0 24px;
}
.hero-cta-wrap { margin: 0; }
.hero-cta {
  display: inline-block;
  font-weight: var(--fw-bold);
  color: var(--rose);
  border-bottom: 2px solid var(--rose);
  padding-bottom: 2px;
  transition: color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.hero-cta:hover { color: var(--rose-700); border-color: var(--rose-700); }
.hero-illustration { margin: 0; }
.hero-illustration img { display: block; width: 100%; height: auto; }

@media (max-width: 600px) {
  .hero-illustration img { max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   Content badges — small accent pill, replaces full-color fills
   ============================================================ */
.content-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin: 0 0 16px;
}
.content-badge-rose { background: var(--rose-50); color: var(--rose-700); }
.content-badge-lime { background: var(--lime-300); color: var(--ink-900); }

/* ============================================================
   Pacte — diptych (photo left / text right)
   ============================================================ */
.pacte-split { gap: 32px; }
.pacte-photo { margin: 0; height: 100%; }
.pacte-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}
.pacte-content {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
}
.pacte-content h2 {
  margin: 0 0 14px;
  font-size: 1.375rem;
  font-weight: var(--fw-extra);
  color: var(--ink-900);
}
.pacte-content p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-700);
}
.pacte-content p:last-child { margin-bottom: 0; }
.pacte-signature {
  margin-top: 16px !important;
  font-family: var(--font-hand);
  font-size: 22px;
  text-align: right;
  line-height: 1.1;
  color: var(--ink-900);
}

@media (max-width: 600px) {
  .pacte-photo { height: 220px; }
}

/* ============================================================
   Actualités — diptych (text left / date-card right)
   ============================================================ */
.actualites-split { gap: 32px; }
.actualites-divider.wp-block-separator {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
.actualites-recurring-title {
  margin: 0 0 4px;
  font-size: 1.125rem;
}
.actualites-recurring-meta {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--rose-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.date-card {
  background: var(--rose);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.date-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-whisper); }
.date-card-label {
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 12px;
  color: #fff;
}
.date-card-date {
  font-family: var(--font-hand);
  font-size: 44px;
  font-weight: var(--fw-semibold);
  margin: 0;
  line-height: 1;
  color: #fff;
}

/* ============================================================
   Maison Rose — diptych (photo left / timeline right)
   ============================================================ */
.maison-rose-split { gap: 40px; }
.maison-rose-photo { margin: 0; }
.maison-rose-photo img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}
.milestones {
  list-style: none;
  margin: 20px 0 20px;
  padding: 0;
}
.milestone {
  position: relative;
  padding-left: 29px;
  padding-bottom: 16px;
}
.milestone:last-child { padding-bottom: 0; }
.milestone::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--lime-700);
  background: var(--paper);
}
.milestone-filled::before { background: var(--lime-700); }
.milestone:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 23px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.milestone-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
}
.milestone-text.future { color: var(--ink-500); }
.milestone-link-wrap { margin: 8px 0 0; }
.milestone-link {
  color: var(--rose);
  font-weight: var(--fw-bold);
  font-size: 14px;
}

@media (max-width: 600px) {
  .maison-rose-photo img { max-height: 220px; }
}

/* ============================================================
   Historique — quiet pull-quote breather (rhythm break)
   ============================================================ */
.historique-block {
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
}
.historique-block::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--rose);
  margin: 0 auto 24px;
  border-radius: 2px;
}
.historique-block p {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.5;
  font-weight: var(--fw-semibold);
  color: var(--ink-900);
}

/* ============================================================
   Rejoignez l'association — diptych (form left / payment right)
   ============================================================ */
.join-split { gap: 40px; }
.join-steps {
  margin: 4px 0 24px;
  padding-left: 18px;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.7;
}
.form-notice {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: var(--fw-semibold);
  font-size: 14px;
  margin-bottom: 20px;
}
.form-notice-success { background: var(--lime-300); color: var(--ink-900); }
.form-notice-error { background: var(--rose-50); color: var(--rose-700); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin-bottom: 8px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: var(--fw-semibold);
  color: var(--rose);
  margin-bottom: 5px;
}
.form-field input {
  width: 100%;
  border: none;
  border-bottom: var(--border-width) solid var(--ink-500);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-900);
  padding: 7px 2px;
  outline: none;
  transition: border-color var(--dur-short) var(--ease-out);
}
.form-field input:focus { border-bottom-color: var(--rose); }

.btn-submit {
  margin-top: 20px;
  width: 100%;
  background: var(--rose);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 14px;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  font-size: 15px;
  cursor: pointer;
  transition: background var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.btn-submit:hover { background: var(--rose-700); }
.btn-submit:active { transform: translateY(1px); }

.payment-card {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
}
.payment-label {
  font-size: 13px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 12px;
}
.payment-amount {
  font-size: 28px;
  font-weight: var(--fw-extra);
  color: var(--ink-900);
  margin: 0 0 10px;
}
.payment-amount span {
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--ink-500);
}
.payment-note {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0 0 20px;
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border: var(--border-width) solid var(--ink-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  font-size: 12px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

/* ============================================================
   Single post
   ============================================================ */
.single-post > * { margin-bottom: 24px; }
.single-post-meta { gap: 8px; margin-bottom: 24px; }

/* ============================================================
   Supporters — logo wall
   ============================================================ */
.supporters-section { text-align: center; }
.supporters-section .section-label { text-align: center; }
.supporters-section img {
  width: min(520px, 100%);
  margin: 0 auto;
  opacity: 0.85;
}
