/* ==========================================================================
   Le Salon — proposition de charte (maquette)
   Palette tirée de la photo de référence : velours bordeaux, miroirs patinés,
   plafond bleu nuit, lampes laiton, moquette léopard.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --noir: #100B09;        /* Noir fumé — fond principal */
  --noir-2: #18110E;      /* Noir fumé relevé — surfaces */
  --nuit: #141A27;        /* Bleu nuit — plafond, second fond */
  --nuit-2: #1C2435;
  --velours: #5A1418;     /* Velours bordeaux — banquettes */
  --velours-2: #722026;
  --laiton: #C9A35F;      /* Laiton patiné — filets, logo, boutons */
  --laiton-2: #E3C68A;
  --ambre: #F2A74B;       /* Lueur des lampes — petites touches seulement */
  --ivoire: #F0E6D4;      /* Texte */
  --ivoire-2: rgba(240, 230, 212, 0.74);
  --ivoire-3: rgba(240, 230, 212, 0.5);
  --cognac: #A96F3A;      /* Fauteuils cognac, léopard caramel */

  --line: rgba(201, 163, 95, 0.24);
  --line-2: rgba(201, 163, 95, 0.55);

  /* Typographies */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", "Libre Bodoni", Georgia, serif;
  --f-text: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  /* Mouvement */
  --ease: cubic-bezier(0.22, 0.8, 0.18, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);

  /* Mise en page */
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(5.5rem, 11vw, 10rem);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--noir);
  color: var(--ivoire-2);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--velours-2); color: var(--ivoire); }

:focus-visible {
  outline: 1px solid var(--ambre);
  outline-offset: 4px;
}

/* Grain de pellicule (fixe, ne gêne pas le scroll) */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Typographie ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--laiton);
}
.eyebrow::before,
.eyebrow--both::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h2 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 4.8vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ivoire);
  text-wrap: balance;
}
.h2 em, .h3 em { font-style: italic; color: var(--laiton-2); }

.h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--ivoire);
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ivoire-2);
}

.caps {
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Mise en page ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }

/* ---------- Logo ---------- */

.lamp { display: block; overflow: visible; }
.lamp .glow { transition: opacity 0.6s var(--ease); }

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  color: var(--ivoire);
  line-height: 1;
}
.wordmark__name {
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* compense l'approche pour centrer optiquement */
  text-transform: uppercase;
  white-space: nowrap;
}
.wordmark__city {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.32em;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  text-transform: uppercase;
  color: var(--laiton);
}
.wordmark__city::before,
.wordmark__city::after {
  content: "";
  width: 1.8em;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* ---------- Boutons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ivoire);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.25rem;
  padding: 0.35rem 0.4rem 0.35rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
              color 0.5s var(--ease), box-shadow 0.6s var(--ease), transform 0.25s var(--ease-spring);
}
.btn:active { transform: scale(0.98); }
.btn__icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(201, 163, 95, 0.14);
  transition: transform 0.55s var(--ease-spring), background-color 0.5s var(--ease);
}
.btn__icon svg { width: 0.95rem; height: 0.95rem; }
.btn:hover .btn__icon { transform: translate(3px, -1px) scale(1.05); }
.btn:hover { border-color: var(--laiton); box-shadow: 0 0 36px -10px rgba(242, 167, 75, 0.55); }

.btn--solid {
  --btn-bg: var(--laiton);
  --btn-fg: var(--noir);
  --btn-bd: var(--laiton);
}
.btn--solid .btn__icon { background: rgba(16, 11, 9, 0.12); }
.btn--solid:hover { --btn-bg: var(--laiton-2); }

.btn--plain {
  padding: 0.35rem 1.5rem;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.3rem;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--f-text);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivoire);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease);
}
.link:hover { color: var(--laiton-2); border-color: var(--laiton-2); }

/* ---------- Motifs ---------- */

.leopard-tonal { background-image: url("leopard-tonal.svg"); background-size: 300px; }
.leopard-caramel { background-color: var(--cognac); background-image: url("leopard-caramel.svg"); background-size: 220px; }

/* Cadre à moulure : double filet laiton autour d'une image */
.moulure {
  position: relative;
  padding: 10px;
  border: 1px solid var(--line-2);
}
.moulure::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.moulure img { width: 100%; height: 100%; object-fit: cover; }

/* Arche : forme des miroirs et des portes */
.arche { border-radius: 999px 999px 0 0; overflow: hidden; }

/* ---------- Apparition au scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  filter: blur(6px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease), filter 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

@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;
  }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
