/* Reset minimal */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Variables couleurs */
:root {
  --bg: #050508;
  --accent: #7f7cff;
  --accent-glow: rgba(127, 124, 255, 0.6);
  --text: #eaeaff;
}

/* Global */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0c0c1d, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

/* Bandeau supérieur */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.name {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;

  background: linear-gradient(
    90deg,
    #2f6bff,
    #6f6cff,
    #b44cff
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 10px rgba(111, 108, 255, 0.6),
    0 0 25px rgba(180, 76, 255, 0.5);

  animation: shine 6s ease infinite;
}

.help-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.help-btn:hover {
  background: var(--accent);
  color: black;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Contenu principal */
main {
  padding: 80px 40px;
  max-width: 1200px;
  margin: auto;
}

h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 60px;
  text-align: center;
  color: var(--accent);
  text-shadow: 0 0 25px var(--accent-glow);
}

.title-glow {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 2px;

  background: linear-gradient(
    90deg,
    #2f6bff,
    #6f6cff,
    #b44cff
  );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 0 15px rgba(111, 108, 255, 0.6),
    0 0 35px rgba(180, 76, 255, 0.5);

  animation: shine 6s ease infinite;
}


/* Vignettes */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.card {
  background: linear-gradient(145deg, #0d0d25, #070716);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  border: 1px solid rgba(127, 124, 255, 0.15);
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow:
    0 0 25px var(--accent-glow),
    inset 0 0 15px rgba(127, 124, 255, 0.15);
}

::selection {
  background: rgba(180, 76, 255, 0.6);
  color: #ffffff;
}

::-moz-selection {
  background: rgba(180, 76, 255, 0.6);
  color: #ffffff;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1000;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #0b0b1a;
  padding: 20px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 0 30px rgba(127, 124, 255, 0.6);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 2rem;
  cursor: pointer;
  color: #b44cff;
}
