/* ============================================================
   HOME.CSS — Spécifique à la page d'accueil (portfolio.html)
   À charger APRÈS base.css.
   Contient : hero d'accueil, section à propos, compétences,
   grilles de projets (jeux vidéo + autres).
   ============================================================ */

/* ---------- HERO ---------- */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero .hero-bg{
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 30% 35%, black 0%, transparent 72%);
  opacity: 0.55;
}

.hero-inner{
  position: relative;
  z-index: 1;
  max-width: var(--maxw-text);
  margin: 0 auto;
  width: 100%;
  padding: 44px 40px;
}

.hero-frame{
  position: relative;
}
.hero-frame::before,
.hero-frame::after{
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--accent);
  opacity: 0.75;
}
.hero-frame::before{ /* coin haut-gauche */
  top: -16px; left: -16px;
  border-right: none; border-bottom: none;
}
.hero-frame::after{ /* coin bas-droit */
  bottom: -16px; right: -16px;
  border-left: none; border-top: none;
}

.hero-eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.hero h1{
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
}

.hero h1 .cursor{
  display: inline-block;
  width: 0.5ch;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink{ 0%, 49%{ opacity: 1; } 50%, 100%{ opacity: 0; } }

.hero-role{
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--accent);
  margin-top: 14px;
  font-weight: 600;
}

.hero p.lead{
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 52ch;
}

.hero-cta{
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.scroll-cue{
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.scroll-cue span{
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--text-faint), transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown{
  0%{ transform: scaleY(0.2); transform-origin: top; opacity: 0.3; }
  50%{ transform: scaleY(1); transform-origin: top; opacity: 1; }
  100%{ transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; }
}

@media (max-width: 640px){
  .hero-inner{ padding: 32px 24px; }
}

/* ---------- ABOUT ---------- */
.about{ background: var(--bg-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.about p{ color: var(--text-muted); margin: 0 0 18px; }
.about p:last-child{ margin-bottom: 0; }
.about strong{ color: var(--text); font-weight: 600; }

/* ---------- SKILLS ---------- */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 48px;
  margin-top: 8px;
}
.skill-group h3{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.tag-list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- PROJECTS (grilles) ---------- */
.projects-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
.projects-head h2{ font-size: clamp(1.5rem, 3vw, 2rem); }
.projects-head .count{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-faint);
}

.project-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover{ border-color: var(--accent-dim); transform: translateY(-3px); }

.card-thumb{
  height: 140px;
  position: relative;
  background-size: 220% 220%;
}
.card-thumb::after{
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  mix-blend-mode: overlay;
}

.g1{ background-image: linear-gradient(135deg, #1c3a73, #0d1a33); }
.g2{ background-image: linear-gradient(135deg, #163a52, #0a1622); }
.g3{ background-image: linear-gradient(135deg, #2a2f6e, #10122c); }
.g4{ background-image: linear-gradient(135deg, #123a4c, #081522); }
.g5{ background-image: linear-gradient(135deg, #33306e, #14132c); }
.g6{ background-image: linear-gradient(135deg, #164a4a, #0a1e1e); }

.card-body{
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.card-body p{
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 14px;
  flex: 1;
}
.card-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags .tag{
  font-size: 11px;
  padding: 4px 9px;
}

/* ---------- Variante "autres projets" ---------- */
.other-projects{ background: var(--bg-soft); border-top: 1px solid var(--border-soft); }
.other-projects .card-thumb::after{ opacity: 0.6; }
