/* ===========================
   CLOUD COMPUTING — CSS
   Thème : Technique / Géométrique
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=JetBrains+Mono:wght@400;500&family=Lato:wght@300;400;700&display=swap');

:root {
  --bg:          #f0f4fc;
  --bg-white:    #ffffff;
  --bg-light:    #e8edf8;
  --primary:     #0a1628;
  --accent:      #2563eb;
  --accent-2:    #06b6d4;
  --accent-3:    #7c3aed;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.16);
  --text:        #0a1628;
  --text-muted:  #64748b;
  --text-light:  #94a3b8;
  --border:      #dde3f0;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-body:    'Lato', sans-serif;
  --radius:       16px;
  --shadow:       0 4px 24px rgba(10, 22, 40, 0.08);
  --shadow-lg:    0 12px 48px rgba(10, 22, 40, 0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ══ GRID BACKGROUND ══ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ══ CANVAS ══ */
#cloud-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ══ LAYOUT ══ */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 36px 100px;
}

/* ══ TOP BAR ══ */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.top-bar .breadcrumb a { color: var(--accent); text-decoration: none; }
.top-bar .breadcrumb span { margin: 0 8px; }

.top-bar .badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 5px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ══ HERO ══ */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.hero-left {}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  max-width: 80px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 .accent-word {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero h1 .accent-word::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  opacity: 0.35;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-ghost:hover { background: var(--accent-soft); }

/* ── Hero Visual Panel ── */
.hero-visual {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.visual-header {
  background: var(--primary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.visual-dots { display: flex; gap: 6px; }
.visual-dots span { width: 10px; height: 10px; border-radius: 50%; }
.visual-dots span:nth-child(1) { background: #ef4444; }
.visual-dots span:nth-child(2) { background: #f59e0b; }
.visual-dots span:nth-child(3) { background: #22c55e; }

.visual-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-left: auto;
  letter-spacing: 0.06em;
}

.visual-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: #475569;
}

.visual-body .line-num { color: #cbd5e1; margin-right: 16px; user-select: none; }
.visual-body .kw  { color: var(--accent-3); }
.visual-body .str { color: #059669; }
.visual-body .num { color: var(--accent); }
.visual-body .cm  { color: #94a3b8; font-style: italic; }
.visual-body .key { color: #dc2626; }

/* ══ STATS STRIP ══ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 72px;
  overflow: hidden;
}

.stat-cell {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background 0.2s;
}

.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--accent-soft); }

.stat-cell .num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ══ NAV ══ */
.section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.nav-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: var(--bg-white);
}

.nav-pill:hover, .nav-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ══ SECTIONS ══ */
.content-section {
  margin-bottom: 88px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.content-section.visible { opacity: 1; transform: translateY(0); }

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  width: 48px; height: 48px;
  background: var(--accent-soft);
  border: 1.5px solid rgba(37,99,235,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ══ CARD GRID ══ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-accent {
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, var(--accent-soft), transparent 70%);
}

.card-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.91rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ══ SERVICE MODEL ══ */
.service-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0;
}

.service-layer {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-layer:hover { transform: scaleX(1.005); }

.layer-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 20px 14px;
  text-align: center;
}

.layer-label.saas { background: #7c3aed; color: #fff; }
.layer-label.paas { background: var(--accent); color: #fff; }
.layer-label.iaas { background: #0891b2; color: #fff; }

.layer-content {
  background: var(--bg-white);
  padding: 18px 24px;
}

.layer-content h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.layer-content p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.layer-content .examples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.example-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--bg-light);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ══ PROVIDERS ══ */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.provider-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.provider-logo {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.provider-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.provider-share {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  margin: 8px 0 4px;
}

.provider-share-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.provider-services {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 14px;
}

.provider-services .tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ══ CODE ══ */
.code-snippet {
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  margin: 24px 0;
  box-shadow: var(--shadow-lg);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.code-lang {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 10px; height: 10px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #22c55e; }

.code-snippet pre {
  padding: 22px 24px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  color: #94a3b8;
}

.code-snippet pre .kw  { color: #818cf8; }
.code-snippet pre .fn  { color: var(--accent-2); }
.code-snippet pre .str { color: #86efac; }
.code-snippet pre .cm  { color: #475569; font-style: italic; }
.code-snippet pre .num { color: #fb923c; }
.code-snippet pre .key { color: #f472b6; }

/* ══ COMPARISON TABLE ══ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table thead th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 18px 20px;
  text-align: left;
  color: #fff;
  background: var(--primary);
}

.compare-table thead th:first-child { background: #1e293b; }

.compare-table tbody td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

.compare-table tbody td:first-child {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--bg-light);
}

.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover td { background: var(--accent-soft); }
.compare-table tbody tr:hover td:first-child { background: #dbeafe; }

/* ══ SECURITY ITEMS ══ */
.security-list { display: flex; flex-direction: column; gap: 12px; }

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}

.security-item:hover { border-color: rgba(37, 99, 235, 0.3); transform: translateX(4px); }

.security-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.security-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.security-item p { font-size: 0.88rem; color: var(--text-muted); }

/* ══ PIPELINE ══ */
.pipeline {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.pipe-step {
  flex: 1;
  min-width: 130px;
  padding: 24px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
}

.pipe-step:last-child { border-right: none; }
.pipe-step:hover { background: var(--accent-soft); }

.pipe-icon { font-size: 1.6rem; margin-bottom: 8px; }

.pipe-name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

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

/* ══ TOOLS ══ */
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.tool-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 4px 12px rgba(37,99,235,0.15); }
.tool-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ══ INFO BOX ══ */
.info-box {
  background: linear-gradient(135deg, var(--accent-soft), rgba(6,182,212,0.06));
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}

.info-box .info-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-box p { font-size: 0.93rem; color: var(--text); line-height: 1.7; }

/* ══ FOOTER ══ */
.page-footer {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.page-footer p { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.page-footer a { color: var(--accent); text-decoration: none; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: 1fr; }
  .card-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-wrapper { padding: 0 18px 80px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .pipeline { flex-direction: column; }
  .pipe-step { border-right: none; border-bottom: 1px solid var(--border); }
}
