/* =============================================================
   Docker Visualizer - Site vitrine
   ============================================================= */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-body: #0b0f14;
  --bg-section: #0f1419;
  --bg-card: #161c28;
  --bg-card-hover: #1c2536;
  --bg-nav: rgba(11,15,20,.92);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --cyan: #06b6d4;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #22c55e;
  --orange: #f59e0b;
  --red: #ef4444;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,.35);
  --max-w: 1200px;
  --transition: .25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #22d3ee; }

img { max-width: 100%; display: block; }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg-section); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: .3px;
}
.badge-cyan  { background: rgba(6,182,212,.15); color: var(--cyan); }
.badge-green { background: rgba(34,197,94,.15);  color: var(--green); }
.badge-blue  { background: rgba(59,130,246,.15); color: var(--blue); }
.badge-purple{ background: rgba(139,92,246,.15); color: var(--purple); }
.badge-orange{ background: rgba(245,158,11,.15); color: var(--orange); }

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-brand svg { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition);
}
.nav-cta:hover { background: #2563eb; color: #fff; }

/* Mobile burger */
.nav-burger {
  display: none;
  background: none; border: none; color: var(--text); cursor: pointer;
  padding: 4px;
}
.nav-burger svg { width: 24px; height: 24px; }

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(6,182,212,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--cyan); }
.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2563eb; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #16a34a; color: #fff; }

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}
.fi-cyan   { background: rgba(6,182,212,.12);  color: var(--cyan); }
.fi-blue   { background: rgba(59,130,246,.12); color: var(--blue); }
.fi-green  { background: rgba(34,197,94,.12);  color: var(--green); }
.fi-purple { background: rgba(139,92,246,.12); color: var(--purple); }
.fi-orange { background: rgba(245,158,11,.12); color: var(--orange); }
.fi-red    { background: rgba(239,68,68,.12);  color: var(--red); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Screenshots / Demo --- */
.screenshot-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.screenshot-tab {
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition);
}
.screenshot-tab:hover { border-color: var(--cyan); color: var(--text); }
.screenshot-tab.active {
  background: rgba(6,182,212,.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

.screenshot-display {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-section);
}
.screenshot-frame {
  display: none;
  width: 100%;
}
.screenshot-frame.active { display: block; }

/* Mock browser chrome */
.mock-browser {
  background: #1a1f2e;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #111827;
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot-r { background: #ef4444; }
.mock-dot-y { background: #f59e0b; }
.mock-dot-g { background: #22c55e; }
.mock-url {
  flex: 1;
  padding: 5px 12px;
  font-size: .75rem;
  background: rgba(255,255,255,.05);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: monospace;
}
.mock-body {
  padding: 0;
  min-height: 420px;
  position: relative;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-card:hover {
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--cyan);
  position: relative;
}
.pricing-card.featured::before {
  content: 'Populaire';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--cyan);
  color: #0f1419;
  border-radius: 12px;
}
.pricing-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.pricing-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.pricing-header .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.pricing-header .price-unit {
  font-size: .9rem;
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-header .price-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}
.pricing-features li {
  padding: 6px 0;
  font-size: .9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li::before {
  content: '\2713';
  flex-shrink: 0;
  color: var(--green);
  font-weight: 700;
}
.pricing-features li.excluded {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: .6;
}
.pricing-features li.excluded::before {
  content: '\2717';
  color: var(--text-muted);
}

/* Options supplementaires */
.pricing-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tarifs page : card classes */
.pricing-label {
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.pricing-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 2px;
}
.pricing-period {
  font-size: .85rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}
.pricing-body { flex: 1; display: flex; flex-direction: column; }

.pricing-card-popular {
  border-color: var(--cyan);
  position: relative;
}
.pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--cyan);
  color: #0f1419;
  border-radius: 12px;
  white-space: nowrap;
}

.pricing-included,
.pricing-excluded {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-included svg,
.pricing-excluded svg { flex-shrink: 0; margin-top: 2px; }
.pricing-excluded {
  color: var(--text-muted) !important;
  opacity: .7;
}

.pricing-cta {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  margin-top: auto;
}
.pricing-cta:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.pricing-cta-popular {
  background: var(--cyan);
  color: #0f1419;
  border-color: var(--cyan);
}
.pricing-cta-popular:hover {
  background: #22d3ee;
  color: #0f1419;
}

/* Pricing option cards (addons) */
.pricing-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), transform var(--transition);
}
.pricing-option-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.pricing-option-icon {
  margin-bottom: 12px;
}
.pricing-option-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pricing-option-price {
  margin-bottom: 12px;
}
.pricing-option-amount {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
}
.pricing-option-detail {
  font-size: .8rem;
  color: var(--text-muted);
  margin-left: 6px;
}
.pricing-option-card ul {
  list-style: none;
  padding: 0;
}
.pricing-option-card li {
  padding: 4px 0;
  font-size: .85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.pricing-option-card li::before {
  content: '\2713';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

/* CTA box */
.cta-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}
.cta-box h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-box p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Nav scrolled state */
.site-nav.scrolled {
  background: rgba(11,15,20,.97);
}

/* Nav active link */
.nav-links a.active {
  color: var(--cyan);
}

/* --- Doc sections (inline) --- */
.doc-nav {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 24px;
  border-right: 1px solid var(--border);
}
.doc-nav a {
  padding: 6px 12px;
  font-size: .85rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.doc-nav a:hover,
.doc-nav a.active {
  background: rgba(6,182,212,.08);
  color: var(--cyan);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.doc-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.doc-content h2:first-child { margin-top: 0; }

.doc-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--cyan);
}

.doc-content p,
.doc-content ul,
.doc-content ol {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.doc-content ul,
.doc-content ol {
  padding-left: 20px;
}
.doc-content li {
  margin-bottom: 6px;
}

.doc-content code {
  background: rgba(6,182,212,.08);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .875rem;
  font-family: 'Consolas', 'Monaco', 'Fira Code', monospace;
}

.doc-content pre {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 20px;
  font-size: .85rem;
  line-height: 1.6;
}
.doc-content pre code {
  background: none;
  padding: 0;
  color: var(--text-secondary);
}

.doc-callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  border-left: 4px solid;
  font-size: .9rem;
  line-height: 1.6;
}
.doc-callout-info {
  background: rgba(59,130,246,.08);
  border-color: var(--blue);
  color: var(--text-secondary);
}
.doc-callout-warn {
  background: rgba(245,158,11,.08);
  border-color: var(--orange);
  color: var(--text-secondary);
}
.doc-callout-security {
  background: rgba(139,92,246,.08);
  border-color: var(--purple);
  color: var(--text-secondary);
}
.doc-callout strong {
  color: var(--text);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: .9rem;
}
.doc-table th,
.doc-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.doc-table th {
  font-weight: 600;
  color: var(--text);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.doc-table td {
  color: var(--text-secondary);
}

/* Inline mock screenshots for doc */
.doc-screenshot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* --- Footer --- */
.site-footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-section);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-secondary); font-size: .9rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 48px; }
  .pricing-options { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 12px; margin-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 120px 0 60px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 1.75rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-options { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
