/* ==========================================================================
   Vitruviana — base.css
   Reset, Custom Properties, Typography
   ========================================================================== */

/* Modern Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6, p { overflow-wrap: break-word; }

/* Custom Properties */
:root {
  --color-bg-primary: #08070C;
  --color-bg-secondary: #0D0D0D;
  --color-bg-section-alt: #111111;
  --color-bg-card: #141414;
  --color-bg-card-hover: #1A1A1A;
  --color-gold: #C9A84C;
  --color-gold-hover: #D4B85E;
  --color-gold-muted: rgba(201, 168, 76, 0.15);
  --color-text-primary: #EDE9E1;
  --color-text-secondary: #B0A99F;
  --color-text-muted: #7A7570;
  --color-ivory: #F0EBE3;
  --color-border: rgba(201, 168, 76, 0.25);
  --color-border-card: rgba(201, 168, 76, 0.15);
  --color-border-divider: rgba(237, 233, 225, 0.1);
  --overlay-dark: rgba(8, 7, 12, 0.65);
  --overlay-gradient: linear-gradient(180deg, rgba(8,7,12,0) 0%, rgba(8,7,12,0.85) 100%);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --text-hero-title: 5rem;
  --text-h1: 2.75rem;
  --text-h2: 2.25rem;
  --text-h3: 1.5rem;
  --text-h4: 1.125rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;
  --text-overline: 0.625rem;
  --container-max: 1280px;
  --container-padding: 2rem;
  --section-padding-y: 6rem;
  --section-padding-y-sm: 4rem;
  --card-padding: 2rem;
  --card-radius: 0px;
  --gap-grid: 1.5rem;
  --gap-grid-lg: 2rem;
  --ease-luxury: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Body */
body {
  background-color: var(--color-bg-primary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-text-primary);
}

/* Typography */
h1, h2, h3, h4, .hero-title, .section-title {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-ivory);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }

.overline {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-overline);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

/* Links */
a { color: var(--color-gold); transition: color 0.3s var(--ease-luxury); }
a:hover { color: var(--color-gold-hover); }

/* Selection */
::selection { background: var(--color-gold); color: var(--color-bg-primary); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}
.section {
  padding: var(--section-padding-y) 0;
}
.section--alt {
  background: var(--color-bg-section-alt);
}

/* Hero base */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero--full { min-height: 100vh; }
.hero--small { min-height: 50vh; padding-top: 76px; }
.hero__background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}
.hero__content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: var(--text-hero-title);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.265;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
/* Breadcrumb bar (below hero) */
.breadcrumb-bar {
  background: rgba(8, 7, 12, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 119px 1px;
}

/* ---------- Hero variant: Zone (Visage, Cheveux, Corps, Peau) ---------- */
.hero--zone {
  min-height: 60vh;
  padding-top: 76px;
  justify-content: center;
  align-items: center;
}
.hero--zone .hero__background {
  filter: grayscale(100%) blur(1px);
}
.hero--zone .hero__overlay {
  background: rgba(8, 7, 12, 0.4);
}
.hero__glass-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px 60px;
  width: auto;
  background: rgba(8, 7, 12, 0.01);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 10px;
  text-align: center;
}
.hero__zone-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--color-ivory);
  line-height: 1.1;
  margin: 0;
}
.hero__zone-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Hero variant: Traitement ---------- */
.hero--traitement {
  min-height: 60vh;
  padding-top: 76px;
  justify-content: center;
  align-items: center;
}
.hero--traitement .hero__background {
  filter: grayscale(100%);
}
.hero--traitement .hero__overlay {
  display: none;
}
.hero__glass-center--traitement {
  gap: 20px;
  border-radius: 2px;
  max-width: none;
  width: auto;
  padding: 32px 60px;
}
.hero__traitement-overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  line-height: 16px;
}
.hero__traitement-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  font-style: normal;
  color: var(--color-ivory);
  line-height: 1.17;
  margin: 0;
  text-align: center;
}
.hero__traitement-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.625;
  margin: 0;
  text-align: center;
  max-width: 700px;
}

/* ---------- Hero variant: Fiche (problématique) ---------- */
.hero--fiche {
  min-height: 60vh;
  padding-top: 76px;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
}
.hero--fiche .hero__background {
  filter: grayscale(100%);
}
.hero--fiche .hero__overlay {
  display: none;
}
.hero__glass-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 120px;
  width: 609px;
  max-width: 100%;
  background: rgba(8, 7, 12, 0.2);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.hero__fiche-overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-gold);
  line-height: 16px;
}
.hero__fiche-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 400;
  font-style: normal;
  color: var(--color-ivory);
  line-height: 1.17;
  margin: 0;
  max-width: 355px;
}
.hero__fiche-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-ivory);
  line-height: 1.625;
  margin: 0;
  max-width: 452px;
}

/* Hero variants responsive */
@media (max-width: 767px) {
  .hero__glass-center {
    padding: 2rem;
    margin: 0 1rem;
  }
  .hero__zone-title { font-size: 3.5rem; }
  .hero__zone-subtitle { font-size: 1.125rem; }
  .hero__traitement-title { font-size: 2rem; }
  .hero__fiche-title { font-size: 2rem; }
  .hero__glass-left {
    width: 100%;
    padding: 1.5rem;
  }
}

/* Brief paragraph (GSO) */
.brief-paragraph {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border-divider);
}

/* Responsive */
@media (max-width: 767px) {
  :root {
    --text-hero-title: 2.75rem;
    --text-h1: 2rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --container-padding: 1.25rem;
    --section-padding-y: 4rem;
    --section-padding-y-sm: 3rem;
  }
  .hero--small { min-height: 40vh; padding-top: 6rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --text-hero-title: 3.5rem;
    --text-h1: 2.25rem;
    --container-padding: 1.5rem;
    --section-padding-y: 5rem;
  }
}
@media (min-width: 1440px) {
  :root {
    --text-hero-title: 5.5rem;
    --text-h1: 3.25rem;
    --text-h2: 2.5rem;
  }
}

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