/* ========================================
   Emmanuelle Montgour - Estheticienne Lyon
   Design: mauve, lavender, white, soft tones
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --mauve: #9b6b9e;
  --mauve-dark: #7a4f7d;
  --mauve-light: #c9a0cc;
  --lavender: #e6d5e8;
  --lavender-light: #f3eaf4;
  --lavender-pale: #f9f4fa;
  --white: #ffffff;
  --text-dark: #3a2a3c;
  --text-medium: #5e4660;
  --text-light: #8a7090;
  --gold: #c4a35a;
  --gold-light: #e8d9a8;
  --shadow: 0 4px 20px rgba(155, 107, 158, 0.12);
  --shadow-hover: 0 8px 32px rgba(155, 107, 158, 0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--mauve-dark);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--text-dark);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(155, 107, 158, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.02em;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-light);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Navigation --- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transition: right 0.4s ease;
  padding: 80px 30px 30px;
  z-index: 1000;
}

.main-nav.open {
  right: 0;
}

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.main-nav a {
  display: block;
  padding: 12px 16px;
  font-size: 1.05rem;
  color: var(--text-dark);
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--lavender-light);
  color: var(--mauve);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.nav-overlay.active {
  display: block;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?w=1200&h=800&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(155, 107, 158, 0.75) 0%, rgba(230, 213, 232, 0.6) 50%, rgba(255, 255, 255, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.1);
}

.hero-cta {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 130px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--lavender-pale) 0%, var(--lavender) 100%);
}

.page-hero h1 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--mauve);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(155, 107, 158, 0.3);
}

.btn-primary:hover {
  background: var(--mauve-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(155, 107, 158, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--mauve);
  border: 2px solid var(--mauve);
}

.btn-outline:hover {
  background: var(--mauve);
  color: var(--white);
  transform: translateY(-2px);
}

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

.section-alt {
  background: var(--lavender-pale);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.section-title p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.section-title .divider {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--mauve), var(--mauve-light));
  border-radius: 3px;
  margin: 16px auto 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.service-card-body {
  padding: 24px;
}

.service-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--mauve-dark);
}

.service-card-body p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 14px;
}

.service-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
}

/* --- Prestations Detail --- */
.prestation-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}

.prestation-block:last-child {
  margin-bottom: 0;
}

.prestation-img {
  height: 280px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.prestation-content h2 {
  font-size: 1.5rem;
  color: var(--mauve-dark);
  margin-bottom: 14px;
}

.prestation-content p {
  margin-bottom: 12px;
  color: var(--text-medium);
}

.prestation-content ul {
  margin: 12px 0;
  padding-left: 0;
}

.prestation-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  color: var(--text-medium);
}

.prestation-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mauve-light);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.price-table th,
.price-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--lavender);
}

.price-table th {
  background: var(--lavender-pale);
  color: var(--mauve-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.price-table td {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.price-table td:last-child {
  font-weight: 600;
  color: var(--gold);
  text-align: right;
}

/* --- About --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.about-photo {
  height: 350px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center top;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 1.5rem;
  color: var(--mauve-dark);
  margin-bottom: 14px;
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-medium);
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

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

.value-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: var(--lavender-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.value-card h3 {
  font-size: 1.1rem;
  color: var(--mauve-dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 3rem;
  color: var(--lavender);
  line-height: 1;
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-medium);
  margin-bottom: 14px;
  padding-top: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--mauve-dark);
  font-size: 0.9rem;
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--mauve) 0%, var(--mauve-light) 100%);
  padding: 60px 20px;
  color: var(--white);
}

.cta-banner h2 {
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1rem;
  margin-bottom: 28px;
  opacity: 0.9;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--mauve);
}

.cta-banner .btn-primary:hover {
  background: var(--lavender-pale);
  color: var(--mauve-dark);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--lavender);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--mauve-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--lavender-pale);
  border-radius: var(--radius);
  padding: 24px;
}

.info-card h3 {
  font-size: 1.05rem;
  color: var(--mauve-dark);
  margin-bottom: 8px;
}

.info-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 280px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--lavender);
  margin-bottom: 4px;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 40px 18px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--mauve);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--mauve);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '-';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer-inner {
  padding-bottom: 18px;
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* --- Footer --- */
.site-footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 36px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-col a:hover {
  color: var(--mauve-light);
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--mauve-light);
}

.footer-links-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.8rem;
}

.footer-links-inline a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-links-inline span {
  color: rgba(255, 255, 255, 0.2);
}

/* --- 404 Page --- */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 80px;
  background: var(--lavender-pale);
}

.page-404 h1 {
  font-size: 5rem;
  color: var(--mauve-light);
  margin-bottom: 12px;
}

.page-404 h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.page-404 p {
  color: var(--text-medium);
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--mauve);
}

.breadcrumb span {
  margin: 0 6px;
}

/* --- Responsive --- */
@media (min-width: 600px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .page-hero h1 {
    font-size: 2.4rem;
  }

  .section {
    padding: 90px 0;
  }

  .section-title h2 {
    font-size: 2.1rem;
  }

  .prestation-block {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .prestation-block.reverse .prestation-img {
    order: 2;
  }

  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .main-nav a {
    font-size: 0.92rem;
    padding: 8px 14px;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (min-width: 1100px) {
  .hero {
    min-height: 92vh;
  }

  .container {
    padding: 0 30px;
  }
}
