/* ============================================================
   Fulgurite — Site vitrine
   Charte graphique v1.0 · Strike. Save. Restore.
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Variables (Brand Charter) ──────────────────────────────── */
:root {
  --storm:            #0d1b2a;
  --storm-light:      #1a2f45;
  --night:            #111827;
  --night-card:       #1a2535;
  --night-card-2:     #1e2d3f;

  --lightning:        #eea400;
  --lightning-hover:  #d69500;
  --lightning-glow:   rgba(238, 164, 0, 0.30);

  --plasma:           #4fc3f7;
  --plasma-hover:     #29b6f6;
  --plasma-bg:        rgba(79, 195, 247, 0.12);

  --glass:            #c9a96e;
  --glass-light:      #e8d9b8;

  --sand:             #f5f0e8;
  --sand-alt:         #f9f6f0;
  --surface:          #ffffff;

  --success:          #4fc3f7;
  --success-bg:       #e0f7fa;
  --success-text:     #006064;

  --error:            #e63946;
  --error-bg:         #fee2e2;
  --error-text:       #991b1b;

  --warning:          #f59e0b;
  --warning-bg:       #fef3c7;
  --warning-text:     #92400e;

  --text:             #1f2937;
  --text-muted:       #6b7280;
  --border:           #d1d5db;
  --border-dark:      #2d3f52;

  --font-heading:     'Nunito', sans-serif;
  --font-body:        'Montserrat', sans-serif;
  --font-mono:        ui-monospace, 'JetBrains Mono', 'Fira Code', monospace;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;

  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  --shadow-sm:        0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:        0 2px 8px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-lg:        0 4px 24px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.10);
  --shadow-lightning: 0 0 20px rgba(238, 164, 0, 0.35);
  --shadow-plasma:    0 0 14px rgba(79, 195, 247, 0.30);
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Boutons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem 1.375rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--lightning);
  color: var(--night);
}
.btn--primary:hover {
  background: var(--lightning-hover);
  box-shadow: var(--shadow-lightning);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: var(--sand);
  border: 1.5px solid rgba(245, 240, 232, 0.35);
}
.btn--secondary:hover {
  background: rgba(245, 240, 232, 0.08);
  border-color: rgba(245, 240, 232, 0.55);
}

.btn--ghost {
  background: transparent;
  color: var(--lightning);
  border: 1.5px solid var(--lightning);
}
.btn--ghost:hover {
  background: var(--lightning);
  color: var(--night);
  box-shadow: var(--shadow-lightning);
}

.btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 63, 82, 0.6);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 32px;
  height: 32px;
}

.nav__logo-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--sand);
  letter-spacing: -0.01em;
}

.nav__logo-name span {
  color: #ffe8b9;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-left: auto;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.75);
  transition: color 0.15s;
}

.nav__links a:hover {
  color: var(--sand);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-6);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(165deg, var(--storm) 0%, #0a1520 40%, var(--night) 100%);
  overflow: hidden;
  padding: 120px var(--space-6) 80px;
  text-align: center;
}

.hero__bg-lightning {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 900px;
  height: 100%;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

.hero__bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(238, 164, 0, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.9rem;
  background: rgba(238, 164, 0, 0.12);
  border: 1px solid rgba(238, 164, 0, 0.35);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--lightning);
  margin-bottom: var(--space-6);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--lightning);
  border-radius: 50%;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  color: var(--sand);
  max-width: 820px;
  margin: 0 auto var(--space-6);
  letter-spacing: -0.02em;
}

.hero__title em {
  font-style: normal;
  color: var(--lightning);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(245, 240, 232, 0.65);
  max-width: 580px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  font-weight: 400;
}

.hero__baseline {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: rgba(245, 240, 232, 0.45);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sand);
}

.hero__stat-label {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__stat-sep {
  width: 1px;
  height: 32px;
  background: rgba(45, 63, 82, 0.8);
}

/* ── Section commune ────────────────────────────────────────── */
.section {
  padding: 96px 0;
}

.section--dark {
  background: var(--night);
  color: var(--sand);
}

.section--storm {
  background: var(--storm);
  color: var(--sand);
}

.section--sand {
  background: var(--sand);
}

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

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lightning);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section--dark .section__desc,
.section--storm .section__desc {
  color: rgba(245, 240, 232, 0.6);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section__desc {
  margin: 0 auto;
}

/* ── Pilliers de valeur ──────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-8);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pillar__icon {
  width: 44px;
  height: 44px;
  background: rgba(238, 164, 0, 0.10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lightning);
  flex-shrink: 0;
}

.pillar__title {
  font-size: 1.125rem;
  color: var(--text);
}

.pillar__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Grille de fonctionnalités ──────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.feature-card {
  padding: var(--space-8);
  background: var(--night-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lightning), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover {
  border-color: rgba(238, 164, 0, 0.35);
  box-shadow: 0 4px 20px rgba(238, 164, 0, 0.08);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  background: rgba(238, 164, 0, 0.10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lightning);
  margin-bottom: var(--space-4);
}

.feature-card__title {
  font-size: 1rem;
  color: var(--sand);
  margin-bottom: var(--space-3);
}

.feature-card__desc {
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.65;
}

.feature-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(79, 195, 247, 0.12);
  color: var(--plasma);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
}

.tag--glass {
  background: rgba(201, 169, 110, 0.12);
  color: var(--glass);
}

/* ── Aperçu de l'application ────────────────────────────────── */
.preview-section {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--night) 0%, #0a1520 100%);
  overflow: hidden;
}

.preview-wrapper {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.preview-wrapper::before {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 200px;
  background: radial-gradient(ellipse, rgba(238, 164, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.browser-frame {
  background: #1a2535;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(45,63,82,0.8), 0 0 60px rgba(238,164,0,0.06);
  overflow: hidden;
}

.browser-chrome {
  background: #0f1923;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(45,63,82,0.8);
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d3f52;
}
.browser-dots span:nth-child(1) { background: #e63946; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #4fc3f7; }

.browser-url {
  flex: 1;
  background: rgba(13, 27, 42, 0.8);
  border: 1px solid rgba(45,63,82,0.6);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(245,240,232,0.45);
  text-align: center;
  max-width: 340px;
  margin: 0 auto;
}

/* ── Mock App ───────────────────────────────────────────────── */
.mock-app {
  display: flex;
  height: 520px;
}

.mock-sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--storm);
  border-right: 1px solid rgba(45,63,82,0.8);
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mock-sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 20px;
  border-bottom: 1px solid rgba(45,63,82,0.6);
  margin-bottom: 12px;
}

.mock-sidebar__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--lightning);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--night);
  flex-shrink: 0;
}

.mock-sidebar__logo-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--sand);
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin: 1px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(245,240,232,0.55);
  transition: all 0.15s;
}

.mock-nav-item--active {
  background: rgba(238,164,0,0.12);
  color: var(--lightning);
}

.mock-nav-item svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.mock-nav-item--active svg {
  opacity: 1;
  color: var(--lightning);
}

.mock-nav-sep {
  height: 1px;
  background: rgba(45,63,82,0.6);
  margin: 8px 16px;
}

.mock-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0f1923;
}

.mock-topbar {
  background: #0d1b2a;
  border-bottom: 1px solid rgba(45,63,82,0.6);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mock-topbar__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sand);
}

.mock-topbar__user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.55);
}

.mock-topbar__avatar {
  width: 28px;
  height: 28px;
  background: rgba(238,164,0,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--lightning);
}

.mock-content {
  flex: 1;
  overflow: auto;
  padding: 16px 20px;
}

.mock-hero-card {
  background: linear-gradient(135deg, #1a2332 0%, #0d1117 60%, #1a2332 100%);
  border: 1px solid rgba(45,63,82,0.8);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 14px;
}

.mock-hero-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.mock-hero-card__letter {
  width: 36px;
  height: 36px;
  background: var(--lightning);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--night);
  flex-shrink: 0;
}

.mock-hero-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sand);
}

.mock-hero-card__date {
  font-size: 0.6875rem;
  color: rgba(245,240,232,0.4);
  margin-top: 2px;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mock-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(45,63,82,0.6);
  border-radius: 6px;
  padding: 12px;
}

.mock-stat__value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--sand);
}

.mock-stat__value--lightning { color: var(--lightning); }
.mock-stat__value--plasma { color: var(--plasma); }
.mock-stat__value--error { color: var(--error); }

.mock-stat__label {
  font-size: 0.6875rem;
  color: rgba(245,240,232,0.4);
  margin-top: 4px;
}

.mock-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mock-card {
  background: #1a2535;
  border: 1px solid rgba(45,63,82,0.7);
  border-radius: 8px;
  overflow: hidden;
}

.mock-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(45,63,82,0.6);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sand);
}

.mock-card__header-action {
  font-size: 0.6875rem;
  color: var(--lightning);
  font-weight: 500;
}

.mock-table {
  width: 100%;
}

.mock-table__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(45,63,82,0.4);
  font-size: 0.75rem;
}

.mock-table__row:last-child {
  border-bottom: none;
}

.mock-table__name {
  flex: 1;
  color: rgba(245,240,232,0.8);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-table__meta {
  color: rgba(245,240,232,0.35);
  font-size: 0.6875rem;
  white-space: nowrap;
}

.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.625rem;
  font-weight: 600;
  white-space: nowrap;
}

.mock-badge--ok {
  background: rgba(79,195,247,0.12);
  color: var(--plasma);
}

.mock-badge--running {
  background: rgba(79,195,247,0.12);
  color: var(--plasma);
}

.mock-badge--failed {
  background: rgba(230,57,70,0.12);
  color: var(--error);
}

.mock-badge--pending {
  background: rgba(107,114,128,0.15);
  color: rgba(245,240,232,0.45);
}

.mock-badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.mock-badge--running .mock-badge__dot {
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Security section ───────────────────────────────────────── */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding: var(--space-4);
  background: rgba(245, 240, 232, 0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 240, 232, 0.08);
}

.auth-feature__icon {
  width: 36px;
  height: 36px;
  background: rgba(238, 164, 0, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lightning);
  flex-shrink: 0;
}

.auth-feature__title {
  font-size: 0.9375rem;
  color: var(--sand);
  margin-bottom: var(--space-1);
}

.auth-feature__desc {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.55;
}

.auth-visual {
  background: var(--night-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.auth-visual__title {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
  font-weight: 600;
}

.role-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(45,63,82,0.6);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.role-card:last-child { margin-bottom: 0; }

.role-card__badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.role-card__badge--admin { background: rgba(238,164,0,0.15); color: var(--lightning); }
.role-card__badge--operator { background: rgba(79,195,247,0.12); color: var(--plasma); }
.role-card__badge--viewer { background: rgba(107,114,128,0.15); color: rgba(245,240,232,0.5); }
.role-card__badge--restore { background: rgba(201,169,110,0.12); color: var(--glass); }

.role-card__name {
  font-size: 0.875rem;
  color: var(--sand);
}

.role-card__desc {
  margin-left: auto;
  font-size: 0.6875rem;
  color: rgba(245,240,232,0.35);
}

/* ── Notifications ──────────────────────────────────────────── */
.notif-channels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.notif-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.notif-channel:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.notif-channel__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.notif-channel__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.notif-channel__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--lightning);
  background: linear-gradient(160deg, #fff9ec 0%, var(--surface) 60%);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--lightning);
}

.pricing-card--coming {
  border-color: var(--border);
  background: var(--sand-alt);
  opacity: 0.85;
}

.pricing-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: rgba(238,164,0,0.12);
  color: var(--lightning);
  border-radius: var(--radius-full, 9999px);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.pricing-badge--plasma {
  background: rgba(79,195,247,0.12);
  color: var(--plasma);
}

.pricing-badge--coming {
  background: rgba(107,114,128,0.12);
  color: var(--text-muted);
}

.pricing-card__tier {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.pricing-card__price span {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  color: var(--text);
}

.pricing-feature svg {
  color: var(--lightning);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-feature--muted {
  color: var(--text-muted);
}

.pricing-feature--muted svg {
  color: var(--text-muted);
}

/* ── Pricing promise ────────────────────────────────────────── */
.pricing-promise {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: rgba(238, 164, 0, 0.06);
  border: 1px solid rgba(238, 164, 0, 0.20);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-promise svg {
  color: var(--lightning);
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-promise strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Roadmap ────────────────────────────────────────────────── */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.roadmap-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--night-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.roadmap-card::after {
  content: 'Prochainement';
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238,164,0,0.5);
  font-family: var(--font-mono);
}

.roadmap-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(238,164,0,0.10);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lightning);
  flex-shrink: 0;
}

.roadmap-card__title {
  font-size: 1rem;
  color: var(--sand);
  margin-bottom: var(--space-2);
}

.roadmap-card__desc {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.5);
  line-height: 1.65;
}

/* ── Final CTA ──────────────────────────────────────────────── */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--storm) 0%, #0a1520 50%, var(--storm) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(238,164,0,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--sand);
  margin-bottom: var(--space-4);
}

.cta-section__desc {
  font-size: 1.0625rem;
  color: rgba(245,240,232,0.6);
  margin-bottom: var(--space-8);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__btns {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: #080f18;
  border-top: 1px solid rgba(45,63,82,0.5);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: 48px;
}

.footer__brand__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--sand);
  margin-bottom: var(--space-3);
}

.footer__brand__name span { color: #ffe8b9; }

.footer__brand__desc {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.4);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.footer__brand__tag {
  font-size: 0.75rem;
  color: rgba(245,240,232,0.25);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.footer__col__title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(245,240,232,0.4);
  margin-bottom: var(--space-4);
}

.footer__col__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__col__links a {
  font-size: 0.875rem;
  color: rgba(245,240,232,0.55);
  transition: color 0.15s;
}

.footer__col__links a:hover {
  color: var(--sand);
}

.footer__bottom {
  border-top: 1px solid rgba(45,63,82,0.4);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__bottom__copy {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.3);
}

.footer__bottom__links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom__links a {
  font-size: 0.8125rem;
  color: rgba(245,240,232,0.35);
  transition: color 0.15s;
}

.footer__bottom__links a:hover {
  color: rgba(245,240,232,0.7);
}

/* ── Utilitaires spécifiques ────────────────────────────────── */

/* Hero: conteneur avec position relative pour z-index */
.hero__container { position: relative; z-index: 1; }

/* Preview section header */
.preview__header { padding-bottom: 48px; }

/* Section desc variantes */
.section__desc--dark { color: rgba(245,240,232,0.55); margin: 0 auto; }
.section__desc--mb { margin-bottom: var(--space-8); }

/* Mock: bouton actualiser */
.mock-hero-card__refresh { margin-left: auto; }
.mock-btn {
  background: rgba(238,164,0,0.12);
  border: 1px solid rgba(238,164,0,0.25);
  color: var(--lightning);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: default;
  font-family: var(--font-body);
}

/* Mock: stat value grisée */
.mock-stat__value--dim { color: rgba(245,240,232,0.4); }

/* Code inline */
.code-inline {
  color: var(--plasma);
  font-family: var(--font-mono);
  font-size: 0.8em;
}

/* Features also: label */
.features-also__label { margin-bottom: 24px; }

/* Notifications: note bas de section */
.notif-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Open source section */
.container--center { text-align: center; }

.opensource__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto var(--space-8);
}

.opensource__btns {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Bouton outline (contexte fond clair) */
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { background: var(--sand-alt); }

/* Bouton pleine largeur */
.btn--full {
  width: 100%;
  justify-content: center;
}

/* Pricing: variantes de taille du prix */
.pricing-card__price--pro { font-size: 1.75rem; }
.pricing-card__price--cloud { font-size: 1.5rem; color: var(--text-muted); }

/* Bouton "coming soon" désactivé */
.btn--coming {
  width: 100%;
  justify-content: center;
  background: var(--sand);
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  cursor: not-allowed;
  opacity: 0.75;
}

/* Roadmap: lien "voir plus" */
.roadmap-more {
  text-align: center;
  margin-top: 40px;
}

/* Footer: lien Aranéite */
.footer__aranite {
  color: var(--glass);
  opacity: 0.7;
  transition: opacity 0.15s;
}
.footer__aranite:hover { opacity: 1; }

/* Icônes canaux notification */
.notif-channel__icon--email    { background: #fef3c7; }
.notif-channel__icon--discord  { background: #ede9fe; }
.notif-channel__icon--slack    { background: #e0f2fe; }
.notif-channel__icon--telegram { background: #e0f7fa; }
.notif-channel__icon--ntfy     { background: #f0fdf4; }

/* ── Utilities ──────────────────────────────────────────────── */
.text-lightning { color: var(--lightning); }
.text-plasma { color: var(--plasma); }
.text-sand { color: var(--sand); }
.text-muted-dark { color: rgba(245,240,232,0.5); }
.text-center { text-align: center; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.divider {
  width: 40px;
  height: 3px;
  background: var(--lightning);
  border-radius: 2px;
  margin: var(--space-4) 0;
}

.divider--center { margin: var(--space-4) auto; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease both;
}

.fade-in-up--delay-1 { animation-delay: 0.1s; }
.fade-in-up--delay-2 { animation-delay: 0.2s; }
.fade-in-up--delay-3 { animation-delay: 0.3s; }

/* ── Auth secrets block ─────────────────────────────────────── */
.auth-secrets {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
}

.auth-secrets__title {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.auth-secrets__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
}

.auth-secrets__item-name {
  font-size: 0.8125rem;
  color: rgba(245, 240, 232, 0.8);
  font-weight: 500;
}

.auth-secrets__item-desc {
  font-size: 0.6875rem;
  color: rgba(245, 240, 232, 0.35);
  margin-top: 2px;
}

/* ── Roadmap more link ──────────────────────────────────────── */
.roadmap-more-link {
  font-size: 0.9375rem;
  color: rgba(245, 240, 232, 0.5);
  transition: color 0.15s;
}
.roadmap-more-link:hover {
  color: rgba(245, 240, 232, 0.85);
}

/* ── Features also ──────────────────────────────────────────── */
.features-also {
  margin-top: 56px;
  padding: 40px;
  background: var(--night-card);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
}

.features-also__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 32px;
}

.features-also__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(245, 240, 232, 0.7);
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Petit desktop / grande tablette (≤ 1100px) */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

/* Tablette paysage (≤ 1024px) */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .notif-channels { grid-template-columns: repeat(3, 1fr); }
}

/* Tablette portrait (≤ 900px) */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; }
  .auth-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* Mobile large (≤ 768px) */
@media (max-width: 768px) {
  .container { padding: 0 var(--space-4); }

  /* Nav */
  .nav__links { display: none; }
  .nav__cta .btn--secondary { display: none; }

  /* Hero */
  .hero { padding: 100px var(--space-4) 64px; }
  .hero__stat-sep { display: none; }
  .hero__stats { gap: var(--space-4); flex-wrap: wrap; }

  /* Sections */
  .section { padding: 64px 0; }
  .preview-section { padding: 64px 0; }

  /* Grilles */
  .pillars { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .features-also__grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .notif-channels { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* Mock app */
  .mock-app { height: 380px; }
  .mock-sidebar { width: 150px; min-width: 150px; }
  .mock-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-cols { grid-template-columns: 1fr; }
  .mock-hero-card { padding: 14px 16px; }
}

/* ── Language toggle ────────────────────────────────────────── */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: var(--space-3);
  padding-left: var(--space-3);
  border-left: 1px solid rgba(245,240,232,0.15);
}

.lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(245,240,232,0.45);
  background: none;
  border: none;
  padding: 2px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.lang-btn:hover { color: rgba(245,240,232,0.8); }
.lang-btn[aria-pressed="true"] { color: var(--lightning); }

.lang-sep {
  font-size: 0.625rem;
  color: rgba(245,240,232,0.2);
  user-select: none;
}

/* ── Waitlist modal ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.2s ease both;
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-alt);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.modal__close:hover { background: var(--border); color: var(--text); }

.modal__title {
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.modal__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  font-family: var(--font-body);
}

.form-group input[type="text"],
.form-group input[type="email"] {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--lightning);
  box-shadow: 0 0 0 3px rgba(238,164,0,0.15);
}
.form-group input.input--error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(230,57,70,0.12);
}

.plan-options {
  display: flex;
  gap: var(--space-3);
}

.plan-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 400;
}
.plan-option input[type="radio"] { accent-color: var(--lightning); }

.form-status {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}
.form-status[hidden] { display: none; }
.form-status--success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(79,195,247,0.3);
}
.form-status--error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(230,57,70,0.25);
}

@media (max-width: 480px) {
  .modal { padding: var(--space-6); }
  .plan-options { flex-direction: column; }
  .nav__lang { display: none; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
  /* Nav */
  .nav__cta .btn:not(:last-child) { display: none; }

  /* Hero */
  .hero { padding: 88px var(--space-4) 56px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: var(--space-3); }

  /* Sections */
  .section { padding: 48px 0; }
  .preview-section { padding: 48px 0; }
  .cta-section { padding: 64px 0; }

  /* Grilles */
  .features-also { padding: var(--space-6); }
  .features-also__grid { grid-template-columns: 1fr; }
  .notif-channels { grid-template-columns: 1fr 1fr; }
  .roadmap-card { flex-direction: column; }

  /* Auth */
  .auth-visual { padding: var(--space-6); }

  /* Mock app */
  .mock-sidebar { display: none; }
  .mock-app { height: 300px; }
  .mock-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .browser-chrome { padding: 8px 10px; }

  /* Pricing */
  .pricing-card { padding: var(--space-6); }
  .pricing-card__price { font-size: 2rem; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
}
