/* ============================================================
   Les Petits Cuisiniers de Tours — Groupe local de Lyon
   Design: Warm & Human Community archetype
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:           #FFF3E0;
  --cream-deep:      #F5E6CE;
  --cream-card:      #FFFAF4;
  --terracotta:      #D4522A;
  --terracotta-mid:  #E87A54;
  --terracotta-pale: #FBEEE8;
  --brown:           #3D2B1F;
  --brown-mid:       #6B4226;
  --brown-light:     #9C6E52;
  --shadow:          rgba(61,43,31,.12);
  --shadow-strong:   rgba(61,43,31,.22);
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--brown);
  line-height: 1.75;
  font-size: 1.05rem;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  background: var(--cream-card);
  border-bottom: 2px dotted var(--terracotta-mid);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px var(--shadow);
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand .logo-icon  { height: 42px; width: auto; }
.nav-brand .wordmark   { height: 30px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--brown);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .01em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--cream) !important;
  border-radius: 50px !important;
  padding: .4rem 1.1rem !important;
  border-bottom: none !important;
}
.nav-cta:hover { opacity: .88; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--cream-deep);
  border-radius: 8px;
  cursor: pointer;
  padding: .45rem;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
}

/* ── SQUIGGLE DIVIDER ───────────────────────────────────── */
.squiggle-wrap {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 0;
}
.squiggle-wrap svg { display: block; width: 100%; }

/* ── HERO ───────────────────────────────────────────────── */
.hero-photo-wrap { position: relative; overflow: hidden; }
.hero-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-card {
  max-width: 700px;
  margin: -90px auto 0;
  position: relative;
  z-index: 2;
  background: var(--cream-card);
  border-radius: 28px;
  padding: 2.25rem 2.75rem;
  box-shadow: 0 10px 48px var(--shadow-strong);
  border: 3px solid var(--cream-deep);
  text-align: center;
}

.hero-tagline {
  font-size: clamp(1.55rem, 3.8vw, 2.3rem);
  font-weight: 900;
  color: var(--terracotta);
  line-height: 1.15;
  margin-bottom: .85rem;
}
.hero-sub {
  font-size: .98rem;
  color: var(--brown-mid);
  line-height: 1.8;
}

/* ── STAMP BADGE ────────────────────────────────────────── */
.stamp-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  border: 3px dashed var(--terracotta);
  background: var(--terracotta-pale);
  padding: 10px;
  text-align: center;
  transform: rotate(-9deg);
  box-shadow: 2px 3px 12px var(--shadow);
  flex-shrink: 0;
}
.stamp-badge .stamp-num {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--terracotta);
  line-height: 1;
}
.stamp-badge .stamp-lbl {
  font-size: .55rem;
  font-weight: 800;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: .1em;
  line-height: 1.3;
  margin-top: 3px;
}

/* ── SECTION FUNDAMENTALS ───────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section-wide { padding: 4rem 2rem; }

.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--terracotta);
  margin-bottom: .5rem;
}
h2.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--brown);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.intro-text {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--brown-mid);
  max-width: 74ch;
}

/* ── HIGHLIGHT CARDS (staggered) ────────────────────────── */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.highlight-card {
  background: var(--cream-card);
  border-radius: 24px;
  padding: 1.75rem;
  border: 2px dotted var(--terracotta-mid);
  box-shadow: 0 4px 22px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.highlight-card:nth-child(1) { transform: rotate(-1.2deg); }
.highlight-card:nth-child(2) { transform: rotate(.7deg); margin-top: 1.75rem; }
.highlight-card:nth-child(3) { transform: rotate(-1.8deg) translateY(.5rem); }
.highlight-card:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 8px 32px var(--shadow-strong); }
.highlight-icon { font-size: 2rem; margin-bottom: .6rem; display: block; }
.highlight-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--terracotta); margin-bottom: .4rem; }
.highlight-card p { font-size: .93rem; color: var(--brown-mid); line-height: 1.7; }

/* ── IMPACT BAR ─────────────────────────────────────────── */
.impact-bar {
  background: var(--terracotta);
  padding: 3.5rem 2rem;
  text-align: center;
}
.impact-bar-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  max-width: 820px;
  margin: 0 auto;
  align-items: center;
}
.impact-item .stat {
  display: block;
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
}
.impact-item .stat-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,243,224,.85);
  margin-top: .3rem;
}

/* ── POLAROID ROW ───────────────────────────────────────── */
.polaroid-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.5rem 0 2rem;
}
.polaroid {
  background: var(--cream-card);
  padding: 10px 10px 34px;
  border-radius: 3px;
  box-shadow: 4px 5px 22px var(--shadow-strong);
  flex: 0 0 200px;
  transition: transform .25s, box-shadow .25s;
  position: relative;
}
.polaroid:nth-child(1) { transform: rotate(-3.5deg); }
.polaroid:nth-child(2) { transform: rotate(2.2deg) translateY(12px); }
.polaroid:nth-child(3) { transform: rotate(-1.4deg) translateY(-6px); }
.polaroid:nth-child(4) { transform: rotate(3.8deg) translateY(10px); }
.polaroid:hover { transform: rotate(0) scale(1.05); z-index: 10; box-shadow: 6px 8px 30px var(--shadow-strong); }
.polaroid img { width: 100%; height: 175px; object-fit: cover; border-radius: 1px; display: block; }
.polaroid-caption {
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brown-mid);
  margin-top: 7px;
  font-style: italic;
  line-height: 1.3;
}

/* ── SPLIT LAYOUT ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 5px 7px 28px var(--shadow-strong);
  object-fit: cover;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

/* ── STORY BLOCK ────────────────────────────────────────── */
.story-block {
  background: var(--cream-card);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  box-shadow: 0 5px 22px var(--shadow);
  border-left: 6px solid var(--terracotta);
  max-width: 900px;
  margin: 0 auto;
}
.story-block p {
  margin-bottom: 1.35rem;
  color: var(--brown-mid);
  line-height: 1.9;
}
.story-block p:last-child { margin-bottom: 0; }

/* ── MISSION BLOCK ──────────────────────────────────────── */
.mission-block {
  background: var(--terracotta-pale);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  border: 2px solid var(--terracotta-mid);
  max-width: 900px;
  margin: 0 auto;
}
.mission-block p { color: var(--brown-mid); line-height: 1.9; font-size: 1.05rem; }

/* ── TRUSTEES ───────────────────────────────────────────── */
.trustees-row {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.trustee-pill {
  background: var(--cream-card);
  border: 2px solid var(--terracotta-mid);
  border-radius: 50px;
  padding: .75rem 1.5rem;
  box-shadow: 2px 3px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.trustee-pill .t-name { font-weight: 800; font-size: .98rem; color: var(--brown); }
.trustee-pill .t-role { font-size: .8rem; font-weight: 600; color: var(--terracotta); }

/* ── PROGRAMMES ─────────────────────────────────────────── */
.programmes-list { display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
.programme-card {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.25rem;
  background: var(--cream-card);
  border-radius: 24px;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 22px var(--shadow);
  border-left: 5px solid var(--terracotta);
  align-items: start;
}
.programme-card:nth-child(even) {
  margin-left: 3rem;
  border-left: none;
  border-right: 5px solid var(--terracotta-mid);
}
.programme-icon { font-size: 2.2rem; line-height: 1; padding-top: .1rem; }
.programme-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--terracotta); margin-bottom: .35rem; }
.programme-blurb { font-weight: 700; color: var(--brown); margin-bottom: .5rem; font-size: .97rem; }
.programme-detail { color: var(--brown-mid); font-size: .92rem; line-height: 1.75; }

/* ── WHAT WE DO BLOCK ───────────────────────────────────── */
.what-block {
  max-width: 900px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.what-block p { color: var(--brown-mid); line-height: 1.9; }

/* ── WAYS GRID ──────────────────────────────────────────── */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.way-card {
  background: var(--cream-card);
  border-radius: 24px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 22px var(--shadow);
  border-top: 5px solid var(--terracotta);
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.way-card:nth-child(2) { transform: translateY(1.2rem); border-top-color: var(--terracotta-mid); }
.way-card:nth-child(3) { border-top-color: var(--terracotta); }
.way-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px var(--shadow-strong); }
.way-card:nth-child(2):hover { transform: translateY(1.2rem) translateY(-3px); }
.way-icon { font-size: 2.5rem; display: block; margin-bottom: .75rem; }
.way-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--terracotta); margin-bottom: .55rem; }
.way-card p { font-size: .93rem; color: var(--brown-mid); line-height: 1.7; }

/* ── BLOG CARDS ─────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.blog-card {
  background: var(--cream-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 22px var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.blog-card:nth-child(2) { transform: rotate(.4deg) translateY(8px); }
.blog-card:nth-child(3) { transform: rotate(-.4deg); }
.blog-card:hover { transform: translateY(-4px) rotate(0); box-shadow: 0 10px 36px var(--shadow-strong); }
.blog-card img { width: 100%; height: 210px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: .72rem; font-weight: 700; color: var(--terracotta); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .4rem; }
.blog-card h3 { font-size: 1rem; font-weight: 800; color: var(--brown); margin-bottom: .45rem; line-height: 1.35; }
.blog-card .dek { font-size: .88rem; color: var(--brown-mid); line-height: 1.65; flex: 1; }
.read-more {
  display: inline-block;
  margin-top: .9rem;
  font-size: .82rem;
  font-weight: 800;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta-mid);
  padding-bottom: 1px;
  align-self: flex-start;
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-banner {
  background: var(--terracotta);
  border-radius: 28px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 0 2rem;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--cream);
  color: var(--terracotta);
  font-weight: 800;
  font-size: 1rem;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.16);
  transition: transform .18s, box-shadow .18s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 26px rgba(0,0,0,.22); }
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2.5px solid var(--cream);
}
.btn-outline:hover { background: var(--cream); color: var(--terracotta); }
.btn-terra { background: var(--terracotta); color: var(--cream); }
.btn-terra:hover { background: #bf4923; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  background: var(--cream-card);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  border: 2px dotted var(--terracotta-mid);
}
.contact-info h3 { font-size: 1.1rem; font-weight: 800; color: var(--terracotta); margin-bottom: 1rem; }
.contact-info p { color: var(--brown-mid); margin-bottom: .7rem; font-size: .95rem; }
.contact-info a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 700; font-size: .88rem; color: var(--brown); margin-bottom: .35rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .72rem 1rem;
  border: 2px solid var(--cream-deep);
  border-radius: 12px;
  background: var(--cream-card);
  font-family: inherit;
  font-size: .97rem;
  color: var(--brown);
  transition: border-color .18s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--terracotta); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ── ARTICLE ────────────────────────────────────────────── */
.article-hero {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0 0 32px 32px;
  display: block;
}
.article-header { max-width: 760px; margin: 2.5rem auto 0; padding: 0 2rem; }
.article-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--brown); line-height: 1.2; margin-bottom: .6rem; }
.article-dek { font-size: 1.1rem; color: var(--brown-mid); line-height: 1.7; font-style: italic; }
.article-body {
  max-width: 760px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
}
.article-body p { margin-bottom: 1.5rem; color: var(--brown-mid); font-size: 1.02rem; line-height: 1.9; }

/* ── PAGE HERO (non-homepage) ───────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  margin-bottom: 3rem;
}
.page-hero img { width: 100%; height: 380px; object-fit: cover; object-position: center 40%; display: block; }
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,43,31,.1) 0%, rgba(61,43,31,.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}
.page-hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: var(--cream); line-height: 1.15; }
.page-hero-text p { font-size: .95rem; color: rgba(255,243,224,.9); margin-top: .4rem; }

/* ── FULL BLEED IMG ─────────────────────────────────────── */
.full-bleed-img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* ── BG HELPERS ─────────────────────────────────────────── */
.bg-cream-deep { background: var(--cream-deep); }
.bg-pale-terra  { background: var(--terracotta-pale); }

/* ── ABOUT PARAS ────────────────────────────────────────── */
.about-paras { max-width: 800px; }
.about-paras p { color: var(--brown-mid); line-height: 1.9; margin-bottom: 1.35rem; }
.about-paras p:last-child { margin-bottom: 0; }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--brown);
  color: var(--cream-deep);
  padding: 3.5rem 2rem 2rem;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: .8rem; }
.footer-brand-lockup { display: flex; align-items: center; gap: .65rem; }
.footer-brand-lockup .logo-icon { height: 34px; width: auto; }
.footer-brand-lockup .wordmark  { height: 22px; width: auto; filter: invert(1) brightness(2.5); }
.footer-brand p { font-size: .82rem; opacity: .75; line-height: 1.55; }

.footer-nav h4, .footer-contact h4 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--terracotta-mid);
  margin-bottom: .75rem;
}
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.footer-nav a { color: var(--cream-deep); text-decoration: none; font-size: .88rem; opacity: .82; transition: color .18s; }
.footer-nav a:hover { color: var(--terracotta-mid); opacity: 1; }

.footer-contact p { font-size: .88rem; opacity: .82; margin-bottom: .45rem; line-height: 1.5; }
.footer-contact a { color: var(--terracotta-mid); text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: .78rem;
  opacity: .5;
}

/* ── UTILITIES ──────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: .75rem; }
.mb-md { margin-bottom: 1.5rem; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-card:nth-child(odd), .highlight-card:nth-child(even) { transform: none; margin-top: 0; }
  .ways-grid { grid-template-columns: 1fr; }
  .way-card:nth-child(2) { transform: none; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card:nth-child(2), .blog-card:nth-child(3) { transform: none; }
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .programme-card:nth-child(even) { margin-left: 0; border-left: 5px solid var(--terracotta); border-right: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-card);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--cream-deep);
    gap: .5rem;
    box-shadow: 0 4px 16px var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-photo { height: 360px; }
  .hero-card { margin-top: -60px; padding: 1.5rem 1.75rem; }
  .hero-tagline { font-size: 1.35rem; }

  .cta-banner { margin: 0 1rem; padding: 2.25rem 1.5rem; }
  .section { padding: 3rem 1.25rem; }
  .story-block, .mission-block { padding: 1.75rem 1.5rem; }
  .impact-bar-inner { gap: 2rem; }

  .programme-card { grid-template-columns: 2.5rem 1fr; }

  .page-hero img { height: 280px; }
  .article-hero { height: 260px; }
}

@media (max-width: 480px) {
  .hero-photo { height: 300px; }
  .hero-card { margin-top: -50px; padding: 1.25rem 1.25rem; }
  .polaroid { flex: 0 0 150px; }
  .polaroid img { height: 140px; }
  .polaroid:nth-child(n) { transform: none; }
  .impact-bar-inner { flex-direction: column; gap: 1.5rem; }
  .trustees-row { flex-direction: column; }
}
