/*
Theme Name: La FIGue-OFF
Theme URI: https://figue-off.sos-massifdesvosges.fr/
Author: SOS Massif des Vosges
Description: Thème éditorial de La FIGue-OFF, le fruit défendu de la géographie.
Version: 0.1.2
Text Domain: figue-off
*/

:root {
  --fig-ink: #2d1536;
  --fig-purple: #4c1f58;
  --fig-purple-dark: #27102f;
  --fig-green: #789746;
  --fig-green-soft: #dfe9c8;
  --fig-coral: #ef4657;
  --fig-cream: #fffaf2;
  --fig-paper: #f4eee3;
  --fig-white: #ffffff;
  --fig-muted: #6d626c;
  --fig-line: rgba(45, 21, 54, 0.15);
  --fig-shadow: 0 24px 64px rgba(45, 21, 54, 0.14);
  --fig-radius: 26px;
  --fig-width: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fig-ink);
  background: var(--fig-cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  z-index: 100000;
  background: var(--fig-white);
}
.site-shell { width: var(--fig-width); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--fig-line);
  background: rgba(255, 250, 242, 0.94);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 118px; border-radius: 18px; }
.nav-toggle {
  display: none;
  border: 1px solid var(--fig-line);
  border-radius: 999px;
  background: var(--fig-white);
  color: var(--fig-ink);
  padding: 10px 15px;
  font: inherit;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.site-nav a:hover, .site-nav a:focus { color: var(--fig-coral); }
.site-nav .nav-cta {
  padding: 11px 17px;
  color: var(--fig-white);
  background: var(--fig-purple);
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 64px;
  background:
    radial-gradient(circle at 15% 10%, rgba(120,151,70,.18), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(239,70,87,.14), transparent 27%),
    var(--fig-cream);
}
.hero::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -260px;
  bottom: -210px;
  border: 46px solid rgba(76,31,88,.07);
  border-radius: 55% 45% 60% 40%;
  transform: rotate(22deg);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}
.hero-logo-wrap {
  padding: 34px;
  border: 1px solid rgba(76,31,88,.11);
  border-radius: 48% 52% 46% 54% / 54% 43% 57% 46%;
  background: rgba(255,255,255,.78);
  box-shadow: var(--fig-shadow);
  transform: rotate(-1.5deg);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--fig-coral);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 38px; height: 3px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 6vw, 5.8rem); letter-spacing: -.045em; }
h2 { margin-bottom: 20px; font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.55rem; }
.hero-lead { max-width: 670px; margin: 0 0 28px; color: var(--fig-muted); font-size: 1.2rem; }
.event-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }
.event-line span {
  padding: 8px 13px;
  border: 1px solid var(--fig-line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: .9rem;
  font-weight: 700;
}
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 20px;
  border: 2px solid var(--fig-purple);
  border-radius: 999px;
  color: var(--fig-white);
  background: var(--fig-purple);
  text-decoration: none;
  font-weight: 800;
}
.button:hover, .button:focus { background: var(--fig-coral); border-color: var(--fig-coral); }
.button-secondary { color: var(--fig-purple); background: transparent; }
.button-secondary:hover, .button-secondary:focus { color: var(--fig-white); }

.facts { padding: 0 0 82px; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-radius);
  overflow: hidden;
  background: var(--fig-white);
  box-shadow: 0 16px 46px rgba(45,21,54,.08);
}
.fact { padding: 28px 30px; }
.fact + .fact { border-left: 1px solid var(--fig-line); }
.fact strong { display: block; color: var(--fig-purple); font: 700 2.5rem/1 Georgia, serif; }
.fact span { display: block; margin-top: 8px; color: var(--fig-muted); }

.section { padding: 94px 0; }
.section-paper { background: var(--fig-paper); }
.section-purple { color: var(--fig-white); background: var(--fig-purple-dark); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 52px; margin-bottom: 44px; align-items: end; }
.section-heading p { margin: 0; color: var(--fig-muted); font-size: 1.05rem; }
.section-purple .section-heading p { color: rgba(255,255,255,.72); }
.section-purple .eyebrow { color: #bcd477; }

.edition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.edition-copy p:first-of-type { font-size: 1.18rem; }
.quote {
  margin: 0;
  padding: 34px;
  border-left: 6px solid var(--fig-coral);
  border-radius: 0 var(--fig-radius) var(--fig-radius) 0;
  background: var(--fig-white);
  box-shadow: 0 16px 42px rgba(45,21,54,.08);
  font: 1.45rem/1.5 Georgia, serif;
}
.quote cite { display: block; margin-top: 16px; color: var(--fig-muted); font: 700 .8rem/1.4 "Trebuchet MS", sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.journal-grid { display: grid; grid-template-columns: minmax(260px,.72fr) 1.28fr; gap: clamp(40px,7vw,90px); align-items: center; }
.document-cover { border-radius: 18px; box-shadow: var(--fig-shadow); }
.journal-copy ul { margin: 24px 0 30px; padding-left: 22px; }
.journal-copy li { margin: 8px 0; }

.documents-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.document-card {
  display: grid;
  grid-template-columns: 128px minmax(0,1fr);
  gap: 22px;
  min-height: 250px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
}
.document-card img { width: 128px; height: 180px; object-fit: cover; object-position: top; border-radius: 11px; background: var(--fig-paper); }
.document-card .doc-type { color: #bcd477; font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.document-card h3 { margin-top: 8px; }
.document-card p { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .92rem; }
.document-card a { color: var(--fig-white); font-weight: 800; text-underline-offset: 4px; }

.suite-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 46px; align-items: start; }
.manifesto {
  padding: 34px;
  border: 1px solid var(--fig-line);
  border-radius: var(--fig-radius);
  background: var(--fig-white);
  box-shadow: 0 16px 42px rgba(45,21,54,.08);
}
.status { display: inline-block; padding: 6px 10px; border-radius: 999px; color: var(--fig-purple); background: var(--fig-green-soft); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.manifesto h3 { margin-top: 18px; }
.notice { padding: 28px; border: 2px dashed rgba(76,31,88,.25); border-radius: var(--fig-radius); }
.notice strong { color: var(--fig-coral); }

.documents-page { padding: 80px 0 100px; }
.documents-page .documents-grid { margin-top: 42px; }
.documents-page .document-card { color: var(--fig-ink); border-color: var(--fig-line); background: var(--fig-white); }
.documents-page .document-card p { color: var(--fig-muted); }
.documents-page .document-card a { color: var(--fig-purple); }
.documents-page .document-card .doc-type { color: var(--fig-coral); }
.page-content { padding: 80px 0; }
.page-content > * { max-width: 780px; }

.site-footer { padding: 58px 0 34px; color: var(--fig-white); background: #1d0c23; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; }
.footer-logo { width: 138px; margin-bottom: 16px; border-radius: 18px; }
.footer-copy { max-width: 620px; margin: 0; color: rgba(255,255,255,.67); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--fig-white); font-weight: 700; text-underline-offset: 4px; }
.footer-bottom { margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.56); font-size: .82rem; }

@media (max-width: 880px) {
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 76px; }
  .brand img { width: 96px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 20px;
    padding: 20px;
    border: 1px solid var(--fig-line);
    border-radius: 20px;
    background: var(--fig-white);
    box-shadow: var(--fig-shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open { display: flex; }
  .hero-grid, .section-heading, .edition-grid, .journal-grid, .suite-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-logo-wrap { max-width: 560px; margin-inline: auto; padding: 22px; }
  .facts-grid { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--fig-line); }
  .section-heading { gap: 8px; }
  .journal-grid { align-items: start; }
  .document-cover { max-width: 430px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 650px) {
  :root { --fig-width: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .section { padding: 68px 0; }
  .documents-grid { grid-template-columns: 1fr; }
  .document-card { grid-template-columns: 96px minmax(0,1fr); min-height: 0; padding: 16px; }
  .document-card img { width: 96px; height: 136px; }
  .button-row .button { width: 100%; }
  .quote, .manifesto, .notice { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
