/* ============================================
   Chorale Sainte Marie Madeleine — Massy
   Design moderne & épuré
   ============================================ */

:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --indigo-soft: #eef2ff;
  --violet-soft: #f5f3ff;
  --ink: #1e1b2e;
  --ink-soft: #5c5a6e;
  --bg: #fdfdfe;
  --surface: #ffffff;
  --border: #e8e7f0;
  --gradient: linear-gradient(135deg, var(--indigo), var(--violet));
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(30, 27, 46, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(79, 70, 229, 0.18);
  --shadow-lg: 0 25px 60px -15px rgba(79, 70, 229, 0.25);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 253, 254, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--indigo); }

.nav-links a.active {
  color: var(--indigo);
  font-weight: 600;
}

.nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-blob--1 {
  width: 480px; height: 480px;
  background: #c7d2fe;
  top: -140px; right: -100px;
}

.hero-blob--2 {
  width: 380px; height: 380px;
  background: #ddd6fe;
  bottom: -160px; left: -120px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-soft);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  color: var(--indigo);
  border: 1.5px solid var(--border);
  background: var(--surface);
}

.btn-ghost:hover { border-color: var(--indigo); background: var(--indigo-soft); }

/* Hero visual card */
.hero-visual { position: relative; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 2.2rem;
  box-shadow: var(--shadow-lg);
}

.hero-card svg { width: 100%; height: auto; }

.float-badge {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.8rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.float-badge span { display: block; font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); }

.float-badge--tl { top: -18px; left: -24px; animation: float 5s ease-in-out infinite; }
.float-badge--br { bottom: -18px; right: -14px; animation: float 6s ease-in-out 1s infinite; }

.badge-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  flex-shrink: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }

.section--tint { background: linear-gradient(180deg, var(--violet-soft), var(--bg)); }

.section-head {
  max-width: 38rem;
  margin-bottom: 3.2rem;
}

.section-head--center { margin-inline: auto; text-align: center; }

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Cards grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Événements ---------- */
.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.8rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.event:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }

.event-date {
  text-align: center;
  background: var(--indigo-soft);
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  min-width: 76px;
}

.event-date .day {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--indigo);
  line-height: 1.1;
}

.event-date .month {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.event h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 0.2rem; }

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.event-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }

.tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tag--concert { background: var(--indigo-soft); color: var(--indigo); }
.tag--messe { background: #fef3c7; color: #b45309; }
.tag--fete { background: #fce7f3; color: #be185d; }

/* ---------- Pupitres ---------- */
.pupitre-bar {
  height: 6px;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  background: var(--gradient);
}

.pupitre-bar--soprano { background: linear-gradient(90deg, #818cf8, #c084fc); }
.pupitre-bar--alto { background: linear-gradient(90deg, #6366f1, #a855f7); }
.pupitre-bar--tenor { background: linear-gradient(90deg, #4f46e5, #9333ea); }
.pupitre-bar--basse { background: linear-gradient(90deg, #4338ca, #7e22ce); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}

.gallery-item:hover { transform: scale(1.025); box-shadow: var(--shadow-md); }

.gallery-item--tall { aspect-ratio: 4 / 5; }

.g1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.g2 { background: linear-gradient(135deg, #818cf8, #6366f1); }
.g3 { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.g4 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.g5 { background: linear-gradient(135deg, #a78bfa, #818cf8); }
.g6 { background: linear-gradient(135deg, #5b21b6, #7c3aed); }

.gallery-item svg { opacity: 0.9; margin-bottom: 0.8rem; }

.gallery-item .g-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.gallery-item .g-sub { font-size: 0.78rem; opacity: 0.8; }

/* ---------- Formulaire ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.6rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field--full { grid-column: 1 / -1; }

.field label { font-size: 0.86rem; font-weight: 600; }

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-soft);
}

.field textarea { resize: vertical; min-height: 120px; }

button.btn { border: none; cursor: pointer; font-family: inherit; }

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 1.2rem;
}

/* ---------- Infos pratiques ---------- */
.info-list { list-style: none; display: grid; gap: 1.1rem; }

.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: grid;
  place-items: center;
}

.info-list strong { display: block; font-size: 0.95rem; }
.info-list span { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2rem; display: grid; gap: 2rem; }

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo), var(--violet));
  border-radius: 999px;
  opacity: 0.3;
}

.timeline-item { position: relative; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 0 4px var(--indigo-soft);
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.timeline-item .year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--indigo);
  letter-spacing: 0.08em;
}

.timeline-item p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Bandeau CTA ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  color: #fff;
}

.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255, 255, 255, 0.85); max-width: 32rem; margin: 0 auto 2rem; }

.cta-banner .btn {
  background: #fff;
  color: var(--indigo);
}

.cta-banner::before,
.cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-banner::before { width: 300px; height: 300px; top: -150px; left: -100px; }
.cta-banner::after { width: 240px; height: 240px; bottom: -130px; right: -80px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.footer p, .footer a, .footer li {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer ul { list-style: none; display: grid; gap: 0.55rem; }

.footer a:hover { color: var(--indigo); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Vitraux ---------- */
.vitrail-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
}

.vitrail-img--rosace {
  max-width: 300px;
  margin-top: 1rem;
}

.gallery-item--photo {
  padding: 0;
  background: #2a2440;
}

.gallery-item--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--photo .g-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(transparent, rgba(30, 27, 46, 0.85));
  text-align: left;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--indigo-soft), var(--bg));
}

.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.8rem; }
.page-hero p { color: var(--ink-soft); max-width: 36rem; margin-inline: auto; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 0.6rem 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 0.6rem 1.4rem; }

  .nav-cta { display: inline-block; text-align: center; margin: 0.4rem 1.4rem; }

  .nav-toggle { display: block; }

  .hero { padding: 3.5rem 0 4.5rem; }

  .grid-2, .grid-3, .grid-4, .form-grid, .footer-grid, .gallery { grid-template-columns: 1fr; }

  .event { grid-template-columns: auto 1fr; }
  .event .tag { grid-column: 2; justify-self: start; }

  .section { padding: 3.5rem 0; }

  .form-card { padding: 1.8rem; }

  .cta-banner { padding: 3rem 1.6rem; }

  .float-badge--tl { left: 0; }
  .float-badge--br { right: 0; }
}
