/* ==========================================================================
   Alpha Consulting — Design Tokens
   DA Dark Prestige (noir/or) · Cormorant Garamond + Syne
   Chargé par index.html + toutes les sous-pages /offres/*.html
   ========================================================================== */

/* ---------- Fonts (Google Fonts CDN) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Syne:wght@500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Palette Dark Prestige */
  --void: #030303;
  --deep: #080808;
  --surface: #0d0d0d;
  --card: #111111;
  --lift: #161616;
  --border: rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.12);
  --gold: #c8a96e;
  --gold-bright: #e8cc8e;
  --gold-dim: rgba(200,169,110,0.15);
  --gold-glow: rgba(200,169,110,0.4);
  --cream: #f0ece4;
  --muted: #8a8580;
  --mid: #9a948f;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Typography scale (fluid, mobile-first) */
  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-eyebrow: clamp(0.68rem, 0.62rem + 0.3vw, 0.82rem);
  --fs-body: clamp(0.95rem, 0.88rem + 0.35vw, 1.05rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-h3: clamp(1.35rem, 1.15rem + 1vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.5vw, 3.75rem);
  --fs-h1: clamp(2.6rem, 1.8rem + 4vw, 5.5rem);
  --fs-display: clamp(3.2rem, 2rem + 6vw, 7rem);

  --lh-tight: 1.05;
  --lh-snug: 1.25;
  --lh-normal: 1.55;
  --lh-loose: 1.75;

  /* Spacing (fluid, mobile-first) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-10: 128px;
  --section-pad: clamp(56px, 8vw, 110px);
  --container: min(1280px, 92vw);
  --container-narrow: min(920px, 92vw);
  --container-wide: min(1440px, 94vw);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.7, 0, 0.3, 1);
  --ease-emphasize: cubic-bezier(0.2, 0.9, 0.1, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 600ms;
  --dur-langoureux: 900ms;

  /* Elevation (subtle golden glows) */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold-sm: 0 0 12px rgba(200,169,110,0.15);
  --shadow-gold-md: 0 0 32px rgba(200,169,110,0.25);
  --shadow-gold-lg: 0 0 80px rgba(200,169,110,0.35);

  /* Z-index scale */
  --z-base: 0;
  --z-decor: 1;
  --z-content: 5;
  --z-sticky: 20;
  --z-nav: 30;
  --z-overlay: 40;
  --z-drawer: 50;
  --z-toast: 60;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--void);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  position: relative;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--void); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-xs); }

/* Skip link (a11y) */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--gold); color: var(--void);
  padding: 10px 20px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; z-index: var(--z-toast);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- Typography utilities ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 300; line-height: var(--lh-tight); letter-spacing: -0.01em; color: var(--cream); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
em, .accent { color: var(--gold); font-style: italic; }
p { color: var(--cream); opacity: 0.85; line-height: var(--lh-normal); }
p + p { margin-top: var(--sp-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-sans); font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px var(--gold-glow); animation: eyebrow-pulse 2.2s ease-in-out infinite; }
.eyebrow-line { width: 32px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 0.6; }

@keyframes eyebrow-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px var(--gold-glow); }
  50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 16px var(--gold-glow); }
}

/* ---------- Container ---------- */
.container { width: var(--container); margin-inline: auto; padding-inline: var(--sp-4); }
.container-narrow { width: var(--container-narrow); margin-inline: auto; padding-inline: var(--sp-4); }
.container-wide { width: var(--container-wide); margin-inline: auto; padding-inline: var(--sp-4); }
section { padding-block: var(--section-pad); position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: 14px 28px; min-height: 48px;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all var(--dur-base) var(--ease-in-out);
  white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--void); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-1px); box-shadow: var(--shadow-gold-md); }
.btn-outline { background: transparent; color: var(--cream); border-color: var(--border-hi); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--gold); padding: 10px 0; }
.btn-ghost::after {
  content: '→'; margin-left: var(--sp-2);
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-ghost:hover::after { transform: translateX(6px); }

/* ---------- Section label / label pill ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-sans); font-size: var(--fs-eyebrow);
  font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: var(--sp-6);
}
.section-label::before {
  content: ''; width: 32px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright));
  box-shadow: 0 0 10px var(--gold-glow);
}

/* ---------- Card generic ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-6);
  transition: all var(--dur-base) var(--ease-in-out);
  position: relative; overflow: hidden;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card--gold-hover::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--dur-slow) var(--ease-in-out);
}
.card--gold-hover:hover::before { width: 100%; }

/* ---------- Reveal on scroll (driven by motion.js) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ---------- Grain overlay ---------- */
.grain::after {
  content: ''; position: fixed; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.78  0 0 0 0 0.66  0 0 0 0 0.43  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.05; mix-blend-mode: overlay; z-index: var(--z-decor);
}

/* ---------- Background decors ---------- */
.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); opacity: 0.12; }
.blob-1 { background: var(--gold); top: -100px; right: -100px; }
.blob-2 { background: #6b4a2a; bottom: -100px; left: -150px; }
.blob-3 { background: var(--gold-bright); top: 40%; left: 45%; width: 300px; height: 300px; opacity: 0.06; }

/* ---------- Breakpoints (Mobile-first) ---------- */
/* < 640px : mobile portrait (default) */
/* 640-899px : mobile paysage / tablette portrait */
/* 900-1199px : tablette paysage / laptop */
/* ≥ 1200px : desktop */

@media (max-width: 640px) {
  section { padding-block: clamp(48px, 12vw, 72px); }
  .btn { padding: 12px 22px; font-size: 0.78rem; }
  .blob { width: 300px; height: 300px; filter: blur(80px); }
}

@media (min-width: 900px) {
  :root { --section-pad: clamp(80px, 8vw, 130px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .eyebrow-dot { animation: none; }
  .grain::after { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .grain::after, .grid-bg, .blobs { display: none; }
  body { background: white; color: black; }
}
