* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Fond sur <html> : sur iOS (encoche / safe area) le <body> ne remplissait pas
   toute la hauteur → bande = couleur de repli. Le fond doit suivre tout l’écran. */
html {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  background-color: #e8e2d6;
  background-image: url("img/waves.png");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  /* fixed casse le plein écran / safe area sur iOS Safari */
  background-attachment: scroll;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(100px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  background: transparent;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  color: #1e293b;
  line-height: 1.6;
}

.container {
  max-width: 680px;
  width: 100%;
  padding: 40px;
  border-radius: 20px;
  position: relative;
  z-index: 3;
  margin-bottom: 50px;
}

/* Torii : tout en flux, léger recouvrement des boutons (réglage simple) */
.links-section {
  position: relative;
  /* margin-top: 0.5rem; */
  z-index: 0;
  padding-bottom: 0.75rem;
}

/* Arche / torii (masquée) */
.arch {
  display: none;
}

.links-section .links {
  position: relative;
  z-index: 2;
  margin-top: 0;
  width: 100%;
  padding: 0 clamp(0.5rem, 4%, 1rem);
  box-sizing: border-box;
}
@keyframes bubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-10px) scale(1.1);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20px) scale(0.8);
    opacity: 0;
  }
}

.profile {
  text-align: center;
  position: relative;
  margin-bottom: 1rem;
  z-index: 2;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 6px solid #1e293b;
  object-fit: cover;
  box-shadow:
    0 8px 25px rgba(30, 41, 59, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  /* Effet de reflet aquatique */
  position: relative;
}

.profile-img::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 10%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent);
  border-radius: 50%;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow:
    0 12px 35px rgba(30, 41, 59, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 20px rgba(99, 179, 237, 0.3);
}

/* Lisibilité : texte clair + contour marqué (ombres + léger stroke), pas de cadre */
.profile h1 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  -webkit-text-stroke: 0.55px rgba(1, 6, 18, 0.55);
  paint-order: stroke fill;
  text-shadow:
    -2px -2px 0 rgba(0, 8, 20, 0.88),
    2px -2px 0 rgba(0, 8, 20, 0.88),
    -2px 2px 0 rgba(0, 8, 20, 0.88),
    2px 2px 0 rgba(0, 8, 20, 0.88),
    0 -2px 0 rgba(0, 8, 20, 0.9),
    0 2px 0 rgba(0, 8, 20, 0.9),
    -2px 0 0 rgba(0, 8, 20, 0.9),
    2px 0 0 rgba(0, 8, 20, 0.9),
    -1px -1px 0 rgba(0, 8, 20, 0.95),
    1px -1px 0 rgba(0, 8, 20, 0.95),
    -1px 1px 0 rgba(0, 8, 20, 0.95),
    1px 1px 0 rgba(0, 8, 20, 0.95),
    0 0 2px rgba(0, 0, 0, 0.55),
    0 0 8px rgba(0, 0, 0, 0.5),
    0 2px 16px rgba(0, 0, 0, 0.45);
}

.profile .bio {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 500;
  -webkit-text-stroke: 0.35px rgba(1, 6, 18, 0.4);
  paint-order: stroke fill;
  text-shadow:
    -2px 0 0 rgba(0, 8, 20, 0.78),
    2px 0 0 rgba(0, 8, 20, 0.78),
    0 -2px 0 rgba(0, 8, 20, 0.78),
    0 2px 0 rgba(0, 8, 20, 0.78),
    -1px -1px 0 rgba(0, 8, 20, 0.9),
    1px -1px 0 rgba(0, 8, 20, 0.9),
    -1px 1px 0 rgba(0, 8, 20, 0.9),
    1px 1px 0 rgba(0, 8, 20, 0.9),
    0 0 2px rgba(0, 0, 0, 0.55),
    0 0 10px rgba(0, 0, 0, 0.42),
    0 1px 12px rgba(0, 0, 0, 0.4);
}

.links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

/* Liens : 100% 100% = image entière étirée sur le bouton, pas de rognage (cover recadrait) */
.link-card {
  display: grid;
  place-content: center;
  place-items: center;
  width: 100%;
  max-width: min(320px, 90%);
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem 1.75rem;
  min-height: 3.5rem;
  line-height: 1.2;
  text-decoration: none;
  position: relative;
  background-image: url("img/button.png");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-size: 1rem;
}

.link-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}

.link-card i {
  flex-shrink: 0;
  font-size: 24px;
  line-height: 1;
  color: #f4f4f5;
  opacity: 0.95;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.link-content span {
  font-family:
    "Plus Jakarta Sans",
    "Inter",
    system-ui,
    sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.98);
  -webkit-font-smoothing: antialiased;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 2px 12px rgba(0, 0, 0, 0.22);
}

footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  -webkit-text-stroke: 0.3px rgba(1, 6, 18, 0.4);
  paint-order: stroke fill;
  text-shadow:
    -2px 0 0 rgba(0, 8, 20, 0.75),
    2px 0 0 rgba(0, 8, 20, 0.75),
    0 -2px 0 rgba(0, 8, 20, 0.75),
    0 2px 0 rgba(0, 8, 20, 0.75),
    -1px -1px 0 rgba(0, 8, 20, 0.88),
    1px -1px 0 rgba(0, 8, 20, 0.88),
    -1px 1px 0 rgba(0, 8, 20, 0.88),
    1px 1px 0 rgba(0, 8, 20, 0.88),
    0 0 2px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(0, 0, 0, 0.38);
}

footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  -webkit-text-stroke: 0.35px rgba(1, 6, 18, 0.45);
  paint-order: stroke fill;
  text-shadow:
    -2px 0 0 rgba(0, 8, 20, 0.78),
    2px 0 0 rgba(0, 8, 20, 0.78),
    0 -2px 0 rgba(0, 8, 20, 0.78),
    0 2px 0 rgba(0, 8, 20, 0.78),
    -1px -1px 0 rgba(0, 8, 20, 0.9),
    1px -1px 0 rgba(0, 8, 20, 0.9),
    -1px 1px 0 rgba(0, 8, 20, 0.9),
    1px 1px 0 rgba(0, 8, 20, 0.9),
    0 0 2px rgba(0, 0, 0, 0.52),
    0 0 8px rgba(0, 0, 0, 0.4);
}

footer a:hover {
  color: #e2e8f0;
  text-decoration: none;
}

/* Responsive design amélioré */
@media (max-width: 480px) {
  html {
    background-position: center 35%;
  }

  body {
    padding: max(15px, env(safe-area-inset-top, 0px))
      max(15px, env(safe-area-inset-right, 0px))
      max(120px, env(safe-area-inset-bottom, 0px))
      max(15px, env(safe-area-inset-left, 0px));
  }

  .container {
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 16px;
  }

  .links-section .links {
    margin-top: 0;
  }

  .profile-img {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  .profile h1 {
    font-size: 2rem;
  }

  .profile .bio {
    font-size: 14px;
  }

  .link-card {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    padding: 1.35rem 1.1rem;
    min-height: 3.25rem;
  }

  .link-content {
    gap: 0.55rem;
  }

  .link-card i {
    font-size: 20px;
  }

  .link-content span {
    font-size: 0.94rem;
    letter-spacing: 0.035em;
  }
}
