/* Gold Gym Orbe — base styles */
:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --surface-3: #242424;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #F5F5F4;
  --fg-muted: #A3A3A0;
  --fg-subtle: #6B6B68;
  --gold: #D4A24C;
  --gold-bright: #F0C770;
  --gold-deep: #A8802F;
  --accent: var(--gold);
  --accent-bright: var(--gold-bright);
  --accent-deep: var(--gold-deep);
  --accent-ink: #1A1308;
  --red: #E84A2E;
  --green: #F1FE56;

  --container: 1320px;
  --section-y: 120px;
  --gap: 24px;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 18px;

  --font-display: "Bebas Neue", "Archivo Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --display-tracking: 0.01em;
  --body-tracking: -0.005em;
}

[data-accent="lime"] {
  --gold: #F1FE56;
  --gold-bright: #F6FE8A;
  --gold-deep: #B8C730;
  --accent: #F1FE56;
  --accent-bright: #F6FE8A;
  --accent-deep: #B8C730;
  --accent-ink: #0F1305;
}

:root {
  --header-bg: rgba(10, 10, 10, 0.85);
}
[data-theme="light"] {
  --header-bg: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F5F5F2;
  --surface: #FFFFFF;
  --surface-2: #F8F7F2;
  --surface-3: #EDECE5;
  --border: rgba(20, 18, 12, 0.10);
  --border-strong: rgba(20, 18, 12, 0.22);
  --fg: #0F0E08;
  --fg-muted: #4A4843;
  --fg-subtle: #88857B;
  --gold: #A8802F;
  --gold-bright: #C99B3D;
  --gold-deep: #6E521A;
  --accent: #A8802F;
  --accent-bright: #C99B3D;
  --accent-deep: #6E521A;
}
[data-theme="light"][data-accent="lime"] {
  --gold: #F1FE56;
  --gold-bright: #F6FE8A;
  --gold-deep: #B8C730;
  --accent: #F1FE56;
  --accent-bright: #F6FE8A;
  --accent-deep: #B8C730;
  --accent-ink: #0F1305;
}

/* Sections forced to keep dark styling even in light theme */
.force-dark {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --surface: #141414;
  --surface-2: #1C1C1C;
  --surface-3: #242424;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #F5F5F4;
  --fg-muted: #A3A3A0;
  --fg-subtle: #6B6B68;
  background: var(--bg);
  color: var(--fg);
}

[data-typo="premium"] {
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --display-tracking: -0.01em;
}

[data-density="compact"] {
  --section-y: 72px;
  --gap: 16px;
}
[data-density="spacious"] {
  --section-y: 160px;
  --gap: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  letter-spacing: var(--body-tracking);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: var(--display-tracking);
  line-height: 0.92;
  text-transform: uppercase;
}
[data-typo="premium"] .display {
  font-weight: 500;
  text-transform: none;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #1A1308;
}
.btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-arrow {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}
.btn-arrow::before {
  content: "";
  position: absolute;
  inset: 5px 0;
  border-top: 2px solid currentColor;
}
.btn-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 1px;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* Headings utility */
.h-display { font-size: clamp(56px, 9vw, 144px); }
.h-1 { font-size: clamp(40px, 6vw, 88px); }
.h-2 { font-size: clamp(32px, 4.5vw, 64px); }
.h-3 { font-size: clamp(24px, 3vw, 36px); }

[data-typo="premium"] .h-display { font-size: clamp(48px, 7.5vw, 120px); }

/* Stripe placeholder */
.stripe-img {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(212, 162, 76, 0.08) 0 12px,
      rgba(212, 162, 76, 0.02) 12px 24px
    ),
    linear-gradient(135deg, #1A1A1A, #0E0E0E);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stripe-img::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-transform: lowercase;
}
[data-theme="light"] .stripe-img {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(168, 128, 47, 0.10) 0 12px,
      rgba(168, 128, 47, 0.02) 12px 24px
    ),
    linear-gradient(135deg, #E8E4D7, #F2EFE6);
}
[data-theme="light"] .stripe-img::after {
  background: rgba(255,255,255,0.85);
  color: var(--gold-deep);
}

/* Section spacing */
.section { padding: var(--section-y) 0; }

/* Marquee */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  padding: 28px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: uppercase;
}
[data-typo="premium"] .marquee-track {
  text-transform: none;
  letter-spacing: -0.01em;
}
.marquee-item { display: inline-flex; align-items: center; gap: 64px; }
.marquee-dot { color: var(--gold); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
}

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.tag-gold { color: var(--gold); border-color: rgba(212, 162, 76, 0.3); }

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
.input, .textarea, .select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 14px 16px;
  font: inherit;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--gold);
  background: var(--surface-3);
}
.textarea { resize: vertical; min-height: 100px; }

/* Numbered marker */
.num {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 56px;
  line-height: 1;
}

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

/* Responsive helpers */
@media (max-width: 900px) {
  :root { --section-y: 80px; }
  .container { padding: 0 20px; }
}

.stripe-img.has-photo {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.stripe-img.has-photo::after { display: none; }

/* Accent token forwarding */
.eyebrow, .marquee-dot, .tag-gold, .stripe-img::after { color: var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-bright); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.num { color: var(--accent); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

/* ============ Utilitaires ajoutés (build PHP) ============ */
/* L'attribut [hidden] doit toujours l'emporter sur un display: flex/grid. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.accent { color: var(--accent); }
.muted  { color: var(--fg-muted); }
.strong { font-weight: 700; }
.sm { font-size: 13px; } .xs { font-size: 12px; }
.container--narrow { max-width: 920px; }
.center-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

.mb-8{margin-bottom:8px}.mb-12{margin-bottom:12px}.mb-16{margin-bottom:16px}
.mb-20{margin-bottom:20px}.mb-24{margin-bottom:24px}.mb-28{margin-bottom:28px}.mb-32{margin-bottom:32px}.mb-64{margin-bottom:64px}
.mt-12{margin-top:12px}.mt-16{margin-top:16px}
.gap-16{gap:16px}
/* minmax(0,1fr) et non 1fr : sinon la largeur intrinsèque d'un <input> élargit
   la colonne et fait déborder la grille de son conteneur. */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.lead-muted { font-size: 17px; color: var(--fg-muted); line-height: 1.6; margin: 0; }

.stars { display: inline-flex; gap: 2px; color: var(--accent); line-height: 0; vertical-align: middle; }

.round-icon {
  width: 56px; height: 56px; border-radius: 999px; flex-shrink: 0;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center;
}

/* Eyebrow variantes */
.eyebrow--icon { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--dashed { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.eyebrow--dashed span { width: 24px; height: 1px; background: var(--accent); }

.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* En-têtes de section réutilisables */
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: 48px;
}
.section-head__aside { max-width: 380px; font-size: 15px; }
.center-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col--end { align-items: end; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

.section--alt { background: var(--bg-2); }
