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

:root {
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --bg: #14110b;
  --bg-alt: #1c1810;
  --surface: #27221a;
  --text: #f3e8d4;
  --muted: #a59780;
  --accent: #bda178;
  --accent-hover: #d6ba8f;
  --accent-soft: rgba(189, 161, 120, 0.18);
  --accent-2: #e8b14b;
  --accent-2-soft: rgba(232, 177, 75, 0.14);
  --accent-3: #c97b5a;
  --border: rgba(243, 232, 212, 0.08);
  --border-strong: rgba(243, 232, 212, 0.18);
  --terminal-bg: #0f0c07;
  --terminal-text: #f3e8d4;
  --terminal-muted: rgba(243, 232, 212, 0.55);
  --terminal-faint: rgba(243, 232, 212, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(15, 12, 7, 0.5);
  --nav-h: 64px;
}

[data-theme="light"] {
  --bg: #f7f1e6;
  --bg-alt: #ece4d2;
  --surface: #ffffff;
  --text: #2a1f11;
  --muted: #7a6a52;
  --accent: #9a7b4f;
  --accent-hover: #7f633e;
  --accent-soft: rgba(154, 123, 79, 0.12);
  --accent-2: #c28a24;
  --accent-2-soft: rgba(194, 138, 36, 0.12);
  --accent-3: #a7583d;
  --border: rgba(42, 31, 17, 0.08);
  --border-strong: rgba(42, 31, 17, 0.16);
  --terminal-bg: #0f0c07;
  --terminal-text: #f3e8d4;
  --terminal-muted: rgba(243, 232, 212, 0.65);
  --terminal-faint: rgba(243, 232, 212, 0.40);
  --shadow: 0 8px 32px rgba(154, 123, 79, 0.10);
}

html { scroll-behavior: smooth; }

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
[hidden] { display: none !important; }

/* ── Splash ── */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(189, 161, 120, 0.22), transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 60%, rgba(232, 177, 75, 0.12), transparent 60%),
    var(--terminal-bg);
  transition: opacity 0.7s ease, visibility 0.7s;
}

.splash.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-name {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 4rem);
  letter-spacing: 0.18em;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(189, 161, 120, 0.35);
}

/* ── Terminal Hero ── */
.terminal-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 90% 70% at 20% 30%, rgba(189, 161, 120, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 80% 70%, rgba(232, 177, 75, 0.10), transparent 55%),
    var(--terminal-bg);
  color: var(--terminal-text);
  position: relative;
}

.terminal-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 48px);
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
}

.terminal-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--terminal-text);
}

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

.toggle-lang,
.toggle-theme {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border: 1px solid var(--terminal-faint);
  border-radius: var(--radius-sm);
  color: var(--terminal-muted);
  transition: color 0.2s, border-color 0.2s;
}

.toggle-lang:hover,
.toggle-theme:hover { color: var(--terminal-text); border-color: rgba(228, 224, 240, 0.28); }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

.terminal-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 48px) 100px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
}

.terminal-name {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--terminal-text);
  margin-bottom: 8px;
}

.terminal-role {
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  color: var(--terminal-muted);
  margin-bottom: 44px;
}

.terminal-prompt {
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--terminal-text);
}

.terminal-hint {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terminal-faint);
  margin-bottom: 28px;
}

.terminal-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
  min-height: 28px;
  width: 100%;
  max-width: 320px;
}

.terminal-cursor {
  font-size: 1rem;
  color: var(--accent);
  animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-input {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: transparent;
  border: none;
  outline: none;
  color: var(--terminal-text);
  text-align: left;
  min-width: 0;
  flex: 1;
  max-width: 100%;
}

.terminal-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s, transform 0.3s;
}

.terminal-choices.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.terminal-choice {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--terminal-muted);
  padding: 4px 0;
  background: transparent;
  border: none;
  transition: color 0.2s, transform 0.2s;
}

.terminal-choice:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.terminal-log {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 24px;
  line-height: 1.8;
  text-align: left;
  width: 100%;
  min-height: 64px;
}

.terminal-log .log-user { color: var(--terminal-text); }
.terminal-log .log-bot { color: var(--accent); }

.terminal-restart {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terminal-faint);
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.terminal-restart:hover { color: var(--terminal-text); }

.terminal-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: rgba(228, 224, 240, 0.4);
  z-index: 1;
  transition: color 0.2s;
}

.terminal-scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: var(--border-strong);
}

.terminal-scroll:hover { color: var(--terminal-text); }

/* ── Nav drawer ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open { opacity: 1; pointer-events: all; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(300px, 88vw);
  z-index: 1001;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 80px 28px 28px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-drawer.open { transform: translateX(0); }
.nav-drawer ul { list-style: none; }
.drawer-link {
  display: block;
  padding: 14px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.drawer-link:hover { color: var(--text); }

.nav-chat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  width: 100%;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.nav-chat:hover { border-color: var(--accent); color: var(--accent); }
.drawer-chat { width: 100%; }

/* ── Logo marquee ── */
.logo-marquee {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 14px 0;
  background: var(--bg);
}

.logo-marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.logo-marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sections ── */
.site-main { background: var(--bg); }

.section {
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 80px);
  max-width: 1240px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
}
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 40px;
}

.section-header { margin-bottom: 0; }

.section-intro {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  max-width: 68ch;
  margin-bottom: 40px;
  text-wrap: pretty;
}

/* ── About ── */
.about-section{
  position: relative;
  z-index: 1; /* évite les superpositions inattendues */
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
  margin-bottom: 56px;
}

/* (z-index/stacking context réglé via le bloc .about-visual existant) */

.about-visual {
  width: 100%;
  position: relative;
  z-index: 1;
}

.about-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr auto;
  gap: clamp(10px, 1.5vw, 16px);
  width: 100%;
}

.about-copy > * {
  background: transparent;
  border: none;
}

.about-tile {
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 2.5vw, 28px);
  min-height: 0;
  overflow: hidden;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.about-tile > i { font-size: 1.45rem; flex-shrink: 0; }
.about-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.about-tile-lg {
  grid-row: span 2;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  background:
    linear-gradient(145deg, var(--surface), var(--bg-alt));
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    inset 0 0 40px color-mix(in srgb, var(--accent) 8%, transparent),
    0 4px 18px color-mix(in srgb, var(--accent) 6%, transparent);
}

.about-tile-accent {
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.about-tile-accent > i { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.about-tile-accent:nth-of-type(2) {
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-color: color-mix(in srgb, var(--accent-2) 40%, transparent);
}

.about-tile-wide {
  grid-column: span 2;
  aspect-ratio: auto;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--accent-3);
  background: color-mix(in srgb, var(--accent-3) 12%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 40%, transparent);
}
.about-tile-wide > i { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.about-bio {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 58ch;
  text-wrap: pretty;
}

.about-copy {
  min-width: 0;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.about-copy .section-label {
  margin-bottom: 20px;
}

.about-lead {
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 1.2vw, 0.74rem);
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 60ch;
}

.about-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--muted);
}

.about-meta-row::before {
  content: "\f3c5";
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  margin-right: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.95;
}

.about-meta-row > span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.about-meta-row .meta-sep {
  margin: 0 10px;
  opacity: 0.6;
  font-weight: 700;
  color: var(--accent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-block: 40px;
  border-block: 1px solid var(--border);
  margin-bottom: 32px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: color 0.2s;
}

.stat-block:hover { color: var(--accent); }

.stat-block strong {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat-block span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.about-cta .btn-outline {
  min-width: 160px;
  justify-content: center;
}

.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text);
}

/* ── Skills Showcase ── */
.skills-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.skill-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.05);
}

.skill-card:nth-child(1) .skill-icon { color: var(--accent); border-color: var(--accent-soft); }
.skill-card:nth-child(2) .skill-icon { color: var(--accent-2); border-color: var(--accent-2-soft); }
.skill-card:nth-child(3) .skill-icon { color: var(--accent-3); border-color: rgba(201, 123, 90, 0.25); }
.skill-card:nth-child(4) .skill-icon { color: var(--text); border-color: var(--border-strong); }

.skill-card h3 {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.skill-card-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 3px;
}

.skill-card-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.skill-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.skill-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all 0.2s ease;
}

.skill-badge.highlight {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}

.skill-card:hover .skill-badge:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .skills-showcase {
    grid-template-columns: 1fr;
  }
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ── Services list ── */
.service-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.service-list li { border-bottom: 1px solid var(--border); }

.service-list a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  transition: color 0.2s;
}

.service-list a:hover { color: var(--accent); }

.svc-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  min-width: 28px;
  font-weight: 600;
}

.svc-arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s, transform 0.2s;
}

.service-list a:hover .svc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Collaboration / Modalités d'intervention ── */
.collab-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.collab-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.collab-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.collab-intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 36px;
}

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

.collab-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-left: 3px solid transparent;
  position: relative;
}

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

.collab-card--recrutement { border-left-color: var(--accent); }
.collab-card--sprint      { border-left-color: var(--accent-2); }
.collab-card--projet      { border-left-color: var(--accent-3); }

.collab-card--recrutement:hover { border-color: var(--accent); }
.collab-card--sprint:hover      { border-color: var(--accent-2); }
.collab-card--projet:hover      { border-color: var(--accent-3); }

.collab-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.collab-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.collab-card:nth-child(1) .collab-num { color: var(--accent); }
.collab-card:nth-child(2) .collab-num { color: var(--accent-2); }
.collab-card:nth-child(3) .collab-num { color: var(--accent-3); }

.collab-badge {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(189, 161, 120, 0.25);
  font-weight: 600;
}

.collab-card:nth-child(1) .collab-badge {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(189, 161, 120, 0.25);
}

.collab-card:nth-child(2) .collab-badge {
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-color: rgba(90, 154, 154, 0.25);
}

.collab-card:nth-child(3) .collab-badge {
  color: var(--accent-3);
  background: color-mix(in srgb, var(--accent-3) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 25%, transparent);
}

.collab-badge--highlight {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--accent);
}

.collab-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 2px;
}

.collab-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  flex: 1;
}

.collab-delivers {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px 0 0 0;
  padding: 0;
}

.collab-delivers li {
  font-size: 0.84rem;
  color: var(--text);
  opacity: 0.88;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.collab-delivers li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--accent);
}

.collab-card:nth-child(2) .collab-delivers li::before { color: var(--accent-2); }
.collab-card:nth-child(3) .collab-delivers li::before { color: var(--accent-3); }

.collab-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.collab-card:nth-child(2) .collab-cta { color: var(--accent-2); }
.collab-card:nth-child(3) .collab-cta { color: var(--accent-3); }

.collab-cta:hover {
  opacity: 0.85;
  transform: translateX(4px);
}

.collab-arrow {
  transition: transform 0.2s ease;
}

.collab-cta:hover .collab-arrow {
  transform: translateX(3px);
}

/* ── Values ── */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.value-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.value-item:nth-child(1) .value-num { color: var(--accent); }
.value-item:nth-child(2) .value-num { color: var(--accent-2); }
.value-item:nth-child(3) .value-num { color: var(--accent-3); }

.value-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 28px;
  padding-top: 4px;
}

.value-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.value-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

.location-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Process ── */
.process-heading-section {
  padding-bottom: 32px;
}

.process-heading {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.process-scroll {
  position: relative;
  background: var(--bg-alt);
}

.process-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: clamp(64px, 10vw, 100px) clamp(20px, 5vw, 64px);
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: clamp(40px, 7vw, 80px);
  flex: 1;
  align-items: start;
}

.process-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.process-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  opacity: 0.4;
  transition: opacity 0.3s, color 0.2s;
}

.process-nav-btn.active {
  opacity: 1;
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.process-nav-btn:hover { opacity: 0.8; }

.pnav-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  font-weight: 600;
}

.pnav-title {
  font-size: 1rem;
  font-weight: 600;
}

.pnav-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.process-content { position: relative; min-height: 280px; }

.process-step-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.process-step-panel.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.process-counter {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.process-phase {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

.process-step-panel h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.process-step-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 520px;
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: auto;
  padding-top: 40px;
}

.process-spacer { height: 200vh; }

/* ── Tech strip ── */
.tech-strip {
  overflow: hidden;
  border-block: 1px solid var(--border);
  padding: 16px 0;
}

.tech-strip-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.tech-strip-track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Case studies ── */
.case-list { display: flex; flex-direction: column; gap: 16px; }

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 32px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s;
}

.case-card:nth-child(even)::after {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.case-card:nth-child(3n)::after {
  background: linear-gradient(90deg, var(--accent-3), var(--accent));
}

.case-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 10%, transparent);
}

.case-card:hover::after {
  opacity: 1;
}

.case-head {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.case-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
}

.case-org {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.case-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-card > p {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 72ch;
}

.case-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-tags li {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
}

.case-card:nth-child(even) .case-tags li {
  color: var(--accent-2);
  background: var(--accent-2-soft);
  border-color: var(--accent-2-soft);
}

.case-card:nth-child(3n) .case-tags li {
  color: var(--accent-3);
  background: color-mix(in srgb, var(--accent-3) 14%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 22%, transparent);
}

.case-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.case-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.case-link:hover { color: var(--accent-hover); transform: translateY(-1px); }

.case-link-streamlit, .proj-link-streamlit {
  color: #ff6b6b !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.case-link-streamlit:hover, .proj-link-streamlit:hover {
  color: #ff9494 !important;
}

/* ── Projects ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

/* ── Streamlit Live Demos ── */
.streamlit-demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.streamlit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.streamlit-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px color-mix(in srgb, var(--accent) 12%, transparent);
}

.streamlit-card-header {
  padding: 22px 24px 16px;
}

.streamlit-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.streamlit-badge {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  text-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.75); }
}

.streamlit-card-header h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.streamlit-card-header p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.streamlit-embed-wrap {
  position: relative;
  flex: 1;
  min-height: 480px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.streamlit-embed {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

.streamlit-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 2;
  background: var(--bg-alt);
  transition: opacity 0.4s;
}

.streamlit-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.streamlit-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: streamlit-dot 1.4s ease-in-out infinite;
}

.streamlit-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.streamlit-loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes streamlit-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.streamlit-card-footer {
  padding: 14px 24px;
  display: flex;
  justify-content: flex-end;
}

.streamlit-open-btn {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s;
}

.streamlit-open-btn:hover {
  color: var(--accent-hover);
  gap: 9px;
}

@media (max-width: 900px) {
  .streamlit-demos-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Streamlit Visual Preview ── */
.streamlit-preview {
  display: block;
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
}

.streamlit-preview--finsight {
  background: linear-gradient(135deg, #0f2027 0%, #1a3a2e 50%, #0f2027 100%);
}
.streamlit-preview--automl {
  background: linear-gradient(135deg, #1a0533 0%, #2d1b69 50%, #1a0533 100%);
}
.streamlit-preview--rag {
  background: linear-gradient(135deg, #0a1628 0%, #1e3a5f 50%, #0a1628 100%);
}
.streamlit-preview--industrial {
  background: linear-gradient(135deg, #1a1200 0%, #3d2e00 50%, #1a1200 100%);
}
.streamlit-preview--cardio {
  background: linear-gradient(135deg, #1a0505 0%, #4a1010 50%, #1a0505 100%);
}

.streamlit-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}

.streamlit-preview:hover .streamlit-preview-overlay {
  opacity: 1;
}

.streamlit-launch-icon {
  font-size: 2rem;
  color: #fff;
  animation: float-up 0.35s ease both;
}

.streamlit-launch-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

@keyframes float-up {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* Mock UI skeleton inside preview */
.streamlit-preview-ui {
  position: absolute;
  inset: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: scale(0.85);
  transform-origin: top left;
  pointer-events: none;
}

.streamlit-ui-bar {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(0,0,0,0.4);
}

.streamlit-ui-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
}

.streamlit-ui-body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.streamlit-ui-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

.streamlit-ui-subtitle {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.streamlit-ui-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.streamlit-ui-block {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

.streamlit-ui-block.w20 { width: 20%; }
.streamlit-ui-block.w25 { width: 25%; }
.streamlit-ui-block.w30 { width: 30%; }
.streamlit-ui-block.w35 { width: 35%; }
.streamlit-ui-block.w40 { width: 40%; }
.streamlit-ui-block.w50 { width: 50%; }
.streamlit-ui-block.w55 { width: 55%; }
.streamlit-ui-block.w60 { width: 60%; }
.streamlit-ui-block.w65 { width: 65%; }
.streamlit-ui-block.w70 { width: 70%; }
.streamlit-ui-block.w75 { width: 75%; }
.streamlit-ui-block.w80 { width: 80%; }
.streamlit-ui-block.w85 { width: 85%; }
.streamlit-ui-block.w90 { width: 90%; }

.streamlit-ui-chart {
  height: 48px;
  border-radius: 6px;
  background: linear-gradient(90deg,
    rgba(189,161,120,0.08) 0%, rgba(189,161,120,0.22) 30%,
    rgba(232,177,75,0.28) 60%, rgba(189,161,120,0.1) 100%);
  position: relative;
  overflow: hidden;
}

.streamlit-ui-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.7;
}

.streamlit-ui-chat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.streamlit-ui-msg {
  height: 10px;
  border-radius: 8px;
  width: 70%;
}

.streamlit-ui-msg--user {
  background: rgba(189,161,120,0.3);
  align-self: flex-end;
  margin-right: 4px;
  width: 55%;
}

.streamlit-ui-msg--bot {
  background: rgba(255,255,255,0.15);
  align-self: flex-start;
  width: 75%;
}

.streamlit-ui-doc {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.25);
}

.streamlit-ui-gauge {
  height: 40px;
  border-radius: 6px;
  background: conic-gradient(
    rgba(232,177,75,0.4) 0deg, rgba(232,177,75,0.4) 200deg,
    rgba(255,255,255,0.08) 200deg
  );
  width: 40px;
  border-radius: 50%;
  align-self: center;
}

.streamlit-ui-heartbeat {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: rgba(220,80,80,0.6);
  height: 44px;
}

.streamlit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.streamlit-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
}

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

.proj-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.25s;
}

.proj-card:nth-child(even)::after {
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
}

.proj-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--accent) 10%, transparent);
}

.proj-card:hover::after {
  opacity: 1;
}

.proj-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.proj-cat {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.proj-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.proj-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.proj-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.proj-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.proj-links a:hover { color: var(--accent-hover); }

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
  }
  .about-visual { max-width: 340px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .skills-grid { grid-template-columns: 1fr; }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Journey ── */
.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 88px);
}

.journey-col:first-child .journey-col-title { color: var(--accent); }
.journey-col:last-child .journey-col-title { color: var(--accent-2); }

.journey-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}

.timeline { display: flex; flex-direction: column; gap: 28px; }

.timeline-item {
  padding-left: 16px;
  border-left: 1.5px solid var(--border);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4.5px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.journey-col:last-child .timeline-item::before {
  border-color: var(--accent-2);
}

.timeline-item time {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.timeline-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 6px 0 4px;
}

.tl-org { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.tl-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ── Contact ── */
.contact-section {
  position: relative;
  overflow: hidden;
  padding-bottom: clamp(80px, 12vw, 120px);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.contact-header-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}

.contact-header-link:hover { color: var(--accent); }

.contact-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: clamp(48px, 8vw, 96px);
  align-items: start;
}

.contact-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 60ch;
  margin-bottom: 24px;
}

.contact-email {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.contact-email:hover { color: var(--accent); }

.contact-watermark {
  position: absolute;
  left: 50%;
  bottom: -0.12em;
  transform: translateX(-50%);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.85;
  color: var(--text);
  opacity: 0.04;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.contact-social a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.contact-social a:hover { color: var(--accent); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px clamp(20px, 5vw, 64px) 32px;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 32px;
}

.footer-brand {
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-desc {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 360px;
}

.footer-nav-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-contact a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contact a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Chatbot ── */
.chatbot-fab {
  position: fixed;
  bottom: 28px;
  right: clamp(20px, 5vw, 48px);
  z-index: 1000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.chatbot-fab:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.chatbot-fab.hidden { opacity: 0; pointer-events: none; }

.chatbot-panel {
  position: fixed;
  bottom: 92px;
  right: clamp(20px, 5vw, 48px);
  z-index: 1001;
  width: min(380px, calc(100vw - 40px));
  max-height: min(520px, calc(100vh - 120px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.chatbot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.chatbot-title { flex: 1; }
.chatbot-title strong { font-size: 0.85rem; display: block; }
.chatbot-title span { font-size: 0.72rem; color: var(--muted); }

.chatbot-close {
  color: var(--muted);
  font-size: 1rem;
  padding: 4px;
}
.chatbot-close:hover { color: var(--text); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  max-height: 300px;
}

.chat-msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.55;
}

.chat-msg.bot { align-self: flex-start; background: var(--bg); }
.chat-msg.user { align-self: flex-end; background: var(--accent-soft); color: var(--text); }
.chat-msg a { color: var(--accent); }

.chat-typing p { opacity: 0.5; animation: blink 1s ease infinite; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

.chatbot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 10px;
}

.chip-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  transition: border-color 0.2s, color 0.2s;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }

.chatbot-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
}

.chatbot-input-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.chatbot-input-row input:focus { border-color: var(--accent); }

.chatbot-input-row button {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--terminal-bg);
  transition: background 0.2s;
}
.chatbot-input-row button:hover { background: var(--accent-hover); }

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Grands écrans XL / 2K / 4K ── */
@media (min-width: 1440px) {
  .section { max-width: 1360px; padding-block: clamp(96px, 10vw, 140px); }
  .section-alt > * { max-width: 1360px; }
  .about-grid { grid-template-columns: minmax(360px, 500px) 1fr; gap: 120px; }
  .terminal-body { max-width: 780px; }
  .skills-grid { gap: 72px; }
  .journey-grid { gap: 104px; }
  .process-layout { gap: 104px; grid-template-columns: 380px 1fr; }
  .contact-layout { gap: 120px; }
  .projects-grid { gap: 40px; }
  .case-list { gap: 24px; }
  .section-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
  .about-bio { font-size: clamp(1.05rem, 1.3vw, 1.25rem); line-height: 1.9; max-width: 68ch; }
  .about-lead { font-size: clamp(0.76rem, 1vw, 0.85rem); line-height: 2; }
  .case-card h3 { font-size: clamp(1.15rem, 1.4vw, 1.3rem); }
  .process-heading { font-size: clamp(2.4rem, 5vw, 4.2rem); }
  .stat-block strong { font-size: clamp(2.4rem, 4vw, 3.4rem); }
}

@media (min-width: 1920px) {
  .section { max-width: 1480px; }
  .section-alt > * { max-width: 1480px; }
  .section-label { font-size: 0.76rem; }
  .terminal-name { font-size: 1.25rem; }
  .terminal-role { font-size: 1rem; }
  .terminal-prompt { font-size: 1.4rem; }
  .contact-title { font-size: clamp(2.8rem, 5vw, 3.8rem); }
}

/* ── Responsive ── */
@media (max-width: 1180px) {
  .about-grid { gap: clamp(32px, 5vw, 56px); }
}

@media (max-width: 520px) {
  .about-tiles { gap: 8px; }
  .about-meta-row { font-size: 0.72rem; }
  .about-meta-row .meta-sep { margin: 0 7px; }
  .about-lead { letter-spacing: 0.08em; line-height: 1.7; }
}

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .stats-row { grid-template-columns: 1fr; gap: 20px; }
  .process-layout { grid-template-columns: 1fr; }
  .process-nav { flex-direction: row; overflow-x: auto; gap: 0; }
  .process-nav-btn { min-width: 140px; border-bottom: none; border-right: 1px solid var(--border); padding: 12px 16px; }
  .process-spacer { height: 120vh; }
  .journey-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .chatbot-panel { right: 12px; left: 12px; width: auto; bottom: 84px; }
  .chatbot-fab { right: 20px; bottom: 20px; }
  .about-cta .btn-outline { width: 100%; }
  .contact-header { flex-direction: column; margin-bottom: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── SECTION CERTIFICATIONS DÉDIÉE ───────────────────────────────────────── */
/* ── SECTION RÉFÉRENCES ACADÉMIQUES ──────────────────────────────────────── */
.ref-section {
  background: var(--surface);
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.ref-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.ref-section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 36px;
  margin-top: 12px;
}
.ref-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 420px));
  gap: 20px;
}
.ref-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ref-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 6px 24px rgba(56, 189, 248, 0.08);
}
.ref-card-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #38bdf8;
}
.ref-card-body { flex: 1; }
.ref-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.ref-card-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.ref-card-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.ref-card-email:hover { opacity: 0.75; }

.certif-section {
  background: var(--bg);
  padding: 100px 0;
}
.certif-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.certif-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 48px;
  margin-top: 12px;
}
.certif-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.certif-card {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.certif-card:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.1);
}
.certif-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f59e0b;
}
.certif-card-body {
  flex: 1;
  min-width: 0;
}
.certif-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 9999px;
  padding: 2px 10px;
  margin-bottom: 10px;
}
.certif-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}
.certif-card-org {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.certif-card-date {
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 10px;
}
.certif-card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* ── BOUTON & MODAL CERTIFICAT (VISUALISATION SEULE) ─────────────────────── */
.btn-certif-modal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}
.btn-certif-modal:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}
.btn-certif-modal i {
  font-size: 0.95rem;
  color: #f59e0b;
}

/* Modal Backdrop */
.certif-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.certif-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.certif-modal-card {
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 18px;
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(56, 189, 248, 0.2);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.certif-modal-backdrop.active .certif-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.certif-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  background: #111827;
  border-bottom: 1px solid #1f2937;
}
.certif-badge-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.certif-modal-title-wrap h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}
.certif-modal-meta {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 4px 0 0 0;
}
.certif-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.certif-modal-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modal Body */
.certif-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  background: #0b1120;
}
.certif-image-wrap {
  width: 100%;
  max-width: 840px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
  -webkit-user-select: none;
}
.certif-modal-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Modal Footer */
.certif-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #111827;
  border-top: 1px solid #1f2937;
}
.certif-security-note {
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}
.certif-security-note i {
  color: #10b981;
}
.btn-certif-close-action {
  background: #1e293b;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-certif-close-action:hover {
  background: #334155;
}
