/* Qredon presentation site — overrides Tailwind */
:root {
  --qr-emerald: #0F4C3A;
  --qr-emerald-dark: #0a3527;
  --qr-emerald-light: #1a6b53;
  --qr-copper: #B87333;
  --qr-copper-light: #d8975a;
  --qr-cream: #FAF7F0;
  --qr-success: #2E7D4F;
  --qr-error: #A63D2A;
  --qr-ink: #1a1a1a;
  --qr-text-muted: #6b7280;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--qr-cream);
  color: var(--qr-ink);
}

.font-display {
  font-family: Georgia, 'Times New Roman', serif;
}

.bg-qr-emerald { background: var(--qr-emerald); }
.bg-qr-copper { background: var(--qr-copper); }
.bg-qr-cream { background: var(--qr-cream); }
.text-qr-emerald { color: var(--qr-emerald); }
.text-qr-copper { color: var(--qr-copper); }
.border-qr-emerald { border-color: var(--qr-emerald); }

.btn-primary {
  background: var(--qr-emerald);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--qr-emerald-dark);
}
.btn-copper {
  background: var(--qr-copper);
  color: white;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-copper:hover {
  background: var(--qr-copper-light);
}

.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.feature-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.screenshot-frame {
  background: linear-gradient(135deg, var(--qr-emerald) 0%, var(--qr-emerald-light) 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
}
.screenshot-frame img {
  border-radius: 0.5rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  width: 100%;
  height: auto;
  display: block;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-emerald { background: rgba(15,76,58,0.1); color: var(--qr-emerald); }
.badge-copper { background: rgba(184,115,51,0.1); color: var(--qr-copper); }
.badge-success { background: rgba(46,125,79,0.1); color: var(--qr-success); }
.badge-warn { background: rgba(245,158,11,0.1); color: #d97706; }
.badge-error { background: rgba(166,61,42,0.1); color: var(--qr-error); }

.tech-section {
  background: #f9fafb;
  border-left: 4px solid var(--qr-copper);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 1rem;
}
.tech-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--qr-copper);
  list-style: none;
}
.tech-section summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}
.tech-section[open] summary::before {
  transform: rotate(90deg);
}

.test-section {
  background: #f0fdf4;
  border-left: 4px solid var(--qr-success);
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 1rem;
}
.test-section summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--qr-success);
  list-style: none;
}
.test-section summary::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}
.test-section[open] summary::before {
  transform: rotate(90deg);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
table.data-table th {
  background: var(--qr-emerald);
  color: white;
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
}
table.data-table td {
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}
table.data-table tr:nth-child(even) td {
  background: #fafaf9;
}

code, pre {
  font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
}
code.inline {
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
  color: var(--qr-emerald-dark);
}
pre.code-block {
  background: #1a1a1a;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.scenario-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px dashed #e5e7eb;
}
.scenario-step:last-child { border-bottom: 0; }
.scenario-step .step-num {
  background: var(--qr-emerald);
  color: white;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Sidebar */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  color: #374151;
  transition: all 0.15s;
}
.sidebar-link:hover {
  background: rgba(15,76,58,0.06);
  color: var(--qr-emerald);
}
.sidebar-link.active {
  background: var(--qr-emerald);
  color: white;
}
.sidebar-link.active .sidebar-icon { color: white; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0 !important; padding: 1rem !important; }
}

/* ─── Mode Testeurs ─────────────────────────────────────────────────── */
/* Toutes les sections avec data-testers-only sont cachées par défaut. */
[data-testers-only] {
  display: none !important;
}
body.testers-mode [data-testers-only] {
  display: revert !important;
}
body.testers-mode [data-testers-only].block {
  display: block !important;
}
/* Pré-load : pour éviter le flash, on cache aussi via html class */
html.testers-preload [data-testers-only] {
  display: revert;
}

/* Bouton flottant Mode Testeurs */
.testers-toggle-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  background: var(--qr-emerald);
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.15s, transform 0.15s;
}
.testers-toggle-btn:hover {
  background: var(--qr-emerald-dark);
  transform: translateY(-1px);
}
body.testers-mode .testers-toggle-btn {
  background: var(--qr-copper);
}
body.testers-mode .testers-toggle-btn:hover {
  background: var(--qr-copper-light);
}

/* Bannière mode actif */
body.testers-mode::before {
  content: '🔑 Mode Testeurs actif — données de test visibles';
  display: block;
  background: var(--qr-copper);
  color: white;
  padding: 0.4rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 99;
}
