:root {
  --bg-dark: #000;
  --bg-light: #fff;
  --text-dark: #fff;
  --text-light: #000;
  --btn-bg: #111;
  --btn-bg-hover: #222;
  --btn-text: #fff;
  --border-light: #fff;
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --shadow-light: rgba(255, 255, 255, 0.3);
  --shadow-light-hover: rgba(255, 255, 255, 0.5);
  --grid-dark: rgba(255, 255, 255, 0.03);
  --grid-light: rgba(0, 0, 0, 0.1);
  --scrollbar-thumb: #111;
}

.button-container .fa-instagram.icon-small,
.button-container .fa-facebook-square.icon-small {
  font-size: 24px;
  width: 24px;
  height: 24px;
  line-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding-top: 0;
}


/* Harmonisation de l'icône Instagram */
.button-container .fa-instagram.icon-small {
  font-size: 22px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  padding-top: 1px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =============== STATIC GRID BACKGROUND =============== */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px), linear-gradient(var(--grid-dark) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* =============== BASIC =============== */
body {
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: var(--bg-dark);
  color: var(--text-dark);
  transition: all 0.3s ease;
  overflow-y: scroll;
  overflow-x: hidden;
  position: relative;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.main-container {
  width: 90%;
  max-width: 30rem;
  margin: 10rem auto;
  position: relative;
  z-index: 1;
}

:focus-visible {
  outline-offset: 4px;
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
}

/* =============== BIO SECTION =============== */
.blob-center {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.blob-wrapper {
  width: 160px;
  height: 160px;
  border-radius: 52% 48% 59% 41% / 53% 40% 60% 47%;
  overflow: hidden;
  animation: blobAnim 30s infinite;
  box-shadow: 0 4px 20px var(--shadow-dark);
}

.blob-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes blobAnim {
  0%, 100% { border-radius: 52% 48% 59% 41% / 53% 40% 60% 47%; }
  20% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
  50% { border-radius: 40% 60% 60% 40% / 50% 50% 40% 60%; }
  80% { border-radius: 52% 48% 59% 41% / 53% 40% 60% 47%; }
}

/* =============== TEXT STYLING =============== */
h1 {
  text-align: center;
  margin: 0.5rem 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2 {
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.01em;
}

.lead {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 1rem 0;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

small {
  font-size: 0.875rem;
  font-weight: 300;
  opacity: 0.8;
  line-height: 1.4;
}

/* =============== BUTTONS =============== */
.button-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.mail-btn, .share-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mail-btn:hover, .share-btn:hover {
  background: var(--btn-bg-hover);
  transform: scale(1.05);
}

/* =============== ICON STYLES =============== */
.icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.icon-small {
  width: 20px;
  height: 20px;
}

.icon-large {
  width: 28px;
  height: 28px;
}

/* =============== LINKS =============== */
.social-links ul {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin-bottom: 1rem;
  background: var(--btn-bg);
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  box-shadow: 0 0 15px var(--shadow-light);
  transition: all 0.25s ease;
}

.social-links li:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-5px);
  box-shadow: 0 0 25px var(--shadow-light-hover);
}

.social-links a {
  display: flex;
  align-items: center;
  padding: 1rem;
  text-decoration: none;
  color: var(--btn-text);
}

.social-links .icon {
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.social-links li:hover .icon {
  transform: scale(1.1);
}

/* =============== RESPONSIVE TYPOGRAPHY =============== */
@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  .lead { font-size: 1rem; }
  .mail-btn, .share-btn { font-size: 0.9rem; padding: 0.6rem 1rem; }
  h3 { font-size: 0.95rem; }
  small { font-size: 0.825rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .lead { font-size: 0.95rem; }
}

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

@media (prefers-contrast: high) {
  .social-links li { border-width: 2px; }
  h1, h2, h3 { font-weight: 900; }
}
