/* ============================================
   Équi-Libre Sonore — Design System & Layout
   ============================================ */

:root {
  --white: #EEEEEE;
  --green-light: #6FCF97;
  --green-mid: #2FA084;
  --green-dark: #1F6F5F;
  --green-darker: #174f44;
  --text-dark: #1a1a1a;
  --text-light: #f0f0f0;
  --text-muted: #666;
  --bg-cream: #f8f7f4;
  --bg-section-alt: #f1f0ec;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p { max-width: 65ch; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 auto;
}

/* ---- Scroll Reveal ---- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: var(--green-dark);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

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

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green-light);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a.btn {
  padding-bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a.btn::after {
  display: none;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--green-light);
  color: var(--green-darker);
}

.btn-primary:hover {
  background: #5cc084;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(111, 207, 151, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.lang-toggle {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  text-transform: uppercase;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.25);
}

/* Hamburger */

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-darker) 100%);
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-wave circle {
  fill: none;
  stroke: rgba(111, 207, 151, 0.12);
  stroke-width: 1;
}

.hero-wave circle:nth-child(1) { animation: ripple 6s ease-out infinite; }
.hero-wave circle:nth-child(2) { animation: ripple 6s ease-out 1s infinite; }
.hero-wave circle:nth-child(3) { animation: ripple 6s ease-out 2s infinite; }
.hero-wave circle:nth-child(4) { animation: ripple 6s ease-out 3s infinite; }
.hero-wave circle:nth-child(5) { animation: ripple 6s ease-out 4s infinite; }

@keyframes ripple {
  0% {
    r: 40;
    opacity: 1;
    stroke-width: 2;
  }
  100% {
    r: 400;
    opacity: 0;
    stroke-width: 0.5;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-content h1 {
  margin-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.hero-content .hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero-content .hero-tagline {
  font-size: 0.95rem;
  opacity: 0.65;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(111, 207, 151, 0.3);
  border-radius: 50%;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 6rem 0;
  background: var(--bg-cream);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 160, 132, 0.15);
}

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.05em;
}

.service-card:nth-child(1) .service-card-placeholder {
  background: linear-gradient(135deg, #1F6F5F 0%, #2FA084 100%);
}
.service-card:nth-child(2) .service-card-placeholder {
  background: linear-gradient(135deg, #2FA084 0%, #6FCF97 100%);
}
.service-card:nth-child(3) .service-card-placeholder {
  background: linear-gradient(135deg, #174f44 0%, #1F6F5F 100%);
}
.service-card:nth-child(4) .service-card-placeholder {
  background: linear-gradient(135deg, #6FCF97 0%, #2FA084 100%);
}

.service-card-body {
  padding: 1.5rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 auto 1.25rem;
  flex: 1;
}

.service-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--green-mid);
  font-weight: 600;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 6rem 0;
  background: var(--bg-section-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green-mid) 100%);
}

.about-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 5rem;
}

.about-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(31, 111, 95, 0.65) 0%,
    rgba(31, 111, 95, 0.15) 50%,
    transparent 100%
  );
  pointer-events: none;
  border-radius: var(--radius-lg);
}

.about-text h2 {
  color: var(--green-dark);
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.credentials-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.credentials-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--green-dark);
}

.credentials-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  padding: 6rem 0;
  background: var(--bg-cream);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--green-mid);
  transform: scale(1.03);
}

.pricing-card.featured .pricing-card-badge {
  position: absolute;
  top: 0;
  right: 1.5rem;
  background: var(--green-mid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

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

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
}

.pricing-card-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.pricing-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pricing-card:hover .pricing-card-image img {
  transform: scale(1.05);
}

.pricing-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.pricing-card:nth-child(1) .pricing-card-placeholder {
  background: linear-gradient(135deg, #1F6F5F 0%, #2FA084 100%);
}
.pricing-card:nth-child(2) .pricing-card-placeholder {
  background: linear-gradient(135deg, #2FA084 0%, #6FCF97 100%);
}
.pricing-card:nth-child(3) .pricing-card-placeholder {
  background: linear-gradient(135deg, #174f44 0%, #1F6F5F 100%);
}
.pricing-card:nth-child(4) .pricing-card-placeholder {
  background: linear-gradient(135deg, #6FCF97 0%, #2FA084 100%);
}

.pricing-card-body {
  padding: 1.5rem 1.5rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing-card h3 {
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.75rem 0 0.25rem;
}

.pricing-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-duration {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.pricing-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 auto;
  flex: 1;
}

.pricing-note {
  text-align: center;
  max-width: 600px;
  margin: 2rem auto 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pricing-note p {
  margin: 0 auto 0.5rem;
}

/* ============================================
   BOOKING
   ============================================ */

.booking {
  padding: 6rem 0;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green-darker) 100%);
  color: var(--white);
}

.booking .section-header h2 {
  color: var(--white);
}

.booking .section-header p {
  color: rgba(255,255,255,0.7);
}

.booking-embed {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
}

.booking-placeholder-text {
  max-width: 500px;
}

.booking-placeholder-text p {
  margin: 0 auto 1.5rem;
}

.booking-placeholder-text .btn-primary {
  display: inline-block;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 6rem 0;
  background: var(--bg-section-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  color: var(--green-dark);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  color: var(--green-darker);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-item-text strong {
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--green-darker);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.85rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.back-to-top:hover {
  color: var(--green-light);
}

.back-to-top svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }

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

  .nav-hamburger {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
