/* ============================================================
   Subl'Impro — Design System
   Ambiance : indigo profond, papier crème, sauge — éditorial et
   artistique, dans l'esprit du grain et des washs peints de la
   direction Instagram de l'association.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Caveat+Brush&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Color — indigo (encre profonde, fond des sections statement) */
  --color-sky-deep:    #21245A;
  --color-sky:         #454C8E;
  --color-sky-light:   #8288BE;
  --color-sky-pale:    #E9EAE0;
  --color-cloud:       #F7F4EA;
  --color-cream:       #FBF8EF;

  /* Color — accents (sauge + or antique) */
  --color-gold:        #B98A4C;
  --color-gold-deep:   #93692F;
  --color-lavender:    #8D93C4;
  --color-lavender-deep: #5C6099;
  --color-sage:        #8FBFA0;
  --color-sage-light:  #B3D9C0;
  --color-blush:       #A9BBA1;
  --color-sage:        #9EB29A;
  --color-sage-pale:   #E4E9DD;

  /* Color — text & neutrals */
  --color-ink:         #1C1E2E;
  --color-ink-soft:    #464A5E;
  --color-muted:       #6B6E7F;
  --color-border:      #DFDCCB;
  --color-border-soft: #EAE7D8;
  --color-white:       #FFFFFF;

  /* Semantic */
  --color-bg:          var(--color-cloud);
  --color-bg-alt:      var(--color-cream);
  --color-text:        var(--color-ink);
  --color-accent:      var(--color-gold);
  --color-accent-hover:var(--color-gold-deep);
  --color-link:        var(--color-sky-deep);
  --color-mist-light:  #EFE9D6;
  --color-mist-dark:   rgba(251, 248, 239, 0.55);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Caveat Brush', cursive;

  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5.5rem);
  --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.4vw + 1rem, 2.75rem);
  --fs-h3: clamp(1.375rem, 1.2vw + 1rem, 1.75rem);
  --fs-lead: clamp(1.125rem, 0.6vw + 1rem, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.8125rem;

  /* Spacing (spacious scale) */
  --space-3xs: 0.5rem;
  --space-2xs: 0.75rem;
  --space-xs: 1rem;
  --space-sm: 1.5rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --space-2xl: 6rem;
  --space-3xl: 8.5rem;

  /* Layout */
  --container-max: 1240px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 4px 24px rgba(33, 36, 90, 0.09);
  --shadow-lifted: 0 20px 60px rgba(33, 36, 90, 0.16);
  --shadow-gold: 0 12px 28px rgba(147, 105, 47, 0.22);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 600ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { max-width: 65ch; }
em, .italic { font-style: italic; }

:focus-visible {
  outline: 3px solid var(--color-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout utilities ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section {
  padding-block: var(--space-2xl);
  position: relative;
}
.section--tight { padding-block: var(--space-xl); }
.section--alt { background: var(--color-bg-alt); }
.section--sky { background: linear-gradient(180deg, var(--color-sage-pale) 0%, var(--color-cloud) 100%); }
.section--deep {
  background: linear-gradient(160deg, var(--color-sky-deep) 0%, #14162F 100%);
  color: var(--color-white);
}
.section--deep h1, .section--deep h2, .section--deep h3 { color: var(--color-white); }
.section--deep p { color: rgba(255,255,255,0.82); }

.grid { display: grid; gap: var(--space-md); }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: var(--space-xs);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}
.section--deep .eyebrow { color: var(--color-gold); }

.lead { font-size: var(--fs-lead); color: var(--color-ink-soft); max-width: 58ch; }
.section--deep .lead { color: rgba(255,255,255,0.85); }
.muted { color: var(--color-muted); }
.center { text-align: center; margin-inline: auto; }

.section-head { max-width: 700px; margin-bottom: var(--space-lg); }
.section-head.center { max-width: 700px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  text-align: center;
  min-height: 44px;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-sky-deep);
  color: var(--color-cream);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { box-shadow: var(--shadow-lifted); }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-sky-deep);
  color: var(--color-sky-deep);
}
.btn--outline:hover { background: var(--color-sky-deep); color: var(--color-white); }

.section--deep .btn--outline, .hero .btn--outline, .cta-band .btn--outline { border-color: rgba(255,255,255,0.5); color: var(--color-white); }
.section--deep .btn--outline:hover, .hero .btn--outline:hover, .cta-band .btn--outline:hover { background: var(--color-white); color: var(--color-sky-deep); }

.section--deep .btn--primary, .hero .btn--primary, .cta-band .btn--primary {
  background: var(--color-cream);
  color: var(--color-sky-deep);
}
.section--deep .btn--primary:hover, .hero .btn--primary:hover, .cta-band .btn--primary:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.btn--ghost {
  color: var(--color-sky-deep);
  padding-inline: 0.2em;
  gap: 0.4em;
}
.btn--ghost svg { transition: transform var(--dur-fast) var(--ease-out); width: 18px; height: 18px; }
.btn--ghost:hover svg { transform: translateX(4px); }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding-block: var(--space-sm);
  transition: padding var(--dur-base) var(--ease-out);
}
/* The scrolled frosted-glass background lives on this pseudo-element rather
   than directly on .site-header: a `filter`/`backdrop-filter` on an element
   creates a new containing block for any `position: fixed` descendants, which
   was trapping the fullscreen mobile menu (a fixed-position child of the
   header) inside the slim scrolled header bar instead of covering the screen. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(247, 244, 234, 0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  padding-block: var(--space-2xs);
}
.site-header.is-scrolled::before {
  opacity: 1;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-shrink: 0;
}
.nav-logo img {
  width: 52px;
  height: 52px;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-logo:hover img { transform: rotate(-4deg) scale(1.05); }
.site-header.is-scrolled .nav-logo img { transform: scale(0.8); }
.site-header.is-scrolled .nav-logo:hover img { transform: scale(0.86) rotate(-4deg); }

.footer-logo {
  width: 168px;
  height: auto;
  margin-bottom: var(--space-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding-block: 0.3em;
  color: var(--color-ink-soft);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-gold);
  transition: right var(--dur-base) var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--color-sky-deep); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }

/* The header floats transparent over the page's opening section until scrolled.
   On the homepage that section is the dark hero, so the default ink-toned nav
   needs a light variant here or it disappears against it. */
body:has(.hero) .site-header:not(.is-scrolled) .nav-links:not(.is-open) a { color: rgba(255,255,255,0.85); }
body:has(.hero) .site-header:not(.is-scrolled) .nav-links:not(.is-open) a:hover,
body:has(.hero) .site-header:not(.is-scrolled) .nav-links:not(.is-open) a[aria-current="page"] { color: var(--color-white); }
body:has(.hero) .site-header:not(.is-scrolled) .nav-toggle[aria-expanded="false"] span { background: var(--color-white); }
body:has(.hero) .site-header:not(.is-scrolled) .nav-cta .btn--outline { border-color: rgba(255,255,255,0.6); color: var(--color-white); }
body:has(.hero) .site-header:not(.is-scrolled) .nav-cta .btn--outline:hover { background: var(--color-white); color: var(--color-sky-deep); }

.nav-cta { display: flex; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-sky-deep);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--color-cloud);
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-family: var(--font-display);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    padding-block: var(--space-md);
    transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-base) var(--ease-out), visibility var(--dur-slow);
  }
  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-cta .btn--outline { display: none; }
}

/* ---------- Hero & sky scenes ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--space-3xl) + var(--space-md));
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-sky-deep) 0%, #14162F 100%);
  color: var(--color-white);
}
.hero h1, .hero .hero-title { color: var(--color-white); }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero .eyebrow { color: var(--color-gold); }
.hero-content { position: relative; z-index: 3; max-width: 780px; }
.hero-title {
  font-size: var(--fs-hero);
  margin-bottom: var(--space-sm);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em, .page-hero h1 em, h1 em, h2 em, h3 em, .quote-block em {
  font-family: var(--font-accent);
  font-style: normal;
  font-weight: 400;
  color: var(--color-gold);
  font-size: 1.15em;
  line-height: 1;
}
.section--deep .quote-block em, .cta-band h2 em { color: var(--color-gold); }
.hero-actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

.sky-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cloud {
  position: absolute;
  will-change: transform;
  filter: blur(22px);
}
.cloud svg { width: 100%; height: 100%; }
.cloud svg path { fill: var(--color-mist-light); }
.hero .cloud svg path, .section--deep .cloud svg path { fill: var(--color-mist-dark); }
.vapor {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251,248,239,0.7) 0%, rgba(251,248,239,0) 70%);
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.6;
}

.reaction-logo { overflow: visible; }
.reaction-puff {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(130,136,190,0.55) 0%, rgba(130,136,190,0) 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

.hero-logo-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(160deg, var(--color-sky-deep) 0%, #14162F 100%);
}
.hero-logo {
  width: min(360px, 58vw);
  filter: drop-shadow(0 24px 60px rgba(0,0,0,0.4));
  will-change: transform, filter, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-layer { display: none; }
}

.page-hero {
  position: relative;
  padding-top: calc(var(--space-3xl) + var(--space-lg));
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-cloud) 100%);
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 760px; }
.page-hero .lead { margin-top: var(--space-sm); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lifted); }
a.card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-sky-pale);
  color: var(--color-sky-deep);
  margin-bottom: var(--space-sm);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5em; }
.card p { color: var(--color-ink-soft); font-size: var(--fs-small); }

.value-card { text-align: left; }

.people-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  align-items: start;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
}
@media (max-width: 720px) {
  .people-card { grid-template-columns: 1fr; }
}
.people-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2em;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border-soft);
}
.stat-pill .num { font-family: var(--font-display); font-size: 2.25rem; color: var(--color-sky-deep); }
.stat-pill .label { font-size: var(--fs-label); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 27px; top: 56px; bottom: 0;
  width: 1.5px;
  background: var(--color-border);
}
.timeline-item:last-child::before { display: none; }
.timeline-marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-sky-pale);
  color: var(--color-sky-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  flex-shrink: 0;
}
.timeline-item--compact {
  grid-template-columns: 40px 1fr;
  align-items: center;
  padding-bottom: var(--space-sm);
}
.timeline-item--compact::before { display: none; }
.timeline-item--compact .timeline-marker {
  width: 40px; height: 40px;
  font-size: 0.85rem;
}
.timeline-item--compact p { color: var(--color-ink-soft); }

.quote-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h3);
  line-height: 1.5;
  color: var(--color-sky-deep);
  max-width: 46ch;
  position: relative;
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-gold);
}

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.5em; margin-bottom: var(--space-sm); min-width: 0; }
.field label { font-weight: 600; font-size: var(--fs-small); color: var(--color-ink); }
.field .hint { font-size: var(--fs-label); color: var(--color-muted); }
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  padding: 0.9em 1.1em;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  font-size: var(--fs-body);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  min-height: 44px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 4px rgba(69, 76, 142, 0.16);
}
.field .error { color: #C0392B; font-size: var(--fs-label); }
.field.has-error input, .field.has-error textarea { border-color: #C0392B; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(180deg, var(--color-sky-deep) 0%, #14162F 100%);
  color: rgba(255,255,255,0.85);
  padding-block: var(--space-2xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { font-family: var(--font-display); font-size: 1.6rem; color: var(--color-white); margin-bottom: var(--space-xs); }
.site-footer h4 { color: var(--color-white); font-family: var(--font-body); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-sm); }
.site-footer a { color: rgba(255,255,255,0.72); transition: color var(--dur-fast); }
.site-footer a:hover { color: var(--color-gold); }
.footer-links { display: flex; flex-direction: column; gap: 0.7em; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: var(--fs-label);
  color: rgba(255,255,255,0.55);
}
.social-row { display: flex; gap: 0.75em; }
.social-row a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.24);
  display: flex; align-items: center; justify-content: center;
}
.social-row svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-sky-deep); }

/* ---------- Placeholder / TODO markers (visible to client, not end users of print) ---------- */
.todo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.15em 0.7em;
  border-radius: var(--radius-pill);
  background: #FDF0DC;
  color: #92600E;
  font-size: 0.78em;
  font-weight: 600;
  border: 1px dashed #E3A23C;
  white-space: nowrap;
}

/* ---------- Reveal / animation hooks ---------- */
.reveal { opacity: 0; }
.js-ready .reveal { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .cloud, .vapor { animation: none !important; }
}

/* ---------- Misc ---------- */
.divider-wave { display: block; width: 100%; height: auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
  background: var(--color-sky-pale);
  color: var(--color-sky-deep);
  font-size: var(--fs-label);
  font-weight: 600;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--color-sky-deep);
  color: white;
  padding: 0.8em 1.2em;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

table.pricing { width: 100%; border-collapse: collapse; margin-top: var(--space-md); }
table.pricing th, table.pricing td { text-align: left; padding: 1em 1.2em; border-bottom: 1px solid var(--color-border); }
table.pricing th { font-family: var(--font-body); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); }

.cta-band {
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--color-sky-deep) 0%, #383C7C 60%, var(--color-lavender-deep) 130%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--color-white); }
.cta-band .lead { color: rgba(255,255,255,0.85); margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Creations rail (poster gallery) ---------- */
.creations-rail {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: var(--space-sm) var(--container-pad) var(--space-md);
  margin: 0 calc(var(--container-pad) * -1);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.creations-rail::-webkit-scrollbar { height: 8px; }
.creations-rail::-webkit-scrollbar-track { background: transparent; }
.creations-rail::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; }

.poster-card-wrap {
  flex: 0 0 auto;
  width: min(280px, 72vw);
}

.poster-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
  transform: rotate(var(--poster-rotate, 0deg));
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-lifted);
  outline-offset: 6px;
}
.poster-card:hover, .poster-card:focus-visible {
  transform: rotate(0deg) translateY(-8px) scale(1.03);
  box-shadow: 0 30px 70px rgba(20, 22, 40, 0.38);
}

.poster-card__face {
  position: absolute;
  inset: 0;
  background: var(--poster-bg, var(--color-sky-deep));
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  color: var(--color-white);
}
.poster-card__face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(140% 90% at 25% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.poster-card__num {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 3.4rem;
  line-height: 1;
  opacity: 0.55;
  margin-bottom: auto;
}
.poster-card__title {
  position: relative;
  color: var(--color-white);
  font-size: 1.25rem;
  margin: 0;
  text-wrap: balance;
}

.poster-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 22, 47, 0.97) 0%, rgba(20, 22, 47, 0.88) 55%, rgba(20, 22, 47, 0.45) 100%);
  color: var(--color-white);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold) transparent;
  opacity: 0;
  transform: translateY(6%);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.poster-card__overlay::-webkit-scrollbar { width: 6px; }
.poster-card__overlay::-webkit-scrollbar-track { background: transparent; }
.poster-card__overlay::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 3px; }
/* Pushes short content to the bottom via auto margin (not justify-content:flex-end,
   which clips the start of content that overflows and needs scrolling). */
.poster-card__overlay-content { margin-top: auto; }
.poster-card:hover .poster-card__overlay,
.poster-card:focus-visible .poster-card__overlay {
  opacity: 1;
  transform: translateY(0);
}
.poster-card__overlay h3 { color: var(--color-white); font-size: 1.1rem; margin-bottom: 0.5em; }
.poster-card__overlay p { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.85); margin-bottom: 0.6em; }
.poster-card__meta {
  font-size: var(--fs-label) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6) !important;
}
.poster-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.poster-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35em 0.85em;
  border-radius: var(--radius-pill);
  background: rgba(185, 138, 76, 0.18);
  color: var(--color-gold);
  border: 1px solid rgba(185, 138, 76, 0.4);
}

/* ---------- Spectacle showcase (Agenda) ---------- */
.spectacle-list { display: flex; flex-direction: column; gap: var(--space-2xl); margin-top: var(--space-lg); }

.spectacle-showcase {
  display: grid;
  grid-template-columns: minmax(180px, 300px) 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.spectacle-showcase--reverse { grid-template-columns: 1fr minmax(180px, 300px); }
.spectacle-showcase--reverse .spectacle-showcase__poster { order: 2; }
.spectacle-showcase--reverse .spectacle-showcase__info { order: 1; }

.spectacle-showcase__poster {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lifted);
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.spectacle-showcase__poster:hover { transform: rotate(0deg) scale(1.02); box-shadow: 0 30px 70px rgba(20, 22, 40, 0.32); }
.spectacle-showcase__poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.spectacle-showcase__poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-gold-deep) 0%, var(--color-sky-deep) 100%);
}
.spectacle-showcase__mystery {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 6rem;
  line-height: 1;
  color: var(--color-cream);
  text-shadow:
    1px 1px 0 var(--color-gold),
    2px 2px 0 var(--color-gold),
    3px 3px 0 var(--color-gold-deep),
    4px 4px 0 var(--color-gold-deep),
    5px 5px 0 var(--color-sky-deep),
    6px 6px 0 var(--color-sky-deep),
    8px 10px 18px rgba(0, 0, 0, 0.45);
  animation: mystery-float 4s ease-in-out infinite;
}
@keyframes mystery-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .spectacle-showcase__mystery { animation: none; }
}
.spectacle-showcase__num-large {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.7);
}

.spectacle-showcase__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--color-gold);
  margin-bottom: 0.15em;
}
.spectacle-showcase__info h3 { font-size: var(--fs-h3); margin-bottom: 0.35em; }
.spectacle-showcase__info p { color: var(--color-ink-soft); }
.spectacle-showcase__meta {
  margin-top: 0.6em;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .spectacle-showcase, .spectacle-showcase--reverse { grid-template-columns: 1fr; }
  .spectacle-showcase--reverse .spectacle-showcase__poster,
  .spectacle-showcase--reverse .spectacle-showcase__info { order: initial; }
  .spectacle-showcase__poster { max-width: 280px; margin-inline: auto; }
}

/* ---------- Autonomous poster marquee (Agenda) ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--space-lg);
  animation: marquee-scroll 24s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  position: relative;
  flex: 0 0 auto;
  width: min(240px, 55vw);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lifted);
}
.marquee__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.marquee__credit {
  position: absolute;
  left: 0.7em;
  right: 0.7em;
  bottom: 0.6em;
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
  text-align: center;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-card, .poster-card__overlay { transition: none; }
}

/* ---------- Calendrier (Accueil) ---------- */
.calendar-section { overflow: hidden; }
.calendar-stars { position: absolute; inset: 0; pointer-events: none; }
.cal-star { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.65); }

.calendar-scroll { overflow-x: auto; padding-bottom: 0.5rem; }
.calendar-track {
  position: relative;
  display: flex;
  gap: var(--space-lg);
  min-width: max-content;
  padding: 1.75rem 0.25rem 0;
}
.calendar-track {
  --now-pct: 0%;
}
.calendar-track::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 22px;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.16) calc(var(--now-pct) - 1%),
    var(--color-gold) calc(var(--now-pct) - 1%),
    var(--color-gold) calc(var(--now-pct) + 1%),
    rgba(255, 255, 255, 0.34) calc(var(--now-pct) + 1%),
    rgba(255, 255, 255, 0.34) 100%);
}
.cal-now-marker {
  position: absolute;
  top: 15px;
  left: var(--now-pct);
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 0 5px rgba(185,138,76,0.25), 0 0 18px rgba(185,138,76,0.7);
  z-index: 2;
}
.cal-now-label {
  position: absolute;
  top: 2px;
  left: var(--now-pct);
  transform: translateX(-50%);
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  white-space: nowrap;
}
.cal-item.is-past { opacity: 0.42; }
.cal-item.is-past .cal-item__node { background: #8A8CA6 !important; box-shadow: none !important; }
.cal-item.is-past .cal-item__month,
.cal-item.is-past .cal-item__day { color: #B7B9CC !important; }
.cal-item {
  position: relative;
  width: 148px;
  flex-shrink: 0;
  padding-top: 30px;
  text-align: center;
}
.cal-item__node {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.cal-item--spectacle .cal-item__node { background: var(--color-gold); box-shadow: 0 0 0 4px rgba(185,138,76,0.22), 0 0 14px rgba(185,138,76,0.55); }
.cal-item--jam .cal-item__node { background: var(--color-lavender); box-shadow: 0 0 0 4px rgba(141,147,196,0.2), 0 0 12px rgba(141,147,196,0.5); }
.cal-item--gapi .cal-item__node { background: var(--color-sage); box-shadow: 0 0 0 4px rgba(143,191,160,0.22), 0 0 14px rgba(143,191,160,0.55); }
.cal-item__month {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--color-gold);
  margin-bottom: 0.2em;
}
.cal-item--jam .cal-item__month { color: var(--color-lavender); }
.cal-item--gapi .cal-item__month { color: var(--color-sage-light); }
.cal-item__day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.3em;
}
.cal-item__title { font-size: var(--fs-small); color: rgba(255, 255, 255, 0.85); line-height: 1.4; margin-bottom: 0.3em; }
.cal-item__place { font-size: var(--fs-label); color: rgba(255, 255, 255, 0.5); line-height: 1.4; }

.calendar-legend {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.75);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.cal-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.cal-dot--spectacle { background: var(--color-gold); }
.cal-dot--jam { background: var(--color-lavender); }
.cal-dot--gapi { background: var(--color-sage); }
