/* Sôma Wellness: waiting page. Values come from Figma "Proposition B" (1440px desktop). */

/* Title font: Instrument Serif (OFL), single regular weight */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --creme: #f7e9ca;
  --creme-clair: #fbf5e6;
  --blanc: #ffffff;
  --brun: #463c29;
  --brun-profond: #382f20;
  --orange: #f5995e;
  --olive: #738050;

  --font-title: 'Instrument Serif', Georgia, serif;
  --font-serif:
    'Instrument Serif', Georgia, serif; /* italic accents, prices, contact details */
  --font-body:
    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(24px, 5.5vw, 80px);
  --wave-h: clamp(40px, 6.25vw, 90px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
ul,
address {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}
address {
  font-style: normal;
}
a {
  color: inherit;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--brun);
  background: var(--creme-clair);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-synthesis: none;
}
h2 {
  font-size: clamp(52px, 6.67vw, 96px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.body-l {
  font-size: 18px;
  line-height: 29px;
}
.leaf {
  width: 60px;
  height: 48px;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .desktop {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cta--center {
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/26px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--orange);
  color: var(--brun);
}
.btn--primary:hover {
  background: #f7a872;
}
.btn--glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--blanc);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.24);
}
.btn--outline {
  border-color: rgba(70, 60, 41, 0.5);
  color: var(--brun);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--brun);
}

@media (max-width: 720px) {
  .cta {
    flex-direction: column;
    align-self: stretch;
  }
  .btn {
    width: 100%;
  }
}

/* ---------- Shared: full-bleed photo + waves ---------- */
.cover,
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover img {
  object-fit: cover;
}
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--wave-h);
  pointer-events: none;
  z-index: 2;
}
.wave--top {
  top: -1px;
}
.wave--bottom {
  bottom: -1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(720px, 100svh, 980px);
  display: flex;
  color: var(--blanc);
  background: var(--brun-profond);
}
.hero .cover img {
  object-position: 50% 56%;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(56, 47, 32, 0.55) 0%,
    rgba(56, 47, 32, 0.3) 35%,
    rgba(56, 47, 32, 0.45) 70%,
    rgba(56, 47, 32, 0.7) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px var(--gutter) calc(var(--wave-h) + 80px);
  text-align: center;
}
.hero .logo {
  width: clamp(180px, 15.3vw, 220px);
}
.hero__message {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.hero__soon {
  font: italic 300 26px/29px var(--font-serif);
  color: var(--creme);
}
.hero h1 {
  font-size: clamp(60px, 10.4vw, 150px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 640px;
  font-size: 18px;
  line-height: 29px;
  color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 720px) {
  .hero__content {
    padding-top: 28px;
  }
  .hero__message {
    gap: 24px;
    width: 100%;
  }
}

/* ---------- Respiration ---------- */
.respiration {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding: clamp(64px, 9vw, 130px) var(--gutter) clamp(96px, 13.2vw, 190px);
  text-align: center;
}
.respiration .body-l {
  max-width: 660px;
  color: rgba(70, 60, 41, 0.82);
}
.signature {
  font: italic 300 24px/26px var(--font-serif);
  color: var(--olive);
}

/* ---------- Panorama (values) ---------- */
.panorama {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: calc(var(--wave-h) + 64px) clamp(24px, 8.3vw, 120px);
  color: var(--blanc);
  background: var(--brun-profond);
}
.panorama::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(56, 47, 32, 0.4) 0%,
    rgba(56, 47, 32, 0.62) 50%,
    rgba(56, 47, 32, 0.5) 100%
  );
}
.values {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 44px;
}
.values li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}
.values h3 {
  font-size: clamp(48px, 4.44vw, 64px);
  line-height: 1;
}
.values p {
  max-width: 312px;
  font-size: 17px;
  line-height: 28px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
  .values {
    grid-template-columns: 1fr;
  }
  .values li {
    padding: 32px 0;
  }
  .values li + li {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }
}

/* ---------- Prestations ---------- */
.prestations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: clamp(56px, 7.6vw, 110px) var(--gutter)
    calc(var(--wave-h) + clamp(56px, 7vw, 100px));
  background: var(--olive);
  color: var(--blanc);
  text-align: center;
}
.prestations h2 {
  font-size: clamp(48px, 5.83vw, 84px);
}
.prestations > .body-l {
  max-width: 600px;
  color: var(--creme-clair);
}
.soins {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 56px 0 48px;
}
.soins li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 26px;
}
.soins li + li {
  border-left: 1px solid rgba(247, 233, 202, 0.35);
}
.soins h3 {
  font-size: 28px;
  line-height: 32px;
}
.soins p {
  font-size: 14px;
  line-height: 22px;
  color: var(--creme-clair);
}
.soins .price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font: 300 60px/60px var(--font-serif);
  color: var(--orange);
}
.soins .price small {
  font: 400 14px/22px var(--font-body);
  color: var(--creme-clair);
}
.soins .duration {
  color: var(--creme-clair);
}
.note {
  max-width: 900px;
  font: italic 300 24px/30px var(--font-serif);
  color: var(--creme);
}

@media (max-width: 1100px) {
  .soins {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }
  .soins li:nth-child(odd) {
    border-left: 0;
  }
}
@media (max-width: 600px) {
  .soins {
    grid-template-columns: 1fr;
    padding-top: 24px;
    row-gap: 0;
  }
  .soins li {
    padding: 32px 0;
  }
  .soins li + li {
    border-left: 0;
    border-top: 1px solid rgba(247, 233, 202, 0.35);
  }
}

/* ---------- Rendez-vous ---------- */
.rdv {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 900px;
}
.rdv__photo {
  position: relative;
  overflow: hidden;
}
.rdv__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rdv__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 150px clamp(24px, 7.6vw, 110px) 120px;
}
.rdv .body-l {
  max-width: 500px;
  color: rgba(70, 60, 41, 0.82);
}
.rdv address {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rdv address a {
  text-decoration: none;
}
.rdv address a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.rdv__phone {
  font: 500 clamp(42px, 4vw, 58px)/1.1 var(--font-serif);
  color: var(--olive);
}
.rdv__mail {
  font: 500 clamp(22px, 2.1vw, 30px)/1.1 var(--font-serif);
  overflow-wrap: anywhere;
}
.rdv__address {
  color: rgba(70, 60, 41, 0.75);
}

@media (max-width: 900px) {
  .rdv {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .rdv__photo {
    height: clamp(380px, 70vw, 560px);
  }
  .rdv__content {
    padding: 64px var(--gutter) 80px;
    gap: 24px;
  }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 72px var(--gutter) 56px;
  background: var(--brun-profond);
  color: var(--creme);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.footer .logo {
  width: 180px;
}
.footer__legal {
  max-width: 640px;
  color: rgba(247, 233, 202, 0.6);
}

/* ---------- Contact dialog ---------- */
.contact {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--creme-clair);
  color: var(--brun);
}
.contact::backdrop {
  background: rgba(56, 47, 32, 0.6);
}
.contact__form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 5vw, 48px);
}
.contact h2 {
  font-size: clamp(40px, 6vw, 56px);
  padding-right: 40px;
}
.contact__intro {
  font-size: 14px;
  line-height: 22px;
  color: rgba(70, 60, 41, 0.75);
}
.contact__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brun);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.contact__close:hover {
  background: rgba(70, 60, 41, 0.08);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.contact label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.contact input:not([type='checkbox']),
.contact textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(70, 60, 41, 0.3);
  border-radius: 12px;
  background: var(--blanc);
  color: var(--brun);
  font: 400 16px/24px var(--font-body);
}
.contact textarea {
  resize: vertical;
}
.contact input:focus,
.contact textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 0;
  border-color: transparent;
}
.contact input[aria-invalid='true'],
.contact textarea[aria-invalid='true'] {
  border-color: #b3401a;
}
.contact .consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 22px;
}
.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--olive);
}
.contact .btn {
  align-self: flex-start;
}
.contact__status:empty {
  display: none;
}
.contact__status {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 22px;
  background: rgba(115, 128, 80, 0.15);
}
.contact__status.is-error {
  background: rgba(179, 64, 26, 0.12);
  color: #8a3214;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
