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

:root {
  --ink: #2A1E3F; --ink-soft: #4A3A5C; --accent: #A83A55; --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 1 « Colonne » : en-tête centré, une seule colonne de lecture ===== */
.top { padding: 32px 20px 0; text-align: center; }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.brand img { width: 84px; height: 84px; }
.brand span { font-size: 30px; }
.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; max-width: 44rem; margin: 18px auto 0; padding: 4px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 16px; }
.nav a { padding: 11px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.wrap { padding: 64px 20px 0; }
main { margin: 0 auto; }
main > h1, main > article > h1 { text-align: center; margin-bottom: 32px; }
.footer { max-width: 44rem; margin: 80px auto 0; padding: 20px 0 40px; }

/* Accueil */
.home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.home .top { padding-top: 16px; }
.home .nav { margin-top: 0; border-top: 0; }
.home main { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 32px 20px 56px; text-align: center; }
.home .logo { width: auto; height: min(52vh, 460px); max-width: 100%; object-fit: contain; }
.home h1 { font-size: clamp(44px, 7vw, 80px); margin: 0; }
.home .tagline { max-width: 26rem; }

@media (max-width: 760px) {
  .top { padding-top: 20px; }
  .brand img { width: 64px; height: 64px; }
  .brand span { font-size: 26px; }
  .nav { gap: 0 22px; margin-top: 12px; }
  .wrap { padding: 40px 16px 0; }
  .footer { margin: 56px 16px 0; }
  .home .logo { height: auto; width: min(82vw, 380px); }
}
