/* ==========================================================
   Aria École Musicale Centrale — stylesheet
   ========================================================== */

:root {
  --ink: #1d1416;
  --ink-soft: #4a3b3e;
  --muted: #7a6a6c;
  --cream: #f6f0e6;
  --paper: #fbf8f2;
  --line: #e5dccd;
  --burgundy: #6b1d2a;
  --burgundy-deep: #4a121c;
  --gold: #b88a44;
  --gold-soft: #e9d5ae;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 20, 22, .04), 0 12px 32px -12px rgba(29, 20, 22, .14);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }

p { margin: 0 0 1em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
  font: 500 .95rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--burgundy-deep); border-color: var(--burgundy-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(29, 20, 22, .25); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.btn-light { background: var(--cream); color: var(--burgundy); border-color: var(--cream); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--burgundy-deep); }

.btn-small { padding: .65em 1.15em; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, .86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--burgundy);
  color: var(--cream);
  font: italic 500 1.6rem/1 var(--serif);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 600 1.45rem/1 var(--serif); letter-spacing: .02em; }
.brand-sub { white-space: nowrap; font: italic 500 .95rem/1 var(--serif); letter-spacing: .01em; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  text-decoration: none;
  white-space: nowrap;
  font-size: .93rem;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  background: #fff;
}
.lang-switch button {
  border: 0; background: transparent;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: var(--cream); }

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(184, 138, 68, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(107, 29, 42, .10), transparent 60%),
    var(--cream);
  padding: 96px 0 0;
}

.hero-staff {
  position: absolute;
  inset: auto 0 70px 0;
  width: 100%;
  height: 220px;
  color: var(--burgundy);
  pointer-events: none;
  opacity: .5;
}

.hero-inner { position: relative; padding-bottom: 96px; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -.01em;
  max-width: 17ch;
  margin-bottom: 28px;
}
.hero-title em { font-style: italic; color: var(--burgundy); }

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-facts {
  list-style: none;
  padding: 28px 0 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  border-top: 1px solid rgba(29, 20, 22, .12);
  max-width: 720px;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font: 500 2.2rem/1 var(--serif); color: var(--burgundy); }
.hero-facts span { font-size: .85rem; color: var(--muted); margin-top: 6px; }

.piano-keys {
  height: 56px;
  border-top: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='56'%3E%3Cg fill='%23e5dccd'%3E%3Crect x='39' width='1' height='56'/%3E%3Crect x='79' width='1' height='56'/%3E%3Crect x='119' width='1' height='56'/%3E%3Crect x='159' width='1' height='56'/%3E%3Crect x='199' width='1' height='56'/%3E%3Crect x='239' width='1' height='56'/%3E%3Crect x='279' width='1' height='56'/%3E%3C/g%3E%3Cg fill='%231d1416'%3E%3Crect x='27' width='24' height='34' rx='2'/%3E%3Crect x='67' width='24' height='34' rx='2'/%3E%3Crect x='147' width='24' height='34' rx='2'/%3E%3Crect x='187' width='24' height='34' rx='2'/%3E%3Crect x='227' width='24' height='34' rx='2'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 280px 56px repeat-x;
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-title { font-size: clamp(2.1rem, 4.2vw, 3.2rem); margin-bottom: 18px; }
.section-lead { color: var(--ink-soft); font-size: 1.08rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 72px;
  align-items: start;
}
.about-text > p { font-size: 1.08rem; color: var(--ink-soft); }

.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 24px; }
.values li { display: flex; gap: 18px; align-items: flex-start; }
.value-icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--burgundy);
  font-size: 1.35rem;
}
.values h3 { font-size: 1.35rem; margin-bottom: 2px; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Classes */
.classes { background: var(--cream); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }

.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(107, 29, 42, .07);
  color: var(--burgundy);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 30px; height: 30px; }

.card h3 { font-size: 1.75rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }

.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.card-cta {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
  justify-content: center;
}
.card-cta h3 { color: #fff; }
.card-cta p { color: rgba(246, 240, 230, .82); }
.card-cta .btn { align-self: flex-start; margin-top: 8px; }
.card-cta:hover { border-color: var(--burgundy); }

/* Teachers */
.teacher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.teacher {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 18px;
}
.teacher-head { display: flex; align-items: center; gap: 18px; }
.teacher-avatar {
  flex: none;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--burgundy);
  color: var(--cream);
  font: italic 500 1.6rem/1 var(--serif);
  letter-spacing: .02em;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-soft);
}
.teacher h3 { font-size: 1.85rem; }
.teacher-role { margin: 4px 0 0; color: var(--burgundy); font-size: .92rem; font-weight: 500; }
.teacher-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.teacher-facts li {
  font-size: .76rem; font-weight: 500;
  padding: 5px 11px; border-radius: 999px;
  background: var(--cream); border: 1px solid var(--line); color: var(--ink-soft);
}
.teacher > p, .teacher-more p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.teacher-more p { margin-top: 14px; }
.teacher-more summary {
  cursor: pointer; list-style: none;
  font-size: .88rem; font-weight: 600; color: var(--burgundy);
  display: inline-flex; align-items: center; gap: 6px;
}
.teacher-more summary::-webkit-details-marker { display: none; }
.teacher-more summary::after { content: "+"; font-size: 1.1rem; line-height: 1; }
.teacher-more[open] summary::after { content: "–"; }
.teacher-more summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.teacher-more .more-close, .teacher-more[open] .more-open { display: none; }
.teacher-more[open] .more-close { display: inline; }

/* Space rental */
.space-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.space-frame {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 4.4;
  background: #2a1b1f;
}
.space-frame svg { width: 100%; height: 100%; object-fit: cover; }
.space-text > p { font-size: 1.08rem; color: var(--ink-soft); }

.checklist { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-soft); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%236b1d2a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Steps */
.steps { background: var(--ink); color: var(--cream); }
.steps .section-title { color: #fff; }
.steps-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.steps-list li { border-top: 1px solid rgba(246, 240, 230, .18); padding-top: 28px; }
.step-num { font: italic 500 2.4rem/1 var(--serif); color: var(--gold); display: block; margin-bottom: 18px; }
.steps-list h3 { font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.steps-list p { color: rgba(246, 240, 230, .7); margin: 0; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.contact-info > p { color: var(--ink-soft); font-size: 1.08rem; }

.contact-list { margin: 32px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.contact-list dt {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.contact-list dd { margin: 0; color: var(--ink); }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--burgundy); color: var(--burgundy); }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  background: var(--cream);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}
.contact-form h3 { font-size: 1.9rem; margin-bottom: 4px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span { font-size: .82rem; font-weight: 500; color: var(--ink-soft); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107, 29, 42, .12);
}
.contact-form .invalid { border-color: #b3261e; }

.form-note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.4em; }
.form-note.ok { color: #2f6b3a; }
.form-note.err { color: #b3261e; }

/* Footer */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 48px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .88rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .space-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .teacher-grid { grid-template-columns: 1fr; }
  .space-visual { max-width: 460px; }
  .contact-form { position: static; }
}

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(29, 20, 22, .25);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 18px; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .section { padding: 80px 0; }
  .hero { padding-top: 64px; }
  .hero-inner { padding-bottom: 64px; }
  .hero-facts { gap: 28px; }
  .cards, .steps-list { grid-template-columns: 1fr; }
  .contact-list, .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 22px; }
  .teacher { padding: 24px 20px; }
  .teacher-avatar { width: 60px; height: 60px; font-size: 1.35rem; }
  .brand-sub { font-size: .85rem; }
  .brand-mark { width: 36px; height: 36px; font-size: 1.4rem; }
}
