/* ============================================
   MUZICALU — feuille de style
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --cream: #F6F4E9;
  --cream-deep: #EAE6D3;
  --ink: #1F2E22;
  --ink-soft: #48594C;
  --forest: #2F6B3C;
  --forest-deep: #1F4E29;
  --leaf: #8CAE58;
  --moss: #4F7A5B;
  --night: #132018;
  --paper: #FFFFFF;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 244, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 46, 34, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 50%;
}

.logo-mark {
  height: 84px;
  width: 84px;
  display: block;
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: rotate(-6deg) scale(1.04);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background: var(--night);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 25%, rgba(47, 107, 60, 0.5), transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(140, 174, 88, 0.25), transparent 50%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 460px;
}

.hero-content {
  align-self: center;
  padding: 56px 40px 56px max(24px, calc((100vw - 1120px) / 2 + 24px));
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.15;
  margin: 0 0 22px;
  font-weight: 600;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 42ch;
  margin: 0;
}

.hero-photo {
  position: relative;
  min-height: 280px;
  border-radius: 40px 0 0 40px;
  overflow: hidden;
  box-shadow: -20px 0 50px rgba(0, 0, 0, 0.35);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(19, 32, 24, 0.6), rgba(19, 32, 24, 0) 32%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--cream-deep);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 48px;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

.block-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 600;
}

.block-text {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- Éveil musical : texte + galerie non recadrée ---------- */
.eveil-layout {
  margin-bottom: 96px;
}

.eveil-text {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.eveil-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 14px;
}

.eveil-gallery .photo {
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(31, 46, 34, 0.18);
}

.eveil-gallery .photo img {
  height: 100%;
  width: auto;
  display: block;
}

/* ---------- Cours particuliers ---------- */
.cours-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.cours-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(19, 32, 24, 0.28);
  aspect-ratio: 4 / 5;
}

.cours-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   RESERVATION
   ============================================ */
.reservation {
  background: var(--night);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.reservation::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(140, 174, 88, 0.3), transparent 55%);
}

.reservation .wrap {
  position: relative;
}

.reservation p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 50ch;
  margin: 0 auto 30px;
}

.reservation a.mail {
  color: var(--leaf);
  font-weight: 600;
  text-decoration: underline;
}

.social-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.social-row a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-row a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

.social-row svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 880px) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .hero-content {
    padding: 48px 24px;
    text-align: center;
  }
  .hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-photo {
    order: -1;
    height: 260px;
    border-radius: 0;
  }

  .cours-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .eveil-layout {
    margin-bottom: 64px;
  }
  .cours-layout .cours-photo {
    order: -1;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
  }
  .eveil-gallery .photo {
    height: 190px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 40px 20px;
  }
  .eveil-gallery .photo {
    height: 130px;
  }
}
