/* GLOBALSHOP — Feuille de style officielle (Noir, Blanc, Violet & Bleu) */
:root {
  --bg: #090810;
  --surface: #12101d;
  --surface-elevated: #1a172b;
  --border: #2b2644;
  --text: #f5f4fb;
  --text-muted: #a8a3c2;
  --violet: #8b5cf6;
  --violet-strong: #7c3aed;
  --blue: #2563eb;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --emerald: #10b981;
  --danger: #ef4444;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1140px;
  --shadow: 0 20px 50px rgba(4, 3, 12, 0.45);
}

[data-theme="light"] {
  --bg: #fafafc;
  --surface: #ffffff;
  --surface-elevated: #f1eff9;
  --border: #e0dcf2;
  --text: #0e0c19;
  --text-muted: #4c4766;
  --violet: #6d28d9;
  --violet-strong: #7c3aed;
  --blue: #2563eb;
  --sky: #0284c7;
  --shadow: 0 16px 40px rgba(17, 12, 46, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-wordmark {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* Ambient glow */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 10%, rgba(124, 58, 237, 0.16), transparent 42%),
    radial-gradient(circle at 12% 35%, rgba(37, 99, 235, 0.14), transparent 40%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 8, 16, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .site-header {
  background: rgba(250, 250, 252, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-wordmark {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-wordmark span {
  color: var(--violet);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav-desktop a {
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  color: var(--text);
  background-color: var(--surface-elevated);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill-mini {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--violet);
  background: var(--surface-elevated);
}

/* Mobile Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-elevated);
}

/* Sections */
section {
  padding: 56px 0;
}

.section-kicker {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 720px;
}

.section-header {
  margin-bottom: 32px;
}

/* Hero */
.hero-section {
  padding: 44px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.dev-banner {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-strong), var(--blue));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.32);
}

.btn-primary:hover {
  opacity: 0.94;
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--violet);
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.4);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.card-highlight {
  border-color: rgba(139, 92, 246, 0.55);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08), var(--surface));
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.icon-badge.violet {
  background: rgba(124, 58, 237, 0.16);
  color: var(--violet);
}

.icon-badge.blue {
  background: rgba(37, 99, 235, 0.18);
  color: var(--sky);
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.criteria-tag {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Steps */
.step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--violet-strong), var(--blue));
}

/* Conceptual Preview */
.preview-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px dashed var(--border);
}

.preview-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.preview-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.price-placeholder {
  padding: 5px 11px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.16);
  color: var(--violet);
  font-weight: 700;
  font-size: 0.88rem;
}

/* Notice Banners */
.notice-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.notice-banner.amber {
  background: rgba(245, 158, 11, 0.11);
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.notice-banner.blue {
  background: rgba(37, 99, 235, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.notice-banner.emerald {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.notice-banner.danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.notice-banner strong {
  display: block;
  margin-bottom: 4px;
}

/* Contact Form */
.form-grid {
  display: grid;
  gap: 16px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: 2px solid var(--violet);
  border-color: transparent;
}

.field-error {
  color: var(--danger);
  font-size: 0.84rem;
  min-height: 1.1em;
}

.form-result {
  display: none;
  margin-top: 18px;
}

.form-result.is-visible {
  display: block;
}

.message-preview-pre {
  margin: 12px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
}

/* Legal pages */
.legal-article {
  max-width: 860px;
  margin: 0 auto;
}

.legal-article h2 {
  font-size: 1.25rem;
  margin: 26px 0 10px;
}

.legal-article p,
.legal-article li {
  color: var(--text-muted);
}

.placeholder-mark {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  margin-top: 24px;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--violet);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 6px 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .status-pill-mini {
    display: inline-flex;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  #menu-toggle {
    display: none;
  }

  .mobile-nav.is-open {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 44px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
