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

: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 2 « Marge » : navigation dans une marge fixe à gauche ===== */
.side { position: fixed; inset: 0 auto 0 0; width: 272px; padding: 40px 36px; border-right: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; gap: 32px; overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 6px; }
.brand img { width: 140px; height: 140px; margin-left: -12px; }
.brand span { font-size: 30px; }
.nav { display: flex; flex-direction: column; font-size: 17px; }
.nav a { padding: 9px 0; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"]::before { content: ''; display: inline-block; width: 18px; height: 1px; margin-right: 10px; background: var(--accent); vertical-align: middle; }
.wrap { margin-left: 272px; padding: 72px clamp(32px, 6vw, 96px) 0; }
.footer { margin-top: 88px; padding: 20px 0 40px; }

/* Accueil */
.home .brand { display: none; }
.home .wrap { min-height: 100vh; min-height: 100svh; padding-top: 0; padding-bottom: 0; display: flex; }
.home main { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; padding: 48px 0; }
.home .text { flex: 1 1 20rem; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.home h1 { font-size: clamp(44px, 5.2vw, 78px); margin: 0; }
.home .logo { flex: 1 1 320px; min-width: 0; width: 100%; max-width: 600px; max-height: 88vh; object-fit: contain; }
.home .more { margin-top: 14px; }

@media (max-width: 900px) {
  .side { position: sticky; top: 0; z-index: 5; inset: auto; width: auto; padding: 10px 16px 0; gap: 2px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { flex-direction: row; align-items: center; gap: 8px; }
  .brand img { width: 44px; height: 44px; margin-left: -4px; }
  .brand span { font-size: 24px; }
  .nav { flex-direction: row; gap: 24px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 0 9px; border-bottom: 2px solid transparent; }
  .nav a[aria-current="page"] { border-bottom-color: var(--accent); }
  .nav a[aria-current="page"]::before { display: none; }
  .wrap { margin-left: 0; padding: 36px 16px 0; }
  .footer { margin-top: 56px; }
  .home .wrap { min-height: calc(100svh - 48px); }
  .home main { padding: 32px 0; }
  .home .logo { max-width: 420px; margin: 0 auto; }
}
