/* ==========================================================================
   Harmonie de Lillers — feuille de style
   1. Polices   2. Variables   3. Base   4. Composants   5. En-tête et menu
   6. Accueil   7. Pages intérieures   8. Galerie   9. Formulaires
   10. Pied de page   11. Apparition au défilement   12. Mobile
   ========================================================================== */

/* 1. Polices ---------------------------------------------------------------- */

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../assets/fonts/hanken-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Variables -------------------------------------------------------------- */

:root {
  --bg: #F4EFE6;
  --card: #FBF8F2;
  --ink: #14213A;
  --muted: #4F5B70;
  --line: rgba(20, 33, 58, 0.12);
  --accent: #A8692F;
  --link: #94592A;
  --deep: #14213A;
  --night: #0B1424;
  --gold: #D2A464;
  --cream: #F4EFE6;
  --on-deep: #C9D0DC;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --pad: clamp(20px, 4vw, 48px);
  --max: 1320px;
  --header-h: 65px;
}

/* 3. Base ------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ol, ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.band--deep :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--gold); }
.band--accent :focus-visible { outline-color: #FBF8F2; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--cream); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* 4. Composants ------------------------------------------------------------- */

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.serif { font-family: var(--serif); font-weight: 400; }
.accent-italic { font-style: italic; color: var(--accent); }
.band--deep .accent-italic { color: var(--gold); }
.band--accent .accent-italic { color: inherit; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.band--deep .eyebrow { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 16px 28px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn--lg { padding: 17px 32px; }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--accent); color: var(--cream); }
.btn--gold { background: var(--gold); color: var(--ink); font-weight: 600; }
.btn--gold:hover { background: var(--cream); color: var(--ink); }
.btn--night { background: var(--ink); color: #FBF8F2; }
.btn--night:hover { background: var(--night); color: #FBF8F2; }
.btn--ghost { border-color: rgba(244, 239, 230, 0.6); color: var(--cream); }
.btn--ghost:hover { background: rgba(244, 239, 230, 0.12); color: var(--cream); }
.btn--ghost-solid { border-color: #FBF8F2; color: #FBF8F2; }
.btn--ghost-solid:hover { background: rgba(251, 248, 242, 0.12); color: #FBF8F2; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.body + .btn-row { margin-top: 32px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--accent);
  transition: gap .2s;
}
.arrow-link:hover { gap: 16px; color: var(--accent); }
.band--deep .arrow-link,
.band--deep .arrow-link:hover { color: var(--gold); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 6vw, 96px);
}
.split--center { align-items: center; }

.section { padding-block: clamp(72px, 11vw, 150px); }
.band--deep { background: var(--deep); color: var(--cream); }
.band--accent { background: var(--accent); color: #FBF8F2; }
.band__inner { padding-block: clamp(72px, 10vw, 130px); }

.lead {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  text-wrap: pretty;
}
.lead--sm { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.lead + .body { margin-top: 28px; }

.body { font-size: 18px; line-height: 1.7; color: var(--muted); max-width: 56ch; }
.band--deep .body { color: var(--on-deep); max-width: 52ch; }
.band--deep .body a { color: var(--gold); }
.band--deep .body a:hover { color: var(--cream); }
.band--accent .body { color: inherit; max-width: 52ch; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1;
  margin-bottom: 28px;
}

.cover { width: 100%; object-fit: cover; }

/* Listes à filets : repères, pupitres, prestations, coordonnées */
.rows { display: flex; flex-direction: column; }
.rows__item {
  display: grid;
  gap: 12px 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.rows--timeline .rows__item { grid-template-columns: minmax(110px, 200px) minmax(0, 1fr); gap: 24px; }
.rows--pupitres .rows__item { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.rows__key { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.05; }
.rows--timeline .rows__key { font-size: clamp(28px, 3vw, 40px); line-height: 1; color: var(--accent); }
.rows__value { font-size: 17px; line-height: 1.6; color: var(--muted); }
.rows--season .rows__item { grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 24px; padding: 18px 0; }
.rows--season .rows__key { font-size: clamp(20px, 2vw, 24px); color: var(--accent); }
.rows--season .rows__value { color: inherit; }
.season-head { margin-top: 72px; }
/* Calendrier : décompte posé par main.js dans les 10 jours qui précèdent */
.countdown { display: inline-block; margin-left: 10px; padding: 2px 8px; background: var(--accent); color: var(--card); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.rows--season .countdown { margin: 6px 0 0; display: table; }
.season-over { margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.rows--timeline .rows__value { font-size: 18px; color: inherit; }

.steps { display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 18px; font-size: 17px; line-height: 1.6; }
.steps__n { font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); }
.steps--lg { gap: 26px; }
.steps--lg li { gap: 20px; font-size: 18px; color: var(--on-deep); }
.steps--lg .steps__n { font-size: 40px; line-height: 0.9; color: var(--gold); }

/* 5. En-tête et menu -------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--pad);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand em { color: var(--accent); }
.brand__logo { flex-shrink: 0; width: auto; height: 40px; }
@media (max-width: 420px) { .brand { font-size: 21px; gap: 6px; } .brand__logo { height: 30px; } }

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.site-nav a.site-nav__cta {
  margin-left: 10px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transition: background-color .2s;
}
.site-nav a.site-nav__cta:hover { background: var(--accent); color: var(--bg); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1079px) {
  .js .menu-toggle { display: flex; }

  /* Positionné par rapport à l'en-tête : son backdrop-filter en fait le bloc
     conteneur de ses descendants fixes, un position: fixed serait écrasé */
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px var(--pad) 40px;
    background: var(--bg);
    overflow: auto;
    overscroll-behavior: contain;
    animation: fadeIn .2s ease both;
  }
  .js .menu-open .site-nav { display: flex; }
  .js .menu-open { overflow: hidden; }

  .js .site-nav a,
  .js .site-nav a.site-nav__cta {
    margin: 0;
    padding: 16px 0;
    background: none;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    color: var(--ink);
  }
  .js .site-nav a[aria-current="page"] { font-style: italic; color: var(--accent); }

  /* Sans JavaScript : pas de bouton, les liens défilent sous la marque */
  html:not(.js) .site-header { flex-wrap: wrap; row-gap: 0; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
  html:not(.js) .site-nav a { white-space: nowrap; }
}

/* 6. Accueil ---------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: fadeIn 1.4s ease both;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 36, 0.55) 0%, rgba(11, 20, 36, 0.15) 35%, rgba(11, 20, 36, 0.85) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 140px var(--pad) clamp(40px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise .9s ease both;
}
.hero__kicker::before { content: ''; flex: none; width: 48px; height: 1px; background: var(--gold); }
.hero__title {
  max-width: 11ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 10.5vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  animation: rise .9s .1s ease both;
}
.hero__title em { color: var(--gold); }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px 48px;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid rgba(244, 239, 230, 0.25);
  animation: rise .9s .25s ease both;
}
.hero__text { max-width: 42ch; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: #E3E7EE; }

.chapter { position: sticky; top: 120px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.chapter__n {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(84px, 10vw, 150px);
  line-height: 0.78;
  color: var(--accent);
}
.chapter__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.chapter__label::before { content: ''; flex: none; width: 48px; height: 1px; background: var(--accent); }
.band--deep .chapter__n { color: var(--gold); }
.band--deep .chapter__label::before { background: var(--gold); }
.band--accent .chapter__n { color: #FBF8F2; }
.band--accent .chapter__label::before { background: #FBF8F2; }

.photo-strip { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.photo-strip img { width: 100%; height: clamp(260px, 34vw, 460px); object-fit: cover; min-width: 0; }

.home-gallery__img { height: clamp(260px, 32vw, 440px); margin-bottom: 32px; }

/* 7. Pages intérieures ------------------------------------------------------ */

.page-head { padding-block: clamp(110px, 16vh, 160px) clamp(40px, 6vw, 64px); animation: rise .8s ease both; }
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.back-link:hover { color: var(--accent); }
.back-link--accent { color: var(--accent); margin-bottom: 8px; }
.back-link--accent:hover { color: var(--ink); }

.page-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.page-title--12 { max-width: 12ch; }
.page-title--13 { max-width: 13ch; }
.page-title--contact { font-size: clamp(52px, 8vw, 112px); }
.page-title em { color: var(--accent); }
.page-intro { margin-top: 24px; max-width: 56ch; font-size: 19px; line-height: 1.65; color: var(--muted); }
.page-title--13 + .page-intro { margin-top: 28px; }

.banner-img { height: clamp(300px, 52vh, 620px); animation: fadeIn 1s .15s ease both; }
.banner-img--short { height: clamp(280px, 48vh, 560px); }

.text-block { padding-block: clamp(64px, 9vw, 120px); }
.text-stack { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.75; color: var(--muted); }

.ruled { border-top: 1px solid var(--line); padding-block: clamp(48px, 7vw, 90px); }
.ruled .eyebrow { margin-bottom: 32px; }

.closing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  padding-bottom: clamp(72px, 10vw, 130px);
}
.closing__text { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.15; }

.end { padding-bottom: clamp(72px, 10vw, 130px); }
.gap-below { padding-bottom: clamp(64px, 9vw, 110px); }
.block-sm { padding-bottom: clamp(48px, 7vw, 80px); }

/* Calendrier */
.weekly {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 48px;
  padding: clamp(28px, 4vw, 48px);
}
.weekly__day { font-family: var(--serif); font-size: clamp(56px, 7vw, 96px); line-height: 0.9; color: var(--gold); }
.weekly__body { flex: 1; min-width: min(100%, 240px); }
.weekly__body .eyebrow { margin-bottom: 10px; }
.weekly__title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin-bottom: 6px; }
.weekly__text { font-size: 17px; line-height: 1.6; color: var(--on-deep); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-top: 32px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); }
.card__poster { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-bottom: 1px solid var(--line); }
.card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 220px; padding: 28px; }
.card__when { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.card__desc { flex: 1; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card__status {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.newsletter {
  align-items: end;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--ink);
}
.newsletter__title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; margin-bottom: 14px; }
.newsletter__text { max-width: 46ch; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Musiciens */
.portrait { height: clamp(340px, 44vw, 600px); object-position: center top; }
.quote { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.22; margin: 24px 0 28px; text-wrap: pretty; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
  margin-bottom: 32px;
}
.section-head__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; }
.section-head__text { max-width: 44ch; font-size: 17px; line-height: 1.6; color: var(--muted); }
.wide-img { height: clamp(260px, 40vw, 520px); }
.wide-img + .body { margin-top: 28px; max-width: 60ch; }

/* Nous rejoindre */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--line); }
.facts__item { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.facts__item dt { margin-bottom: 14px; }
.facts__item dd { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.facts__item dd small { display: block; margin-top: 12px; font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--muted); }
.join-img { height: clamp(280px, 36vw, 500px); }
.how { display: flex; flex-direction: column; gap: 22px; }
.how__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; }
.how__note { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
  padding-block: clamp(56px, 8vw, 100px);
}
.cta-band__title { max-width: 16ch; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.5vw, 60px); line-height: 1.05; }

/* Vos événements */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line); margin-top: 28px; }
.offers__item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.offers__name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.05; margin-bottom: 10px; }
.offers__desc { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Mentions légales */
.legal { max-width: 72ch; }
.legal .eyebrow { margin: 48px 0 14px; }
.legal .eyebrow:first-child { margin-top: 0; }
.legal p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.legal p + p { margin-top: 12px; }
.process__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); line-height: 1; }
.process__body { display: flex; flex-direction: column; gap: 26px; }
.process__body .btn { align-self: flex-start; margin-top: 10px; }
.advice { padding-block: clamp(48px, 7vw, 80px) clamp(72px, 10vw, 130px); }
.advice .body { max-width: 60ch; }

/* 8. Galerie ---------------------------------------------------------------- */

.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(28px, 3vw, 40px); }
.album-card { display: flex; flex-direction: column; gap: 16px; color: inherit; text-decoration: none; transition: opacity .2s; }
.album-card:hover { color: inherit; opacity: 0.9; }
.album-card__cover { position: relative; overflow: hidden; }
.album-card__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.album-card__date { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.album-card__title { display: block; font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.08; }

/* Index de la galerie : années récentes, puis archives par décennie */
.gallery__group { margin-bottom: 24px; }
.gallery__group ~ .gallery__group { margin-top: clamp(56px, 7vw, 88px); }
.albums--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(24px, 2.4vw, 32px); }
.albums--compact .album-card { gap: 12px; }
.albums--compact .album-card__title { font-size: clamp(24px, 2vw, 30px); }

/* Vidéos : vignette servie par le site, lecteur YouTube chargé au clic (js/main.js) */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 2.4vw, 32px); }
.video { margin: 0; }
.video__play,
.video__frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--night); }
.video__play img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.video__play:hover img { opacity: 0.9; }
.video__play::before,
.video__play::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.video__play::before { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); box-shadow: 0 4px 18px rgba(11, 20, 36, 0.3); transition: transform .2s; }
.video__play::after { width: 20px; height: 24px; margin-left: 3px; background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.video__play:hover::before { transform: translate(-50%, -50%) scale(1.08); }
.video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { padding: 12px 2px 0; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 26px); line-height: 1.15; }
.video figcaption span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 14px; line-height: 1.4; color: var(--muted); }
.videos__note { max-width: 72ch; margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Crédits photo : sous l'index comme sous un album ouvert */
.gallery__credits { max-width: 72ch; margin-top: clamp(56px, 7vw, 88px); padding-top: 28px; border-top: 1px solid var(--line); }
.gallery__credits p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Galerie en construction (GALERIE_EN_CONSTRUCTION dans integrer.py) : un message, puis les vidéos */
.gallery__soon .lead { max-width: 30ch; }

/* Un album s'ouvre par son ancre (galerie.html#album-2016) : pas de JS requis */
.album { display: none; }
.album:target { display: block; }
.gallery:has(.album:target) .albums,
.gallery:has(.album:target) .gallery__group,
.gallery:has(.album:target) .videos,
.gallery:has(.album:target) .videos__note { display: none; }

.album__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 40px;
  margin-bottom: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.album__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.5vw, 60px); line-height: 1; }
.album__meta { font-size: 15px; color: var(--muted); }

/* Dans un album, un bloc par événement : son intitulé à gauche, ses photos à droite */
.event {
  display: grid;
  grid-template-columns: clamp(160px, 20vw, 240px) minmax(0, 1fr);
  gap: 16px clamp(24px, 3vw, 48px);
  padding-block: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.event__head { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.event__date { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.event__title { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2vw, 30px); line-height: 1.12; }
.event__title sup { font-size: 0.6em; line-height: 0; vertical-align: super; }
.album__photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; align-items: start; }
.album__photos button { display: block; width: 100%; background: var(--line); cursor: zoom-in; }
.album__photos img { width: 100%; animation: fadeIn .6s ease both; }
.album__photos figure { margin: 0; }
.album__photos figcaption { padding: 8px 2px 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
@media (max-width: 719px) {
  .event { grid-template-columns: minmax(0, 1fr); }
  .event__head { position: static; }
}

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 16px;
  border: 0;
  background: rgba(10, 16, 30, 0.94);
  color: var(--cream);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fadeIn .25s ease both; }
.lightbox::backdrop { background: transparent; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar {
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.lightbox__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lightbox__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: 70ch;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
}
.lightbox__close { flex-shrink: 0; white-space: nowrap; min-height: 44px; display: flex; align-items: center; letter-spacing: inherit; text-transform: inherit; }
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
}
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }
.lightbox button:hover { color: var(--gold); }
.lightbox--single .lightbox__arrow { display: none; }

/* 9. Formulaires ------------------------------------------------------------ */

.field {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink);
  outline: none;
}
.field::placeholder { color: #8A8F99; opacity: 1; }
.field:focus { border-bottom-color: var(--accent); }
.field:focus-visible { outline: none; box-shadow: 0 1px 0 var(--accent); }
textarea.field { resize: vertical; min-height: 128px; }

.contact { padding-block: clamp(110px, 16vh, 160px) clamp(72px, 10vw, 130px); gap: clamp(40px, 6vw, 96px); }
.contact__intro { animation: rise .8s ease both; }
.contact__intro .body { margin: 24px 0 36px; max-width: 44ch; }
.contact__panel { align-self: end; animation: rise .8s .15s ease both; }

.infos { border-top: 1px solid var(--line); }
.infos__row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.infos__row dt { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.infos__row dd { font-size: 17px; line-height: 1.5; }
.infos__row dd.is-muted { color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 6px; }
.contact-form > .eyebrow { margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--types { margin-bottom: 14px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.chips__legend { margin: 20px 0 10px; font-size: 15px; color: var(--muted); }
.field-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 24px; }

/* Le formulaire s'adapte au type de demande coché */
.contact-form [data-for] { display: none; }
.contact-form:has(#type-rejoindre:checked) [data-for~="rejoindre"],
.contact-form:has(#type-staff:checked) [data-for~="staff"],
.contact-form:has(#type-question:checked) [data-for~="question"],
.contact-form:has(#type-evenement:checked) [data-for~="evenement"],
.contact-form:has(#type-autre:checked) [data-for~="autre"] { display: block; }
.contact-form fieldset[data-for] { flex-direction: column; gap: 6px; }
.contact-form:has(#type-rejoindre:checked) fieldset[data-for~="rejoindre"],
.contact-form:has(#type-evenement:checked) fieldset[data-for~="evenement"] { display: flex; }
.contact-form .btn [data-for] { display: none; }
.contact-form:has(#type-rejoindre:checked) .btn [data-for~="rejoindre"],
.contact-form:has(#type-staff:checked) .btn [data-for~="staff"],
.contact-form:has(#type-question:checked) .btn [data-for~="question"],
.contact-form:has(#type-evenement:checked) .btn [data-for~="evenement"],
.contact-form:has(#type-autre:checked) .btn [data-for~="autre"] { display: inline; }

.form-hint { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-form .btn { align-self: flex-start; margin-top: 20px; padding: 17px 36px; }
.form-status { margin-top: 16px; font-size: 15px; line-height: 1.6; color: var(--accent); }
.form-status:empty { display: none; }

.form-done { padding: clamp(28px, 6vw, 48px); background: var(--deep); color: var(--cream); animation: fadeIn .4s ease both; }
.form-done__title { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 12px; }
.form-done__text { font-size: 17px; line-height: 1.6; color: var(--on-deep); }

/* 10. Pied de page ---------------------------------------------------------- */

.site-footer { background: var(--deep); color: var(--cream); border-top: 1px solid rgba(210, 164, 100, 0.25); }
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 36px;
  padding-block: clamp(48px, 7vw, 80px) 32px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-deep);
}
.site-footer__brand { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--cream); margin-bottom: 12px; }
.site-footer__brand em { color: var(--gold); }
.site-footer__links { display: flex; flex-direction: column; gap: 4px; }
.site-footer__links a { display: flex; align-items: center; min-height: 32px; color: var(--on-deep); text-decoration: none; }
.site-footer__links a:hover { color: var(--gold); }
.site-footer__social { margin-top: 12px; }
.site-footer__social a { color: var(--gold); }
.site-footer__social a:hover { color: var(--cream); }
.site-footer__legal { padding-block: 20px 32px; border-top: 1px solid rgba(244, 239, 230, 0.1); font-size: 13px; color: #8F9AAE; }
.site-footer__legal a { color: inherit; }
.site-footer__legal a:hover { color: var(--cream); }

/* 11. Apparition au défilement ---------------------------------------------- */

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 12. Mobile ---------------------------------------------------------------- */

@media (max-width: 899px) {
  /* En une colonne, le numéro de chapitre n'a plus à rester collé */
  .chapter { position: static; }
}

@media (max-width: 719px) {
  /* Hero : la photo en 4:3 sous l'en-tête, le texte dessous sur le bleu nuit.
     En plein écran sur un téléphone, on n'en voyait qu'un quart */
  .hero { min-height: 0; }
  .hero__img,
  .hero__veil { inset: var(--header-h) 0 auto 0; height: auto; aspect-ratio: 4 / 3; }
  .hero__img { object-position: center 40%; }
  .hero__veil { background: linear-gradient(180deg, rgba(11, 20, 36, 0.1) 0%, rgba(11, 20, 36, 0) 45%, var(--night) 100%); }
  .hero__inner { padding-top: calc(var(--header-h) + 62vw); }

  /* Photos de contenu : proportion d'origine, pas de hauteur imposée */
  .banner-img,
  .banner-img--short,
  .wide-img,
  .join-img,
  .home-gallery__img,
  .portrait { height: auto; }
  .portrait { max-height: 80vh; }

  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip img { height: auto; }

  .rows--pupitres .rows__item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .rows--timeline .rows__item { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .rows--season .rows__item { grid-template-columns: 1fr; gap: 4px; }

  .facts__item { padding: 24px 0; }
  .facts__item dd { font-size: 30px; }

  .card__body { min-height: 0; padding: 24px; }

  .infos__row { grid-template-columns: 1fr; gap: 6px; }

  .lightbox { padding: 72px 0 88px; }
  .lightbox__arrow { top: auto; bottom: 16px; transform: none; }
  .lightbox__arrow--prev { left: calc(50% - 64px); }
  .lightbox__arrow--next { right: calc(50% - 64px); }
}

@media (max-width: 519px) {
  .hero__kicker { letter-spacing: 0.2em; }
  .hero__kicker::before { width: 28px; }

  /* Boutons pleine largeur : une cible large au pouce */
  .btn-row { width: 100%; }
  .btn-row .btn,
  .closing .btn,
  .cta-band .btn,
  .process__body .btn,
  .contact-form .btn { width: 100%; align-self: stretch; }

  .chapter__n { font-size: 72px; }
  .chip span { padding: 10px 15px; }
  .js .site-nav a,
  .js .site-nav a.site-nav__cta { font-size: 34px; }
}
