/* ============================================================
   ATELIER SOMA — TEMPLATE BIEN-ÊTRE
   Aesthetic: editorial spa, warm minimalism, serif elegance.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Couleurs */
  --bg:        #FAF7F2;
  --surface:   #F0EAE0;
  --surface-2: #E5DFD4;
  --ink:       #2A2520;
  --ink-soft:  #5A4F45;
  --muted:     #8B7E6F;
  --accent:    #C9A062;
  --accent-dk: #9E7A3F;
  --line:      rgba(42, 37, 32, 0.12);

  /* Typographie */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Outfit', 'Helvetica Neue', system-ui, sans-serif;

  /* Espacements */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(80px, 12vw, 140px);

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: var(--section-y) 0;
  position: relative;
}
.section__head {
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section__head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 28px;
}
.section__title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.section__lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.6;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.4s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--large {
  padding: 20px 40px;
  font-size: 16px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--gutter);
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 14px;
  font-weight: 400;
}
.nav__links a {
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--accent); }
.nav__cta { font-size: 14px; padding: 11px 22px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: 130px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero__grid {
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.hero__text { animation: fadeUp 1s var(--ease) 0.1s both; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.hero__eyebrow::before {
  content: '◦';
  margin-right: 10px;
  color: var(--accent);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
  font-style: italic;
}
.hero__lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 40px;
  line-height: 1.55;
}
.hero__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  animation: fadeIn 1.2s var(--ease) 0.3s both;
}
.hero__image {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  box-shadow: 0 30px 80px -30px rgba(42, 37, 32, 0.35);
  position: relative;
}
.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(42, 37, 32, 0.15));
  border-radius: 4px;
}
.hero__badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--bg);
  padding: 22px 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 40px -10px rgba(42, 37, 32, 0.2);
}
.hero__badge-num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
}
.hero__badge-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* MARQUEE */
.hero__marquee {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  white-space: nowrap;
}
.hero__marquee-track {
  display: inline-flex;
  gap: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  animation: marquee 40s linear infinite;
}
.hero__marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SERVICES ---------- */
.services { background: var(--surface); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.4s var(--ease);
  position: relative;
  min-height: 240px;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.service-card:hover { background: var(--bg); }
.service-card:hover .service-card__cta { color: var(--accent); transform: translateX(4px); }
.service-card:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.service-card__name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.service-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--accent);
  white-space: nowrap;
}
.service-card__duration {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-card__desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.service-card__cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  align-self: flex-start;
}

/* ---------- ABOUT ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 4/5;
}
.about__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  filter: grayscale(0.3);
  transition: filter 0.6s var(--ease);
}
.about__visual:hover .about__image { filter: grayscale(0); }
.about__quote {
  position: absolute;
  bottom: 24px;
  right: -40px;
  background: var(--ink);
  color: var(--bg);
  padding: 28px 32px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.3;
  max-width: 280px;
  border-radius: 4px;
}
.about__bio { margin: 28px 0 36px; }
.about__bio p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.about__credentials {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.about__credentials li {
  padding: 12px 0;
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 14px;
}
.about__credentials li::before {
  content: '◦';
  color: var(--accent);
  font-size: 18px;
}

/* ---------- GALLERY ---------- */
.gallery { background: var(--surface); padding-bottom: 0 !important; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery__item {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.6s var(--ease);
  cursor: pointer;
}
.gallery__item:nth-child(2n) { aspect-ratio: 4/5; transform: translateY(40px); }
.gallery__item:hover { transform: translateY(-6px); }
.gallery__item:nth-child(2n):hover { transform: translateY(34px); }

/* ---------- SHOWCASE (photo pleine largeur) ---------- */
.showcase {
  position: relative;
  width: 100%;
  margin: 0;
  background: var(--surface);
  padding-top: 60px;
  padding-bottom: 0;
}
.showcase__image {
  width: 100%;
  height: clamp(380px, 60vw, 720px);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.showcase__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42, 37, 32, 0.55));
}
.showcase__caption {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--bg);
  text-align: center;
  padding: 0 24px;
  letter-spacing: 0.01em;
  z-index: 2;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.testimonial-card {
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px -20px rgba(42, 37, 32, 0.15);
}
.testimonial-card__stars {
  color: var(--accent);
  letter-spacing: 4px;
  font-size: 14px;
}
.testimonial-card__text {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
  flex: 1;
}
.testimonial-card__author {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 14px;
}
.testimonial-card__name { font-weight: 500; color: var(--ink); }
.testimonial-card__context {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

/* ---------- POLICY ---------- */
.policy { background: var(--surface); }
.policy__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.policy-card {
  background: var(--bg);
  padding: 32px 30px;
  border-radius: 4px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.policy-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.policy-card__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 38px;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.policy-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.policy-card__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ---------- BOOKING ---------- */
.booking {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.booking__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.booking .section__eyebrow { color: rgba(250, 247, 242, 0.5); }
.booking .section__title { color: var(--bg); }
.booking .section__title em { color: var(--accent); }
.booking .section__lede { color: rgba(250, 247, 242, 0.7); margin: 0 auto 40px; }
.booking__cta { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.booking__cta .btn--primary {
  background: var(--bg);
  color: var(--ink);
}
.booking__cta .btn--primary:hover {
  background: var(--accent);
  color: var(--bg);
}
.booking__alt {
  font-size: 14px;
  color: rgba(250, 247, 242, 0.6);
}
.booking__alt a {
  color: var(--bg);
  border-bottom: 1px solid rgba(250, 247, 242, 0.3);
}

/* ---------- CONTACT ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.contact__block { margin-bottom: 36px; }
.contact__block h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.contact__block p, .contact__block a {
  font-size: 18px;
  color: var(--ink);
  line-height: 1.55;
}
.contact__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent) !important;
  font-size: 15px !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
}
.contact__link:hover { color: var(--accent-dk) !important; }
.contact__hours li {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.contact__hours li:last-child { border-bottom: none; }
.contact__hours li.closed { color: var(--muted); }
.contact__social {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.contact__social a {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px !important;
  transition: all 0.3s var(--ease);
}
.contact__social a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--surface);
  padding: 50px 0 40px;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__name {
  font-family: var(--font-display);
  font-size: 20px;
}
.footer__tagline { font-size: 13px; color: var(--muted); }
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero__visual { max-width: 480px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 480px; margin: 0 auto; }
  .about__quote { right: -10px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .gallery__grid { grid-template-columns: 1fr; gap: 14px; }
  .gallery__item:nth-child(2n) { transform: none; }
  .gallery__item:nth-child(2n):hover { transform: translateY(-6px); }
  .about__quote {
    position: static;
    margin-top: 16px;
    max-width: 100%;
  }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- ACCESSIBILITY ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__marquee-track { animation: none; }
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
