/* MentionBrevet — Landing page styles */
:root {
  --primary: #4f46e5;
  --primary-light: #6366f1;
  --primary-dark: #3730a3;
  --primary-glow: rgba(99, 102, 241, 0.15);
  --accent: #a855f7;
  --bg: #f8f7ff;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --fg: #1e1b4b;
  --fg-muted: #6b7280;
  --fg-light: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-w: 1100px;
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAV ---- */
.nav {
  background: rgba(248, 247, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-icon { font-size: 22px; }

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.btn-nav {
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.btn-nav:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  opacity: 0.93;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.4);
}

.btn-primary.btn-large {
  padding: 18px 40px;
  font-size: 18px;
}

.btn-ghost {
  display: inline-block;
  color: var(--primary);
  text-decoration: none;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--primary-dark); }

.btn-arrow { font-size: 18px; }

/* ---- HERO ---- */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--fg);
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-cta-sub {
  font-size: 13px;
  color: var(--fg-light);
  font-weight: 500;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat strong {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- SECTIONS SHARED ---- */
section { padding: 80px 0; }

.section-label {
  display: inline-block;
  background: rgba(79, 70, 229, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  color: var(--fg);
}

.section-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* ---- MATIERES ---- */
.matieres { background: var(--bg-white); }

.matieres-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.matiere-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.matiere-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}

.matiere-card:hover {
  border-color: var(--card-color, var(--primary));
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.matiere-card-wide {
  grid-column: span 2;
}

.matiere-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

.matiere-info { flex: 1; }

.matiere-info h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: var(--fg);
}

.matiere-info p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.matiere-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--card-color, var(--primary));
  background: color-mix(in srgb, var(--card-color, var(--primary)) 10%, transparent);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- PREVIEW ---- */
.preview { background: var(--bg); }

.preview-wrapper {
  position: relative;
}

.preview-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.preview-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border-light);
}

.preview-matiere {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.preview-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--fg);
}

.preview-body {
  padding: 28px 32px;
}

.preview-section {
  margin-bottom: 28px;
}

.preview-section h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.preview-formula {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-formula > div {
  background: rgba(79, 70, 229, 0.04);
  border-left: 3px solid var(--primary-light);
  padding: 10px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15px;
}

.preview-blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.preview-cta-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 60px 24px 40px;
  text-align: center;
  background: linear-gradient(to top, rgba(248,247,255,1) 60%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preview-lock { font-size: 36px; }

.preview-cta-overlay p {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
}

/* ---- PRIX ---- */
.prix {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  color: white;
}

.prix .section-label {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

.prix h2 { color: white; }

.prix-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(10px);
}

.prix-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.prix-amount {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: white;
  margin-bottom: 8px;
}

.prix-currency {
  font-size: 40px;
  vertical-align: top;
  margin-top: 16px;
  display: inline-block;
}

.prix-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}

.prix-list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prix-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  padding: 10px 16px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
}

.prix-secure {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ---- FAQ ---- */
.faq { background: var(--bg-white); }

.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--primary-light);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--primary);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.closing-emoji { font-size: 56px; }

.closing h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1.5px;
}

.closing p {
  font-size: 18px;
  color: var(--fg-muted);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--fg);
  color: rgba(255,255,255,0.6);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.footer-text {
  font-size: 13px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover { color: white; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .matieres-grid {
    grid-template-columns: 1fr;
  }
  .matiere-card-wide { grid-column: span 1; }

  .hero-stats { gap: 20px; }
  .hero-stat-divider { height: 30px; }

  .prix-card { padding: 36px 24px; }

  .preview-body { padding: 20px; }
  .preview-header { padding: 20px; }

  .footer-inner { flex-direction: column; text-align: center; }

  .nav-inner .btn-nav { display: none; }

  section { padding: 60px 0; }
}

@media (max-width: 480px) {
  body { font-size: 15px; }
  .hero { padding: 60px 24px 40px; }
  .hero h1 { letter-spacing: -1px; }
  .hero-stats { gap: 16px; }
  .hero-stat-divider { display: none; }
  .btn-primary.btn-large { padding: 16px 28px; font-size: 16px; }
}
