/* ============================================
   CLEAN STAFF — DESIGN SYSTEM ULTRA PREMIUM
   Palette: Noir profond / Or / Champagne
   ============================================ */

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

/* ── TOKENS ── */
:root {
  /* Noirs */
  --noir-0:    #060810;
  --noir-1:    #0A0C14;
  --noir-2:    #0F1623;
  --noir-3:    #141C2E;
  --noir-4:    #1A2235;
  --noir-5:    #222C40;

  /* Or */
  --or-0:      #6B4F1A;
  --or-1:      #9A7230;
  --or-2:      #C9A84C;
  --or-3:      #E2C56B;
  --or-4:      #EDD88A;
  --or-5:      #F5ECC0;

  /* Ivoire */
  --ivoire-1:  #E8D5A3;
  --ivoire-2:  #F2E8C8;
  --ivoire-3:  #FAF6ED;
  --blanc:     #FFFFFF;

  /* Textes */
  --text-primary:   #F2E8C8;
  --text-secondary: #A8B4C0;
  --text-muted:     #5E6E80;
  --text-gold:      #C9A84C;

  /* Gradients */
  --grad-or:     linear-gradient(135deg, #C9A84C 0%, #EDD88A 50%, #C9A84C 100%);
  --grad-dark:   linear-gradient(180deg, #0A0C14 0%, #0F1623 100%);
  --grad-card:   linear-gradient(135deg, rgba(26,34,53,0.8) 0%, rgba(20,28,46,0.6) 100%);
  --grad-hero:   radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.12) 0%, transparent 70%);
  --grad-glow:   radial-gradient(ellipse 40% 40% at 50% 50%, rgba(201,168,76,0.15) 0%, transparent 70%);

  /* Borders */
  --border-subtle:  rgba(201,168,76,0.12);
  --border-medium:  rgba(201,168,76,0.25);
  --border-strong:  rgba(201,168,76,0.5);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(201,168,76,0.2);
  --shadow-glow: 0 0 80px rgba(201,168,76,0.1), 0 20px 60px rgba(0,0,0,0.5);

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Transitions */
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --t-fast:  0.15s;
  --t-base:  0.25s;
  --t-slow:  0.4s;

  /* Espacement */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Typo */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'DM Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--noir-1);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--wide { max-width: 1440px; }
.container--narrow { max-width: 800px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── TYPOGRAPHIE ── */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}
.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
}
.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 500;
}
.body-lg { font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }
.body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--text-secondary); }
.caption { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }

.text-gold { color: var(--or-2); }
.text-gradient {
  background: var(--grad-or);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-center { text-align: center; }
.italic { font-style: italic; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all var(--t-base) var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-or);
  color: var(--noir-1);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.4);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--or-2);
  color: var(--or-2);
  background: rgba(201,168,76,0.05);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

/* ── CARDS ── */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  transition: all var(--t-base) var(--ease-smooth);
  backdrop-filter: blur(8px);
}
.card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.card-glass {
  background: rgba(15,22,35,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
}

/* ── DIVIDER OR ── */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or-2), transparent);
  margin: var(--space-16) 0;
  opacity: 0.4;
}

.line-gold {
  width: 48px;
  height: 2px;
  background: var(--grad-or);
  margin: var(--space-4) 0 var(--space-6);
}

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.badge-pending  { background: rgba(201,168,76,0.12); color: var(--or-3); border: 1px solid rgba(201,168,76,0.25); }
.badge-accepted { background: rgba(34,197,94,0.12);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge-refused  { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.badge-ongoing  { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-done     { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input,
.form-select,
.form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--text-primary);
  padding: 14px 16px;
  font-size: 0.9rem;
  transition: all var(--t-base) var(--ease-smooth);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--or-2);
  background: rgba(201,168,76,0.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; }
.form-select option { background: var(--noir-2); }
.form-textarea { resize: vertical; min-height: 120px; }

.form-error { color: #f87171; font-size: 0.8rem; margin-top: 4px; }
.form-help  { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

/* ── NAVIGATION ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--space-6);
  transition: all var(--t-base) var(--ease-smooth);
}
.nav--scrolled {
  background: rgba(10,12,20,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--grad-or);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--noir-1);
  font-family: var(--font-body);
  letter-spacing: 0.05em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}
.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--or-2);
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease-smooth);
}
.nav-link:hover,
.nav-link.active { color: var(--text-primary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-burger span {
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease-smooth);
  display: block;
}

/* ── SECTIONS ── */
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: var(--space-32) 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--or-2);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--or-2);
}

/* ── TOASTS ── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 20px;
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  min-width: 300px;
  max-width: 420px;
  animation: toastIn 0.3s var(--ease-spring);
  font-size: 0.875rem;
}
.toast-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }
.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.toast-info    { background: rgba(201,168,76,0.12);  border: 1px solid rgba(201,168,76,0.25); color: var(--or-3); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,8,16,0.85);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-smooth);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--noir-2);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-xl);
  padding: var(--space-10);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform var(--t-base) var(--ease-spring);
  box-shadow: var(--shadow-glow);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-8);
}
.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: all var(--t-fast);
}
.modal-close:hover { border-color: var(--border-medium); color: var(--text-primary); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--noir-1); }
::-webkit-scrollbar-thumb { background: var(--noir-5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--or-0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

.animate-fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── GOLD THREAD (signature) ── */
.thread-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.thread-svg { width: 100%; height: 100%; }
.thread-path {
  fill: none;
  stroke: url(#goldGrad);
  stroke-width: 1.5;
  stroke-dasharray: 12 6;
  opacity: 0.35;
  animation: threadFlow 8s linear infinite;
}
@keyframes threadFlow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -80; }
}

/* ── STAT COUNTER ── */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  background: var(--grad-or);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* ── SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--noir-3) 25%, var(--noir-4) 50%, var(--noir-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}

/* ── UTILITIES ── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.no-scroll { overflow: hidden; }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-outline { display: none; }
  .nav-burger { display: flex; }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(10,12,20,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-6);
    gap: var(--space-4);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--t-base) var(--ease-smooth);
    z-index: 99;
  }
  .mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .mobile-menu .nav-link { font-size: 1.1rem; padding: var(--space-3) 0; color: var(--text-primary); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-16) 0; }
  .section-lg { padding: var(--space-20) 0; }
}

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