/* ============================================
   BYA — Institut de beauté
   BASE — variables, reset, typographie, boutons, grain, logo
   ============================================ */

:root {
  --ivory: #fbf6f0;
  --cream: #f4ebe1;
  --sand: #e8dcc8;
  --taupe: #cbb8a4;
  --mist: #d4c4b0;
  --bronze: #8b6244;
  --copper: #a67c52;
  --rosegold: #c4a484;
  --gold: #c9a882;
  --gold-bright: #e0c7a8;
  --espresso: #241710;
  --ink: #3a271c;
  --muted: #7a6558;
  --line: rgba(139, 98, 68, 0.22);
  --white: #fffdfb;
  --shadow: 0 24px 60px rgba(36, 23, 16, 0.14);
  --header-h: 88px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-label: "Cinzel", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  /* Any anchor jump (mega-menu, "voir les soins", hash on load) lands
     below the fixed header instead of being hidden underneath it. */
  scroll-padding-top: calc(var(--header-h) + 18px);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(232, 220, 200, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(201, 168, 130, 0.12), transparent 50%),
    var(--ivory);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: auto;
  font-weight: 300;
  letter-spacing: 0.01em;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button,
input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.container-wide {
  width: min(1360px, calc(100% - 40px));
  margin-inline: auto;
}

/* Grain overlay (subtle film texture, purely decorative) */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
.label {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
}

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: var(--espresso);
}

.gold-text {
  background: linear-gradient(120deg, #6b4423 0%, #c9a882 42%, #8b6244 70%, #e0c7a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--bronze);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--espresso);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), background 0.45s var(--ease), transform 0.45s var(--ease);
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(224, 199, 168, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  background: var(--bronze);
  transform: translateY(-2px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn-ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--bronze);
}

.btn-ghost:hover {
  background: var(--espresso);
  color: var(--ivory);
}

.btn-gold {
  background: linear-gradient(135deg, #8b6244, #c9a882);
  border-color: transparent;
  color: var(--ivory);
}

.btn .arrow {
  width: 18px;
  height: 10px;
  display: block;
  border-top: 1px solid currentColor;
  position: relative;
  transition: transform 0.4s var(--ease);
}

.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Brand mark — circular medallion so the logo artwork reads cleanly
   on any background (light header, dark hero, footer, transition veil) */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--sand), var(--taupe));
  box-shadow: 0 0 0 1px rgba(139, 98, 68, 0.32), 0 8px 20px rgba(36, 23, 16, 0.16);
}

.logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.34);
}

/* Shared entrance animation for above-the-fold content */
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-reveal utility (progressive disclosure as the visitor scrolls) */
.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition: opacity 1.05s var(--ease), transform 1.05s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-1 { transition-delay: 0.1s; }
.reveal-2 { transition-delay: 0.2s; }
.reveal-3 { transition-delay: 0.3s; }
.reveal-4 { transition-delay: 0.4s; }

/* Spotlight — briefly draws the eye to a specific item after a deep link
   (mega-menu, "réserver ce soin"…) lands the visitor exactly on it. */
.is-target {
  animation: targetPulse 1.6s var(--ease);
}

@keyframes targetPulse {
  0%   { background: rgba(201, 168, 130, 0.28); }
  100% { background: transparent; }
}

@media (max-width: 640px) {
  .container,
  .container-wide {
    width: calc(100% - 28px);
  }
}

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