/* =========================================
   Beauté Shanghai — Feuille de styles
   Palette : Taupe #4A3728 + Sauge #8FAF8F
   Polices : EB Garamond + Outfit
   ========================================= */

:root {
  --navy:       #4A3728;
  --navy-dark:  #2E2018;
  --gold:       #8FAF8F;
  --gold-light: #AECAAE;
  --cream:      #F8F4EE;
  --cream-dark: #EDE5D4;
  --dark:       #1A1008;
  --text:       #2E2018;
  --text-light: #7A6A58;
  --white:      #FFFFFF;

  --serif:      'EB Garamond', Georgia, serif;
  --sans:       'Outfit', system-ui, sans-serif;

  --radius:     6px;
  --radius-lg:  12px;
  --shadow:     0 4px 24px rgba(74,55,40,0.10);
  --shadow-lg:  0 8px 48px rgba(74,55,40,0.18);
  --transition: 0.3s ease;

  --container:  1120px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
em { font-style: italic; color: var(--gold); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- CONTAINER ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,175,55,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-header {
  padding: 0.6rem 1.4rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-header:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-footer {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  font-size: 0.8rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-footer:hover { background: var(--gold-light); }

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---- SECTION BACKGROUNDS ---- */
.section-dark { background: var(--navy-dark); color: var(--white); }
.section-cream { background: var(--cream); }

/* ---- SECTION HEADER ---- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: var(--gold-light); }
.section-intro {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 1rem auto 0;
}
.section-intro.light { color: rgba(255,255,255,0.65); }

/* ---- HEADER ---- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: var(--navy-dark);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.logo-main {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
#nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
#nav a:hover, #nav a.active { color: var(--white); }
#nav a:hover::after, #nav a.active::after { width: 100%; }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(143,175,143,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(74,55,40,0.5) 0%, transparent 50%),
    linear-gradient(135deg, var(--dark) 0%, #2E2018 50%, #1A1008 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(143,175,143,0.07) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding: 0.35rem 1rem;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 100px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

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

.hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 4rem auto 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat {
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(255,255,255,0.03);
  transition: background var(--transition);
}
.stat:hover { background: rgba(212,175,55,0.08); }
.stat-number {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-star { font-size: 1.2rem; }
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- ABOUT ---- */
.section-about { padding: 6rem 0; }

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

.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy-dark);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid rgba(212,175,55,0.2);
}
.about-badge span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.about-badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
}

.about-text { padding-right: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--text-light); }

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}
.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.value-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.value-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.value-item span { font-size: 0.875rem; color: var(--text-light); }

/* ---- SOINS ---- */
.section-soins { padding: 6rem 0; }

.soins-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.soin-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.soin-card:hover {
  background: rgba(212,175,55,0.06);
  border-color: rgba(212,175,55,0.25);
  transform: translateY(-4px);
}

.soin-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,175,55,0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.soin-icon svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.soin-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
.soin-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.soin-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.3);
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
}

/* ---- AVIS ---- */
.section-avis { padding: 6rem 0; }

.avis-global {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.avis-stars {
  display: flex;
  gap: 3px;
}
.avis-stars svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}
.avis-stars .star-half { opacity: 0.45; }
.avis-score {
  font-size: 0.875rem;
  color: var(--text-light);
  font-weight: 500;
}

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

.avis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  transition: box-shadow var(--transition), transform var(--transition);
}
.avis-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.avis-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.avis-avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.avis-header strong { display: block; font-weight: 600; font-size: 0.95rem; }
.avis-stars-small {
  display: flex;
  gap: 2px;
  margin-top: 3px;
}
.avis-stars-small svg {
  width: 11px;
  height: 11px;
  color: var(--gold);
}
.avis-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
  font-style: italic;
}

/* ---- RENDEZ-VOUS ---- */
.section-rdv { padding: 6rem 0; }
#booking-rdv-inline {
  margin-top: 2rem;
  min-height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---- CONTACT ---- */
.section-contact { padding: 6rem 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.contact-item span, .contact-item a {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.contact-item a:hover { color: var(--navy); text-decoration: underline; }

.contact-map {
  margin-top: 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- FORM ---- */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--cream-dark);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
.form-row .form-group { margin-bottom: 1.25rem; }

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(44,47,107,0.1);
  background: var(--white);
}
input.error, select.error, textarea.error {
  border-color: #C0392B;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
textarea { resize: vertical; min-height: 120px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.form-check input { width: auto; margin-top: 3px; accent-color: var(--navy); }
.form-check label {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-light);
  cursor: pointer;
}
.form-check label a { color: var(--navy); text-decoration: underline; }

.form-message {
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  display: none;
}
.form-message.success {
  display: block;
  background: #EAF7EE;
  color: #1E6B39;
  border: 1px solid #A8D8B9;
}
.form-message.error {
  display: block;
  background: #FDEDEC;
  color: #C0392B;
  border: 1px solid #F1AEA8;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 0;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
}
.footer-logo {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.footer-brand a { color: var(--gold); }
.footer-brand a:hover { text-decoration: underline; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links strong {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-hours strong {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.footer-hours span { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  width: 100%;
}
.footer-bottom a { color: var(--gold); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---- FADE-IN ANIMATION ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-image img { height: 380px; }
  .about-badge { bottom: 1rem; right: 1rem; }
  .soins-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .burger { display: flex; }
  #nav {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(280px, 80vw);
    background: var(--navy-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right var(--transition);
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  }
  #nav.open { right: 0; }
  #nav a { font-size: 1.1rem; }
  .btn-header { display: none; }

  .soins-grid { grid-template-columns: 1fr; }
  .avis-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 7rem 1.25rem 3rem; }
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  section { padding: 4rem 0; }
  .about-image img { height: 280px; }
}
