/* Sandhyāmālatī — design « Bandeau » */

:root {
  --ink: #2A1E3F; --ink-soft: #4A3A5C; --accent: #B81420; --line: #E4DEE8; --field: #8A7F96; --tint: #FBF1F3; --paper: #fff;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 400; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 400; color: var(--accent); }
main { font-size: 19px; line-height: 1.6; min-width: 0; }
.w-36 { max-width: 36rem; } .w-40 { max-width: 40rem; } .w-44 { max-width: 44rem; } .w-64 { max-width: 64rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.1; margin-bottom: 16px; }
h2 { font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
h3 { font-size: 26px; line-height: 1.2; margin: 28px 0 8px; }
p { margin: 0 0 16px; }
.lede { font-family: var(--serif); font-size: 28px; line-height: 1.35; color: var(--ink-soft); margin-bottom: 40px; }
.soft { color: var(--ink-soft); }
.small { font-size: 16px; line-height: 1.45; }
.section { margin-top: 48px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.more { display: inline-block; padding: 12px 0; font-size: 17px; color: var(--accent); border-bottom: 1px solid var(--accent); }
.underline { text-decoration: underline; text-underline-offset: 3px; }
.note { padding-left: 16px; border-left: 2px solid var(--accent); }
.brand { color: var(--ink); }
.brand span { font-family: var(--serif); font-weight: 500; line-height: 1.1; }
.tagline { margin: 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 24rem; }
.footer { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; font-size: 16px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- À propos ---------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 32px; }
summary { padding: 14px 0; cursor: pointer; }
summary h2 { display: inline; font-size: 34px; margin: 0; }
details > :last-child { margin-bottom: 32px; }
ol.programme { margin: 0 0 16px; padding-left: 1.4em; }
ol.programme li { margin-bottom: 14px; }
ol.programme li p { margin: 14px 0 0; }

/* ---------- Cours ---------- */
.courses { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.courses li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: 6px 40px; }
.courses h3 { margin: 0 0 6px; }
.courses p { margin: 0; }
.courses .meta { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.courses .meta b { font-weight: 400; color: var(--ink); }

/* ---------- Formulaires et parcours d'inscription ---------- */
.choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.choice { min-height: 48px; padding: 12px 16px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 4px; border: 1px solid var(--field); background: var(--paper); }
.choice[aria-pressed="true"] { border: 2px solid var(--accent); padding: 11px 15px; background: var(--tint); }
.choice .label { display: block; }
.choice .hint { display: block; font-size: 16px; line-height: 1.4; color: var(--ink-soft); }

form.fields { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field input, .field textarea { min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); border: 1px solid var(--field); border-radius: 4px; background: var(--paper); }
.btn { min-height: 48px; padding: 10px 22px; font: inherit; color: #fff; background: var(--accent); border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { filter: brightness(0.92); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* ---------- Blog ---------- */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.posts time, .article time { display: block; font-size: 16px; color: var(--ink-soft); }
.posts h2 { margin: 4px 0 6px; }
.posts p { margin: 0; }
.article h2 { margin-top: 36px; }

/* ---------- Chants ---------- */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; margin-top: 32px; }
.video .frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: grid; place-items: center; color: var(--ink-soft); font-size: 16px; text-align: center; padding: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video h3 { font-size: 22px; margin: 10px 0 0; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img, .gallery .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery .ph { border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); font-size: 16px; text-align: center; padding: 12px; }
.gallery figcaption { margin-top: 6px; font-size: 16px; color: var(--ink-soft); }

/* ---------- Téléphone (éléments communs) ---------- */
@media (max-width: 760px) {
  .courses li { grid-template-columns: 1fr; }
  .lede { font-size: 24px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ===== Design 3 « Bandeau » : barre fixe, titres en grand, grille à deux colonnes ===== */
:root { --bar: 68px; --pad: clamp(16px, 4vw, 56px); }
.bar { position: sticky; top: 0; z-index: 10; height: var(--bar); padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 48px; height: 48px; }
.brand span { font-size: 26px; }
.nav { display: flex; gap: 30px; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"], .sheet a[aria-current="page"] { color: var(--accent); }
.menu, .sheet { display: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 80px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 24px 64px; align-items: start; }
.wrap.one { display: block; }
.lead { position: sticky; top: calc(var(--bar) + 48px); }
.lead h1 { font-size: clamp(48px, 5.6vw, 84px); margin: 0; }
.lead img { display: block; width: 100%; max-width: 380px; margin-top: 28px; }
.footer { margin-top: 96px; padding: 20px var(--pad) 40px; }

/* Angles droits et boutons au trait */
.btn { background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 0; }
.btn:hover { background: var(--accent); color: #fff; filter: none; }
.choice, .field input, .field textarea, .video .frame, .gallery img, .gallery .ph { border-radius: 0; }

/* Accueil */
.home .brand { visibility: hidden; }
.home .hero { min-height: calc(100vh - var(--bar)); min-height: calc(100svh - var(--bar)); max-width: 1440px; margin: 0 auto; padding: 32px var(--pad) 56px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: end; }
.home .text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 24px; border-top: 1px solid var(--ink); }
.home h1 { font-size: clamp(50px, 7vw, 108px); margin: 0; }
.home .logo { align-self: center; justify-self: center; width: 100%; max-height: 78vh; object-fit: contain; }
.home .more { margin-top: 14px; }

@media (max-width: 960px) {
  :root { --bar: 60px; }
  .bar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }  /* sinon le menu plein écran ne peut pas se fixer à la fenêtre */
  .nav { display: none; }
  .menu { display: block; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }
  .menu .close, .menu-open .menu .open { display: none; }
  .menu-open .menu .close { display: inline; }
  .menu-open, .menu-open body { overflow: hidden; }
  .menu-open .sheet { position: fixed; inset: var(--bar) 0 0 0; padding: 12px var(--pad) 32px; background: var(--paper); display: flex; flex-direction: column; overflow-y: auto; }
  .sheet a { padding: 13px 0; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.2; border-bottom: 1px solid var(--line); }
  .brand img { width: 42px; height: 42px; }
  .brand span { font-size: 24px; }
  .wrap { display: block; padding-top: 40px; }
  .lead { position: static; margin-bottom: 20px; }
  .lead img { display: none; }
  .footer { margin-top: 56px; }
  .home .brand { visibility: visible; }
  .home .hero { grid-template-columns: 1fr; align-items: start; padding-top: 16px; }
  .home .logo { order: -1; max-width: 400px; }
  .home h1 { font-size: clamp(46px, 13vw, 84px); }
}
