/* =====================================================
   CSS VARIABLES — PALETTE POKEMON / GAME BOY
===================================================== */
:root {
  --bg-dark:    #0f0f23;
  --bg-card:    #1a1a2e;
  --bg-panel:   #16213e;
  --red:        #CC0000;
  --red-light:  #ff4444;
  --yellow:     #FFCB05;
  --blue:       #4FC3F7;
  --blue-dark:  #1565C0;
  --green:      #4CAF50;
  --text:       #e0e0e0;
  --text-dim:   #9e9e9e;
  --white:      #ffffff;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body:  'VT323', monospace;
  --font-mono:  'Roboto Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23CC0000' stroke='%23fff' stroke-width='2'/%3E%3Crect x='2' y='14' width='28' height='4' fill='%23333'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%23fff' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%23333'/%3E%3C/svg%3E"), auto;
  overflow-x: hidden;
}

/* MAP TILE BACKGROUND */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* =====================================================
   SCROLLBAR
===================================================== */
::-webkit-scrollbar { width: 10px; background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--red); border: 2px solid var(--bg-dark); }

/* =====================================================
   NAVIGATION
===================================================== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  border-bottom: 3px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text);
  text-decoration: none;
  padding: 6px 10px;
  border: 2px solid transparent;
  transition: all .15s;
}

.nav-links a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(255,203,5,0.1);
}

/* =====================================================
   HERO SECTION
===================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* Étoiles déco */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,203,5,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(79,195,247,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 80%, rgba(204,0,0,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 10% 60%, rgba(255,203,5,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--blue);
  background: rgba(79,195,247,0.1);
  border: 2px solid var(--blue);
  padding: 8px 16px;
  margin-bottom: 20px;
  display: inline-block;
  animation: blink-border 2s infinite;
}

@keyframes blink-border {
  0%, 100% { border-color: var(--blue); }
  50%       { border-color: transparent; }
}

.hero-sprite {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  position: relative;
}

.trainer-svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  animation: trainer-walk 0.6s steps(1) infinite;
  filter: drop-shadow(0 0 12px var(--yellow));
}

@keyframes trainer-walk {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(14px, 3vw, 24px);
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 rgba(204,0,0,0.3);
  margin-bottom: 12px;
  line-height: 1.5;
}

.hero-prefix {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--bg-dark);
  background: var(--yellow);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--red), 8px 8px 0 rgba(204,0,0,0.3);
  transition: all .1s;
  position: relative;
}

.hero-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red), 10px 10px 0 rgba(204,0,0,0.3);
}

.hero-btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--red);
}

/* Pokéball déco fond */
.pokeball-deco {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.pokeball-deco-1 {
  width: 300px; height: 300px; top: -80px; right: -80px;
  background: radial-gradient(circle, var(--red) 50%, var(--bg-dark) 50%);
  animation: spin-slow 20s linear infinite;
}
.pokeball-deco-2 {
  width: 200px; height: 200px; bottom: -60px; left: -40px;
  background: radial-gradient(circle, var(--yellow) 50%, var(--bg-dark) 50%);
  animation: spin-slow 15s linear infinite reverse;
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =====================================================
   SECTION COMMON
===================================================== */
section {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(11px, 2.5vw, 16px);
  color: var(--yellow);
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::before {
  content: '▶ ';
  color: var(--red);
}

.section-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  margin: 16px auto 0;
}

/* Séparateur de section */
.section-divider {
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0, var(--red) 8px,
    transparent 8px, transparent 16px
  );
  margin: 0;
}

/* =====================================================
   DIALOG BOX — style Pokémon
===================================================== */
.dialog-box {
  background: var(--bg-card);
  border: 4px solid var(--white);
  outline: 4px solid var(--bg-dark);
  box-shadow: 0 0 0 8px var(--blue), inset 0 0 0 4px var(--bg-panel);
  padding: 24px 28px;
  position: relative;
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 1.7;
}

.dialog-box::after {
  content: '▼';
  position: absolute;
  bottom: 8px;
  right: 16px;
  color: var(--white);
  font-size: 16px;
  animation: blink 1.2s steps(1) infinite;
}

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

/* =====================================================
   À PROPOS — FICHE POKEDEX
===================================================== */
#about {
  background: var(--bg-panel);
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  max-width: 100%;
  padding: 80px 24px;
}

#about > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pokedex-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}

.pokedex-left {
  background: var(--bg-dark);
  border: 3px solid var(--blue);
  padding: 24px;
  text-align: center;
}

.pokedex-number {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.trainer-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
  border: 3px solid var(--yellow);
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  image-rendering: pixelated;
  position: relative;
  overflow: hidden;
}

.pokedex-name {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--yellow);
  margin-bottom: 8px;
}

.pokedex-type {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 7px;
  background: var(--blue-dark);
  color: var(--white);
  padding: 4px 10px;
  margin: 2px;
}

.pokedex-right h3 {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--blue);
  margin-bottom: 16px;
}

/* Stat bars */
.stat-row {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.stat-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
}

.stat-bar-bg {
  height: 16px;
  background: var(--bg-dark);
  border: 2px solid var(--text-dim);
  overflow: hidden;
}

.stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--yellow));
  transition: width 1.5s cubic-bezier(.25,.46,.45,.94);
  width: 0;
}

.stat-bar-fill.red-bar  { background: linear-gradient(90deg, var(--red), #ff8800); }
.stat-bar-fill.blue-bar { background: linear-gradient(90deg, var(--blue-dark), var(--blue)); }

.stat-val {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--yellow);
  text-align: right;
}

/* =====================================================
   COMPETENCES
===================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--bg-card);
  border: 2px solid var(--blue);
  padding: 20px;
  transition: border-color .2s, transform .2s;
}

.skill-category:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
}

.skill-cat-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--yellow);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--yellow);
}

.skill-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.skill-name {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text);
  flex: 1;
}

.skill-stars {
  display: flex;
  gap: 3px;
}

.star {
  width: 10px; height: 10px;
  display: inline-block;
  background: var(--text-dim);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled { background: var(--yellow); }
.star.half   { background: linear-gradient(90deg, var(--yellow) 50%, var(--text-dim) 50%); }

.skill-icon {
  width: 24px; height: 24px;
  background: var(--bg-panel);
  border: 1px solid var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  image-rendering: pixelated;
  margin-right: 6px;
  flex-shrink: 0;
}

/* =====================================================
   PROJETS — CARTES
===================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--bg-card);
  border: 3px solid var(--blue);
  position: relative;
  transition: all .2s;
  overflow: hidden;
}

.project-card:hover {
  border-color: var(--yellow);
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255,203,5,0.2), 6px 6px 0 var(--red);
}

.card-holographic {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(79,195,247,0.05) 25%,
    transparent 50%,
    rgba(255,203,5,0.05) 75%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}

.project-card:hover .card-holographic { opacity: 1; }

.card-header {
  background: linear-gradient(135deg, var(--red) 0%, var(--blue-dark) 100%);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-title {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--white);
}

.card-context-badge {
  font-family: var(--font-pixel);
  font-size: 6px;
  background: rgba(0,0,0,0.4);
  color: var(--yellow);
  padding: 3px 6px;
  border: 1px solid var(--yellow);
}

.card-body { padding: 16px; }

.card-project-name {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--yellow);
  margin-bottom: 10px;
  line-height: 1.6;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: var(--font-pixel);
  font-size: 6px;
  padding: 4px 8px;
  background: var(--bg-panel);
  border: 1px solid var(--blue);
  color: var(--blue);
}

.tag.red    { border-color: var(--red);    color: var(--red); }
.tag.yellow { border-color: var(--yellow); color: var(--yellow); }
.tag.green  { border-color: var(--green);  color: var(--green); }

.card-footer {
  padding: 12px 16px;
  border-top: 2px dashed var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-hp     { font-family: var(--font-pixel); font-size: 7px; color: var(--green); }
.card-period { font-family: var(--font-pixel); font-size: 6px; color: var(--text-dim); }

/* =====================================================
   TIMELINE / PARCOURS
===================================================== */
#timeline {
  background: var(--bg-panel);
  max-width: 100%;
  padding: 80px 24px;
  border-top: 3px solid var(--yellow);
  border-bottom: 3px solid var(--yellow);
}

#timeline > * {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.timeline-wrapper {
  position: relative;
  padding-left: 60px;
}

.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(
    to bottom,
    var(--yellow) 0, var(--yellow) 8px,
    transparent 8px, transparent 16px
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-badge {
  position: absolute;
  left: -52px; top: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-card);
  border: 2px solid var(--text-dim);
  padding: 16px 20px;
  transition: border-color .2s;
}

.timeline-content:hover { border-color: var(--yellow); }

.timeline-date {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--blue);
  margin-bottom: 6px;
}

.timeline-title {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--yellow);
  margin-bottom: 6px;
  line-height: 1.6;
}

.timeline-sub {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.timeline-desc {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
}

/* =====================================================
   CONTACT
===================================================== */
#contact { text-align: center; }

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-card);
  border: 2px solid var(--blue);
  padding: 12px 20px;
  transition: all .2s;
}

.contact-link:hover {
  color: var(--yellow);
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--red);
}

.contact-form {
  background: var(--bg-card);
  border: 4px solid var(--white);
  outline: 4px solid var(--bg-dark);
  box-shadow: 0 0 0 8px var(--blue);
  padding: 32px;
  text-align: left;
}

.form-row { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--yellow);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 2px solid var(--text-dim);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 8px rgba(79,195,247,0.3);
}

.form-textarea { min-height: 120px; resize: vertical; }

.form-submit {
  width: 100%;
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--bg-dark);
  background: var(--yellow);
  border: none;
  padding: 18px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--red);
  transition: all .1s;
}

.form-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red);
}

.form-submit:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--red);
}

/* =====================================================
   EASTER EGG PIKACHU
===================================================== */
#pikachu-easter {
  display: none;
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 9999;
  font-size: 60px;
  animation: bounce-pikachu 0.5s infinite alternate;
  filter: drop-shadow(0 0 20px var(--yellow));
}

@keyframes bounce-pikachu {
  from { transform: translateY(0) rotate(-5deg); }
  to   { transform: translateY(-20px) rotate(5deg); }
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  background: var(--bg-dark);
  border-top: 3px solid var(--red);
  text-align: center;
  padding: 24px;
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

footer span { color: var(--red); }

/* =====================================================
   TYPEWRITER
===================================================== */
.typewriter { display: inline; }

.typewriter-cursor {
  display: inline-block;
  width: 10px; height: 1.1em;
  background: var(--yellow);
  animation: blink .8s steps(1) infinite;
  vertical-align: middle;
}

/* =====================================================
   HP BARS (hero section — langues)
===================================================== */
.hp-bar-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.hp-row {
  display: grid;
  grid-template-columns: 110px 1fr 35px;
  align-items: center;
  gap: 10px;
}

.hp-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text);
}

.hp-bar {
  height: 12px;
  background: var(--bg-dark);
  border: 2px solid var(--text-dim);
  overflow: hidden;
}

.hp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0%, var(--green) 100%);
  transition: width 2s ease;
  width: 0;
}

.hp-val {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--yellow);
  text-align: right;
}

/* =====================================================
   POKEBALL FLOTTANTE
===================================================== */
.pokeball-float {
  position: fixed;
  bottom: -60px;
  right: 30px;
  width: 50px; height: 50px;
  z-index: 500;
  opacity: 0.6;
  animation: float-ball 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-ball {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-20px) rotate(180deg); }
}

/* =====================================================
   SCROLL REVEAL
===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 768px) {
  nav { padding: 8px 12px; }
  .nav-links { display: none; }
  .pokedex-card { grid-template-columns: 1fr; }
  .pokedex-left { max-width: 260px; margin: 0 auto; }
  .stat-row { grid-template-columns: 100px 1fr 32px; }
  section { padding: 60px 16px; }
  .hero-title { font-size: 14px; }
  .timeline-wrapper { padding-left: 50px; }
}

/* =====================================================
   PROJETS — SÉPARATEURS DE BLOCS (scolaire / stage)
===================================================== */
.projects-block-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 20px;
  padding: 14px 20px;
  background: var(--bg-panel);
  border-left: 4px solid var(--yellow);
  border-bottom: 2px solid var(--yellow);
}

.projects-block-label--stage {
  border-left-color: var(--red);
  border-bottom-color: var(--red);
  margin-top: 56px;
}

.block-label-icon {
  font-size: 20px;
}

.block-label-text {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--yellow);
  letter-spacing: 1px;
}

.projects-block-label--stage .block-label-text {
  color: var(--red-light);
}

.projects-block-intro {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 24px;
  padding-left: 4px;
  line-height: 1.5;
}

/* Cartes de stage : bordure rouge au lieu de bleue */
.project-card--stage {
  border-color: var(--red);
}

.project-card--stage:hover {
  border-color: var(--yellow);
  box-shadow: 0 12px 32px rgba(204,0,0,0.2), 6px 6px 0 var(--yellow);
}

.card-header--stage {
  background: linear-gradient(135deg, #8B0000 0%, var(--red) 100%);
}

/* =====================================================
   EXPÉRIENCES PROFESSIONNELLES
===================================================== */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.exp-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 2px solid var(--text-dim);
  padding: 20px 22px;
  transition: border-color .2s, transform .2s;
}

.exp-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.exp-icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-panel);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.exp-content {
  flex: 1;
}

.exp-period {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--blue);
  margin-bottom: 6px;
}

.exp-title {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--yellow);
  margin-bottom: 4px;
  line-height: 1.6;
}

.exp-company {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.exp-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .exp-grid { grid-template-columns: 1fr; }
  .projects-block-label { padding: 10px 14px; }
  .block-label-text { font-size: 6px; }
}

/* =====================================================
   GAME BOY FRAME — HERO
===================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  text-align: center;
  z-index: 1;
  overflow: hidden;
}

/* Écraser le hero précédent pour centrer le frame */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,203,5,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(79,195,247,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 50% 85%, rgba(204,0,0,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 60%, rgba(255,203,5,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.gameboy-frame {
  position: relative;
  width: min(440px, 92vw);
  background: #1a1a2e;
  border: 4px solid #FFCB05;
  box-shadow:
    0 0 0 8px #0f0f23,
    0 0 0 10px #CC0000,
    0 0 40px rgba(255,203,5,0.3),
    inset 0 0 20px rgba(0,0,0,0.5);
  padding: 0 0 20px;
  /* Coins arrondis bas style Game Boy */
  border-radius: 8px 8px 30px 30px;
}

/* Étiquette "GAME BOY COLOR" en haut du boîtier */
.gameboy-screen-label {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-dim);
  text-align: center;
  padding: 10px 0 6px;
  letter-spacing: 3px;
  border-bottom: 2px solid #CC0000;
  margin-bottom: 0;
}

/* L'écran lui-même */
.gameboy-screen {
  background: #0d1117;
  margin: 10px 16px;
  padding: 20px 16px 16px;
  border: 3px solid #333;
  box-shadow: inset 0 0 12px rgba(79,195,247,0.08), inset 0 0 0 1px #222;
  position: relative;
  overflow: hidden;
  /* Effet scanlines sur l'écran */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}

/* Étoiles dans l'écran */
.gb-stars { position: absolute; inset: 0; pointer-events: none; }
.gb-star {
  position: absolute;
  font-size: 8px;
  color: var(--yellow);
  animation: blink 1.5s steps(1) infinite;
}

/* Texte "PRESS START" clignotant */
.gb-press-start {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--blue);
  margin-bottom: 4px;
  animation: blink 1s steps(1) infinite;
}

.gb-copyright {
  font-family: var(--font-pixel);
  font-size: 5px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.gb-player-label {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

/* Contrôles Game Boy sous l'écran */
.gb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 4px;
}

.gb-dpad {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.gb-dpad-h {
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 33%;
  background: #333;
  transform: translateY(-50%);
  border-radius: 3px;
}
.gb-dpad-v {
  position: absolute;
  left: 50%; top: 0;
  width: 33%; height: 100%;
  background: #333;
  transform: translateX(-50%);
  border-radius: 3px;
}

.gb-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.gb-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 7px;
  font-weight: bold;
  cursor: default;
}
.gb-btn-b { background: #1565C0; color: #fff; margin-top: 12px; }
.gb-btn-a { background: #CC0000; color: #fff; }

.gb-start-select {
  display: flex;
  gap: 8px;
}
.gb-ss-btn {
  font-family: var(--font-pixel);
  font-size: 5px;
  color: var(--text-dim);
  background: #333;
  padding: 4px 8px;
  border-radius: 10px;
  cursor: default;
}

/* Étoiles décoratives dans le hero (hors frame) */
.gb-star { font-size: 8px; }

/* =====================================================
   SECTION SCANLINES (fond de section about)
===================================================== */
.section-scanlines {
  display: none; /* désactivé — trop lourd visuellement, activer si souhaité */
}

/* =====================================================
   INGEPLUS BADGE — dans la fiche Pokédex
===================================================== */
.ingeplus-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(255,203,5,0.06);
  border: 1px solid rgba(255,203,5,0.3);
  border-left: 3px solid var(--yellow);
  text-align: left;
}

.ingeplus-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* =====================================================
   CERTIFICATIONS — sous les compétences
===================================================== */
.certif-block {
  margin-top: 40px;
  background: var(--bg-panel);
  border: 2px solid var(--blue);
  padding: 28px 24px;
  position: relative;
}

/* Coin pixel art */
.certif-block::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px;
  width: 12px; height: 12px;
  background: var(--yellow);
}
.certif-block::after {
  content: '';
  position: absolute;
  bottom: -2px; right: -2px;
  width: 12px; height: 12px;
  background: var(--yellow);
}

.certif-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--yellow);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.certif-title-icon { font-size: 18px; }

.certif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.certif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--text-dim);
  padding: 14px;
  transition: border-color .2s;
}

.certif-item:hover { border-color: var(--yellow); }

.certif-logo {
  width: 36px; height: 36px;
  background: var(--bg-dark);
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--font-pixel);
  font-weight: bold;
  color: var(--blue);
  flex-shrink: 0;
}

.certif-name {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 4px;
}

.certif-org {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.certif-year {
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--yellow);
}

/* =====================================================
   STAGE BANNER — bandeau imposant avant les missions
===================================================== */
.stage-banner {
  margin: 64px 0 28px;
  background: linear-gradient(135deg, #3a0000 0%, #1a0000 40%, #0f0f23 100%);
  border: 3px solid var(--red);
  box-shadow:
    0 0 0 6px var(--bg-dark),
    0 0 0 8px var(--red),
    0 0 32px rgba(204,0,0,0.25);
  overflow: hidden;
  position: relative;
}

/* Ligne de pixels en haut et bas du bandeau */
.stage-banner-pixel-row {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--red) 0, var(--red) 8px,
    #8B0000 8px, #8B0000 16px
  );
}

.stage-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  gap: 24px;
  flex-wrap: wrap;
}

.stage-banner-eyebrow {
  font-family: var(--font-pixel);
  font-size: 7px;
  color: var(--red-light);
  margin-bottom: 10px;
  animation: blink-border 2s infinite;
}

.stage-banner-title {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 4vw, 28px);
  color: var(--yellow);
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 rgba(204,0,0,0.3);
  line-height: 1.2;
  margin-bottom: 6px;
}

.stage-banner-sub {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-dim);
}

.stage-banner-right {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
}

.stage-banner-stat {
  text-align: center;
}

.stage-banner-stat-num {
  display: block;
  font-family: var(--font-pixel);
  font-size: 20px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
  line-height: 1.2;
}

.stage-banner-stat-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 6px;
  color: var(--text-dim);
  margin-top: 4px;
}

.stage-banner-desc {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text);
  padding: 0 32px 24px;
  line-height: 1.6;
  border-top: 1px dashed rgba(204,0,0,0.4);
  padding-top: 16px;
  margin: 0;
}

/* =====================================================
   RESPONSIVE — nouveaux éléments
===================================================== */
@media (max-width: 768px) {
  .gameboy-frame { width: 94vw; }
  .gb-controls { padding: 10px 12px 4px; }
  .stage-banner-inner { flex-direction: column; align-items: flex-start; }
  .stage-banner-right { gap: 20px; }
  .stage-banner-title { font-size: 16px; }
  .certif-grid { grid-template-columns: 1fr; }
}

/* ── E5 compétences ── */
.project-card, .project-card--stage { display:flex !important; flex-direction:column !important; }
.card-body { flex:1 !important; }

.e5-block { margin-top:12px; padding-top:10px; border-top:1px solid rgba(255,255,255,0.10); }
.e5-label {
  font-family:'Press Start 2P',monospace; font-size:6px;
  color:#FFCB05; letter-spacing:1px; margin-bottom:8px;
}
.e5-badges { display:flex; flex-wrap:wrap; gap:6px 7px; }

.cbadge {
  font-family:'Roboto Mono',monospace; font-size:10px;
  display:inline-block; padding:4px 9px;
  border-radius:4px; border:1px solid; white-space:nowrap;
  cursor:default; transition:transform .12s,filter .12s;
}
.cbadge:hover { transform:scale(1.05); filter:brightness(1.2); }

.cgp  { background:rgba(255,165,0,.12);   color:#FFA500; border-color:rgba(255,165,0,.45); }
.cri  { background:rgba(66,165,245,.12);  color:#42A5F5; border-color:rgba(66,165,245,.45); }
.cdpo { background:rgba(171,71,188,.12);  color:#CE93D8; border-color:rgba(171,71,188,.45); }
.ctmp { background:rgba(102,187,106,.12); color:#81C784; border-color:rgba(102,187,106,.45); }
.cmsu { background:rgba(255,202,40,.12);  color:#FFCA28; border-color:rgba(255,202,40,.45); }
.codp { background:rgba(150,150,150,.12); color:#aaaaaa; border-color:rgba(150,150,150,.45); }

@media(max-width:900px){ .projects-grid { grid-template-columns:repeat(2,1fr) !important; } }
@media(max-width:580px){ .projects-grid { grid-template-columns:1fr !important; } }

/* ── E5 : une compétence par ligne ── */
.e5-badges {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.cbadge {
  display: block !important;
  width: fit-content !important;
  white-space: normal !important;
}
