/* =========================================================
   Yandere.eu — design system
   Palette : aubergine profond + rouge sang + sakura + fil menthe
   Typo     : Cormorant Garamond (display) / Manrope (texte) / JetBrains Mono (accents)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,600&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* couleurs */
  --ink: #14080f;
  --ink-soft: #1e0f1a;
  --ink-card: #241323;
  --blood: #d21e42;
  --blood-deep: #7c1029;
  --sakura: #ff9dc6;
  --thread: rgba(210, 30, 66, 0.45);
  --code: #7fd8c9;
  --paper: #f7ecf1;
  --paper-dim: #c7a9b6;
  --paper-dimmer: #8a6b76;

  /* typo */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* rythme */
  --content-w: 1120px;
  --pad-inline: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* texture de fond très subtile : grain + halo */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(210, 30, 66, 0.16), transparent 60%),
    radial-gradient(50rem 30rem at 110% 20%, rgba(127, 216, 201, 0.07), transparent 60%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blood);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--code);
  outline-offset: 3px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: var(--paper);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.stitch-mark {
  flex: none;
  color: var(--blood);
  opacity: 0.9;
}

.section-tag {
  display: block;
  color: var(--code);
  margin-bottom: 0.4rem;
}

.section-desc {
  color: var(--paper-dim);
  max-width: 46ch;
  margin: -1.25rem 0 2.25rem;
  font-size: 1.02rem;
}

/* fil pointillé décoratif entre sections */
.stitch-divider {
  display: block;
  width: 100%;
  height: 18px;
  margin: 0 auto;
  opacity: 0.35;
}

section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  z-index: 1;
}

section + section {
  border-top: 1px solid rgba(247, 236, 241, 0.06);
}

/* =========== NAVBAR =========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(20, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(247, 236, 241, 0.08);
}

.nav-inner {
  max-width: var(--content-w);
  margin-inline: auto;
  padding: 0.85rem var(--pad-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg { flex: none; }
.brand svg .heart-path {
  transform-origin: center;
  animation: heartbeat 1.8s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.12); }
  40% { transform: scale(0.98); }
  55% { transform: scale(1.08); }
}

.brand-name { color: var(--paper); }
.brand-name em {
  font-style: italic;
  color: var(--sakura);
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--paper-dim);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--blood);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--paper); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.lang-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(247, 236, 241, 0.05);
  border: 1px solid rgba(247, 236, 241, 0.18);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.4rem 1.7rem 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-select:hover, .lang-select:focus-visible { border-color: var(--blood); }
.lang-select option { background: var(--ink-card); color: var(--paper); }
.lang-caret {
  position: absolute;
  right: 0.65rem;
  color: var(--paper-dimmer);
  pointer-events: none;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem var(--pad-inline) 1.25rem;
  background: rgba(20, 8, 15, 0.98);
  border-bottom: 1px solid rgba(247, 236, 241, 0.08);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  text-decoration: none;
  color: var(--paper-dim);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(247, 236, 241, 0.06);
}
.nav-drawer a:hover { color: var(--sakura); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

/* =========== HERO =========== */
.hero {
  padding-top: clamp(3.5rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  color: var(--code);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--code);
  box-shadow: 0 0 8px var(--code);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--sakura);
  position: relative;
}

.hero-underline {
  display: block;
  width: min(420px, 80%);
  height: 20px;
  margin-top: 0.4rem;
}
.hero-underline path {
  fill: none;
  stroke: var(--blood);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: stitch-draw 1.4s 0.3s ease forwards;
}
@media (prefers-reduced-motion: reduce) {
  .hero-underline path { animation: none; stroke-dashoffset: 0; }
}
@keyframes stitch-draw {
  to { stroke-dashoffset: 0; }
}

.hero p.lede {
  color: var(--paper-dim);
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 1.4rem 0 0;
}

.hero-log {
  margin-top: 1.1rem;
  min-height: 1.4em;
  font-size: 0.82rem;
  color: var(--code);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.hero-log-prompt { color: var(--paper-dimmer); }
.hero-log-text { opacity: 1; transition: opacity 0.25s ease; }
.hero-log-text.fade { opacity: 0; }
.hero-log-cursor {
  display: inline-block;
  width: 6px; height: 1em;
  background: var(--code);
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

/* le "terminal" de navigation */
.term {
  margin-top: 2.5rem;
  background: var(--ink-card);
  border: 1px solid rgba(247, 236, 241, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: rgba(247, 236, 241, 0.04);
  border-bottom: 1px solid rgba(247, 236, 241, 0.08);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(247,236,241,0.18); }
.term-title {
  margin-left: 0.4rem;
  color: var(--paper-dimmer);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.term-body { padding: 0.4rem 0; }
.term-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-dim);
  border: none;
  background: none;
  width: 100%;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  overflow-x: auto;
}
.term-line:hover, .term-line:focus-visible { background: rgba(210, 30, 66, 0.12); color: var(--paper); }
.term-line .flag { color: var(--code); flex: none; width: 8ch; white-space: nowrap; }
.term-line .name { color: var(--sakura); flex: none; width: 9.5ch; white-space: nowrap; }
.term-line .desc { color: var(--paper-dim); white-space: nowrap; }

@media (max-width: 480px) {
  .term-line .flag { display: none; }
  .term-line { gap: 0.6rem; }
  .term-line .desc { white-space: normal; }
}
.term-cursor {
  padding: 0.55rem 1.1rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dimmer);
}
.term-cursor .blinker {
  display: inline-block;
  width: 7px; height: 1em;
  background: var(--code);
  margin-left: 3px;
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
}

/* =========== ABOUT =========== */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.portrait-frame {
  position: relative;
  width: min(280px, 60vw);
  margin-inline: auto;
}
.portrait-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(247,236,241,0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.portrait-frame:hover img {
  transform: scale(1.045);
  box-shadow: 0 0 28px rgba(210,30,66,0.45);
  border-color: var(--blood);
}
.stitch-corner {
  position: absolute;
  width: 30px; height: 30px;
  color: var(--blood);
  opacity: 0.85;
}
.stitch-corner.tl { top: -10px; left: -10px; }
.stitch-corner.br { bottom: -10px; right: -10px; transform: rotate(180deg); }

.bio-card { }
.bio-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  color: var(--sakura);
  margin-bottom: 0.9rem;
}
.stat-line {
  display: flex;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--paper-dimmer);
  padding: 0.4rem 0;
  border-bottom: 1px dashed rgba(247,236,241,0.1);
}
.stat-line span.k { color: var(--code); width: 9ch; flex: none; }
.bio-text {
  margin-top: 1.4rem;
  color: var(--paper-dim);
  max-width: 55ch;
}

.meter-block { margin-top: 1.4rem; max-width: 340px; }
.meter-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
}
.meter-label { color: var(--code); }
.meter-value { color: var(--sakura); font-weight: 600; }
.meter {
  height: 9px;
  border-radius: 999px;
  background: rgba(247, 236, 241, 0.08);
  overflow: hidden;
  position: relative;
}
.meter-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blood), var(--sakura));
  box-shadow: 0 0 12px 1px var(--blood);
  animation: meter-pulse 1.8s ease-in-out infinite;
  transform-origin: left;
}
@keyframes meter-pulse {
  0%, 100% { box-shadow: 0 0 8px 0 var(--blood); }
  50% { box-shadow: 0 0 18px 3px var(--blood); }
}
.meter-caption {
  margin-top: 0.5rem;
  color: var(--paper-dimmer);
  font-size: 0.72rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.social-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(247,236,241,0.15);
  color: var(--paper-dim);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-icon:hover, .social-icon:focus-visible {
  color: var(--sakura);
  border-color: var(--blood);
  transform: translateY(-2px);
}
.social-icon svg, .social-icon i { font-size: 1rem; }

/* =========== CARDS (serveurs / projets) =========== */
.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.panel {
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.1);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.panel:hover { border-color: var(--thread); }

.panel-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.4rem;
}
.panel-desc {
  color: var(--paper-dim);
  font-size: 0.96rem;
  margin-bottom: 1rem;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}
.server-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--paper-dimmer);
  margin: -0.5rem 0 1rem;
}
.server-stats .dot-sep { opacity: 0.5; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--code);
  border: 1px solid rgba(127, 216, 201, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--blood);
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible { background: var(--blood); color: #fff; }
.btn.solid { background: var(--blood); }
.btn.solid:hover { background: var(--blood-deep); border-color: var(--blood-deep); }

/* repos github */
.repo-row {
  border: 1px solid rgba(247,236,241,0.1);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.repo-row:hover { border-color: var(--thread); background: rgba(210,30,66,0.06); }
.repo-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.repo-name {
  font-family: var(--font-mono);
  color: var(--sakura);
  font-size: 0.98rem;
}
.repo-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--paper-dimmer);
  display: flex;
  gap: 1rem;
}
.repo-desc { color: var(--paper-dim); font-size: 0.9rem; }
.repo-state {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper-dimmer);
  padding: 1rem 0;
}

/* =========== SUPPORT =========== */
.support-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .support-grid { grid-template-columns: repeat(3, 1fr); }
}
.support-card {
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.1);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.support-card:hover { transform: translateY(-4px); border-color: var(--blood); }
.support-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sakura);
}
.support-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--paper-dim);
  margin-top: 0.4rem;
}
.support-alt {
  margin-top: 1.6rem;
  display: flex;
  justify-content: center;
}

/* =========== PARTY SELECT (mes deux moitiés) =========== */
.party-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .party-grid { grid-template-columns: repeat(2, 1fr); }
}

.party-card {
  background: linear-gradient(180deg, var(--ink-card), var(--ink-soft));
  border: 1px solid rgba(247,236,241,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.party-card:hover {
  border-color: var(--blood);
  transform: translateY(-4px);
}
.party-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(210,30,66,0.18), transparent 70%);
  pointer-events: none;
}
.party-card::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -70%;
  width: 45%;
  height: 220%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.16), transparent);
  transform: rotate(20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.party-card:hover::after {
  left: 140%;
}
.party-portrait {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.6rem 1.6rem 0;
}
.party-portrait img {
  width: 148px;
  height: 148px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--blood);
  box-shadow: 0 0 0 6px rgba(210,30,66,0.12), 0 0 24px rgba(210,30,66,0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.party-card:hover .party-portrait img {
  transform: scale(1.08) rotate(-1deg);
  box-shadow: 0 0 0 6px rgba(210,30,66,0.2), 0 0 34px rgba(210,30,66,0.6);
}
.party-body {
  padding: 1.2rem 1.6rem 1.6rem;
  text-align: center;
  position: relative;
}
.party-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--sakura);
  transition: color 0.25s ease;
}
.party-name[data-hover-name] { cursor: default; }
.party-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-dimmer);
  margin-top: 0.15rem;
}
.party-stats {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.party-stats .k { display: block; color: var(--code); margin-bottom: 0.2rem; }
.party-stats .v { color: var(--paper); }

.party-meter {
  margin-top: 1.1rem;
  text-align: left;
}
.party-meter .meter-top { font-size: 0.72rem; }
.party-meter .meter { height: 7px; }

.party-tagline {
  margin-top: 1rem;
  color: var(--paper-dim);
  font-size: 0.9rem;
  font-style: italic;
}

.party-bio {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(247,236,241,0.12);
  text-align: left;
}
.party-bio-label {
  display: block;
  color: var(--code);
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
}
.party-bio p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.86rem;
  white-space: pre-line;
}
.carousel {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.carousel-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  padding: 0.4rem 0.2rem 1.2rem;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.carousel-track.dragging { cursor: grabbing; }
.friend-card {
  flex: none;
  width: 190px;
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.1);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.friend-card:hover { border-color: var(--thread); transform: translateY(-3px); }
.friend-avatar {
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.8rem;
  border: 2px solid rgba(247,236,241,0.12);
  pointer-events: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.friend-card:hover .friend-avatar {
  transform: scale(1.1);
  border-color: var(--blood);
  box-shadow: 0 0 18px rgba(210,30,66,0.5);
}

.friend-card.is-live {
  position: relative;
}
.friend-card.is-live .friend-avatar {
  border-color: var(--blood);
  box-shadow: 0 0 0 3px rgba(210,30,66,0.35), 0 0 14px rgba(210,30,66,0.55);
  animation: meter-pulse 1.8s ease-in-out infinite;
}
.friend-card.is-live::after {
  content: '';
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 8px var(--blood);
}

.modal-live {
  display: inline-block;
  margin: -0.6rem auto 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--blood);
  background: rgba(210,30,66,0.12);
  color: var(--sakura);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.modal-live[hidden] { display: none; }
.friend-name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--paper);
  background: none;
  border: none;
  padding: 0;
  cursor: inherit;
  transition: color 0.2s ease;
}
.friend-card:hover .friend-name,
.friend-name:hover {
  color: var(--sakura);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}
.carousel-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(247,236,241,0.18);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}
.carousel-btn:hover { border-color: var(--blood); color: var(--sakura); }

/* modal ami */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 8, 0.78);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.14);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  background: none;
  border: none;
  color: var(--paper-dim);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem;
}
.modal-close:hover { color: var(--blood); }
.modal-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 2px solid var(--blood);
}
.modal-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sakura);
  margin-bottom: 1rem;
}
.modal-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* =========== FOOTER =========== */
.footer {
  padding: 2.5rem 0 3rem;
  text-align: center;
  color: var(--paper-dimmer);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.footer .social-row { justify-content: center; margin-top: 1rem; }
.hidden-heart {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--blood);
  opacity: 0.12;
  font-size: 0.9rem;
  cursor: pointer;
  animation: hidden-heart-pulse 3.5s ease-in-out infinite;
}
.hidden-heart:hover { opacity: 0.4; animation-play-state: paused; }
@keyframes hidden-heart-pulse {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.28; }
}
@media (prefers-reduced-motion: reduce) {
  .hidden-heart { animation: none; opacity: 0.18; }
}

/* =========== curseur personnalisé =========== */
html {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 20.5s-7-4.3-9.1-8.7C1.2 8.6 2.7 5.5 5.7 5.1c1.9-.3 3.5.6 4.4 2.2.9-1.6 2.5-2.5 4.4-2.2 3 .4 4.5 3.5 2.8 6.7C19 16.2 12 20.5 12 20.5z" fill="%23d21e42" stroke="%23150a12" stroke-width="0.8"/></svg>') 12 12, auto;
}
a, button, select, .term-line, .friend-card, .party-card, .carousel-btn, .lang-select, .menu-toggle, .modal-close, .support-card, .repo-row, [role="button"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M16 1 L20.5 13 L16 19 L11.5 13 Z" fill="%23f0eef2" stroke="%23150a12" stroke-width="1"/><line x1="16" y1="3" x2="16" y2="16" stroke="%23c9c3c8" stroke-width="0.8"/><rect x="8" y="17.5" width="16" height="3" rx="1.2" fill="%23d21e42" stroke="%23150a12" stroke-width="1"/><rect x="13.3" y="20.3" width="5.4" height="8" rx="1.4" fill="%232b1620" stroke="%23150a12" stroke-width="1"/><circle cx="16" cy="29.3" r="2.6" fill="%23d21e42" stroke="%23150a12" stroke-width="0.9"/></svg>') 16 2, pointer;
}

/* =========== badge live twitch =========== */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(210,30,66,0.5);
  border-radius: 999px;
  background: rgba(210,30,66,0.1);
}
.live-badge[hidden] { display: none; }
.live-badge a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sakura);
  text-decoration: none;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 8px var(--blood);
  animation: blink 1.3s ease-in-out infinite;
}

/* =========== git log (notre histoire) =========== */
.git-log {
  position: relative;
  padding-left: 1.6rem;
}
.git-log::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--blood), transparent 95%);
  opacity: 0.5;
}
.commit {
  position: relative;
  padding-bottom: 1.7rem;
}
.commit:last-child { padding-bottom: 0; }
.commit::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--blood);
}
.commit-pending::before {
  background: transparent;
  border-style: dashed;
}
.commit-pending .commit-message { opacity: 0.85; font-style: italic; }
.commit-pending .commit-date { color: var(--code); }
.commit-top {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.commit-hash { color: var(--code); }
.commit-date { color: var(--paper-dimmer); }
.commit-message {
  margin: 0.3rem 0 0;
  color: var(--paper);
  font-size: 0.98rem;
}

/* =========== easter egg overlay =========== */
.egg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,4,8,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.egg-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.egg-box {
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--blood);
  border-radius: var(--radius);
  background: var(--ink-card);
  padding: 2rem;
  box-shadow: 0 0 40px rgba(210,30,66,0.4);
}
.egg-box p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--sakura);
  margin: 0;
}

/* =========== écran de chargement =========== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}
.loading-box { text-align: center; width: min(280px, 80vw); }
.loading-box p {
  color: var(--code);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.loading-bar {
  height: 3px;
  background: rgba(247,236,241,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blood), var(--sakura));
  transition: width 1.1s ease;
}

/* =========== pluie de pétales (hero) =========== */
.petal-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.petal {
  position: absolute;
  top: -5%;
  font-size: 14px;
  color: var(--blood);
  opacity: 0.5;
  animation: petal-fall linear infinite;
  will-change: transform;
}
@keyframes petal-fall {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(115vh) translateX(var(--drift, 40px)) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .petal { display: none; }
}

/* =========== compteur de visiteurs =========== */
.visitor-counter {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: var(--paper-dimmer);
  opacity: 0.8;
}

/* =========== succès / secrets débloqués =========== */
.achievements-btn {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 900;
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.18);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.achievements-btn:hover { border-color: var(--blood); transform: translateY(-2px); }

.achievements-panel {
  position: fixed;
  left: 1.2rem;
  bottom: 4.2rem;
  z-index: 900;
  width: min(300px, calc(100vw - 2.4rem));
  background: var(--ink-card);
  border: 1px solid rgba(247,236,241,0.16);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  overflow: hidden;
}
.achievements-panel[hidden] { display: none; }
.achievements-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(247,236,241,0.1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--sakura);
}
.achievements-close {
  background: none;
  border: none;
  color: var(--paper-dim);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
.achievements-panel ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  max-height: 280px;
  overflow-y: auto;
}
.achievements-panel li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: var(--paper-dim);
}
.achievements-panel li.unlocked { color: var(--paper); }
.achievements-panel li .ach-icon { flex: none; }

/* =========== responsive : tablette / desktop =========== */
@media (min-width: 640px) {
  .about-grid { grid-template-columns: 220px 1fr; }
  .portrait-frame { width: 100%; margin-inline: 0; }
}

@media (min-width: 900px) {
  .hero-inner { max-width: 66ch; }
}
