/* ================================================================
   Beauty Studio — Eva & Shana
   Palette nude rosé / terracotta / crème, girly chaleureux vintage
   ================================================================ */

:root {
  /* Palette (tweakable) */
  --cream:        #F7F1E9;   /* Fond principal, crème plus clair */
  --cream-deep:   #F0E5D5;
  --blush:        #E8D3C7;   /* Rosé nude plus doux */
  --blush-soft:   #F3E1D5;
  --terracotta:   #B8725C;   /* Accent chaud adouci */
  --terracotta-d: #94553F;
  --mocha:        #4A362C;   /* Moins sombre que l'original */
  --mocha-soft:   #6B5145;
  --ink:          #2F221B;
  --line:         rgba(60, 42, 34, 0.16);
  --line-soft:    rgba(60, 42, 34, 0.08);
  --white:        #FFFDFA;

  /* Typo */
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --f-body:    "Jost", "Inter", -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rythme */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 40px;
  --r-pill: 999px;

  --shadow-soft: 0 20px 60px -30px rgba(60, 42, 34, 0.25);
  --shadow-card: 0 30px 80px -40px rgba(60, 42, 34, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mocha);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

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

.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }

h1 { font-size: clamp(56px, 8vw, 120px); }
h2 { font-size: clamp(40px, 5vw, 72px); }
h3 { font-size: clamp(28px, 3vw, 40px); }

.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 14px;
  margin-bottom: 3px;
}

.italic { font-style: italic; }

/* ---------- Layout ---------- */

.container {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}

.container-wide {
  width: min(1440px, 100% - 48px);
  margin-inline: auto;
}

.stack-sm > * + * { margin-top: 12px; }
.stack-md > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 32px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 237, 228, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0;
  gap: 32px;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo .ampersand {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
  padding: 0 2px;
}

.nav-logo small {
  display: block;
  font-family: var(--f-body);
  font-size: 9px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mocha-soft);
  margin-top: 2px;
  font-weight: 400;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover { color: var(--terracotta); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--terracotta);
}

.nav-cta {
  justify-self: end;
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-mobile-toggle { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: all 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--mocha);
  color: var(--cream);
}
.btn-primary:hover { background: var(--terracotta); transform: translateY(-1px); }

.btn-terra {
  background: var(--terracotta);
  color: var(--cream);
}
.btn-terra:hover { background: var(--terracotta-d); }

.btn-ghost {
  background: transparent;
  color: var(--mocha);
  border: 1px solid var(--mocha);
}
.btn-ghost:hover { background: var(--mocha); color: var(--cream); }

.btn-outline-blush {
  background: transparent;
  color: var(--mocha);
  border: 1px solid var(--line);
}
.btn-outline-blush:hover { background: var(--blush); }

.btn-link {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  color: var(--mocha);
  display: inline-block;
}
.btn-link:hover { color: var(--terracotta); }

.btn .arrow { display: inline-block; transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Placeholder imagery ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(60, 42, 34, 0.04) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, var(--blush-soft), var(--blush));
  overflow: hidden;
  color: var(--mocha-soft);
  display: grid;
  place-items: center;
}

.ph::after {
  content: attr(data-label);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.55;
  padding: 4px 10px;
  background: rgba(245, 237, 228, 0.7);
  border-radius: 2px;
}
.ph[data-label=""]::after, .ph:not([data-label])::after { display: none; }

.ph.ph-mocha {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 253, 250, 0.04) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, var(--mocha-soft), var(--mocha));
  color: var(--cream);
}
.ph.ph-mocha::after { background: rgba(60, 42, 34, 0.5); color: var(--cream); }

.ph.ph-terra {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 253, 250, 0.06) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, var(--terracotta), var(--terracotta-d));
  color: var(--cream);
}
.ph.ph-terra::after { background: rgba(60, 42, 34, 0.35); color: var(--cream); }

.ph.ph-cream {
  background:
    repeating-linear-gradient(135deg,
      rgba(60, 42, 34, 0.04) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, var(--cream), var(--cream-deep));
}

/* Real imagery / video inside .ph cells */
.ph > img,
.ph > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph:has(> img), .ph:has(> video) { background: var(--blush-soft); }
.ph:has(> img)::after, .ph:has(> video)::after { display: none; }

/* ---------- Sections ---------- */

section { padding: clamp(80px, 10vw, 140px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.section-head .left { max-width: 560px; }
.section-head h2 { margin-top: 16px; }

/* ---------- Footer ---------- */

footer {
  background: var(--mocha);
  color: var(--cream);
  padding: 80px 0 40px;
}

footer .eyebrow { color: var(--blush); }

footer a { color: var(--cream); opacity: 0.8; }
footer a:hover { opacity: 1; color: var(--blush); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 253, 250, 0.12);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.7;
  letter-spacing: 0.08em;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 18px;
}
.footer-logo .ampersand { color: var(--blush); font-style: italic; }

footer h4 {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--blush);
  font-weight: 400;
}

footer ul { list-style: none; }
footer li { font-size: 14px; margin-bottom: 10px; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-inner > nav { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; gap: 16px; }
  .nav-mobile-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

.nav-mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--mocha);
  transition: background 0.2s;
}
.nav-mobile-toggle:hover { background: var(--blush-soft); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 120;
  padding: 80px 32px 40px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.open { display: flex; animation: drawerIn 0.3s ease; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(6%); } to { opacity: 1; transform: none; } }

.mobile-drawer .drawer-close {
  position: absolute; top: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream-deep); display: grid; place-items: center;
}
.mobile-drawer .drawer-logo {
  font-family: var(--f-display); font-size: 32px; line-height: 1; margin-bottom: 40px;
}
.mobile-drawer .drawer-logo .amp { color: var(--terracotta); font-style: italic; }
.mobile-drawer ul {
  list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 40px;
}
.mobile-drawer ul a {
  display: block; padding: 18px 0; border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display); font-size: 28px;
}
.mobile-drawer ul a.active { color: var(--terracotta); font-style: italic; }
.mobile-drawer .drawer-ctas { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mobile-drawer .drawer-ctas .btn { width: 100%; justify-content: center; }
.mobile-drawer .drawer-contact { margin-top: 32px; font-size: 13px; color: var(--mocha-soft); }
.mobile-drawer .drawer-contact a {
  display: block; color: var(--mocha); border-bottom: 1px solid var(--line); padding: 8px 0;
}

@media (max-width: 1080px) {
  .nav-mobile-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Utility ---------- */

.divider-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--terracotta);
  margin: 40px auto;
}
.divider-ornament::before,
.divider-ornament::after {
  content: "";
  width: 50px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.6;
}
.divider-ornament span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
}

/* Fade in on load */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.9s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes fadeIn { to { opacity: 1; transform: none; } }
.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }
.delay-4 { animation-delay: 0.32s; }
.delay-5 { animation-delay: 0.4s; }

/* ---------- Modal (Treatwell popup) ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(60, 42, 34, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: backdropIn 0.3s ease;
}
.modal-backdrop.open { display: flex; }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--cream);
  border-radius: var(--r-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-card);
  position: relative;
  animation: modalIn 0.4s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream-deep);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--blush); }

.modal-header {
  padding: 48px 48px 28px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.modal-header h3 { margin-bottom: 10px; }
.modal-header p { color: var(--mocha-soft); font-size: 15px; }

.modal-body { padding: 40px 48px 48px; }

@media (max-width: 600px) {
  .modal-header, .modal-body { padding-inline: 28px; }
}
