/* ==========================================================================
   Micro2Text — Modern Stylesheet
   ========================================================================== */

:root {
  --primary: #000091;        /* Bleu France Marianne */
  --primary-hover: #1212ff;
  --primary-light: #e3e3fd;
  --secondary: #e1000f;      /* Rouge France */
  --accent: #008941;         /* Vert validation */
  --bg: #0b0f19;             /* Fond sombre moderne */
  --bg-alt: #111827;
  --bg-card: #1f2937;
  --border: #374151;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

kbd {
  display: inline-block;
  padding: 2px 7px;
  font-size: 0.85em;
  font-weight: 600;
  color: #f3f4f6;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 4px;
  box-shadow: 0 2px 0 #1f2937;
}

/* --- Container & Layout --- */
.container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
}

/* --- Navigation --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.badge-republique {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ffffff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
}

.btn-nav {
  background-color: #2563eb;
  color: #ffffff !important;
}

.btn-nav:hover {
  background-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: #e5e7eb !important;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: #374151;
  border-color: #4b5563;
  transform: translateY(-2px);
}

.download-btn {
  padding: 14px 22px;
  border-radius: var(--radius-md);
  text-align: left;
}

.btn-text {
  display: flex;
  flex-direction: column;
}

.btn-label {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.btn-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

/* --- Hero Section --- */
.hero {
  padding-block: clamp(3rem, 6vw, 6rem);
  background: radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.15), transparent 70%);
}

.hero-container {
  width: min(100% - 2rem, 1140px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 41, 55, 0.8);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: #93c5fd;
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(135deg, #60a5fa, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.18rem);
  color: #d1d5db;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Hero Visual Mockup --- */
.mockup-window {
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-title {
  margin-left: 10px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.mockup-body {
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mockup-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cbd5e1;
}

.highlight-text {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 2px 4px;
  border-radius: 4px;
}

.cursor {
  animation: blink 1s step-start infinite;
  color: #60a5fa;
  font-weight: 700;
}

@keyframes blink {
  50% { opacity: 0; }
}

.mockup-overlay {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.indicator-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.state-recording {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.state-success {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* --- Sections Common --- */
.section {
  padding-block: clamp(3rem, 5vw, 5rem);
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #4b5563;
}

.step-number {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

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

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

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

.feature-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Tab Container (Installation) --- */
.tab-container {
  max-width: 780px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.tab-buttons {
  display: flex;
  background: #111827;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  color: #60a5fa;
  border-bottom: 2px solid #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.tab-content {
  display: none;
  padding: 32px;
}

.tab-content.active {
  display: block;
}

.install-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.install-steps li {
  line-height: 1.7;
}

.code-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px 16px;
  margin-top: 8px;
  color: #38bdf8;
  font-size: 0.9rem;
  overflow-x: auto;
}

.install-footer {
  margin-top: 28px;
  display: flex;
  justify-content: flex-start;
}

/* --- FAQ & Tutoriel Clé Albert --- */
.badge-academie {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.tuto-card {
  max-width: 1040px;
  margin-inline: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.tuto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.tuto-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tuto-step:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
}

.tuto-step-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.tuto-step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.tuto-step h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.tuto-step p {
  color: #e5e7eb;
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.btn-outline {
  background: transparent;
  border: 1px solid #3b82f6;
  color: #60a5fa;
}

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  text-decoration: none;
}

.btn-tuto {
  margin-block: 10px;
  padding: 8px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  width: fit-content;
}

.tuto-subtext {
  color: var(--text-muted) !important;
  font-size: 0.86rem !important;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

.tuto-list {
  list-style: none;
  padding-left: 0;
  margin-block: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #e5e7eb;
}

.tuto-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.4;
}

.tuto-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #10b981;
  font-size: 0.8rem;
}

.tuto-banner {
  display: flex;
  gap: 18px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.tuto-banner-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

.tuto-banner-content h4 {
  font-size: 1rem;
  color: #93c5fd;
  margin-bottom: 8px;
}

.tuto-banner-content ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: #d1d5db;
}

.tuto-banner-content li {
  line-height: 1.5;
}

.faq-card {
  max-width: 780px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}

.faq-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #60a5fa;
}

.faq-card p {
  color: #d1d5db;
  margin-bottom: 12px;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 36px;
  background-color: var(--bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-cta {
    flex-direction: column;
  }
  .download-btn {
    width: 100%;
  }
  .tuto-card {
    padding: 20px 16px;
  }
  .tuto-banner {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
}
