/* ADN — Association Danses Nivillacoises
   Feuille de style unique. Les couleurs et polices se règlent ici. */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Couleurs ADN : bleu vif, bleu clair du logo, jaune des lettres, encre */
  --paper: #fbfdff;
  --blush: #e1f3fd;      /* fond pâle (bleu) */
  --sky: #7bd0f9;        /* bleu du logo */
  --blue: #0e9ce8;       /* bleu vif de la boutique */
  --blue-deep: #0a72ad;  /* bleu lisible pour textes et liens */
  --sun: #ffe14a;        /* jaune des lettres a, d, n */
  --ink: #0f1a24;
  --ink-soft: #445565;
  --line: #d9e6ee;
  --jazz: #0a72ad;
  --breton: #0f1a24;
  --salon: #6e5a00;
  --jazz-wash: #dff2fd;
  --breton-wash: #e8edf2;
  --salon-wash: #fff4b8;

  --display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Newsreader", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34em;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.22rem);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); letter-spacing: -0.01em; }
h4 { font-size: 1.15rem; letter-spacing: 0; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ---------- En-tête ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.06em; line-height: 1;
  display: flex;
}
.brand-mark span:nth-child(1) { color: var(--jazz); }
.brand-mark span:nth-child(2) { color: var(--breton); }
.brand-mark span:nth-child(3) { color: var(--salon); }
.brand-name { font-family: var(--display); font-size: 0.82rem; line-height: 1.15; font-weight: 500; max-width: 12em; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--display); font-size: 0.98rem; font-weight: 550;
  text-decoration: none; padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--blush); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.lang {
  font-family: var(--display); font-weight: 650; font-size: 0.9rem; text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 12px;
}
.lang:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; }

@media (max-width: 940px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 0.98rem var(--display); color: var(--ink);
    background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer;
  }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .js .nav.open { display: flex; }
  .nav a { font-size: 1.3rem; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { background: none; color: var(--jazz); }
  .brand-name { display: none; }
  html:not(.js) .masthead .wrap { flex-wrap: wrap; }
  html:not(.js) .menu-btn { display: none; }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-words {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(4rem, 1rem + 15vw, 13.5rem);
  line-height: 0.84; letter-spacing: -0.055em;
  margin: 0; position: relative; z-index: 2;
}
.hero-words span { display: block; }
.hero-words .w-jazz { color: var(--jazz); }
.hero-words .w-breton { color: var(--breton); padding-left: 0.5em; }
.hero-words .w-salon { color: var(--salon); padding-left: 1.4em; }
.hero-ribbon {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.hero-ribbon path { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .hero-ribbon path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 3.2s 0.3s cubic-bezier(.6,.1,.2,1) forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero-foot {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(32px, 5vw, 64px); align-items: end;
}
.hero-lede { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.9rem); line-height: 1.35; margin: 0; max-width: 22em; }
.season-card {
  background: var(--ink); color: var(--paper);
  padding: 24px 26px; border-radius: 4px 28px 4px 4px;
}
.season-card h2 { font-size: 1.5rem; margin-bottom: 0.4em; color: var(--sky); }
.season-card p { margin: 0 0 0.6em; font-size: 1.02rem; }
.season-card a { color: var(--paper); }
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr; } }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font: 650 1rem var(--display); text-decoration: none;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper); border: 2px solid var(--ink);
}
.btn:hover { background: var(--jazz); border-color: var(--jazz); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.season-card .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); margin-top: 6px; }
.season-card .btn:hover { background: var(--sky); border-color: var(--sky); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section.tight { padding-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.section-head h2 { margin: 0; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Les trois disciplines, en "double page" */
.spread {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px);
  align-items: center; padding: clamp(28px, 4vw, 48px) 0;
  border-top: 2px solid var(--ink);
}
.spread .photo { grid-column: 1 / span 6; }
.spread .copy { grid-column: 8 / span 5; }
.spread.flip .photo { grid-column: 7 / span 6; order: 2; }
.spread.flip .copy { grid-column: 1 / span 5; order: 1; }
.spread .kicker { font-family: var(--display); font-weight: 650; font-size: 1.05rem; margin: 0 0 6px; }
.spread h3 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4.2rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.3em; }
.spread.jazz h3, .spread.jazz .kicker { color: var(--jazz); }
.spread.breton h3, .spread.breton .kicker { color: var(--breton); }
.spread.salon h3, .spread.salon .kicker { color: var(--salon); }
.when {
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  display: inline-block; padding: 6px 12px; border-radius: 6px; margin-bottom: 14px;
}
.jazz .when { background: var(--jazz-wash); }
.breton .when { background: var(--breton-wash); }
.salon .when { background: var(--salon-wash); }
@media (max-width: 760px) {
  .spread .photo, .spread .copy, .spread.flip .photo, .spread.flip .copy { grid-column: 1 / -1; order: initial; }
}

/* ---------- Photos (avec repli si l'image manque) ---------- */
.photo { margin: 0; }
.photo .frame {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px;
  background: var(--blush);
}
.photo.tall .frame { aspect-ratio: 4 / 5; }
.photo.wide .frame { aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { font-size: 0.9rem; font-style: italic; color: var(--ink-soft); margin-top: 8px; }
.photo.empty img { display: none; }
.photo.empty .frame::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 70%, transparent 0 38%, currentColor 38.4% 38.9%, transparent 39.3%),
    radial-gradient(circle at 70% 30%, transparent 0 26%, currentColor 26.4% 26.9%, transparent 27.3%);
  opacity: 0.35;
}
.jazz .photo.empty .frame, .photo.empty.jazz .frame { background: var(--jazz-wash); color: var(--jazz); }
.breton .photo.empty .frame, .photo.empty.breton .frame { background: var(--breton-wash); color: var(--breton); }
.salon .photo.empty .frame, .photo.empty.salon .frame { background: var(--salon-wash); color: var(--salon); }

/* ---------- Citation ---------- */
.quote { background: var(--blush); }
.quote blockquote { margin: 0; max-width: 18em; }
.quote blockquote p {
  font-family: var(--text); font-style: italic; font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 0.4em;
}
.quote cite { font-style: normal; font-family: var(--display); font-weight: 600; }

/* ---------- Calendrier de saison ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.timeline li { padding: 20px 20px 4px 0; position: relative; }
.timeline li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.timeline .month { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1; margin-bottom: 10px; display: block; }
.timeline h3 { font-size: 1.2rem; margin-bottom: 0.3em; }
.timeline p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:nth-child(3) { padding-left: 0; border-left: 0; }
  .timeline li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
  .timeline li, .timeline li + li { padding-left: 0; border-left: 0; }
  .timeline li + li { border-top: 1px solid var(--line); }
}

/* ---------- Bloc bénévoles / appel ---------- */
.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px);
  background: var(--ink); color: var(--paper); padding: clamp(28px, 5vw, 64px); border-radius: 4px 48px 4px 4px;
}
.callout h2 { color: var(--sky); }
.callout ul { margin: 0; padding-left: 1.1em; }
.callout li { margin-bottom: 0.5em; }
.callout .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.callout .btn:hover { background: var(--sky); border-color: var(--sky); }
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); border-bottom: 2px solid var(--ink); }
.page-head h1 { max-width: 12em; }
.page-head .standfirst { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.4; max-width: 30em; color: var(--ink-soft); margin: 0; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 80px) 0; }
.article + .article { border-top: 1px solid var(--line); }
.article > header h2 { position: sticky; top: 100px; }
.article .body { max-width: var(--measure); }
.article .body h3 { margin-top: 1.4em; }
.article .body > :first-child { margin-top: 0; }
.dropcap > p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 800; float: left;
  font-size: 4.6em; line-height: 0.82; margin: 0.06em 0.1em 0 0; color: var(--jazz);
}
@media (max-width: 760px) { .article { grid-template-columns: 1fr; } .article > header h2 { position: static; } }

.facts { list-style: none; padding: 0; margin: 1.5em 0; display: grid; gap: 0; }
.facts li { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--display); font-weight: 650; }
@media (max-width: 520px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* L'ours (bureau) */
.ours { columns: 2 16em; column-gap: 48px; }
.ours dl { margin: 0 0 24px; break-inside: avoid; }
.ours dt { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-top: 10px; }
.ours dd { margin: 0; color: var(--ink-soft); font-style: italic; }
.ours h3 { font-size: 1.05rem; margin: 0 0 4px; color: var(--jazz); }

/* Parcours jazz (vraie progression) */
.path { list-style: none; counter-reset: step; padding: 0; margin: 1.5em 0; }
.path li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.path li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--jazz); line-height: 1; }
.path h4 { margin: 0 0 4px; }
.path p { margin: 0; font-size: 1rem; }

.tag { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }

/* Documents */
.docs { list-style: none; padding: 0; margin: 1em 0; }
.docs li { border-top: 1px solid var(--line); }
.docs li:last-child { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 4px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.docs a:hover { background: var(--blush); }
.docs small { font-family: var(--text); font-weight: 400; color: var(--ink-soft); font-size: 0.95rem; white-space: nowrap; }

/* Actualités */
.news { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding: clamp(40px, 6vw, 72px) 0; }
.news article { grid-column: span 4; border-top: 2px solid var(--ink); padding-top: 16px; }
.news article.lead { grid-column: span 8; grid-row: span 2; }
.news article.lead h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
.news h2 { font-size: 1.6rem; }
.news time, .news .rubric { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--jazz); display: block; margin-bottom: 8px; }
@media (max-width: 860px) { .news article, .news article.lead { grid-column: 1 / -1; grid-row: auto; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding: clamp(40px, 6vw, 72px) 0; }
.contact-grid > div { border-top: 2px solid var(--ink); padding-top: 16px; }
.big-link { font-family: var(--display); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); letter-spacing: -0.02em; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.note { font-size: 0.95rem; color: var(--ink-soft); font-style: italic; }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 80px) 0 32px; margin-top: clamp(48px, 6vw, 96px); }
.footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand-mark { font-size: 3.4rem; }
.footer h2 { font-size: 1rem; color: var(--sky); margin-bottom: 10px; letter-spacing: 0; }
.footer p, .footer li { font-size: 1rem; margin: 0 0 6px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; color: #c9cbe0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .masthead, .footer, .hero-ribbon, .menu-btn { display: none; }
}

/* Le ruban reste dans la zone des grands mots, sans couper le texte */
.hero-stage { position: relative; }
.hero-stage .hero-ribbon { inset: -6% -8% -4% -4%; width: 112%; height: 110%; }
.article .photo.tall { max-width: 320px; }

/* Logo */
.logo { height: 40px; width: auto; }
.logo-foot { height: 64px; width: auto; }
.brand-name { border-left: 1.5px solid var(--sky); padding-left: 12px; }
.hero-ribbon path { stroke: var(--sky); stroke-width: 3; opacity: 1; }

/* Héros avec photo */
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-grid .hero-words { font-size: clamp(3.6rem, 0.8rem + 8.6vw, 9.6rem); }
.hero-grid .hero-words .w-breton { padding-left: 0.3em; }
.hero-grid .hero-words .w-salon { padding-left: 0.75em; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px 72px 4px 4px; background: var(--blush); }
.hero-photo figcaption { font-size: 0.85rem; font-style: italic; color: var(--ink-soft); margin-top: 8px; text-align: right; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo img { border-radius: 4px 48px 4px 4px; }
}

/* --- Thème ADN (bleus + jaune) --- */
.hero-photo img { height: auto; }
.hero-words .w-jazz { color: var(--blue); }
.hero-words .w-breton { color: var(--ink); }
.hero-words .w-salon { color: var(--ink); }
.hero-words .w-salon em { font-style: normal; background: linear-gradient(transparent 58%, var(--sun) 58% 92%, transparent 92%); padding: 0 0.04em; }
.season-card { background: var(--blue); color: var(--ink); }
.season-card h2, .season-card a { color: var(--ink); }
.season-card .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.season-card .btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.quote { background: var(--sky); }
.callout { background: var(--sun); color: var(--ink); }
.callout h2 { color: var(--ink); }
.callout .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.callout .btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.nav a[aria-current="page"] { background: var(--blue); color: var(--ink); }
.footer h2 { color: var(--sky); }
.shop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: center; background: var(--blush); border-top: 4px solid var(--blue); padding: clamp(24px, 4vw, 40px); }
.shop h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-bottom: 0.3em; }
.shop p { margin: 0; color: var(--ink-soft); max-width: 36em; }
@media (max-width: 640px) { .shop { grid-template-columns: 1fr; } }

/* ================================================================
   Version 2 : structure calquée sur la version Lovable
   ================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.masthead { top: env(safe-area-inset-top, 0px); }
.nav a { white-space: nowrap; }
@media (max-width: 1120px) { .brand-name { display: none; } }
@media (max-width: 1040px) {
  .menu-btn { display: inline-flex; align-items: center; font: 600 0.98rem var(--display); color: var(--ink); background: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
  .js .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
  .js .nav.open { display: flex; }
  .nav a { font-size: 1.25rem; padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { background: none; color: var(--blue-deep); }
}

/* Héros */
.hero-place { font-family: var(--display); font-weight: 600; color: var(--blue-deep); margin: 0 0 14px; }
.hero-title { font-size: clamp(3.2rem, 1.2rem + 7vw, 7.4rem); line-height: 0.92; letter-spacing: -0.045em; margin: 0 0 24px; }
.hero-title span { display: block; color: var(--blue); }
.hero-text .hero-lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); max-width: 26em; }
.hero-text .actions { margin-top: 24px; }

/* Cartes disciplines */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.dcard { border-top: 3px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; }
.dcard.jazz { border-color: var(--blue); }
.dcard.salon { border-color: var(--sun); }
.dcard h3 { margin: 16px 0 6px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.dcard .when { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 10px; }
.dcard > a { margin-top: auto; font-family: var(--display); font-weight: 650; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* Notre nom en entier */
.name-band { background: var(--ink); color: #fff; }
.acronym { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; font-size: clamp(2.4rem, 1rem + 6.4vw, 6.6rem); margin: 0 0 24px; display: flex; flex-wrap: wrap; column-gap: 0.35em; }
.acronym b { color: var(--sun); font-weight: 800; }
.name-note { max-width: 34em; color: #d6e2ea; margin: 0; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); }

/* Quel cours ? */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px 48px; background: var(--blush); padding: clamp(20px, 4vw, 40px); border-radius: 4px 40px 4px 4px; }
.finder-who { border: 0; padding: 0; margin: 0; grid-column: 1; }
.finder-who legend { font-family: var(--display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.finder-year { grid-column: 1; display: grid; gap: 6px; }
.finder-year label { font-family: var(--display); font-weight: 600; }
.finder-year input { max-width: 12em; }
.finder-out { grid-column: 2; grid-row: 1 / span 3; min-width: 0; }
.finder-more { grid-column: 1; margin: 0; }
.finder-hint, .finder-msg { color: var(--ink-soft); margin: 0 0 12px; }
.finder-count { font-family: var(--display); font-weight: 700; margin: 0 0 8px; }
.finder-list { list-style: none; padding: 0; margin: 0 0 14px; max-height: 26rem; overflow: auto; }
.finder-list li { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 2px 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.finder-list .fg { font-family: var(--display); font-weight: 700; }
.finder-list .fd { grid-column: 2; }
.finder-list .fb { grid-column: 2; color: var(--ink-soft); font-size: 0.92rem; }
.finder-list .fp { grid-column: 3; grid-row: 1; font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.finder-extra { font-size: 0.98rem; border-left: 3px solid var(--sun); padding-left: 12px; }
@media (max-width: 760px) { .finder { grid-template-columns: 1fr; } .finder-out, .finder-who, .finder-year, .finder-more { grid-column: 1; grid-row: auto; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 0.98rem var(--display); color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.chip small { font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: var(--sky); }
.btn.small { padding: 8px 16px; font-size: 0.95rem; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select {
  font: 400 1.05rem var(--text); color: var(--ink); background: #fff; border: 1.5px solid #b9c9d4; border-radius: 6px; padding: 10px 12px; width: 100%; min-width: 0;
}
input:focus, select:focus { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 0; }

/* Accueil : inscriptions + Instagram */
.insta { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.insta p { margin: 0; }

/* Pages intérieures */
.page-head .en-note { margin: 16px 0 0; font-family: var(--display); font-weight: 600; background: var(--sun); display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 1rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.jump a { font: 600 0.95rem var(--display); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; }
.jump a:hover { background: var(--ink); color: #fff; }
.crumb { font-family: var(--display); font-weight: 600; margin: 0 0 10px; }
.h-small { font-size: 1.1rem; }
.article .body.wide { max-width: none; }

/* Onglets */
.tablist { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); }
.tablist [role=tab] { font: 700 clamp(1.05rem, 0.9rem + 0.6vw, 1.4rem) var(--display); background: none; border: 0; padding: 14px 18px 12px; cursor: pointer; color: var(--ink-soft); border-bottom: 5px solid transparent; margin-bottom: -2px; }
.tablist [role=tab][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--blue); }
.tablist [role=tab]#tab-salon[aria-selected="true"], .tablist [role=tab][id$="tab-salon"][aria-selected="true"] { border-bottom-color: var(--sun); }
.tablist [role=tab][id$="tab-breton"][aria-selected="true"] { border-bottom-color: var(--ink); }
.tabpanel { padding-top: 28px; }
.panel-head h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; }
.panel-head p { max-width: 40em; color: var(--ink-soft); }
.tabpanel > p, .tabpanel > h4 { max-width: 40em; }
.tabpanel h4 { margin-top: 1.4em; }

/* Horaires */
.table-wrap { overflow-x: auto; margin: 20px 0; border-top: 2px solid var(--ink); }
.timetable { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 560px; }
.timetable caption { text-align: left; font-style: italic; color: var(--ink-soft); padding: 10px 0; caption-side: bottom; font-size: 0.92rem; }
.timetable th, .timetable td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.timetable thead th { font-family: var(--display); font-weight: 650; font-size: 0.92rem; color: var(--ink-soft); }
.timetable tbody th { font-family: var(--display); font-weight: 750; width: 8em; }
.timetable tr.first > * { border-top: 2px solid var(--ink); }
.timetable .g { font-family: var(--display); font-weight: 650; }
.timetable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.levels { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.levels li { background: var(--jazz-wash); border-radius: 6px; padding: 6px 12px; font-size: 0.95rem; }
.levels b { font-family: var(--display); margin-right: 6px; }
.tiers { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.tiers li { padding: 14px 14px 10px 0; display: grid; gap: 2px; }
.tiers li + li { padding-left: 14px; border-left: 1px solid var(--line); }
.tiers b { font-family: var(--display); font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }
.tiers span { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr 1fr; } .tiers li:nth-child(3) { padding-left: 0; border-left: 0; } .tiers li:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Inscription : deux parcours */
.tracks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 40px); margin-bottom: 32px; }
.track { border-top: 2px solid var(--ink); padding-top: 14px; }
.track h3 { font-size: 1.4rem; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.seg label { position: relative; font: 600 0.95rem var(--display); padding: 7px 16px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label:has(input:checked) { background: var(--ink); color: #fff; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: -3px; }
.help { font-size: 0.92rem; color: var(--ink-soft); margin: 6px 0 0; }
@media (max-width: 760px) { .tracks { grid-template-columns: 1fr; } }

/* Formulaire */
.signup { background: #fff; border: 1.5px solid var(--line); border-top: 4px solid var(--blue); padding: clamp(18px, 4vw, 40px); border-radius: 4px 4px 12px 12px; scroll-margin-top: 90px; }
.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0 0 24px; }
.steps li { font: 600 1rem var(--display); color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.steps li span { width: 1.9em; height: 1.9em; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid currentColor; font-size: 0.9rem; }
.steps li[aria-current] { color: var(--ink); }
.steps li[aria-current] span { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.steps li.done span { background: var(--ink); border-color: var(--ink); color: #fff; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); margin-bottom: 18px; }
.step h4 { margin: 24px 0 10px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label, .field .lbl { font-family: var(--display); font-weight: 600; font-size: 0.98rem; }
.opt { font-weight: 400; color: var(--ink-soft); font-size: 0.88rem; }
.radios label, .checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.radios input, .checks input { width: 1.15em; height: 1.15em; margin-top: 0.2em; flex: none; accent-color: var(--blue-deep); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.field.invalid input:not([type=radio]):not([type=checkbox]), .field.invalid select { border-color: #c4302b; }
.field.invalid > label, .field.invalid .lbl, .field.invalid.checks label, .field.invalid.radios label { color: #b02a25; }
.form-error { color: #b02a25; font-family: var(--display); font-weight: 600; background: #fdecec; padding: 10px 14px; border-radius: 6px; }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 20px; }
.form-nav [data-next], .form-nav [data-submit] { margin-left: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sig-mode { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sig-mode label { display: flex; gap: 8px; align-items: center; font-size: 1rem; cursor: pointer; }
.sig-draw { position: relative; }
.sig-draw canvas { width: 100%; height: 180px; background: #fff; border: 1.5px dashed #8aa3b4; border-radius: 6px; touch-action: none; cursor: crosshair; display: block;
  background-image: linear-gradient(transparent calc(100% - 44px), #d9e6ee calc(100% - 44px), #d9e6ee calc(100% - 42px), transparent calc(100% - 42px)); }
.field.sig.invalid canvas { border-color: #c4302b; }
.link-btn { position: absolute; right: 8px; top: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font: 600 0.88rem var(--display); padding: 4px 10px; cursor: pointer; color: var(--ink); }
.sig-file img { max-height: 120px; max-width: 100%; margin-top: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.signup-done { background: #fff; border: 1.5px solid var(--line); border-top: 4px solid var(--sun); padding: clamp(18px, 4vw, 40px); border-radius: 4px 4px 12px 12px; }
.signup-done h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
.preview-note { background: var(--sun); display: inline-block; padding: 4px 10px; border-radius: 6px; font-family: var(--display); font-weight: 600; }
.summary dl { display: grid; grid-template-columns: 12em 1fr; gap: 0; margin: 0 0 16px; }
.summary dt, .summary dd { padding: 8px 0; border-top: 1px solid var(--line); margin: 0; }
.summary dt { font-family: var(--display); font-weight: 600; padding-right: 12px; }
.sum-sig { max-height: 90px; border-bottom: 1px solid var(--ink); }
@media (max-width: 560px) { .summary dl { grid-template-columns: 1fr; } .summary dd { border-top: 0; padding-top: 0; } }

/* Saison */
.season { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.season li { border-bottom: 1px solid var(--line); }
.season summary { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: baseline; gap: 12px; padding: 16px 0; cursor: pointer; list-style: none; }
.season summary::-webkit-details-marker { display: none; }
.season summary::after { content: "+"; font: 700 1.4rem var(--display); color: var(--blue-deep); }
.season details[open] summary::after { content: "–"; }
.season .month { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--blue-deep); }
.season .t { font-family: var(--display); font-weight: 650; font-size: 1.15rem; }
.season details p { margin: -4px 0 18px 0; padding-left: calc(7.5em + 12px); color: var(--ink-soft); }
@media (max-width: 520px) { .season details p { padding-left: 0; } .season summary { grid-template-columns: 6em 1fr auto; } }
.pull { margin: 1.6em 0; padding-left: 18px; border-left: 4px solid var(--sky); }
.pull p { font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; margin: 0 0 6px; }
.pull cite { font-family: var(--display); font-style: normal; font-size: 0.95rem; color: var(--ink-soft); }
.path h4 .tag { font-weight: 500; color: var(--ink-soft); margin-left: 6px; font-size: 0.92rem; }
.path li::before { color: var(--blue-deep); }
.ours h3 { color: var(--blue-deep); }
.dropcap > p:first-of-type::first-letter { color: var(--blue); }

/* Albums */
.album-filters { display: grid; gap: 10px; padding: clamp(28px, 4vw, 40px) 0 8px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 36px); padding: 24px 0 clamp(40px, 6vw, 80px); }
.acard a { text-decoration: none; display: block; }
.acover { aspect-ratio: 4 / 3; border-radius: 4px 32px 4px 4px; overflow: hidden; background: var(--blush); position: relative; }
.acover img { width: 100%; height: 100%; object-fit: cover; }
.acover.empty::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 70%, transparent 0 38%, var(--sky) 38.4% 39%, transparent 39.4%), radial-gradient(circle at 70% 30%, transparent 0 26%, var(--sky) 26.4% 27%, transparent 27.4%); }
.acard h2 { font-size: 1.6rem; margin: 14px 0 4px; }
.acard p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.acard a:hover h2 { text-decoration: underline; text-decoration-thickness: 2px; }
.album-wait { background: var(--blush); padding: clamp(24px, 4vw, 48px); border-radius: 4px 40px 4px 4px; max-width: 44em; }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.gallery a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 3px; background: var(--blush); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 20, 0.94); display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.lightbox figcaption { color: #cfd9e0; font-family: var(--display); font-size: 0.95rem; }
.lightbox button { background: none; border: 0; color: #fff; font: 300 3rem/1 var(--display); padding: 12px; cursor: pointer; }
.lightbox .lb-close { position: absolute; top: max(8px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); font-size: 2.4rem; }
body.lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } }

.foot-note { font-size: 0.9rem; color: #c9d6df; margin-top: 8px; }
.footer-bottom a { color: #fff; }

/* Impression du récapitulatif */
@media print {
  body.print-summary * { visibility: hidden; }
  body.print-summary .signup-done, body.print-summary .signup-done * { visibility: visible; }
  body.print-summary .signup-done { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  body.print-summary .signup-done .actions, body.print-summary .preview-note { display: none; }
}
.contact-grid .big-link { font-size: clamp(1.15rem, 0.95rem + 0.8vw, 1.5rem); }
.radios label > span, .checks label > span { min-width: 0; }
