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

:root {
  --bg: #764da3;
  --bg2: #0c1220;
  --teal: #00e5c8;
  --teal2: #00b89c;
  --pink: #ff4f9b;
  --yellow: #f5e642;
  --white: #e8f0fe;
  --muted-teal: #08b89d;
  --grey: #08b89d;
  --card-bg: rgba(0, 229, 200, 0.04);
  --card-border: rgba(0, 229, 200, 0.15);
  --glow: 0 0 20px rgba(0, 229, 200, 0.3);
  --glow-pink: 0 0 20px rgba(255, 79, 155, 0.4);
}

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

html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: 'Syne', sans-serif;
  cursor: none;
}

/* CURSEUR */
#cursor,
#cursor-ring {
  pointer-events: none;
}

#cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  background: var(--pink);
  border-radius: 50%;
  z-index: 999999;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
  box-shadow: var(--glow-pink);
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 79, 155, 0.5);
  border-radius: 50%;
  z-index: 999998;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.2s, height 0.2s;
}

/* FONDS */
#grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 200, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 200, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

#scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 100;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--teal);
  border-radius: 50%;
  animation: float-up linear infinite;
  opacity: 0;
}

/* APP */
#app {
  position: relative;
  z-index: 10;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ÉCRANS */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 50px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow-y: auto;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
}

.content-screen {
  width: min(1400px, 100%);
  max-width: none;
  padding-bottom: 40px;
  margin: auto;
  align-self: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* INTRO */
#screen-intro {
  text-align: center;
  align-items: center;
  justify-content: center;
}

#screen-slides {
  justify-content: center;
  align-items: center;
}

.boot-line {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fade-in 0.3s forwards;
  margin-bottom: 5px;
}

.boot-line:nth-child(1) { animation-delay: 0.2s; }
.boot-line:nth-child(2) { animation-delay: 0.6s; }
.boot-line:nth-child(3) { animation-delay: 1s; }
.boot-line:nth-child(4) { animation-delay: 1.4s; }
.boot-line:nth-child(5) { animation-delay: 1.8s; }

/* ANIMATION TITRE LETTRE PAR LETTRE */
.main-title {
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 28px 0 10px;
  min-height: 1.2em;
}

.letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.85);
  animation: letter-in 0.32s cubic-bezier(0.2, 0, 0, 1) forwards;
}

.letter.space {
  display: inline-block;
  width: 0.32em;
  opacity: 1;
  transform: none;
  animation: none;
}

.letter.teal {
  color: var(--teal);
  text-shadow: var(--glow);
}

@keyframes letter-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--muted-teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 44px;
  opacity: 0;
  animation: fade-in 0.6s forwards 2.8s;
}

/* BOUTONS */
.btn,
.nav-btn,
.dot {
  cursor: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, box-shadow 0.3s;
  opacity: 0;
  animation: fade-in 0.6s forwards 3.4s;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  color: var(--bg);
  box-shadow: var(--glow);
}

.btn .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* PROGRESSION */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 8px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transition: width 0.5s ease;
  z-index: 200;
  box-shadow: 0 0 8px var(--teal);
}

#slide-progress {
  position: fixed;
  top: 10px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 199;
}

#slide-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  box-shadow: 0 0 8px var(--pink);
}

/* TIMER */
#timer {
  position: fixed;
  top: 20px;
  right: 30px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1.4rem;
  color: var(--teal);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.4s;
}

#timer.visible {
  opacity: 1;
}

#timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  animation: blink 1s infinite;
}

/* LABELS */
.slide-label {
  position: fixed;
  top: 20px;
  left: 30px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.15em;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.4s;
}

.slide-label.visible {
  opacity: 1;
}

#auto-label {
  position: fixed;
  top: 42px;
  left: 30px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--pink);
  letter-spacing: 0.15em;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.4s;
}

#auto-label.visible {
  opacity: 1;
}

/* NAVIGATION */
#nav {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.4s;
}

#nav.visible {
  opacity: 1;
}

.nav-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--teal);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  border-color: var(--teal);
  box-shadow: var(--glow);
  background: rgba(0, 229, 200, 0.1);
}

.nav-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

#slide-counter {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--muted-teal);
  letter-spacing: 0.1em;
  min-width: 55px;
  text-align: center;
}

#dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-teal);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.dot.active {
  background: var(--teal);
  transform: scale(1.4);
  box-shadow: var(--glow);
}

/* MODULE */
.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.module-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 1.5s infinite;
}

/* SECTIONS */
.section-tag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--teal);
}

.section-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-title .accent {
  color: var(--teal);
}

.section-title .accent-pink {
  color: var(--pink);
}

.section-title .accent-yellow {
  color: var(--yellow);
}

/* IDENTITÉ */
.identity-layout [style*="grid-template-columns:1.2fr"] {
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  gap: 28px;
  align-items: center;
  width: 100%;
   overflow: visible;
}

.identity-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-frame {
  position: relative;
  width: 210px;
  height: 260px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.photo-corner {
  position: absolute;
  width: 14px;
  height: 14px;
}

.photo-corner.tl {
  top: -3px;
  left: -3px;
  border-top: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}

.photo-corner.tr {
  top: -3px;
  right: -3px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}

.photo-corner.bl {
  bottom: -3px;
  left: -3px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
}

.photo-corner.br {
  bottom: -3px;
  right: -3px;
  border-bottom: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
}

.photo-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.08em;
  text-align: center;
}

/* CODE */
.code-block {
  width: 100%;
  min-height: unset;
  padding: 14px 18px 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--card-border);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: '● ● ●';
  position: absolute;
  top: 8px;
  left: 14px;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--muted-teal);
}

.code-content {
  margin-top: 14px;
}

.c-comment {
  color: #3a5560;
}

.c-keyword {
  color: var(--pink);
}

.c-fn {
  color: var(--yellow);
}

.c-string {
  color: var(--teal);
}

.c-var {
  color: #9face6;
}

.c-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--teal);
  vertical-align: middle;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

.post-garland { 
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  max-width: 760px;
  margin: 0 0 18px;
  padding: 10px 14px 14px;
}

.post-garland::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(0,229,200,0), rgba(0,229,200,0.45), rgba(255,79,155,0.45), rgba(0,229,200,0));
  transform: translateY(-50%);
  pointer-events: none;
}

.garland-chip {
  position: relative;
  background: transparent;
  background-color: transparent;
  border: 1px solid rgba(0, 229, 200, 0.28);
  color: #e8ecff;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.06em;
  padding: 7px 7px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 0 0 rgba(0, 229, 200, 0);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, color 0.22s ease;
  cursor: default;
}

.garland-chip:hover,
.garland-chip:focus-visible {
  background: transparent;
  background-color: transparent;
  border-color: rgba(0, 229, 200, 0.7);
  color: var(--teal);
  outline: none;
  box-shadow: 0 0 16px rgba(0, 229, 200, 0.22);
}

.garland-chip::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: linear-gradient(180deg, rgba(0,229,200,0.5), rgba(0,229,200,0.06));
  transform: translateX(-50%);
  pointer-events: none;
}

.cnam-garland {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}




/* TIMELINE */
.htimeline {
  position: relative;
  width: 100%;
  padding: 20px 0 10px;
}

.htl-wave-container {
  width: 100%;
  height: 160px;
  margin-bottom: 10px;
}

.htl-wave-container svg {
  display: block;
  width: 100%;
  height: 100%;
}

.htl-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.htl-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.htl-role {
  font-size: 1rem;
  color: var(--pink);
  margin-top: 2px;
}

.htl-why {
  font-size: 1rem;
  color: rgba(232, 240, 254, 0.4);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 140px;
  font-style: italic;
}

/* SKILLS */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: rgb(241, 242, 246);
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.115);
  position: relative;
  overflow: hidden;
}

.skill-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 6px var(--teal);
}

/* BADGES */
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.badge {
  padding: 6px 12px;
  border: 1px solid rgba(0, 229, 200, 0.28);
  background: rgba(0, 229, 200, 0.05);
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  color: var(--teal2);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* TEXTES SECONDAIRES PLUS LISIBLES */
.card-text,
.htl-why,
.htl-role,
.skill-label {
  color: rgba(232, 240, 254, 0.78);
  font-size: 1rem;
  line-height: 1.55;
}

/* CARTES */
.cards-grid {
  display: grid;
  gap: 14px;
}

.card {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 229, 200, 0.22);
  padding: 14px;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s;
}

.card:hover {
  border-color: rgba(0, 229, 200, 0.4);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

.card:hover::before {
  transform: scaleY(1);
}

.card-icon {
  font-size: 1.3rem;
  margin-bottom: 7px;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.card-text {
  font-size: 1rem;
  color: rgba(232, 240, 254, 0.6);
  line-height: 1.55;
  max-width: 34ch;
}

/* LAYOUTS */
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

.fin-layout {
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-col {
  display: flex;
  flex-direction: column;
}

.contact-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-frame {
  border: 1px solid var(--card-border);
  padding: 8px;
  background: rgba(118, 77, 163, 0.9);
  box-shadow: var(--glow);
}

/* MESSAGE FINAL */
.big-message {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  max-width: 680px;
}

.big-message .line {
  display: block;
}

.big-message .line-teal {
  color: var(--teal);
}

.big-message .line-pink {
  color: var(--pink);
}





/* GLITCH */
.glitch {
  position: relative;
}

.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--pink);
  clip-path: polygon(0 30%, 100% 30%, 100% 50%, 0 50%);
  animation: glitch 4s infinite;
  opacity: 0;
}

/* ANIMATIONS */
@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

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

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glitch {
  0%, 88%, 100% {
    opacity: 0;
  }
  90% {
    transform: translateX(-2px);
    opacity: 0.5;
  }
  92% {
    transform: translateX(2px);
    opacity: 0.5;
  }
  94% {
    opacity: 0;
  }
}



.identity-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(180px, 220px) minmax(460px, 1.1fr);
  gap: clamp(24px, 3vw, 56px);
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
}

.identity-left {
  align-self: center;
  max-width: 460px;
}

.identity-intro {
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  color: rgb(237,239,244);
  line-height: 1.6;
  max-width: 420px;
  margin: 0;
}

.identity-right {
  align-self: center;
  min-width: 0;
}

#slide-identity .module-badge {
  margin-bottom: 18px;
}

#slide-identity .section-tag {
  margin-bottom: 14px;
}

#slide-identity .section-title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 0.95;
  max-width: 640px;
}

#slide-identity .code-block {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 18px 22px;
}

#slide-identity .code-content {
  width: 100%;
}

#slide-identity .photo-frame {
  width: 205px;
  height: 250px;
}

#slide-identity .photo-label {
  margin-top: 4px;
}

@media (max-width: 1200px) {
  .identity-grid {
    grid-template-columns: minmax(300px, 1fr) 190px minmax(380px, 1fr);
    gap: 24px;
  }

  #slide-identity .section-title {
    font-size: clamp(1.8rem, 3.4vw, 3rem);
  }

  #slide-identity .code-block {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .identity-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .identity-left,
  .identity-right {
    max-width: 680px;
    width: 100%;
  }

  .identity-intro {
    max-width: none;
  }

  #slide-identity .section-tag {
    justify-content: center;
  }

  #slide-identity .code-block {
    min-height: auto;
  }
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .identity-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .identity-photo-col {
    order: -1;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 18px;
  }

 .skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.screen {
  padding: 60px 20px 80px;
}

  .htl-why {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .cards-grid {
  display: grid;
  gap: 14px;
}
}

/* APPAREILS TACTILES */
@media (hover: none) and (pointer: coarse) {
  #cursor,
  #cursor-ring {
    display: none;
  }

  html,
  body {
    cursor: auto;
  }

  .btn,
  .nav-btn,
  .dot {
    cursor: pointer;
  }
}

/* ── JOURNEY GRID (remplace la timeline absolue) ── */
.journey-connector {
  position: relative;
  width: 100%;
  height: 2px;
  margin-bottom: -10px;
}

.journey-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--pink), var(--yellow), var(--teal));
  opacity: 0.35;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  align-items: stretch;
  margin-top: 10px;
}

.journey-card {
  position: relative;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 229, 200, 0.18);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: auto;
}

.journey-card.jc-teal {
  border-color: rgba(0, 229, 200, 0.35);
  background: rgba(0, 229, 200, 0.04);
}
.journey-card.jc-pink  { border-color: rgba(255, 79, 155, 0.35); }
.journey-card.jc-yellow {
  border-color: rgba(245, 230, 66, 0.3);
  background: rgba(245, 230, 66, 0.05);
}

.journey-card.jc-active {
  background: rgba(0, 229, 200, 0.06);
  box-shadow: 0 0 18px rgba(0, 229, 200, 0.12);
}

/* petit point coloré en haut de carte */
.jc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.jcd-teal   { background: var(--teal);   box-shadow: 0 0 6px var(--teal); }
.jcd-pink   { background: var(--pink);   box-shadow: 0 0 6px var(--pink); }
.jcd-yellow { background: var(--yellow); box-shadow: 0 0 6px var(--yellow); }

.jc-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.jc-tag {
  font-size: 0.82rem;
  color: rgba(232, 240, 254, 0.75);
  font-family: 'Share Tech Mono', monospace;
  line-height: 1.4;
}

/* surcharge htl- à l'intérieur des cards */
.journey-card .htl-date  { font-size: 0.82rem; }
.journey-card .htl-title { font-size: 1rem; }
.journey-card .htl-role  { font-size: 0.88rem; color: var(--pink); font-style: normal; }
.journey-card .htl-why   { font-size: 0.82rem; max-width: none; }

@media (max-width: 900px) {
  .journey-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .journey-card .htl-why,
  .jc-tag {
    display: none;
  }
}

@media (max-width: 1100px) {
  .two-col,
  .skills-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .content-screen {
    width: 100%;
    padding-bottom: 30px;
  }
}

@media (max-width: 800px) {
  .screen {
    padding: 16px 16px 72px;
  }

  .section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .card-text,
  .htl-why,
  .htl-role,
  .skill-label {
    font-size: 1rem;
  }
}