/* Talentia Academy - the approved zine look in the centre's colours (see DESIGN.md), carrying the content and SEO of
   TALENTIA_WEBSITE_BRIEF.md (07/10/2026). Paper, taped photos with torn edges, typewriter text, blue-pen notes, light grain.
   Rotations use the `rotate` property so the entry reveal can use `translate` without fighting them. */
:root {
  color-scheme: light;
  /* the centre's own colours, sampled from the colour crest */
  --ink: #0B1E3F;        /* deep navy: text, footer */
  --blue: #003A92;       /* royal blue of the shield: bands, links, handwriting (blue pen) */
  --gold: #F8B820;       /* shield gold: buttons, highlights, tape on notes */
  --teal: #0AA6B0;       /* the owl's chest: misregistered print, small accents */
  --orange: #F08018;     /* the book's edge: rare accent */
  --paper: #F4EEE2;      /* zine paper */
  --slate: #5B6B8A;      /* secondary marks */
  --distress-opacity: .22;
  --font-grunge: 'Courier New', 'Courier Prime', Courier, monospace;
  --hand: 'Permanent Marker', 'Comic Sans MS', cursive;
  --arabic: 'Readex Pro', system-ui, 'Segoe UI', sans-serif;

  --hero: clamp(2.5rem, 5vw, 4rem);
  --h1: 2.25rem;
  --h2: 1.5rem;
  --gap: clamp(4rem, 8vw, 8rem);
  --radius: .5rem;
  --ease: cubic-bezier(.22, .61, .36, 1);   /* ease-out */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .12 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .04 0 0 0 0 .12 0 0 0 0 .25 0 0 0 .14 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");   /* grain for paper sheets */
  --torn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cpath d='M0 16 L0 8 L4 7 L9 8 L15 2 L18 10 L23 4 L31 6 L38 6 L44 3 L50 11 L56 9 L62 2 L69 8 L73 1 L81 6 L87 11 L94 11 L99 10 L104 11 L111 2 L115 3 L120 6 L120 16 Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--font-grunge); overflow-x: clip;
}
/* the photocopier's grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--noise); opacity: var(--distress-opacity); mix-blend-mode: multiply;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
h1, h2, h3 { font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -.03em; }
p { margin: 0; }
:focus-visible { outline: 2px dashed var(--blue); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 1.5rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 12px; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-lg { width: 2.2rem; height: 2.2rem; stroke-width: 1.6; }
.hand { font-family: var(--hand); font-weight: 400; letter-spacing: 0; color: var(--blue); }
mark { background: linear-gradient(transparent 35%, rgba(248, 184, 32, .75) 35%, rgba(248, 184, 32, .75) 88%, transparent 88%); color: inherit; padding-inline: 2px; }

/* typed label on a strip, like a stamped flyer line */
.stamp {
  display: inline-block; padding: 4px 10px; background: var(--ink); color: var(--paper);
  font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; rotate: -1.5deg;
}
.stamp-light { background: var(--paper); color: var(--ink); }
@keyframes text-flicker { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .35; } 92% { opacity: 1; } 95% { opacity: .55; } 96% { opacity: 1; } }
.flicker { animation: text-flicker 4.5s infinite; }

/* duct tape: translucent concrete grey with ragged ends */
.tape {
  position: absolute; z-index: 3; width: 120px; height: 30px; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 3px, transparent 3px 7px), rgba(140, 152, 175, .62);
  clip-path: polygon(3% 0, 97% 4%, 100% 25%, 96% 50%, 100% 78%, 97% 100%, 2% 96%, 0 70%, 4% 45%, 0 18%);
}

/* buttons: the only rounded shape (0.5rem), ink on paper */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius);
  background: var(--gold); color: var(--ink); border: 2px solid var(--ink);
  font: 700 1rem/1 var(--font-grunge); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), translate .2s var(--ease);
}
.btn:hover { background: #FFC83D; box-shadow: 4px 4px 0 var(--blue); translate: -2px -2px; }
.btn:active { translate: 0 1px; box-shadow: none; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px dashed var(--ink); }
.btn-ghost:hover { background: rgba(11, 30, 63, .08); }
.btn-light { color: var(--paper); border-color: var(--paper); }
.btn-light:hover { background: rgba(244, 238, 226, .12); box-shadow: 4px 4px 0 var(--gold); }
.btn-yellow { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-yellow:hover { background: #FFC83D; box-shadow: 4px 4px 0 var(--paper); }

/* navbar */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: var(--paper); border-bottom: 2px dashed var(--ink); }
.top-in { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; white-space: nowrap; }
.brand img { height: 38px; width: auto; }   /* the crest in ink, like a stamp */
.brand b { margin-left: .4em; padding: 1px 6px; background: var(--gold); rotate: 2deg; display: inline-block; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: transparent; transition: text-decoration-color .2s var(--ease), color .2s var(--ease); cursor: pointer; }
.nav a:hover { color: var(--blue); text-decoration-color: var(--blue); }
@media (max-width: 767px) { .nav { display: none; } .top .btn { margin-left: auto; } .brand { font-size: 1rem; } }
@media (max-width: 440px) {   /* small phones: the header button keeps only its icon so it never covers the name */
  .top-in { gap: 12px; }
  .top .cta-label { display: none; }
  .top .btn-sm { padding: 8px 11px; }
  .brand { font-size: .92rem; gap: 8px; }
  .brand img { height: 34px; }
  .brand b { margin-left: .3em; padding: 1px 4px; }
}

/* hero: asymmetric, the cube taped on like a polaroid */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding-block: clamp(40px, 7vw, 96px) var(--gap); }
.hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--hero); line-height: 1.05; max-width: 13ch; text-shadow: 3px 2px 0 rgba(10, 166, 176, .45), -2px -1px 0 rgba(0, 58, 146, .3); }
.hero h1 span { display: inline-block; }
.hero h1 .w1 { rotate: -2deg; }
.hero h1 .hl { background: var(--gold); padding-inline: 8px; rotate: 1deg; text-shadow: 2px 2px 0 rgba(244, 238, 226, .6); }
.hero h1 .w3 { text-decoration: underline wavy var(--blue) 3px; text-underline-offset: 10px; rotate: -1deg; }
.lede { font-size: 1.1rem; line-height: 1.6; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.stage { margin: 0; position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 460px; justify-self: end; rotate: 2deg;
  background: var(--ink) var(--noise); padding: 14px 14px 56px; }
.stage canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; inset: 14%; width: 72%; height: auto; }
.stage figcaption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage figcaption a { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stage figcaption .hand { color: var(--paper); font-size: 1.1rem; rotate: -3deg; }
.tape-tl { top: -12px; left: -26px; rotate: -32deg; }
.tape-br { bottom: -10px; right: -24px; rotate: -28deg; }
@media (max-width: 767px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .stage { justify-self: center; max-width: 340px; }
}

/* disciplines: zig-zag zine pages, taped photo with a torn edge, text beside it */
.disciplines { display: grid; gap: var(--gap); padding-bottom: var(--gap); }
.discipline { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.discipline.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.discipline.flip .photo { order: 2; }
.photo {
  position: relative; border: 0; padding: 0; margin: 0; cursor: pointer; overflow: hidden; min-height: clamp(320px, 52vw, 560px);
  background: var(--ink) center / cover no-repeat; rotate: -1deg;
  clip-path: polygon(0 0, calc(100% - 4px) 0, calc(100% - 2px) 3.6%, calc(100% - 1px) 8.4%, calc(100% - 5px) 12.8%, calc(100% - 7px) 15.5%, calc(100% - 6px) 18.1%, calc(100% - 1px) 20.9%, calc(100% - 12px) 24.9%, calc(100% - 3px) 27.8%, calc(100% - 13px) 32.5%, calc(100% - 6px) 37%, calc(100% - 1px) 42.9%, calc(100% - 4px) 48.4%, calc(100% - 2px) 51.4%, calc(100% - 11px) 55%, calc(100% - 8px) 58.1%, calc(100% - 5px) 62.9%, calc(100% - 1px) 67.3%, calc(100% - 3px) 70%, calc(100% - 6px) 74.9%, calc(100% - 8px) 78.5%, calc(100% - 4px) 82.6%, calc(100% - 10px) 87.8%, calc(100% - 8px) 91.2%, calc(100% - 12px) 95.5%, calc(100% - 4px) 100%, 0 100%);
}
.discipline.flip .photo { rotate: 1deg;
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 8px 95.9%, 7px 90.2%, 8px 85.9%, 7px 82.8%, 11px 78.1%, 4px 75.2%, 11px 72.4%, 1px 67.5%, 14px 61.5%, 9px 56.8%, 0 53.7%, 1px 49.4%, 3px 46.2%, 6px 43.6%, 12px 39.5%, 9px 35.2%, 9px 31%, 4px 26.9%, 14px 20.9%, 10px 15.4%, 3px 11.8%, 1px 8.3%, 6px 3.1%, 5px 0);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.08); transition: transform .3s var(--ease), filter .3s var(--ease); }
.photo::after { /* toner dots + grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background: radial-gradient(rgba(11, 30, 63, .55) 1px, transparent 1.4px) 0 0 / 4px 4px, var(--noise);
}
@media (hover: hover) { @media (hover: hover) { .photo:hover img { transform: scale(1.03); filter: saturate(1.15) contrast(1.1); } } .photo:hover .badge { background: var(--gold); } .print:hover { rotate: 0deg; translate: 0 -4px; } }
.photo:active .badge { background: var(--gold); }
.photo, .print, .viewer button, .close { -webkit-tap-highlight-color: transparent; }
.badge {
  position: absolute; z-index: 2; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 700 .875rem/1 var(--font-grunge); letter-spacing: .06em; text-transform: uppercase; rotate: -2deg;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.discipline.flip .badge { left: auto; right: 22px; rotate: 2deg; }
.tape-photo { top: -14px; left: 34%; rotate: -4deg; }
.discipline.flip .tape-photo { left: auto; right: 30%; rotate: 5deg; }
.text { display: grid; gap: 14px; min-width: 0; max-width: 520px; }
.discipline:nth-child(2) .text { margin-top: 48px; }   /* misaligned on purpose */
.discipline:nth-child(3) .text { margin-top: -32px; }
.num { font-size: clamp(3.5rem, 7vw, 5.5rem); font-weight: 700; line-height: .8; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: -.05em; }
.tag { justify-self: start; padding: 2px 8px; border: 2px dashed var(--ink); font-size: .875rem; font-weight: 700; letter-spacing: .05em; rotate: 1.5deg; }
.text h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.02; text-shadow: 2px 2px 0 rgba(10, 166, 176, .5); }
.motto { font-family: var(--hand); color: var(--blue); font-size: 1.3rem; line-height: 1.3; rotate: -1.5deg; justify-self: start; }
.body { max-width: 52ch; }
.points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.points li { padding-left: 1.6em; position: relative; }
.points li::before { content: "//"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.path { list-style: none; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.path li { counter-increment: step; display: grid; gap: 2px; padding: 8px 8px 10px; border: 2px dashed var(--ink); font-size: .85rem; font-weight: 700; background: rgba(255, 255, 255, .25); }
.path li:nth-child(odd) { rotate: -2deg; }
.path li:nth-child(even) { rotate: 1.5deg; translate: 0 4px; }
.path li:first-child { background: var(--gold); }
.path li::before { content: "0" counter(step); font-size: 1.4rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--blue); }
@media (max-width: 420px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; } }
.path-note { border-left: 4px solid var(--blue); padding-left: 14px; }
.path-note .hand { font-size: 1.05rem; margin-right: 4px; }
@media (max-width: 767px) {
  .discipline, .discipline.flip { grid-template-columns: minmax(0, 1fr); }
  .discipline.flip .photo { order: 0; }
  .photo { min-height: min(62vh, 480px); }
  .discipline .text { margin-top: 8px !important; max-width: none; }
  .discipline.flip .badge { right: auto; left: 22px; }
}

/* dark bands with torn paper edges */
.band { position: relative; background: var(--blue) var(--noise); color: var(--paper); padding-block: var(--gap); }
.band::before, .band::after {
  content: ""; position: absolute; left: 0; right: 0; height: 16px; background: var(--blue);
  -webkit-mask: var(--torn) repeat-x 0 0 / 120px 16px; mask: var(--torn) repeat-x 0 0 / 120px 16px;
}
.band::before { top: -15px; }
.band::after { bottom: -15px; transform: scaleY(-1); }

/* et aussi: three notes of different widths, taped at angles, never equal columns */
.cut { display: flex; flex-wrap: wrap; gap: 10px; font-size: var(--h1); margin-bottom: 48px; }
.cut span { display: inline-block; padding: 2px 12px; background: var(--paper); color: var(--ink); }
.cut span:nth-child(1) { rotate: -3deg; }
.cut span:nth-child(2) { background: var(--gold); rotate: 2deg; }
.notes { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.note {
  position: relative; display: grid; gap: 12px; padding: 28px 24px 30px; border-radius: var(--radius); border: 1px solid rgba(11, 30, 63, .25);
  background: var(--paper) var(--noise-light); color: var(--ink); box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.note::before { /* tape on each note */
  content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; translate: -50% 0; rotate: -3deg;
  background: rgba(248, 184, 32, .7); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 60%, 100% 100%, 2% 96%, 0 60%, 4% 30%);
}
.note:nth-child(1) { rotate: -2deg; }
.note:nth-child(2) { rotate: 1.5deg; margin-top: 56px; }
.note:nth-child(3) { rotate: -1deg; margin-top: 16px; }
.note .i-lg { color: var(--blue); }
.note h3 { font-size: var(--h2); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 4px; text-underline-offset: 5px; }
@media (max-width: 767px) { .notes { grid-template-columns: minmax(0, 1fr); gap: 36px; } .note:nth-child(n) { margin-top: 0; } }

/* dimanches juniors: copy beside a taped hand-written setlist */
.sunday { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: calc(var(--gap) + 16px); }
.sunday-copy { display: grid; gap: 20px; justify-items: start; }
.sunday h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.02; text-shadow: 2px 2px 0 rgba(10, 166, 176, .5); }
.sunday-copy > p:not(.stamp) { font-size: 1.1rem; max-width: 46ch; }
.ar { font-family: var(--arabic); font-size: 1.25rem; }
.setlist { position: relative; padding: 36px 28px 28px; background: #FFFBF2 var(--noise-light); border: 2px dashed var(--ink); rotate: 2deg; }
.tape-top { top: -16px; left: 50%; translate: -50% 0; rotate: -2deg; }
.timetable { width: 100%; border-collapse: collapse; }
.timetable caption { text-align: left; font-size: 1.5rem; padding-bottom: 14px; rotate: -2deg; }
.timetable tr { border-top: 2px solid var(--ink); }
.timetable td, .timetable th { padding: 16px 0; vertical-align: baseline; }
.timetable td { width: 1%; white-space: nowrap; padding-right: 14px; }
.timetable time { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.timetable th { text-align: right; font-size: clamp(1.1rem, 2.2vw, 1.4rem); text-transform: uppercase; }
.timetable tr.off time, .timetable tr.off .subj { text-decoration: line-through 3px var(--blue); }
.off-note { display: block; font: 400 1rem/1.2 var(--hand); color: var(--blue); text-transform: none; text-decoration: none; }
@media (max-width: 767px) { .sunday { grid-template-columns: minmax(0, 1fr); } .setlist { rotate: 1deg; } }
.setlist { min-width: 0; color: var(--ink); }
.timetable th { overflow-wrap: break-word; }
@media (max-width: 480px) { .setlist { padding: 32px 16px 18px; } .timetable td { padding-right: 10px; } .timetable time { font-size: 1.05rem; } .timetable th { font-size: .95rem; letter-spacing: -.02em; } }

/* final call to action */
.final-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.final-in > div { display: grid; gap: 18px; justify-items: start; }
.final h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; max-width: 16ch; text-shadow: 3px 2px 0 rgba(10, 166, 176, .8); }
.final-sub { font-size: 1.1rem; max-width: 46ch; color: #D9E2F2; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.phone-block .hand { font-size: 1.2rem; color: var(--gold); rotate: -2deg; }
.phone { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; }
.copied { font-weight: 700; color: var(--gold); }
@media (max-width: 767px) { .final-in { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { background: var(--ink); color: #D9E2F2; padding-block: calc(var(--gap) * .6) 24px; border-top: 2px dashed rgba(244, 238, 226, .35); font-size: .925rem; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-in > * { display: grid; gap: 10px; align-content: start; }
.foot-crest { display: block; width: 116px; rotate: -3deg; }
.foot-crest img { width: 100%; height: auto; }
.foot-h { color: var(--paper); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; }
.foot a { color: #D9E2F2; text-decoration-color: transparent; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.foot a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; justify-content: center; border: 2px dashed rgba(244, 238, 226, .5); border-radius: var(--radius); }
.socials a:hover { border-color: var(--gold); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(244, 238, 226, .2); font-size: .85rem; color: #A9B8D3; }
@media (max-width: 860px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

/* entry: fade + 16px rise, only once JS is running (the page reads fine without it) */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .42s var(--ease) var(--d, 0ms), translate .42s var(--ease) var(--d, 0ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* the photo spread: xeroxed prints thrown on a dark table */
.spread { position: fixed; inset: 0; z-index: 300; overflow-y: auto; overscroll-behavior: contain; background: var(--ink) var(--noise); padding-bottom: 64px; color: var(--paper); }
.spread-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: max(18px, env(safe-area-inset-top, 0px)) 16px; background: linear-gradient(var(--ink) 70%, rgba(11, 30, 63, 0)); }
.spread-head h2 { font-size: var(--h2); text-transform: uppercase; letter-spacing: .02em; }
.close { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); color: var(--ink); border: 0; border-radius: var(--radius); padding: 10px 14px; font: 700 .875rem/1 var(--font-grunge); text-transform: uppercase; cursor: pointer; transition: background-color .2s var(--ease); }
.close:hover { background: var(--gold); }
.prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 40px 28px; align-items: start; padding-top: 20px; }
.print {
  position: relative; margin: 0; padding: 10px 10px 14px; background: var(--paper); border: 0; cursor: pointer; text-align: left;
  color: var(--ink); font: 400 .875rem/1.45 var(--font-grunge);
  rotate: var(--r, 0deg); transition: rotate .2s var(--ease), translate .2s var(--ease);
}
.print::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 22px; translate: -50% 0; rotate: calc(var(--r, 0deg) * -2);
  background: rgba(140, 152, 175, .7); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 60%, 100% 100%, 2% 96%, 0 60%, 4% 30%); }
.print img { width: 100%; height: auto; }
.print span { display: block; margin-top: 10px; }
.viewer { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; background: rgba(8, 24, 47, .96); padding: max(16px, env(safe-area-inset-top, 0px)) 8px max(16px, env(safe-area-inset-bottom, 0px)); }
.viewer figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.viewer img { border: 8px solid var(--paper); object-fit: contain; background: var(--paper); }
@media (max-width: 600px) { .viewer { grid-template-columns: 34px minmax(0, 1fr) 34px; padding-inline: 2px; } .viewer button { padding: 4px; } }
.viewer figcaption { color: var(--paper); font-size: .95rem; text-align: center; }
.viewer button { display: grid; place-items: center; background: none; border: 0; color: var(--paper); cursor: pointer; padding: 8px; transition: color .2s var(--ease); }
.viewer button:hover { color: var(--gold); }
.viewer button .i { width: 2.2rem; height: 2.2rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------------------------------------------------------------- sections added with the brief (same zine language) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i-sm { width: .9em; height: .9em; }
.muted { color: var(--slate); }
.agree { display: inline-flex; align-items: center; gap: 8px; }
.agree .i { color: var(--gold); }
.hero-note { font-weight: 700; }
.hero-note a { color: var(--ink); }
.stage-fallback[hidden] { display: none !important; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.textlink:hover { text-decoration-color: var(--blue); }
.textlink.light { color: var(--paper); }

.section-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 48px); max-width: 64ch; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.02; text-shadow: 2px 2px 0 rgba(10, 166, 176, .5); }
.section-head p { font-size: 1.05rem; }
.band .section-head h2 { text-shadow: 3px 2px 0 rgba(10, 166, 176, .8); }
.band .section-head p { color: #D9E2F2; }
.disciplines > .section-head { margin-bottom: 0; }
.text h3 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.02; text-shadow: 2px 2px 0 rgba(10, 166, 176, .5); }
.when { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 4px 10px; border: 2px dashed var(--ink); font-weight: 700; rotate: -1deg; background: rgba(255, 255, 255, .5); }
.row-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.also { padding: 16px 20px; border: 2px dashed var(--ink); background: #FFFBF2 var(--noise-light); rotate: -.4deg; }
.sunday-band { padding-block: var(--gap); }
.sunday-band .sunday { padding-block: 0; }
.sunday-band .sunday-copy > p:not(.stamp) { color: #E3E9F4; }
.sunday-band .stamp { background: var(--paper); color: var(--ink); }
.offer { color: var(--ink) !important; background: var(--gold); padding: 4px 10px; font-weight: 700; rotate: -1deg; }
.timetable .subj { display: block; }
.timetable .aud { display: block; font-size: .85rem; font-weight: 400; text-transform: none; color: var(--slate); }

/* Ils l'ont fait: taped notes with a polaroid */
.stories-sec { padding-block: var(--gap); }
.stories { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; align-items: start; }
.story { position: relative; display: grid; gap: 10px; padding: 12px 12px 18px; background: #FFFBF2 var(--noise-light); border: 1px solid rgba(11, 30, 63, .2); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.story::before { content: ""; position: absolute; top: -12px; left: 50%; width: 86px; height: 24px; translate: -50% 0; rotate: -3deg; background: rgba(248, 184, 32, .7);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 60%, 100% 100%, 2% 96%, 0 60%, 4% 30%); }
.story:nth-child(odd) { rotate: -1.2deg; }
.story:nth-child(even) { rotate: 1deg; margin-top: 32px; }
.story-pic img, .story-pic .initial { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story h3 { font-size: 1.4rem; text-shadow: 2px 2px 0 rgba(10, 166, 176, .45); }
.initial { display: grid; place-items: center; background: var(--gold); color: var(--ink); font: 400 3.4rem/1 var(--hand); }
@media (max-width: 1000px) { .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stories { grid-template-columns: minmax(0, 1fr); } .story:nth-child(even) { margin-top: 0; } }

/* Ils nous font confiance: taped polaroids that open the video on Instagram */
.cream { padding-block: var(--gap); background: rgba(255, 255, 255, .45); border-block: 2px dashed rgba(11, 30, 63, .25); }
.videos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.video { position: relative; display: block; padding: 10px 10px 46px; background: #FFFBF2; color: var(--ink); text-decoration: none; box-shadow: 0 10px 24px -12px rgba(11, 30, 63, .45); }
.video:nth-child(1) { rotate: -1.5deg; } .video:nth-child(2) { rotate: 1.2deg; margin-top: 24px; }
.video img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.play { position: absolute; top: 44%; left: 50%; translate: -50% -50%; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); }
.play .i { width: 26px; height: 26px; margin-left: 4px; }
.video-t { position: absolute; left: 14px; right: 14px; bottom: 10px; font: 400 1.15rem/1.2 var(--hand); color: var(--blue); }
.video-t small { display: block; font: 700 .78rem/1.3 var(--font-grunge); color: var(--slate); text-transform: uppercase; letter-spacing: .05em; }
@media (hover: hover) { .video:hover { translate: 0 -4px; } .video { transition: translate .2s var(--ease); } }
.tips { position: relative; display: grid; gap: 12px; padding: 26px 22px; background: #FFFBF2 var(--noise-light); border: 2px dashed var(--ink); rotate: -.8deg; }
.tips h3 { font-size: 1.3rem; }
.tips ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
@media (max-width: 900px) { .videos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tips { grid-column: 1 / -1; } }
@media (max-width: 560px) { .videos { grid-template-columns: minmax(0, 1fr); } .video:nth-child(2) { margin-top: 0; } }

/* L'équipe: notes */
.team-sec { padding-block: var(--gap); }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.member { position: relative; display: grid; gap: 10px; align-content: start; padding: 24px 20px; background: #FFFBF2 var(--noise-light); border: 1px solid rgba(11, 30, 63, .2); box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.member:nth-child(odd) { rotate: -1deg; } .member:nth-child(even) { rotate: .8deg; margin-top: 20px; }
.member .initial, .member-pic { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; font-size: 1.9rem; border: 2px solid var(--ink); }
.member .initial .i { width: 40px; height: 40px; }
.member h3 { font-size: 1.3rem; text-shadow: 2px 2px 0 rgba(10, 166, 176, .45); }
.source { margin-top: 22px; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: minmax(0, 1fr); } .member:nth-child(even) { margin-top: 0; } }

/* En images: prints taped on the blue band */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.g-item { position: relative; border: 0; padding: 8px 8px 12px; background: var(--paper); cursor: zoom-in; rotate: var(--r, 0deg); transition: rotate .2s var(--ease), translate .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.g-item::before { content: ""; position: absolute; z-index: 1; top: -9px; left: 50%; width: 60px; height: 20px; translate: -50% 0; rotate: calc(var(--r, 0deg) * -2);
  background: rgba(248, 184, 32, .7); clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 60%, 100% 100%, 2% 96%, 0 60%, 4% 30%); }
.g-item:nth-child(3n+1) { --r: -2deg; } .g-item:nth-child(3n+2) { --r: 1.5deg; } .g-item:nth-child(3n) { --r: -.7deg; }
@media (hover: hover) { .g-item:hover { rotate: 0deg; translate: 0 -4px; } }
.g-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; } }

/* FAQ: dashed index cards */
.faq-sec { padding-block: var(--gap); }
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq details { border: 2px dashed var(--ink); background: #FFFBF2 var(--noise-light); }
.faq details:nth-child(odd) { rotate: -.3deg; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--blue); transition: rotate .2s var(--ease); }
.faq details[open] summary .i { rotate: 45deg; }
.faq details p { padding: 0 16px 16px; max-width: 66ch; }

/* contact: address, phone, click-to-load map */
.final-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; row-gap: 40px; }
.final address { font-style: normal; }
.final .map { grid-column: 1 / -1; display: block; position: relative; height: clamp(240px, 36vw, 380px); border: 2px dashed rgba(244, 238, 226, .6); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; border: 0; background: rgba(255, 255, 255, .05); color: var(--paper); font: 700 1.1rem/1.2 var(--font-grunge); cursor: pointer; }
.map-load .i { width: 34px; height: 34px; color: var(--gold); }
.map-load small { font-weight: 400; font-size: .85rem; color: #D9E2F2; }
.map-load:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 767px) { .final-in { grid-template-columns: minmax(0, 1fr); } }
