/* =============================================================
 * base.css — jetons, remise à zéro, typographie, boutons
 *
 * La palette est tirée des photos du salon : murs d'argile,
 * arches de plâtre chaud, velours terracotta, crème.
 * ============================================================= */

:root {
  /* surfaces */
  --sand:       #F4EEE8;
  --cream:      #FBF8F5;
  --sand-deep:  #EAE0D6;
  --espresso:   #241D19;
  --espresso-2: #2E2621;

  /* encres */
  --ink:    #241D19;
  --ink-2:  #574940;
  --ink-3:  #8B7A6E;
  --on-dark:    #F2EAE2;
  --on-dark-2:  #B7A79A;

  /* accents */
  --clay:  #B07A5C;
  --rose:  #C9A091;
  --amber: #D9A05B;

  /* filets */
  --line:       rgba(36, 29, 25, 0.13);
  --line-soft:  rgba(36, 29, 25, 0.07);
  --line-dark:  rgba(242, 234, 226, 0.16);

  /* typographie */
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* rythme */
  --gut: clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5rem, 12vw, 11rem);
  --maxw: 1440px;

  /* mouvement */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Pas d'`overflow-x:hidden` sur body : Safari en fait un conteneur
   de défilement et le défilement vertical de la page en souffre.
   La mise en page ne déborde pas — vérifié de 320 à 1920 px. */

body.is-booking { overflow: hidden; }

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

/* Une classe ne doit jamais l'emporter sur l'attribut hidden :
   le menu mobile, la barre d'action et le tunnel en dépendent. */
[hidden] { display: none !important; }

figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1.5px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  padding: 0.9rem 1.4rem; background: var(--espresso); color: var(--on-dark);
}
.skip:focus { left: 0; }

/* =============================================================
 * TYPOGRAPHIE
 * ============================================================= */

.eyebrow {
  font-size: 0.68rem; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3);
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.015em; margin-top: 0.7em;
}
.h2 em { font-style: italic; }

.lede {
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.5; color: var(--ink-2); margin-top: 1.5rem; max-width: 34ch;
}

.body { color: var(--ink-2); margin-top: 1.1rem; max-width: 46ch; }

/* étiquette « démo », partout où la maquette doit rester honnête */
.tag {
  display: inline-block; padding: 0.18em 0.6em; margin-right: 0.5em;
  border: 1px solid var(--line); border-radius: 100px;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); vertical-align: 0.1em;
}
.tag--light { border-color: var(--line-dark); color: var(--on-dark-2); }

/* =============================================================
 * BOUTONS
 * ============================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 1.05em 2.1em;
  border: 1px solid transparent; border-radius: 100px;
  background: none;
  font-size: 0.7rem; font-weight: 400; letter-spacing: 0.17em;
  text-transform: uppercase; white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), transform .4s var(--ease), opacity .3s var(--ease);
}
.btn:active { transform: scale(0.985); }

.btn--dark  { background: var(--espresso); color: var(--on-dark); }
.btn--dark:hover  { background: var(--clay); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(36, 29, 25, 0.04); }
.btn--line  { border-color: var(--line); color: var(--ink); }
.btn--line:hover { background: var(--espresso); border-color: var(--espresso); color: var(--on-dark); }
.btn--light { background: var(--sand); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line-light { border-color: var(--line-dark); color: var(--on-dark); }
.btn--line-light:hover { background: rgba(242, 234, 226, 0.1); }

.btn[disabled] { opacity: 0.34; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }

/* =============================================================
 * APPARITIONS
 * ============================================================= */

.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .9s var(--ease-out) var(--delay, 0ms),
              transform .9s var(--ease-out) var(--delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }
