:root {
  /* Fond chaud, pas blanc pur */
  --bg:        #f5f4f0;
  --bg2:       #ffffff;
  --bg3:       #edecea;
  --border:    #e0ddd8;
  --border2:   #c9c5bf;
  /* Accent : bleu ardoise, lisible et reposant */
  --indigo:       #3b5bdb;
  --indigo-light: #eef1fc;
  --indigo-mid:   #c5cffa;
  /* Secondaires doux */
  --amber:      #b45309;
  --amber-bg:   #fef3c7;
  --teal:       #0f766e;
  --teal-bg:    #ccfbf1;
  --rose:       #be123c;
  --rose-bg:    #ffe4e6;
  --green:      #166534;
  --green-bg:   #dcfce7;
  --slate:      #475569;
  /* Texte */
  --text:       #1a1917;
  --text2:      #57534e;
  --text3:      #a8a29e;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.05);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
/* Texture très subtile */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='0.8' fill='%23c9c5bf' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}
a { color: inherit; text-decoration: none; }
/* ══ NAV ══ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(245,244,240,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
nav .wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  height: 58px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1rem;
  letter-spacing: -0.02em; color: var(--text);
}
.nav-brand span { color: var(--indigo); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text2); transition: color 0.2s;
}
.nav-links a:hover { color: var(--indigo); }
.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  background: var(--indigo); color: #fff;
  padding: 0.48rem 1.2rem; border-radius: 100px;
  letter-spacing: 0.04em; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(59,91,219,0.28);
}
.nav-cta:hover { background: #2f4bbf; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(59,91,219,0.35); }
/* ══ HERO ══ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 7rem 2rem 4rem;
  position: relative; z-index: 1;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--indigo);
  background: var(--indigo-light); border: 1px solid var(--indigo-mid);
  padding: 0.35rem 0.9rem; border-radius: 100px; margin-bottom: 1.6rem;
  animation: fadeUp 0.5s ease both;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo); animation: ping 2.4s ease infinite;
}
@keyframes ping { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.35;transform:scale(1.4)} }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 3.9rem);
  font-weight: 800; line-height: 1.07;
  letter-spacing: -0.03em; margin-bottom: 1.2rem;
  color: var(--text);
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero h1 .dim { color: var(--text2); font-weight: 400; }
.hero-sub {
  font-size: 1rem; color: var(--text2); line-height: 1.8;
  margin-bottom: 2rem; font-weight: 300;
  animation: fadeUp 0.5s 0.16s ease both;
}
.hero-sub strong { color: var(--text); font-weight: 400; }
.hero-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  animation: fadeUp 0.5s 0.24s ease both;
}
.btn {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.65rem 1.4rem; border-radius: 100px;
  border: none; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 2px 10px rgba(59,91,219,0.3); }
.btn-primary:hover { background: #2f4bbf; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,91,219,0.35); }
.btn-outline { background: #fff; color: var(--text2); border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
/* Live cluster panel */
.hero-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  animation: fadeUp 0.5s 0.28s ease both;
  box-shadow: var(--shadow-lg);
}
.panel-header {
  background: var(--bg3); padding: 0.8rem 1.1rem;
  display: flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Syne', sans-serif; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.07em; color: var(--text2);
  text-transform: uppercase;
}
.mac-dot { width: 11px; height: 11px; border-radius: 50%; }
.mac-red    { background: #ff5f57; }
.mac-yellow { background: #febc2e; }
.mac-green  { background: #28c840; }
.panel-title { margin-left: auto; }
.lxc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.lxc-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.1rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transition: background 0.15s;
}
.lxc-item:hover { background: var(--indigo-light); }
.lxc-item:nth-child(even) { border-right: none; }
.lxc-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem; font-weight: 600; color: var(--text2);
}
.lxc-pill {
  font-family: 'Syne', sans-serif; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--green-bg); color: var(--green);
  padding: 0.15rem 0.5rem; border-radius: 100px;
  display: flex; align-items: center; gap: 0.3rem;
}
.lxc-pill::before {
  content: ''; width: 5px; height: 5px; border-radius: 50;
  background: var(--green); border-radius: 50%; animation: ping 3s ease infinite;
}
.panel-footer {
  padding: 0.75rem 1.1rem;
  font-family: 'Syne', sans-serif; font-size: 0.67rem; color: var(--text3);
  display: flex; justify-content: space-between;
  background: var(--bg3); border-top: 1px solid var(--border);
}
.panel-footer strong { color: var(--indigo); font-weight: 700; }

/* ══ WRAP & SECTIONS ══ */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }
section { padding: 5.5rem 0; }
.sep { border: none; border-top: 1px solid var(--border); margin: 0; }
.eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--indigo); margin-bottom: 0.5rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.08;
  color: var(--text); margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 0.97rem; color: var(--text2); max-width: 580px;
  line-height: 1.8; font-weight: 300;
}
/* ══ ARCHITECTURE ══ */
.arch-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow); margin-top: 3rem;
}
.arch-layers { display: flex; flex-direction: column; }
.arch-layer {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.arch-layer:last-child { border-bottom: none; }
.arch-layer-label {
  width: 140px; flex-shrink: 0;
  padding: 1.2rem 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--text3);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: flex-end; text-align: right;
}
.arch-layer-content {
  flex: 1; padding: 1rem 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
}
.arch-chip {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 0.8rem; border-radius: 6px; border: 1.5px solid;
  display: flex; align-items: center; gap: 0.4rem; white-space: nowrap;
}
.arch-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-indigo { color: var(--indigo); border-color: var(--indigo-mid); background: var(--indigo-light); }
.chip-amber  { color: var(--amber);  border-color: #fcd34d;           background: var(--amber-bg); }
.chip-teal   { color: var(--teal);   border-color: #5eead4;           background: var(--teal-bg); }
.chip-rose   { color: var(--rose);   border-color: #fda4af;           background: var(--rose-bg); }
.chip-gray   { color: var(--text2);  border-color: var(--border2);    background: var(--bg3); }
.chip-green  { color: var(--green);  border-color: #86efac;           background: var(--green-bg); }
.flow-note {
  padding: 0.55rem 1.5rem 0.55rem calc(140px + 1.5rem);
  font-family: 'Syne', sans-serif; font-size: 0.62rem;
  color: var(--text3); border-bottom: 1px solid var(--border);
  font-style: italic; background: var(--bg);
}
/* ══ SCENARIO ══ */
.scenario-intro {
  background: var(--indigo-light); border: 1.5px solid var(--indigo-mid);
  border-radius: 10px; padding: 1.25rem 1.5rem;
  margin-top: 2rem; margin-bottom: 3rem;
  font-size: 0.9rem; color: var(--text2); line-height: 1.75;
}
.scenario-intro strong { color: var(--indigo); font-weight: 700; }
.steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.steps::before {
  content: ''; position: absolute;
  left: 27px; top: 55px; bottom: 55px; width: 1.5px;
  background: linear-gradient(to bottom, var(--indigo-mid), var(--border) 80%, transparent);
}
.step {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 1.5rem; padding: 2rem 0;
  border-bottom: 1px solid var(--border); position: relative;
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 800;
  color: var(--text2); flex-shrink: 0; position: relative; z-index: 1;
  transition: all 0.25s; box-shadow: var(--shadow-sm);
}
.step:hover .step-num {
  border-color: var(--indigo); color: var(--indigo); background: var(--indigo-light);
  box-shadow: 0 0 0 5px var(--indigo-light);
}
.step-body { padding-top: 0.6rem; }
.step-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 0.3rem;
}
.step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem; font-weight: 800; margin-bottom: 0.65rem;
  letter-spacing: -0.015em; color: var(--text);
}
.step-desc {
  font-size: 0.92rem; color: var(--text2); line-height: 1.8;
  margin-bottom: 1rem; font-weight: 300;
}
.step-creds {
  display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem;
}
.cred {
  font-family: 'Syne', sans-serif; font-size: 0.7rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.3rem 0.7rem; color: var(--text2);
}
.cred strong { color: var(--amber); font-weight: 700; }
.step-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700;
  color: var(--indigo); background: var(--indigo-light);
  border: 1.5px solid var(--indigo-mid);
  padding: 0.5rem 1.1rem; border-radius: 100px;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.step-link:hover {
  background: var(--indigo); color: #fff;
  box-shadow: 0 4px 14px rgba(59,91,219,0.28);
  transform: translateX(4px);
}
.step-link::after { content: '→'; }
.step-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.9rem; }
.tag {
  font-family: 'Syne', sans-serif; font-size: 0.63rem; font-weight: 600;
  padding: 0.22rem 0.6rem; border-radius: 5px;
  background: var(--bg3); border: 1px solid var(--border); color: var(--text3);
}
/* ══ SKILLS ══ */
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem;
}
.skill-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.skill-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.skill-icon { font-size: 1.5rem; margin-bottom: 0.8rem; }
.skill-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.82rem; font-weight: 800; color: var(--text);
  margin-bottom: 1rem; letter-spacing: -0.01em;
}
.skill-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.skill-chip {
  font-family: 'Syne', sans-serif; font-size: 0.65rem; font-weight: 600;
  padding: 0.24rem 0.6rem; border-radius: 5px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text2);
  transition: all 0.15s;
}
.skill-chip:hover { background: var(--indigo-light); border-color: var(--indigo-mid); color: var(--indigo); }
/* ══ CONTACT ══ */
#contact { background: var(--bg2); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.5rem;
}
.contact-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 1.3rem;
  transition: all 0.2s; display: flex; flex-direction: column; gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}
.contact-card:hover {
  border-color: var(--indigo); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.contact-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text3);
}
.contact-value {
  font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--text2);
}
/* ══ FOOTER ══ */
footer {
  background: var(--bg); border-top: 1px solid var(--border); padding: 1.5rem 0;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: 'Syne', sans-serif; font-size: 0.68rem; color: var(--text3); }
.footer-status {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-size: 0.68rem; color: var(--green);
  font-weight: 700;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: ping 2.2s ease infinite;
}
/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in { opacity: 1; transform: none; }
/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .arch-layer-label { width: 85px; font-size: 0.52rem; }
  .flow-note { padding-left: calc(85px + 1rem); }
  .nav-links { display: none; }
}
@media (max-width: 480px) {
  .skills-grid { grid-template-columns: 1fr; }
  .lxc-grid { grid-template-columns: 1fr; }
  .lxc-item { border-right: none !important; }
}


h1, h2 { color: var(--text-primary); font-weight: 800; }
p { color: var(--text-secondary); line-height: 1.6; }
.footer-copy, .footer-status { color: var(--text-muted); font-size: 0.75rem; }
