/* =============================================
   VARIABLES & RESET
   ============================================= */
:root {
  --bg:           #f4f5f7;
  --white:        #ffffff;
  --dark:         #0f172a;
  --darker:       #0b1120;
  --mid:          #1e293b;
  --border:       #e3e6ea;
  --border-dark:  #334155;
  --text:         #1e293b;
  --text-muted:   #475569;
  --text-faint:   #94a3b8;
  --text-label:   #64748b;
  --surface:      #ffffff;
  --surface-alt:  #f8fafc;

  --blue:       #2563eb;
  --blue-transparent:       #5d7fc7f2;
  --blue-dark:  #1d4ed8;
  --blue-bg:    #eff4ff;
  --purple:     #7c3aed;
  --cyan:       #22d3ee;
  --cyan-dark:  #0891b2;
  --green:      #22c55e;
  --green-dark: #16a34a;
  --amber:      #f59e0b;

  --font-mono:  "JetBrains Mono", monospace;
  --font-head:  "Space Grotesk", sans-serif;
  --font-body:  "Inter", sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  16px;

  --shadow-card: 0 10px 32px rgba(15,23,42,.08);
  --shadow-lg:   0 24px 60px rgba(15,23,42,.24);

  --nav-h:      56px;

  --transition-theme: background-color .3s ease, color .3s ease, border-color .3s ease;
}

[data-theme="dark"] {
  --bg:          #0b1120;
  --white:       #0f172a;
  --dark:        #f1f5f9;
  --darker:      #e2e8f0;
  --mid:         #1e293b;
  --border:      #1e293b;
  --border-dark: #334155;
  --text:        #e2e8f0;
  --text-muted:  #94a3b8;
  --text-faint:  #475569;
  --text-label:  #64748b;
  --surface:     #0f172a;
  --surface-alt: #1e293b;
  --blue-bg:     rgba(37,99,235,.15);
}

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}
/* Transition theme appliquée uniquement aux éléments themeables */
body,
.nav-bar, .nav-tab, .nav-path,
.section, .section--white, .section--dark,
.project-card, .project-card__info,
.bubble, .btn,
.stack-card, .stack-tag, .stack-card__icon,
.timeline__content, .edu-card, .feature-block,
.wello-hero__info, .wello-stat,
.tech-tag, .badge, .filter-btn,
.stats-band, .marquee-strip, .terminal {
  transition: var(--transition-theme);
}
html { scroll-behavior: smooth; }

/* A11y — focus clavier visible et discret */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* cursor: none; */
}
@media (hover: none) { body { cursor: auto; } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =============================================
   CUSTOM CURSOR
   ============================================= */
/* #cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: none;
  mix-blend-mode: multiply;
}
#cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: .4;
  transition: width .2s, height .2s, opacity .2s, border-color .2s;
} */
/* body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring,
body:has(input:focus) #cursor-ring {
  width: 48px; height: 48px; opacity: .2;
}
[data-theme="dark"] #cursor-dot  { mix-blend-mode: screen; } */
/* @media (hover: none) { #cursor-dot, #cursor-ring { display: none; } } */

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes blink    { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes floatcard{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes bubIn    { 0%{opacity:0;transform:translateX(-34px) scale(.96)} 100%{opacity:1;transform:none} }
@keyframes termIn   { 0%{opacity:0;transform:translateY(26px) scale(.985)} 100%{opacity:1;transform:none} }
@keyframes gridpan  { 0%{background-position:0 0} 100%{background-position:36px 36px} }
@keyframes marquee  { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes dotpulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }
@keyframes draw-line { 0%{stroke-dashoffset:1000} 100%{stroke-dashoffset:0} }
@keyframes timeline-fill { 0%{height:0} 100%{height:100%} }
@keyframes card-enter { 0%{opacity:0;transform:translateY(20px)} 100%{opacity:1;transform:none} }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* =============================================
   UTILITY
   ============================================= */
.bub-wrap { opacity: 0; animation: bubIn .8s cubic-bezier(.22,1,.36,1) both; }
.term-in  { opacity: 0; animation: termIn .9s cubic-bezier(.22,1,.36,1) .15s both; }
.floaty   { animation: floatcard 5s ease-in-out infinite; }
.reveal   { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.vis { opacity: 1; transform: none; }

/* Badge "disponible" sous le hero CTA */
.hero-avail {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.hero-avail__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  animation: dotpulse 1.4s ease-in-out infinite;
}

.t-cyan  { color: #22d3ee; }
.t-blue  { color: #7dd3fc; }
.t-green { color: #86efac; }
.t-white { color: #e2e8f0; }
.t-slate { color: #94a3b8; }
.pl      { padding-left: 24px; }

/* =============================================
   NAV
   ============================================= */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 clamp(20px,4vw,48px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .nav-bar { background: rgba(11,17,32,.9); }

.nav-left { display: flex; align-items: center; gap: 14px; }
.mac-dots { display: flex; gap: 6px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot--red    { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green  { background: var(--green); }
.nav-path { font-size: 13px; color: var(--text-label); }
.nav-tabs { display: flex; gap: 4px; font-size: 12px; }
.nav-tab {
  color: var(--text-faint); padding: 6px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-tab:hover      { color: var(--dark); background: var(--surface-alt); }
.nav-tab--active    { color: var(--blue); background: var(--blue-bg); }

/* Dark mode toggle */
.theme-toggle {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 5px 8px;
  cursor: none; font-size: 14px; line-height: 1;
  display: flex; gap: 2px;
  transition: border-color .15s, background .15s;
}
.theme-toggle:hover { background: var(--surface-alt); }
.theme-toggle__icon { transition: opacity .2s; }
.theme-toggle__icon--moon { opacity: 0; position: absolute; }
[data-theme="dark"] .theme-toggle__icon--sun  { opacity: 0; position: absolute; }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 1; position: static; }

/* =============================================
   HERO
   ============================================= */
.hero-sec {
  position: relative;
  padding: 120px clamp(20px,4vw,48px) 80px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--blue-transparent) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 40% 45%,#000,transparent 78%);
  mask-image: radial-gradient(ellipse 75% 80% at 40% 45%,#000,transparent 78%);
  animation: gridpan 14s linear infinite;
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: .82fr 1.18fr;
  gap: 52px; align-items: center;
}
.hero-cards { display: flex; flex-direction: column; gap: 16px; }

.bubble {
  background: var(--surface); border: 1px solid #e6e8ec;
  border-radius: var(--radius-lg); padding: 17px 19px;
  display: flex; align-items: center; gap: 13px;
  box-shadow: var(--shadow-card);
  transition: transform .25s, box-shadow .25s;
}
[data-theme="dark"] .bubble { border-color: var(--border-dark); }
.bubble:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(37,99,235,.16); }
.bubble-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.bubble-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--dark); }
.bubble-sub   { font-size: 11px; color: var(--text-label); margin-top: 1px; }

/* Terminal */
.terminal {
  background: #0f172a; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.terminal__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; background: #1e293b;
  border-bottom: 1px solid #334155;
}
.terminal__bar .dot { width: 11px; height: 11px; }
.terminal__label { font-size: 12px; color: #64748b; margin-left: 8px; }
.terminal__body {
  padding: 28px clamp(20px,3vw,32px) 16px;
  font-size: clamp(13px,1.4vw,15px); line-height: 1.95;
  min-height: 200px;
}
.terminal__line         { color: #64748b; }
.terminal__line--echo   { margin-top: 18px; }
.terminal__line--contact{ margin-bottom: 6px; }
.terminal__json         { margin-top: 14px; }
.cursor {
  display: inline-block; width: 9px; height: 1.05em;
  background: #22d3ee; vertical-align: -3px;
  margin-left: 4px; animation: blink .8s infinite;
}

/* Terminal interactif */
.terminal__input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 clamp(20px,3vw,32px) 18px;
  font-size: clamp(13px,1.4vw,15px);
}
.terminal__prompt-char { color: #64748b; }
.terminal__input {
  flex: 1; background: transparent; border: none; outline: none;
  color: #e2e8f0; font-family: var(--font-mono); font-size: inherit;
  caret-color: #22d3ee;
}
.terminal__input::placeholder { color: #334155; }
.terminal__hint { font-size: 11px; color: var(--text-faint); margin-top: 6px; text-align: right; }
.terminal__hint code { color: var(--text-label); }

.terminal__cmd-line { color: #64748b; }
.terminal__cmd-line .cmd-input { color: #22d3ee; }
.terminal__response { color: #e2e8f0; padding-left: 16px; margin-bottom: 8px; line-height: 1.7; }
.terminal__response a { color: #22d3ee; text-decoration: underline; }
.terminal__error { color: #f87171; padding-left: 16px; margin-bottom: 8px; }

.hero-cta { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block; font-size: 13px; font-weight: 500;
  padding: 11px 22px; border-radius: 8px; cursor: none;
  transition: background .2s, border-color .2s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary       { color: #fff; background: var(--blue); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--outline       { color: var(--dark); background: var(--surface); border: 1px solid var(--border); }
.btn--outline:hover { border-color: var(--blue); }
.btn--outline-light { color: #e2e8f0; border: 1px solid var(--border-dark); }
.btn--outline-light:hover { border-color: var(--cyan); }
.btn--cyan          { color: #0f172a; background: var(--cyan); }
.btn--ghost         { font-size: 11px; color: var(--blue); background: var(--blue-bg); padding: 6px 13px; border-radius: 6px; }
.btn--ghost:hover   { background: #dbe7ff; }
.btn--sm            { font-size: 12px; padding: 9px 16px; }

/* =============================================
   MARQUEE
   ============================================= */
.marquee-strip {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 0; white-space: nowrap;
  animation: marquee 28s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-faint); padding: 0 6px; }
.marquee-sep  { color: var(--border); font-size: 13px; padding: 0 4px; }

/* =============================================
   SECTION base
   ============================================= */
.section {
  padding: clamp(56px,8vw,84px) clamp(20px,4vw,48px);
  scroll-margin-top: var(--nav-h);
}
.section--white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark  { background: #0f172a; color: #e2e8f0; }
.section__eyebrow { font-size: 13px; color: var(--text-faint); margin-bottom: 6px; }
.section__eyebrow--light { color: #64748b; }
.section__eyebrow--mt    { margin-top: 40px; margin-bottom: 18px; }
.section__title {
  font-family: var(--font-head); font-size: clamp(26px,3.4vw,36px);
  font-weight: 700; letter-spacing: -.025em; color: var(--dark); margin-bottom: 34px;
}

/* =============================================
   STACK CARDS
   ============================================= */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 22px;
}

.stack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px 22px;
  display: flex; flex-direction: column;
  gap: 18px;
  transition: box-shadow .3s, transform .25s, border-color .3s;
}
.stack-card:hover {
  box-shadow: 0 14px 38px rgba(15,23,42,.07);
  transform: translateY(-3px);
}

/* Header : icône + titre + sous-titre */
.stack-card__head { display: flex; align-items: center; gap: 14px; }
.stack-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  background: var(--blue-bg);
  color: var(--blue);
}
.stack-card__icon svg { width: 22px; height: 22px; display: block; }
.stack-card__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
}
.stack-card__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-label);
  margin-top: 3px;
}

/* Tags */
.stack-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 7px;
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(37,99,235,.18);
  white-space: nowrap;
}

/* Couleurs par domaine */
.stack-card--mobile .stack-card__icon { background: rgba(124,58,237,.08); color: var(--purple); }
.stack-card--iot    .stack-card__icon { background: rgba(8,145,178,.08);  color: var(--cyan-dark); }

.stack-tag[data-tech="mobile"] { background: rgba(124,58,237,.08); color: var(--purple);    border-color: rgba(124,58,237,.22); }
.stack-tag[data-tech="iot"]    { background: rgba(8,145,178,.08);  color: var(--cyan-dark); border-color: rgba(8,145,178,.22); }

/* Separator + footer projet associé */
.stack-card__sep {
  height: 1px;
  background: var(--border);
  margin-top: auto;
}
.stack-card__foot { display: flex; flex-direction: column; gap: 4px; }
.stack-card__foot-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .8px;
  color: var(--text-faint);
  text-transform: uppercase;
}
.stack-card__foot-link {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  transition: color .2s;
}
.stack-card__foot-link:hover { color: var(--blue); }
.stack-card--mobile .stack-card__foot-link:hover { color: var(--purple); }
.stack-card--iot    .stack-card__foot-link:hover { color: var(--cyan-dark); }

/* =============================================
   STATS BAND
   ============================================= */
.stats-band {
  background: #0f172a;
  padding: clamp(32px,5vw,48px) clamp(20px,4vw,48px);
}
.stats-band__inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 24px;
}
.stat-item { text-align: center; }
.stat-item__val {
  display: block; font-family: var(--font-head); font-size: clamp(36px,5vw,52px);
  font-weight: 700; color: #22d3ee; line-height: 1;
}
.stat-item__val--text { color: inherit; font-size: clamp(40px,5.5vw,56px); }
.stat-item__label { font-size: 13px; color: #64748b; margin-top: 6px; display: block; font-family: var(--font-mono); }
.stat-item__sep { width: 1px; height: 50px; background: #1e293b; }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-btn {
  font-size: 12px; font-family: var(--font-mono); padding: 6px 14px;
  border-radius: 20px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-faint); cursor: none;
  transition: all .15s;
}
.filter-btn:hover        { border-color: var(--blue); color: var(--blue); }
.filter-btn--active      { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-btn__count       { margin-left: 4px; font-size: 11px; color: var(--text-faint); }
.filter-btn--active .filter-btn__count { color: rgba(255,255,255,.7); }

/* =============================================
   PROJECTS
   ============================================= */
.projects-list { display: flex; flex-direction: column; gap: 20px; }

.project-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  transition: box-shadow .3s, transform .25s, opacity .4s;
}
.project-card:hover { box-shadow: 0 12px 44px rgba(15,23,42,.08); transform: translateY(-3px); }
.project-card--full    { display: flex; flex-direction: column; }
.project-card--reverse .project-card__visual { order: 1; }
.project-card--reverse .project-card__info   { order: 2; }
.project-card--hidden  { opacity: 0; pointer-events: none; height: 0; overflow: hidden; margin: 0; padding: 0; border: none; }

.project-card__visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 230px;
}
.project-card__visual--dark { background: #0f172a; }
.project-card__visual--gold-grad {
  position: relative;
  isolation: isolate;
  background: radial-gradient(130% 130% at 78% 8%, #92400e 0%, #78350f 38%, #431407 72%, #1c0a02 100%);
}
.project-card__visual--gold-grad::before,
.project-card__visual--gold-grad::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.project-card__visual--gold-grad::before {
  background: radial-gradient(circle at 18% 80%, rgba(245,158,11,.16), transparent 42%);
}
.project-card__visual--gold-grad::after {
  background: radial-gradient(circle at 90% 30%, rgba(217,119,6,.14), transparent 45%);
}
.project-card__visual--gold-grad .phone { position: relative; z-index: 2; }

.project-card__visual--violet-grad {
  position: relative;
  isolation: isolate;
  background: radial-gradient(130% 130% at 78% 8%, #6d28d9 0%, #5b21b6 38%, #3b0764 72%, #1e0a3c 100%);
}
.project-card__visual--violet-grad::before,
.project-card__visual--violet-grad::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.project-card__visual--violet-grad::before {
  background: radial-gradient(circle at 18% 80%, rgba(167,139,250,.16), transparent 42%);
}
.project-card__visual--violet-grad::after {
  background: radial-gradient(circle at 90% 30%, rgba(139,92,246,.14), transparent 45%);
}
.project-card__visual--violet-grad { flex-direction: column; }
.project-card__visual--violet-grad .phone--main,
.project-card__visual--violet-grad .project-card__glow,
.project-card__visual--violet-grad .carousel-dots { position: relative; z-index: 2; }

.project-card__visual--green-grad {
  position: relative;
  isolation: isolate;
  background: radial-gradient(130% 130% at 78% 8%, #15803d 0%, #166534 38%, #14532d 72%, #052e16 100%);
}
.project-card__visual--green-grad::before,
.project-card__visual--green-grad::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.project-card__visual--green-grad::before {
  background: radial-gradient(circle at 18% 80%, rgba(74,222,128,.16), transparent 42%);
}
.project-card__visual--green-grad::after {
  background: radial-gradient(circle at 90% 30%, rgba(34,197,94,.14), transparent 45%);
}
.oscult-shot {
  position: relative; z-index: 2;
  width: min(460px, 92%);
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.oscult-shot img { width: 100%; height: auto; display: block; border-radius: 6px; }

.project-card__visual--crimson-grad {
  position: relative;
  isolation: isolate;
  flex-direction: column;
  background: radial-gradient(130% 130% at 78% 8%, #9f1239 0%, #881337 38%, #4c0519 72%, #1f0308 100%);
}
.project-card__visual--crimson-grad::before,
.project-card__visual--crimson-grad::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.project-card__visual--crimson-grad::before {
  background: radial-gradient(circle at 18% 80%, rgba(251,113,133,.16), transparent 42%);
}
.project-card__visual--crimson-grad::after {
  background: radial-gradient(circle at 90% 30%, rgba(244,63,94,.14), transparent 45%);
}

/* Cadre « showcase » pour captures d'app (carrousel) */
.shot-frame {
  position: relative; z-index: 2;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.shot-frame__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.shot-frame__screen img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity .55s ease;
}
.visual-caption-wrap {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
  margin-top: 18px;
}
.visual-caption { font-size: 12.5px; color: rgba(255,255,255,.9); text-align: center; }

.visual-watermark {
  position: absolute;
  left: -10px; bottom: -22px;
  z-index: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 11vw, 80px);
  line-height: 1;
  color: rgba(255,255,255,.07);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.project-card__visual-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: #475569; z-index: 0;
}
.project-card__cover {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1;
}
.project-card__info {
  padding: 30px 32px; display: flex; flex-direction: column; gap: 13px;
  background: var(--surface);
}
.project-card__info--full { padding: clamp(26px,4vw,34px) clamp(22px,4vw,36px); gap: 18px; }
.project-card__app-header { display: flex; align-items: center; gap: 11px; }
.project-card__icon { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--border); }
.project-card__title { font-family: var(--font-head); font-size: clamp(20px,2.6vw,24px); font-weight: 700; color: var(--dark); line-height: 1.1; }
.project-card__title--lg { font-size: clamp(20px,2.6vw,26px); line-height: 1.15; }
.project-card__category { font-size: 12px; margin-top: 3px; }
.project-card__desc { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.project-card__tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.project-card__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.tech-tag {
  font-size: 11px; padding: 3px 9px; border-radius: 5px; cursor: none;
  font-family: var(--font-mono);
  background: var(--blue-bg); color: var(--blue); border: 1px solid rgba(37,99,235,.18);
  transition: background .15s, transform .15s;
}
.tech-tag:hover { transform: translateY(-1px); }
.tech-tag[data-tech="mobile"]   { background: rgba(124,58,237,.08); color: #7c3aed; border-color: rgba(124,58,237,.2); }
.tech-tag[data-tech="iot"]      { background: rgba(8,145,178,.08);  color: #0e7490; border-color: rgba(8,145,178,.2); }
.tech-tag[data-tech="hardware"] { background: rgba(22,163,74,.08);  color: #15803d; border-color: rgba(22,163,74,.2); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  font-size: 12px; color: var(--text-muted); background: var(--surface-alt);
  border: 1px solid var(--border); padding: 5px 11px; border-radius: 7px;
  display: flex; align-items: center; gap: 5px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-family: var(--font-body); font-size: 13px; color: var(--text-muted); padding-left: 18px; position: relative; }
.feature-list li::before { content: "▹"; color: var(--blue); position: absolute; left: 0; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 14px; }
.feature-block { display: flex; gap: 13px; align-items: flex-start; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.feature-block__icon { width: 38px; height: 38px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.feature-block__title { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.feature-block__desc  { font-family: var(--font-body); font-size: 12.5px; color: var(--text-label); line-height: 1.55; }

/* Live dot (badge « live · MQTT » de la carte Wello) */
.iot-live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: dotpulse 1.4s ease-in-out infinite;
}

/* Carousel dots */
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots--right { position: absolute; right: 24px; bottom: 32px; z-index: 4; }
.carousel-dots--below { position: relative; z-index: 4; justify-content: center; margin-top: 24px; }

/* Phone mockup */
.project-card__visual { min-height: 480px; padding: 40px 20px; overflow: hidden; }
.project-card__glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 70% 80%, rgba(34,211,238,.10), transparent 45%),
    radial-gradient(circle at 20% 30%, rgba(124,58,237,.12), transparent 45%);
}
.phone--bg {
  position: absolute; width: 172px; height: 352px;
  left: 50%; top: 50%;
  background: #0b1120; border: 1px solid #1e293b;
  border-radius: 30px; padding: 7px;
  transform: translate(-18%, -76%) rotate(9deg);
  box-shadow: 0 18px 44px rgba(0,0,0,.4); opacity: .62;
}
.phone--main {
  position: relative; z-index: 2;
  width: 212px; height: 432px;
  background: #0b1120; border: 1px solid #233047;
  border-radius: 34px; padding: 9px;
  box-shadow: 0 26px 60px rgba(0,0,0,.5);
  animation-duration: 6s;
}
.phone__notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px; background: #0b1120;
  border-radius: 0 0 13px 13px; z-index: 3;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 23px; overflow: hidden; background: #000; }
.phone__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s ease; }

/* Monitor mockup */
.monitor-scene {
  position: relative;
  background: radial-gradient(120% 130% at 50% 0%, #1e293b 0%, #0f172a 55%, #0b1120 100%);
  padding: clamp(34px,5vw,52px) clamp(20px,4vw,40px) 38px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; overflow: hidden;
}
.monitor-scene__glow {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 75% 85%, rgba(8,145,178,.16), transparent 45%),
    radial-gradient(circle at 15% 20%, rgba(37,99,235,.14), transparent 45%);
}
.monitor-scene--blue-grad {
  isolation: isolate;
  background: radial-gradient(130% 130% at 78% 8%, #1e40af 0%, #1e3a8a 38%, #172554 72%, #0a1030 100%);
}
.monitor-scene--blue-grad .monitor-wrap,
.monitor-scene--blue-grad .monitor-scene__caption { position: relative; z-index: 2; }
.monitor-wrap { position: relative; z-index: 2; width: min(700px,100%); }
.monitor { background: #0b0f1a; border: 1px solid #243044; border-radius: 14px; padding: 12px; box-shadow: 0 30px 64px rgba(0,0,0,.55); }
.monitor__screen { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 7px; overflow: hidden; background: #000; }
.monitor__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s ease; }
.monitor__live { position: absolute; right: 12px; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.monitor__neck { width: 88px; height: 16px; margin: 0 auto; background: linear-gradient(#1c2738,#141d2b); }
.monitor__foot { width: 180px; height: 9px; margin: 0 auto; border-radius: 0 0 9px 9px; background: #1a2334; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.monitor-scene__caption { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.monitor-scene__caption span { font-size: 13px; color: #cbd5e1; text-align: center; letter-spacing: .01em; }

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
  position: relative; display: flex; flex-direction: column; gap: 0; margin-bottom: 40px;
  padding-left: 32px;
}
.timeline__line {
  position: absolute; left: 8px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline__line-fill {
  width: 100%; height: 0; background: var(--blue);
  transition: height 1s ease;
}
.timeline__item {
  position: relative; display: flex; gap: 20px; padding: 0 0 32px;
}
.timeline__dot {
  position: absolute; left: -28px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--border);
  transition: border-color .3s, background .3s;
  flex: none;
}
.timeline__dot--active { background: var(--blue); border-color: var(--blue); }
.timeline__item.vis .timeline__dot { border-color: var(--blue); }
.timeline__content { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; }
.timeline__meta    { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.timeline__date    { font-size: 12px; color: var(--text-faint); }
.timeline__role    { font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.timeline__desc    { font-family: var(--font-body); font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* Accessible / SEO : lu par les moteurs et lecteurs d'écran, invisible à l'écran */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.timeline__company {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--blue);
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18);
  padding: 1px 8px; border-radius: 999px;
}
.timeline__contract {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .04em;
}

/* Prolongation formations — libellé "git log --formations" sur la même timeline */
.timeline__branch {
  position: relative; font-family: var(--font-mono); font-size: 13px;
  color: var(--text-faint); margin: 4px 0 28px; padding: 0 0 0 4px;
}
.timeline__branch::before {
  content: ""; position: absolute; left: -28px; top: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface);
  border: 2px dashed var(--blue);
}

/* Items formation : puce creuse accentuée */
.timeline__item--edu .timeline__dot { border-color: var(--blue); border-style: dashed; background: var(--surface); }
.timeline__tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--blue);
  background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.18);
  padding: 1px 8px; border-radius: 999px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-wrap { max-width: 700px; margin: 0 auto; font-size: 14px; line-height: 1.95; }
.contact__title { font-family: var(--font-head); font-size: clamp(30px,4.4vw,44px); font-weight: 700; letter-spacing: -.025em; color: #fff; margin: 10px 0 18px; }
.contact__sub   { font-family: var(--font-body); font-size: 15px; color: #94a3b8; line-height: 1.7; margin-bottom: 22px; max-width: 46ch; }
.contact__cta   { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.footer { padding: 24px; background: #0b1120; color: #475569; font-size: 11px; text-align: center; }
.footer__sep  { margin: 0 8px; color: #334155; }
.footer__link { color: #94a3b8; text-decoration: none; transition: color .2s; }
.footer__link:hover { color: #22d3ee; }

/* Back-to-top button */
.back-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--dark);
  color: #22d3ee;
  border: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, background .2s;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-top:hover { background: #1e293b; }
[data-theme="dark"] .back-top { background: #1e293b; color: #22d3ee; border-color: #334155; }
[data-theme="dark"] .back-top:hover { background: #334155; }
@media (max-width: 620px) {
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; font-size: 16px; }
}

/* =============================================
   WELLO — HERO SCENE
   ============================================= */
/* --- Zone 1 : scène dashboard (fond sombre) --- */
.wello-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px,5vw,52px) clamp(20px,4vw,40px) 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(130% 130% at 78% 8%, #0f766e 0%, #115e59 38%, #0b3b38 72%, #08201f 100%);
}
.wello-stage::before,
.wello-stage::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.wello-stage::before {
  inset: 0;
  background: radial-gradient(circle at 18% 80%, rgba(45,212,191,.16), transparent 42%);
}
.wello-stage::after {
  inset: 0;
  background: radial-gradient(circle at 90% 30%, rgba(20,184,166,.14), transparent 45%);
}
.wello-stage__watermark {
  position: absolute;
  left: -30px; bottom: -30px;
  z-index: 0;
  width: min(480px, 60%);
  height: auto;
  opacity: .07;
  filter: brightness(0) invert(1);
  user-select: none;
  pointer-events: none;
}

/* --- Laptop mockup --- */
.wello-laptop {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}
.wello-laptop__bezel {
  background: #0b0f12;
  border: 1px solid #1f2d2b;
  border-radius: 14px 14px 4px 4px;
  padding: 11px 11px 13px;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.wello-laptop__titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 4px 9px;
}
.wello-laptop__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.wello-laptop__url {
  margin-left: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #5f7d79;
}
.wello-laptop__live {
  margin-left: auto;
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: #2dd4bf;
}
.wello-laptop__screen {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.wello-laptop__screen img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
  transition: opacity .55s ease;
}
.wello-laptop__base {
  width: 150px; height: 11px;
  margin: 0 auto;
  background: #141d1c;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 10px 22px rgba(0,0,0,.45);
}
.wello-laptop__base--sm {
  width: 230px; height: 8px;
  margin-top: -1px;
  background: #0c1413;
}

/* --- Légende + points --- */
.wello-caption {
  position: relative; z-index: 2;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  color: #a7f3d0;
  text-align: center;
}
.wello-dots {
  position: relative; z-index: 2;
  display: flex; justify-content: center;
  gap: 11px;
  margin-top: 11px;
}

/* --- Bloc info en dessous de la scène --- */
.wello-hero__info {
  padding: clamp(26px,4vw,34px) clamp(22px,4vw,36px);
  display: flex; flex-direction: column;
  gap: 18px;
  background: var(--surface);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 880px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 30px; }
  .hero-term    { order: 1; }
  .hero-cards   { order: 2; flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .hero-cards .bub-wrap { margin-left: 0 !important; flex: 1 1 220px; }
}
@media (max-width: 620px) {
  .hero-sec      { padding-top: 90px; padding-bottom: 54px; }
  .nav-path      { display: none; }
  .nav-tabs      { gap: 2px; font-size: 11px; }
  .nav-tab       { padding: 6px 9px; }
  .stat-item__sep{ display: none; }
  .stats-band__inner { gap: 32px; }
  .terminal__input-row { display: none; }
  .terminal__hint      { display: none; }
}
@media (max-width: 480px) {
  .hero-cards .bub-wrap { flex: 1 1 100%; }
}
@media (max-width: 430px) {
  .nav-tab--minor { display: none; }
}

/* --- Wello hero responsive --- */
@media (max-width: 640px) {
  .wello-stage__watermark { font-size: 220px; }
  .wello-laptop__url { display: none; }
}

/* --- Cartes projet en mobile --- */
@media (max-width: 720px) {
  /* Une seule colonne, et l'image (visuel) toujours en premier */
  .project-card { grid-template-columns: 1fr; }
  .project-card > .project-card__visual,
  .project-card > .monitor-scene,
  .project-card > .wello-stage { order: -1; }
  .project-card > .project-card__info { order: 0; }
}
@media (max-width: 620px) {
  /* Le téléphone décoratif en arrière-plan encombre sur mobile */
  .phone--bg { display: none; }
  .project-card__visual { min-height: 0; padding: 32px 20px; }
}
