/* Courbes de niveau issues du fichier waves-light.svg fourni. */
.topography-page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  color: #24343c;
  background: #f7f8f6;
}

.topography-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("/assets/topography.svg?v=10");
  background-repeat: repeat;
  background-size: 720px 720px;
  background-position: center;
  /* Des courbes plus présentes sur les côtés, plus calmes sous le texte. */
  mask-image: radial-gradient(ellipse at 37% 35%, rgb(0 0 0 / 8%), rgb(0 0 0 / 18%) 22%, rgb(0 0 0 / 65%) 58%, #000 85%);
}

/* Trois nappes de couleur douce sous les courbes de niveau. */
.topography-atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.topography-atmosphere::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(ellipse at 87% 17%, rgb(158 184 204 / 55%), transparent 48%),
    radial-gradient(ellipse at 12% 76%, rgb(169 193 177 / 48%), transparent 48%),
    radial-gradient(ellipse at 83% 91%, rgb(213 194 166 / 46%), transparent 44%);
  animation: landscape-drift 28s ease-in-out infinite alternate;
}

@keyframes landscape-drift {
  from { transform: translate3d(-1.5%, 1%, 0) scale(1); }
  to { transform: translate3d(2.5%, -2%, 0) scale(1.07); }
}

.topography-page .hero {
  animation: none;
  background: transparent;
}

.topography-page footer a {
  color: #43545d;
}

@media (max-width: 600px) {
  .topography-page::before {
    background-size: 540px 540px;
    mask-image: radial-gradient(ellipse at 45% 40%, rgb(0 0 0 / 8%), rgb(0 0 0 / 18%) 24%, #000 85%);
  }
}

/* La dernière ligne de présentation délimite l’espace à centrer. */
.topography-page main {
  flex: 1;
  display: grid;
  grid-template-rows: minmax(2rem, 0.65fr) auto minmax(8rem, 1.35fr);
}

.topography-page .hero {
  grid-row: 2;
  min-height: auto;
  padding-block: 0;
}

.topography-page .contact {
  grid-row: 3;
  min-height: 8rem;
  align-items: center;
}

/* Le pied de page reste dans l’écran sans décaler le centre de LinkedIn. */
.topography-page footer {
  position: absolute;
  inset: auto 0 0;
}

.topography-page .linkedin {
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.topography-page .linkedin:hover,
.topography-page .linkedin:focus-visible {
  color: #466d68;
  text-decoration-color: #466d68;
}

@media (prefers-reduced-motion: reduce) {
  .topography-atmosphere::before {
    animation: none;
  }

  .topography-page .linkedin {
    transition: none;
  }
}

/* Contact par e-mail. */
.topography-page .contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1.5rem 2.5rem;
}

.topography-page .email-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 100%;
}

.topography-page .email-button {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  color: inherit;
  background: transparent;
  text-align: left;
  text-decoration-line: underline;
}

.topography-page .email-button:disabled {
  color: #52616a;
  cursor: not-allowed;
  opacity: 1;
  text-decoration-color: currentColor;
}

.topography-page .email-availability {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #52616a;
}

.topography-page .email-button:not(:disabled) { cursor: pointer; }
.topography-page .email-address {
  text-decoration-line: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  animation: email-reveal 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes email-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.topography-page .email-copied {
  color: #466d68;
  text-decoration-color: #466d68;
}

.topography-page .email-address:focus-visible {
  outline: 2px solid #466d68;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .topography-page .email-address { animation: none; }
}
.topography-page .email-availability:empty { display: none; }

/* Aperçu décoratif : aucun alias n’existe avant le clic. */
.topography-page .email-masked {
  display: inline-block;
  filter: blur(5px);
  opacity: 0.65;
  user-select: none;
  transition: filter 180ms ease, opacity 180ms ease;
}

.topography-page .email-button:hover .email-masked,
.topography-page .email-button:focus-visible .email-masked {
  filter: blur(3px);
  opacity: 0.85;
}

.topography-page .email-button:focus-visible {
  outline: 2px solid #466d68;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .topography-page .email-masked { transition: none; }
}

.topography-page .email-line {
  max-width: 100%;
}

.topography-page .email-label {
  text-decoration-line: underline;
}
