/* ==========================================================
   Orchestre de la Morinie — feuille de style
   Esprit « programme de concert » : filets, typographie, peu d'effets.
   ========================================================== */

:root {
  --bg: #14100e;
  --bg-alt: #1b1613;
  --text: #ece4d6;
  --muted: #a89c8c;
  --rule: rgba(236, 228, 214, 0.16);
  --rule-strong: rgba(236, 228, 214, 0.4);
  --accent: #c49a5a;

  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;

  --max: 1140px;
  --header-h: 72px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}

img { max-width: 100%; display: block; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-variant-numeric: lining-nums;
}
h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.45rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Sous-titre de section : italique discret */
.eyebrow {
  display: block;
  font-style: italic;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.lead { font-size: 1.2rem; max-width: 44rem; }

/* Texte à compléter par l'orchestre */
.todo {
  color: var(--accent);
  border-bottom: 1px dashed rgba(196, 154, 90, 0.6);
}

/* ---------- En-tête ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 46px; height: 46px; }
.brand span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.05;
}
.brand small {
  display: block;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}
.brand:hover { color: var(--text); }
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 1.12rem; white-space: nowrap; }
}

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; align-items: center; gap: 6px; }
.nav a,
.nav .submenu-toggle {
  display: block;
  padding: 8px 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav a:hover,
.nav .submenu-toggle:hover { color: var(--accent); }
.nav a[aria-current="page"],
.nav .has-sub.active > .submenu-toggle { color: var(--accent); }

.nav .submenu-toggle::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav .has-sub { position: relative; }
.nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  padding: 6px 0;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  display: none;
}
.nav .submenu a { padding: 8px 18px; }
.nav .has-sub:hover > .submenu,
.nav .has-sub:focus-within > .submenu,
.nav .has-sub.open > .submenu { display: block; }
.nav .submenu a[aria-current="page"] { color: var(--accent); }

.nav .nav-cta { color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 1px;
  background: var(--text);
  transform: translateX(-50%);
}
.menu-toggle span { top: 50%; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; left: 0; transform: none; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 12px 24px 40px;
    overflow-y: auto;
    display: none;
  }
  .menu-open .nav { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--rule); }
  .nav a,
  .nav .submenu-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 0;
    font-size: 1.3rem;
  }
  .nav .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 12px 18px;
    background: none;
    border: 0;
  }
  .nav .has-sub:hover > .submenu,
  .nav .has-sub:focus-within > .submenu { display: none; }
  .nav .has-sub.open > .submenu { display: block; }
  .nav .submenu a { padding: 8px 0; font-size: 1.15rem; }
}

/* ---------- Accueil ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-bottom: 1px solid var(--rule);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../img/hero.jpg") center 42% / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(20, 16, 14, 0.92) 0%, rgba(20, 16, 14, 0.6) 50%, rgba(20, 16, 14, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 16, 14, 0.9) 0%, rgba(20, 16, 14, 0) 45%);
}
.hero-content { max-width: 620px; padding: 80px 0 72px; }
.hero-logo { width: 104px; margin-bottom: 32px; }
.hero h1 { margin-bottom: 0.25em; }
.hero p { font-size: 1.25rem; max-width: 30rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 30px; }

@media (max-width: 700px) {
  .hero::before {
    background: linear-gradient(0deg, rgba(20, 16, 14, 0.95) 10%, rgba(20, 16, 14, 0.6) 60%, rgba(20, 16, 14, 0.4) 100%);
  }
  .hero-logo { width: 84px; }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  padding: 11px 24px 13px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-ghost {
  padding: 0 0 3px;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--accent);
}
.btn-ghost::after { content: " \2192"; }
.btn-ghost:hover { color: var(--accent); }

/* ---------- En-tête des pages intérieures ---------- */

.page-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--rule);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lead { color: var(--muted); font-style: italic; }
.breadcrumb { font-size: 0.95rem; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Sections ---------- */

.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 44px; max-width: 46rem; }
.section-head .lead { margin-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
}

.framed-img { aspect-ratio: 4 / 5; overflow: hidden; }
.framed-img img { width: 100%; height: 100%; object-fit: cover; }

/* Emplacement de photo à venir */
.placeholder-photo {
  display: grid;
  place-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
}
.placeholder-photo img { width: 40%; height: auto; opacity: 0.25; object-fit: contain; }

/* ---------- Grilles d'articles (sans boîtes) ---------- */

.grid { display: grid; gap: 44px 40px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }

.card {
  display: block;
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
  color: var(--text);
  text-decoration: none;
}
.card h3 { margin-bottom: 0.35em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
a.card:hover h3 { color: var(--accent); }

/* ---------- Concerts ---------- */

.concert {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.concert:last-of-type { border-bottom: 1px solid var(--rule); }
.concert-date .day {
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
}
.concert-date .month {
  display: block;
  font-style: italic;
  color: var(--muted);
}
.concert h3 { margin-bottom: 0.15em; }
.concert .meta { color: var(--muted); margin: 0; }
.concert .program { margin: 4px 0 0; }
@media (max-width: 700px) {
  .concert { grid-template-columns: 1fr; gap: 8px; }
  .concert-date { display: flex; align-items: baseline; gap: 12px; }
  .concert .btn { justify-self: start; margin-top: 8px; }
}

.past-list { list-style: none; margin: 0; padding: 0; }
.past-list li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.past-list li:last-child { border-bottom: 1px solid var(--rule); }
.past-list li span:first-child { font-style: italic; color: var(--muted); }
@media (max-width: 600px) { .past-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Conseil d'administration ---------- */

.member .role { font-style: italic; color: var(--muted); margin-bottom: 4px; }
.member h3 { margin: 0; }

/* ---------- Musiciens ---------- */

.section-family { margin-bottom: 64px; }
.section-family:last-child { margin-bottom: 0; }
.section-family > h2 { margin-bottom: 28px; }
.pupitre h3 { font-size: 1.3rem; }
.pupitre ul { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.pupitre li { padding: 2px 0; }

/* ---------- Chiffres ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 24px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { color: var(--muted); font-style: italic; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* ---------- Bandeau d'appel ---------- */

.cta-band {
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(rgba(20, 16, 14, 0.8), rgba(20, 16, 14, 0.86)),
    url("../img/hero.jpg") center 70% / cover no-repeat;
  border-top: 1px solid var(--rule);
}
.cta-band p { max-width: 36rem; margin: 0 auto 30px; }

/* ---------- Listes ---------- */

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
.check-list li { position: relative; padding: 3px 0 3px 26px; }
.check-list li::before { content: "\2013"; position: absolute; left: 0; color: var(--accent); }

/* Frise chronologique */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  column-gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.timeline li > * { grid-column: 2; }
.timeline .when {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-style: italic;
  color: var(--muted);
  font-size: 0.95rem;
  padding-top: 3px;
}
.timeline strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 500px) {
  .timeline li { grid-template-columns: 1fr; }
  .timeline li > *,
  .timeline .when { grid-column: 1; grid-row: auto; }
}

/* Missions numérotées */
.mission-num {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ---------- Formulaires ---------- */

.form { display: grid; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-style: italic; color: var(--muted); margin-bottom: 4px; }
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
}
.form select { background: var(--bg); }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--accent); }
.form .note { font-size: 0.95rem; color: var(--muted); font-style: italic; margin: 0; }
.form.card { border-top: 0; padding-top: 0; }

.contact-item { padding: 16px 0; border-top: 1px solid var(--rule); }
.contact-item:last-child { border-bottom: 1px solid var(--rule); }
.contact-item h3 { font-size: 1.2rem; margin-bottom: 0.15em; }
.contact-item p { margin: 0; color: var(--muted); }

.map {
  display: block;
  width: 100%;
  height: 380px;
  border: 1px solid var(--rule);
  filter: grayscale(1) invert(0.92) contrast(0.85);
}

/* ---------- Pied de page ---------- */

.site-footer {
  padding: 64px 0 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 72px; margin-bottom: 16px; opacity: 0.85; }
.site-footer h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
  color: var(--text);
  margin-bottom: 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 2px 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }

/* ---------- Rejoignez-nous ---------- */

.container.narrow { max-width: 820px; }

/* Deux chemins côte à côte, séparés par un filet vertical */
.paths { display: grid; grid-template-columns: 1fr 1fr; }
.path {
  display: block;
  padding: 8px 48px 8px 0;
  color: var(--text);
  text-decoration: none;
}
.path + .path { padding: 8px 0 8px 48px; border-left: 1px solid var(--rule); }
.path h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.path p { color: var(--muted); max-width: 30rem; }
.path:hover { color: var(--text); }
.path:hover h2 { color: var(--accent); }
@media (max-width: 760px) {
  .paths { grid-template-columns: 1fr; }
  .path,
  .path + .path { padding: 0; border-left: 0; }
  .path + .path { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--rule); }
}

/* Étapes numérotées */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--rule-strong); }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 14px;
}
.steps h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Questions fréquentes */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; max-width: 36rem; }

/* Choix dans le formulaire */
.choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice legend { font-style: italic; color: var(--muted); margin-bottom: 6px; padding: 0; }
.choice label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--rule-strong);
  font-style: normal;
  color: var(--text);
  cursor: pointer;
}
.choice label:has(input:checked) { border-color: var(--accent); }
.choice input { width: auto; accent-color: var(--accent); margin: 0; }
@media (max-width: 600px) { .choice { grid-template-columns: 1fr; } }
.form[data-path="musicien"] .only-ami,
.form[data-path="ami"] .only-musicien { display: none; }

/* Les ancres ne passent pas sous l'en-tête fixe */
[id] { scroll-margin-top: var(--header-h); }
