:root {
  --bg-light: #f5f5f5;
  --text-light: #1a1a1a;
  --bg-dark: #121212;
  --text-dark: #f5f5f5;
  --accent: #22ffed;

  --bio-bg-light: #eaeaea;
  --bio-text-light: #1a1a1a;
  --bio-bg-dark: #212121;
  --bio-text-dark: #f5f5f5;

  --link-light: #006b5f;
  --link-dark: #22ffed;
}

body {
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* header avatar + titre */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 60px;
  margin-bottom: 20px;
}

.header h2 {
  margin: 0;
  font-size: 1.3rem;
}

/* avatar */
.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px rgba(53, 53, 53, 0.2);
}

/* blocs bio */
.bio-french, .bio-english {
  display: block;
  padding: 1em;
  margin: 1em 0;
  border-radius: 10px;
  max-width: 700px;
  background-color: var(--bio-bg-light);
  color: var(--bio-text-light);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.bio-french:hover, .bio-english:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
body.dark .bio-french,
body.dark .bio-english {
  background-color: var(--bio-bg-dark);
  color: var(--bio-text-dark);
}

/* liens */
.links {
  margin-top: 1em;
  display: flex;
  gap: 0.5em;
  text-align: center;
}
a {
  position: relative;
  color: var(--link-light);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
a:hover::after {
  width: 100%;
}
body.dark a {
  color: var(--link-dark);
}

/* bouton thème */
.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.theme-toggle:hover {
  opacity: 0.8;
  transform: scale(1.1);
}
.icon-sun, .icon-moon {
  display: none;
}
body.dark .icon-sun {
  display: inline;
}
body.dark .icon-moon {
  display: none;
}
body:not(.dark) .icon-sun {
  display: none;
}
body:not(.dark) .icon-moon {
  display: inline;
}

/* dark mode background */
body.dark {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
