@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
  /* Deep Layered Dark Palette */
  --bg-abyss: #060504;
  --bg-pure: #0c0b0a;
  --bg-deep: #121110;
  --bg-surface: #161513;
  --bg-surface-light: #1c1a18;
  --bg-elevated: #22201d;
  --bg-card: #181614;

  /* Brand Colors */
  --brand-brown: #3F2B1F;
  --brand-gold: #C7A678;
  --brand-gold-light: #dfc9a3;
  --brand-gold-dark: #9e7d4f;
  --brand-white: #F9F9F5;

  /* Glass & Transparent Layers */
  --glass-brown: rgba(63, 43, 31, 0.15);
  --glass-brown-strong: rgba(63, 43, 31, 0.4);
  --glass-border: rgba(199, 166, 120, 0.12);
  --glass-white: rgba(255, 255, 255, 0.03);
  --glass-white-strong: rgba(255, 255, 255, 0.06);
  --glass-dark: rgba(0, 0, 0, 0.6);
  --line-subtle: rgba(255, 255, 255, 0.045);
  --line-gold: rgba(199, 166, 120, 0.16);
  --mesh-brown: rgba(63, 43, 31, 0.2);
  --mesh-gold: rgba(199, 166, 120, 0.14);
  --mesh-white: rgba(255, 255, 255, 0.05);

  /* Typography */
  --text-main: #FFFFFF;
  --text-secondary: rgba(249, 249, 245, 0.85);
  --text-muted: rgba(249, 249, 245, 0.55);
  --text-subtle: rgba(249, 249, 245, 0.3);
  --text-gold: var(--brand-gold);

  /* Fonts */
  --font-sans: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;

  /* Spacing (Fluid luxury spacing) */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;
  --space-xxl: 12rem;

  /* Premium Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-xl: 0 30px 80px rgba(0,0,0,0.6), 0 15px 40px rgba(0,0,0,0.4);
  --shadow-gold: 0 4px 30px rgba(199, 166, 120, 0.15), 0 2px 10px rgba(199, 166, 120, 0.1);
  --shadow-gold-strong: 0 8px 40px rgba(199, 166, 120, 0.25), 0 4px 15px rgba(199, 166, 120, 0.15);
  --shadow-inset: inset 0 1px 0 rgba(255,255,255,0.03);

  /* 3D */
  --perspective: 1200px;
  --card-rotate: 2deg;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition-fast: 0.2s var(--ease-smooth);
  --transition-normal: 0.4s var(--ease-out-expo);
  --transition-slow: 0.8s var(--ease-out-expo);
  --transition-slower: 1.2s var(--ease-out-expo);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 100% 60% at 50% -15%, rgba(199, 166, 120, 0.06), transparent 50%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(63, 43, 31, 0.12), transparent 45%),
    radial-gradient(ellipse 70% 45% at 0% 70%, rgba(255, 255, 255, 0.02), transparent 40%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-pure) 22%, #0a0908 55%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}


/* Ambient background noise texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(63, 43, 31, 0.1), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(199, 166, 120, 0.045), transparent),
    radial-gradient(ellipse 50% 50% at 20% 60%, rgba(63, 43, 31, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, var(--mesh-brown), transparent 28%),
    radial-gradient(circle at 82% 18%, var(--mesh-gold), transparent 24%),
    radial-gradient(circle at 50% 78%, rgba(255,255,255,0.04), transparent 30%);
  background-size: 96px 96px, 96px 96px, auto, auto, auto;
  background-position: center;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

main::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.015) 12%, transparent 28%, rgba(199,166,120,0.02) 55%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Page wrapper for transitions */
.page-transition {
  animation: pageEnter 0.8s var(--ease-out-expo) forwards;
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
  color: var(--brand-white);
  margin-bottom: var(--space-s);
}

h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--brand-white) 0%, var(--brand-gold-light) 50%, var(--brand-white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2.5rem);
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 65ch;
  margin-bottom: var(--space-m);
  line-height: 1.8;
}

p.lead {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
}

a {
  color: var(--brand-white);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--brand-gold);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 1000px;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
  overflow: clip;
}

.section-padding-huge {
  padding: var(--space-xxl) 0;
}

/* Depth sections with layered backgrounds */
.section-depth {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 8%),
    linear-gradient(180deg, var(--bg-pure) 0%, var(--bg-deep) 32%, var(--bg-surface) 68%, var(--bg-pure) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), inset 0 -1px 0 rgba(0,0,0,0.2);
}

/* Réduit le vide vertical après le bandeau (ex. avant « Pourquoi Nous Choisir ») */
.section-anchor-tight {
  padding-top: clamp(1.5rem, 4vw, 2.75rem) !important;
  padding-bottom: var(--space-xxl);
}

@media (max-width: 768px) {
  .section-anchor-tight {
    padding-bottom: var(--space-xl) !important;
  }
}

.section-elevated {
  background: var(--bg-surface-light);
  position: relative;
  border-top: 1px solid var(--glass-white);
  border-bottom: 1px solid var(--glass-white);
}

.section-elevated::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.018), transparent 30%),
    radial-gradient(circle at bottom right, rgba(199,166,120,0.04), transparent 32%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.section > .container,
.section > .ambient-orb,
.section > .ambient-grid,
.section > .ambient-lines {
  position: relative;
  z-index: 1;
}

.ambient-grid,
.ambient-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-grid {
  background-image:
    linear-gradient(to right, transparent, transparent calc(100% - 1px), var(--line-subtle) calc(100% - 1px)),
    linear-gradient(to bottom, transparent, transparent calc(100% - 1px), var(--line-subtle) calc(100% - 1px));
  background-size: 140px 140px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  opacity: 0.42;
}

.ambient-lines {
  background:
    linear-gradient(115deg, transparent 0%, transparent 35%, rgba(255,255,255,0.03) 50%, transparent 65%, transparent 100%),
    linear-gradient(150deg, transparent 0%, transparent 48%, rgba(199,166,120,0.06) 50%, transparent 52%, transparent 100%);
  opacity: 0.7;
}

.texture-panel {
  position: relative;
  border: 1px solid var(--glass-white);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent),
    linear-gradient(145deg, rgba(255,255,255,0.02), rgba(63,43,31,0.12));
  box-shadow: var(--shadow-md), var(--shadow-inset);
  backdrop-filter: blur(18px);
}

.texture-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,0.06), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(199,166,120,0.1), transparent 26%);
  pointer-events: none;
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.eyebrow-chip {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-inset);
}

.text-rich {
  color: var(--text-secondary);
}

.text-balance {
  text-wrap: balance;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-l);
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Luxury Utils */
.gold-text {
  color: var(--brand-gold);
  font-style: italic;
}

.luxury-overline {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--brand-gold);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--space-s);
  font-weight: 500;
}

.luxury-overline::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-gold));
}

/* Titres centrés : pas de ligne « vide » à gauche du libellé */
.luxury-overline--center::before {
  display: none;
}

.luxury-overline--center {
  justify-content: center;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  letter-spacing: 0.22em;
}

.text-center { text-align: center; }
.text-center .luxury-overline:not(.luxury-overline--center) { justify-content: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Ambient Orbs for depth */
.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.ambient-orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(63, 43, 31, 0.3), transparent 70%);
  top: 10%; right: -5%;
  animation-delay: 0s;
}

.ambient-orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(199, 166, 120, 0.12), transparent 70%);
  bottom: 20%; left: -5%;
  animation-delay: -4s;
}

.ambient-orb-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(63, 43, 31, 0.15), transparent 70%);
  top: 50%; left: 30%;
  animation-delay: -8s;
}

.ambient-orb-4 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 72%);
  top: 20%;
  left: 10%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-gold-dark), var(--brand-gold), var(--brand-gold-light));
  z-index: 99999;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(199, 166, 120, 0.5);
}

/* Selection */
::selection {
  background: rgba(199, 166, 120, 0.3);
  color: var(--brand-white);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-pure); }
::-webkit-scrollbar-thumb {
  background: var(--glass-brown-strong);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-gold-dark);
}

/* Mobile base */
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: var(--space-l) 0; }
  .section-padding-huge { padding: var(--space-xl) 0; }
  h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 3rem); }
  p { font-size: 1rem; }
  body::after { opacity: 0.28; }
  .ambient-grid { background-size: 72px 72px; opacity: 0.3; }
  .eyebrow-row { gap: 0.5rem; }
  .eyebrow-chip { font-size: 0.7rem; padding: 0.55rem 0.8rem; }
}
