:root {
  --bg-deep:    #0a0f0d;
  --bg-mid:     #111d13;
  --bg-soft:    #1b2d1d;
  --ink:        #e0e6e2;
  --ink-muted:  rgba(224, 230, 226, 0.62);
  --accent:     #4ade80;
  --accent-alt: #2dd4bf;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 4rem);

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(120% 90% at 50% 0%,   var(--bg-soft) 0%, transparent 55%),
    linear-gradient(165deg, var(--bg-mid) 0%, var(--bg-deep) 55%, #060a08 100%);
  background-attachment: fixed;

  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Halo lumineux : 2 couches en respiration décalée ---------- */
.halo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.halo::before,
.halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  will-change: opacity, transform;
}

.halo::before {
  width: 90vmax; height: 90vmax;
  top: -30vmax; left: 50%;
  margin-left: -45vmax;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.10) 0%, rgba(74, 222, 128, 0) 62%);
  animation: breathe 22s var(--ease) infinite;
}

.halo::after {
  width: 70vmax; height: 70vmax;
  bottom: -32vmax; left: 50%;
  margin-left: -35vmax;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.075) 0%, rgba(45, 212, 191, 0) 65%);
  animation: breathe 30s var(--ease) infinite reverse;
  animation-delay: -8s;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: translate3d(0, 0, 0)      scale(1);    }
  50%      { opacity: 1;    transform: translate3d(0, 2vmax, 0)  scale(1.12); }
}

/* ---------- Contenu ---------- */
main {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* Ligne 1 : le nom, en capitale visuelle */
.brand {
  display: block;
  font-size: clamp(2.75rem, 11vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

/* Ligne 2 : la phrase, subordonnée mais lisible */
.tagline {
  display: block;
  margin-top: clamp(0.75rem, 2vw, 1.15rem);
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 .accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-alt) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.rule {
  width: 3.5rem;
  height: 1px;
  margin: clamp(2rem, 5vw, 3rem) auto;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.5), transparent);
}

/* ---------- Lien LinkedIn ---------- */
.author {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid rgba(224, 230, 226, 0.14);
  border-radius: 999px;
  background: rgba(224, 230, 226, 0.03);

  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;

  transition: border-color 0.45s var(--ease),
              background-color 0.45s var(--ease),
              transform 0.45s var(--ease),
              color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
}

.author svg {
  width: 16px; height: 16px;
  fill: currentColor;
  opacity: 0.7;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.author .arrow {
  display: inline-block;
  opacity: 0.45;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.author:hover,
.author:focus-visible {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(74, 222, 128, 0.08);
  color: #f2f7f4;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px -12px rgba(74, 222, 128, 0.4);
}

.author:hover svg,
.author:focus-visible svg { opacity: 1; color: var(--accent); }

.author:hover .arrow,
.author:focus-visible .arrow { transform: translateX(4px); opacity: 0.9; }

.author:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Pied de page ---------- */
.footnote {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: 0; right: 0;
  z-index: 1;

  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(224, 230, 226, 0.3);
}

/* ---------- Apparition au chargement ---------- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  animation: reveal 1s var(--ease) forwards;
}

.d2 { animation-delay: 0.25s; }
.d3 { animation-delay: 0.40s; }
.d4 { animation-delay: 0.55s; }
.d5 { animation-delay: 0.70s; }
.d6 { animation-delay: 0.90s; }
.d7 { animation-delay: 1.05s; }

@keyframes reveal {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .halo::before,
  .halo::after { animation: none; }
  .author { transition-duration: 0.01ms; }
}
