/* =============================================
   POCA Design Club - simple landing page
   ============================================= */

:root {
  --color-primary: #118776;
  --color-primary-dark: #0d6b5e;
  --color-accent: #ff6b35;

  --color-text: #333;
  --color-text-muted: #666;
  --color-text-faint: #888;
  --color-heading: #222;

  --color-bg: #fafafa;
  --color-bg-white: #ffffff;
  --color-bg-teal-tint: #f0f8f6;
  --color-bg-cream: #faf8f5;

  --color-border: #e0e0e0;
  --color-border-light: #ebebeb;

  --color-blooming: #9b59b6;
  --color-blooming-bg: #f4e9f7;
  --color-growing: #118776;
  --color-growing-bg: #e0f2ee;
  --color-sprouting: #7fb77e;
  --color-sprouting-bg: #eaf5ea;
  --color-seed: #a8a89a;
  --color-seed-bg: #efefe8;

  --space-2xs: 0.25rem;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  2.5rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 5rem;
  --space-5xl: 7rem;
  --space-6xl: 9rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --shadow-subtle: 0 1px 3px rgba(0,0,0,.06);
  --shadow-medium: 0 2px 8px rgba(0,0,0,.08);
  --shadow-hover:  0 6px 18px rgba(0,0,0,.12);

  --width-content: 1200px;
  --width-narrow: 720px;

  --font-serif: "Merriweather", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

body {
  font-family: var(--font-serif);
  font-size: clamp(1rem, .4vw + .9rem, 1.125rem);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-primary-dark); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 { color: var(--color-heading); line-height: 1.25; font-weight: 700; }

h1 { font-size: clamp(2rem, 5vw + .5rem, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw + .5rem, 2.25rem); color: var(--color-primary); }
h3 { font-size: clamp(1.15rem, 1.2vw + .8rem, 1.4rem); }

p { margin-block: 0 .75rem; }
p:last-child { margin-bottom: 0; }

section { padding-block: var(--space-6xl); }

/* =============================================
   BILINGUAL VISIBILITY
   ============================================= */
body[data-lang="fr"] [lang="en"] { display: none; }
body[data-lang="en"] [lang="fr"] { display: none; }

/* keep block spans inline when they replace text */
[lang="en"], [lang="fr"] { }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: var(--space-4xl) var(--space-md) var(--space-5xl);
  max-width: var(--width-content);
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  color: var(--color-heading);
  letter-spacing: -0.01em;
  margin-block: var(--space-xl) var(--space-3xl);
}

.hero-illustration {
  width: 100%;
  max-width: 900px;
  margin: 0 auto var(--space-3xl);
  border-radius: var(--radius-lg);
}

.hero .tagline {
  font-size: clamp(1.2rem, 1.5vw + .6rem, 1.55rem);
  transform: skew(-8deg);
  color: var(--color-text);
  max-width: var(--width-narrow);
  margin: var(--space-2xl) auto var(--space-2xl);
  line-height: 1.5;
}

.hero .intro {
  max-width: var(--width-narrow);
  margin: var(--space-xl) auto 0;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* =============================================
   STICKY IN-PAGE NAV
   ============================================= */
.in-page-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-border-light);
  padding-block: var(--space-xs);
}

.in-page-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(.5rem, 2vw, 2rem);
  flex-wrap: wrap;
  max-width: var(--width-content);
  margin: 0 auto;
  padding-inline: var(--space-sm);
}

.in-page-nav a {
  display: inline-block;
  padding: .6rem .9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.in-page-nav a:hover,
.in-page-nav a:focus-visible {
  color: var(--color-primary);
  background: var(--color-bg-teal-tint);
}

/* =============================================
   SECTION SHARED
   ============================================= */
/* Sections are full-bleed. Content is centered by padding-inline that
   grows the side gutters when the viewport is wider than the content
   column, so any background colour extends edge-to-edge. */
section {
  padding-inline: max(var(--space-md), calc((100vw - var(--width-content)) / 2));
  scroll-margin-top: 4rem;
}

section > h2 {
  margin-bottom: var(--space-xl);
}

.section-intro {
  color: var(--color-text-muted);
  max-width: var(--width-narrow);
  margin-bottom: var(--space-3xl);
  font-size: 1.05rem;
  line-height: 1.7;
}

.button {
  display: inline-block;
  padding: .6rem 1rem;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s, transform .1s;
  border: 0;
  cursor: pointer;
}
.button:hover { background: var(--color-primary-dark); color: white; }
.button:active { transform: translateY(1px); }
.button[aria-disabled="true"] {
  background: var(--color-seed);
  cursor: not-allowed;
  pointer-events: none;
}

/* =============================================
   EVENTS CAROUSEL
   ============================================= */
#events {
  background: var(--color-bg-teal-tint);
  padding-block: var(--space-4xl);
}

.events-carousel-wrap {
  position: relative;
  margin-inline: calc(-1 * var(--space-md)); /* let it bleed past section padding */
}

.events-carousel {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--space-sm);
  padding-inline: var(--space-md);
  scroll-padding-inline: var(--space-md);
  scrollbar-width: none;
}
.events-carousel::-webkit-scrollbar { display: none; }
.events-carousel > .event-card {
  flex: 0 0 min(28rem, 85%);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--color-primary);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
  font-family: system-ui, -apple-system, sans-serif;
  transition: opacity .15s, transform .1s, background .15s;
}
.carousel-nav:hover { background: white; }
.carousel-nav:active { transform: translateY(-50%) scale(.95); }
.carousel-nav[hidden] { display: none; }
.carousel-prev { left: .35rem; }
.carousel-next { right: .35rem; }

/* Desktop: push the buttons half-outside the carousel wrap for visibility. */
@media (min-width: 700px) {
  .carousel-prev { left: -1.25rem; }
  .carousel-next { right: -1.25rem; }
}

.event-card {
  scroll-snap-align: start;
  background: white;
  border-radius: var(--radius-md);
  padding: 0 0 var(--space-md);
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  overflow: hidden;
}
/* Image fills the top of the card edge-to-edge; the rest of the children get the inline padding. */
.event-shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-bg-teal-tint);
  margin-bottom: .35rem;
  display: block;
}
.event-card > *:not(.event-shot) {
  padding-inline: var(--space-md);
}
.event-card .event-date {
  font-weight: 700;
  color: var(--color-primary);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.event-card h3 { margin: 0; color: var(--color-heading); }
.event-card .event-location {
  color: var(--color-text-faint);
  font-size: .9rem;
  font-style: italic;
  margin-bottom: .25rem;
}
.event-card p { color: var(--color-text-muted); font-size: .95rem; }
.event-card .button { margin-top: auto; align-self: center; }

.events-note {
  color: var(--color-text-faint);
  font-size: .9rem;
  margin-top: var(--space-md);
  max-width: var(--width-narrow);
}

/* =============================================
   PRINCIPLES
   ============================================= */
#principles {
  background: #0f3f36;
  color: #f4ecdc;
}
#principles > h2 {
  text-align: center;
  color: #cfe6df;
}

.principles-list {
  list-style: none;
  counter-reset: principle;
  max-width: var(--width-narrow);
  margin: 0 auto;
  padding: 0;
}

.principles-list li {
  counter-increment: principle;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: var(--space-lg);
  border-bottom: 1px solid rgba(244, 236, 220, 0.12);
  font-size: clamp(1.05rem, .5vw + .95rem, 1.2rem);
  line-height: 1.5;
}
.principles-list li:last-child { border-bottom: 0; }
.principles-list li::before {
  content: counter(principle);
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4ecdc;
  color: #0f3f36;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-serif);
}
.principles-list strong { font-weight: 700; color: #f4ecdc; }

/* AI statement */
.ai-statement {
  max-width: var(--width-narrow);
  margin: var(--space-4xl) auto 0;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-bg-cream);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.ai-statement h3 {
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  font-size: 1.15rem;
}
.ai-statement p {
  color: var(--color-text);
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: .35rem;
}
.ai-statement p:last-child {
  margin-bottom: 0;
}

/* =============================================
   PROJECTS
   ============================================= */
#projects .section-intro { max-width: var(--width-narrow); }

/* Stage sub-sections */
.stage-group {
  margin-block: var(--space-3xl);
  --stage-bg: white;
  --stage-fg: var(--color-text);
  --stage-heading: var(--color-primary);
  --stage-tag-bg: rgba(0, 0, 0, .06);
  --stage-tag-fg: rgba(0, 0, 0, .65);
  --stage-details-bg: rgba(255, 255, 255, .55);
  --stage-tile-bg: hsla(0, 0%, 50%, .12);
}
.stage-group:first-of-type { margin-top: var(--space-lg); }

.stage-group[data-stage="blooming"] {
  --stage-bg: #f6d9ea;
  --stage-fg: #4a1637;
  --stage-heading: #a03676;
  --stage-tag-bg: rgba(112, 24, 74, .12);
  --stage-tag-fg: #6d1c47;
  --stage-details-bg: rgba(255, 255, 255, .65);
  --stage-tile-bg: rgba(178, 65, 128, .2);
}
.stage-group[data-stage="growing"] {
  --stage-bg: #0f7566;
  --stage-fg: #ffffff;
  --stage-heading: #0d6b5e;
  --stage-tag-bg: rgba(255, 255, 255, .18);
  --stage-tag-fg: #ffffff;
  --stage-details-bg: rgba(0, 0, 0, .18);
  --stage-tile-bg: rgba(255, 255, 255, .15);
}
.stage-group[data-stage="sprouting"] {
  --stage-bg: #d6ecc9;
  --stage-fg: #1f3d16;
  --stage-heading: #3d6b32;
  --stage-tag-bg: rgba(31, 61, 22, .12);
  --stage-tag-fg: #2c4d20;
  --stage-details-bg: rgba(255, 255, 255, .55);
  --stage-tile-bg: rgba(61, 107, 50, .18);
}
.stage-group[data-stage="seed"] {
  --stage-bg: #f4ecdc;
  --stage-fg: #4b3e26;
  --stage-heading: #7a5f2c;
  --stage-tag-bg: rgba(75, 62, 38, .12);
  --stage-tag-fg: #5c4a29;
  --stage-details-bg: rgba(255, 255, 255, .5);
  --stage-tile-bg: rgba(122, 95, 44, .14);
}

.stage-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 1.5vw + .9rem, 1.7rem);
  font-weight: 700;
  color: var(--stage-heading);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: var(--space-md);
  container-type: inline-size;
}

.project {
  background: var(--stage-bg);
  color: var(--stage-fg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: box-shadow .2s, transform .15s;
  container-type: inline-size;
  container-name: card;
  display: flex;
  flex-direction: column;
  position: relative;
}
.project:hover { box-shadow: var(--shadow-medium); }
.project.expanded { transform: none; }

.project-toggle {
  width: 100%;
  text-align: left;
  display: block;
  padding: 0;
  background: var(--stage-bg);
  color: var(--stage-fg);
  cursor: pointer;
  border: 0;
}
.project-toggle:hover .project-head h3 { opacity: 0.8; }

.project-shot {
  width: 100%;
  aspect-ratio: 1312 / 912;

}
.project-shot.project-shot-glyph {
  object-fit: contain;
  object-position: center;
  background: white;
}

/* Emoji tile fallback for projects without a real screenshot */
.emoji-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stage-tile-bg);
  color: var(--stage-fg);
  font-size: clamp(2.5rem, 6vw + 1rem, 4rem);
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  letter-spacing: -0.02em;
}
.emoji-tile.emoji-mono {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(3rem, 8vw + 1rem, 5rem);
}
.emoji-tile.emoji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  padding: .8rem;
  font-size: clamp(1.4rem, 3vw + .5rem, 2.2rem);
}
.emoji-tile.emoji-grid span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.emoji-tile.emoji-strike {
  position: relative;
}
.emoji-tile.emoji-strike::after {
  content: '';
  position: absolute;
  left: 25%; right: 25%;
  top: 50%;
  border-top: 6px solid currentColor;
  transform: rotate(-18deg);
  opacity: 0.85;
}

.project-head {
  padding: var(--space-sm);
}

.project-head h3 {
  font-size: 1.05rem;
  margin: .35rem 0 .3rem;
  color: var(--stage-fg);
  transition: opacity .15s;
  line-height: 1.25;
}

.project-head .tagline {
  color: var(--stage-fg);
  opacity: 0.8;
  font-size: .85rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .4rem;
  font-size: .7rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.badges > span {
  display: inline-block;
  padding: .1rem .45rem;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.5;
  background: var(--stage-tag-bg);
  color: var(--stage-tag-fg);
}

/* Hide type/team badges on compact cards; both are shown in the modal. */
.project .type-badge,
.project .team-badge {
  display: none;
}

/* Details are hidden on the card (revealed only in modal) */
.project-details {
  display: none;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: var(--space-xs);
}

.project-actions .button {
  padding: .35rem .7rem;
  font-size: .82rem;
}

/* =============================================
   PARTICIPATING
   ============================================= */
#participating {
  background: #2d251d;
  color: #f4ecdc;
}
#participating > h2 {
  color: #f0c9a0;
}

.participate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.participate-card {
  background: white;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.participate-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: .25rem;
}

.participate-card h3 {
  color: var(--color-primary);
  margin: 0;
}

.participate-card p {
  color: var(--color-text-muted);
  font-size: .95rem;
  flex-grow: 1;
}

.participate-card .button {
  align-self: flex-start;
  margin-top: .5rem;
}

/* =============================================
   PROJECT MODAL
   ============================================= */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 25, 30, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: zoom-out;
}
.modal-content {
  position: relative;
  background: white;
  width: min(720px, 100%);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  outline: none;
}
.modal-body {
  padding: 0;
}
.modal-shot {
  width: 100%;
  aspect-ratio: 1312 / 912;
  object-fit: cover;
  background: var(--color-bg-teal-tint);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
  z-index: 1;
}
/* Text pane sticks to the bottom of the modal viewport so the image scrolls
   behind it when the modal is short. */
.modal-text {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: white;
  padding-block: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-shot.emoji-tile {
  aspect-ratio: 1312 / 912;
  background: var(--color-bg-cream);
  color: var(--color-heading);
  font-size: clamp(4rem, 12vw, 8rem);
}
.modal-shot.emoji-tile.emoji-grid {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
}
.modal-header {
  padding: var(--space-lg) var(--space-xl) 0;
}
.modal-body h2 {
  color: var(--color-heading);
  font-size: clamp(1.4rem, 2vw + 0.6rem, 1.8rem);
  margin: .5rem 0 .75rem;
  line-height: 1.2;
}
.modal-body .tagline {
  color: var(--color-primary);
  font-size: 1.05rem;
  font-style: italic;
  margin: 0 0 var(--space-md);
}
.modal-body .modal-description {
  padding: 0 var(--space-xl);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
}
.modal-body .modal-description p { margin-bottom: 1rem; }
.modal-body .project-actions {
  padding: 0 var(--space-xl);
  margin-top: var(--space-lg);
  gap: .5rem;
  /* .modal-description already provides the opaque background above the sticky image. */
}
.modal-body .project-actions .button {
  padding: .55rem .95rem;
  font-size: .95rem;
}
.modal-body .badges {
  font-size: .8rem;
  gap: .35rem;
}
.modal-body .badges > span {
  padding: .2rem .65rem;
  background: var(--color-bg-teal-tint);
  color: var(--color-primary);
}
.modal-body .badges .team-badge {
  background: #fff1e8;
  color: #a24f22;
  margin-left: auto;
}

.modal-close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 20;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  transition: background .15s, transform .1s;
}
.modal-close:hover { background: white; }
.modal-close:active { transform: scale(.95); }

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--color-primary);
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  font-family: system-ui, -apple-system, sans-serif;
  transition: background .15s, transform .1s;
}
.modal-nav:hover { background: white; }
.modal-nav:active { transform: translateY(-50%) scale(.95); }
.modal-prev { left: max(1rem, calc(50% - 400px)); }
.modal-next { right: max(1rem, calc(50% - 400px)); }

@media (max-width: 640px) {
  .modal { padding: 0; }
  .modal-content {
    max-height: 100vh;
    border-radius: 0;
    width: 100%;
  }
  .modal-shot { border-radius: 0; }
  .modal-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
    width: 2.5rem;
    height: 2.5rem;
  }
  .modal-prev { left: 1rem; }
  .modal-next { right: 1rem; }
  .modal-nav:active { transform: scale(.95); }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--color-heading);
  color: rgba(255,255,255,.75);
  padding: var(--space-lg) var(--space-md);
  margin-top: var(--space-3xl);
}

.footer-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
}

.lang-btn {
  color: rgba(255,255,255,.75);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.lang-btn:hover { color: white; background: rgba(255,255,255,.1); }

body[data-lang="fr"] .lang-btn[data-set-lang="fr"],
body[data-lang="en"] .lang-btn[data-set-lang="en"] {
  color: white;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.colophon {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hero { padding-inline: var(--space-sm); }
  /* Keep the in-page nav on one line at mobile widths. */
  .in-page-nav ul { gap: .25rem; flex-wrap: nowrap; }
  .in-page-nav a { padding: .5rem .5rem; font-size: .85rem; }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
