/*
 * Synova Talents — page de construction.
 * Charte Synova OS (src/app/globals.css de Synova OS) : Geist, fond « canvas »,
 * halos bleu et violet, vague Synova, dégradé de marque. Aucune couleur ajoutée.
 */
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand: #2e5fac;
  --brand-violet: #7c4dff;
  --brand-soft: #edf2fc;
  --brand-gradient: linear-gradient(135deg, #2e5fac 0%, #4a5be8 48%, #7c4dff 100%);
  --canvas: #f4f6fb;
  --halo-blue: rgba(78, 116, 222, 0.16);
  --halo-violet: rgba(140, 110, 255, 0.2);
  --halo-top: #eaeffb;
  --foreground: #0f1426;
  --muted-foreground: #5f6679;
  --border: #e5e8f0;
  --ring: #9db3dc;
  --ease: cubic-bezier(0.2, 0.72, 0.16, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--canvas);
  background-image:
    radial-gradient(55% 60% at 90% -8%, var(--halo-violet), transparent 72%),
    radial-gradient(50% 55% at 30% -14%, var(--halo-blue), transparent 72%),
    linear-gradient(180deg, var(--halo-top) 0%, var(--canvas) 60%);
  background-repeat: no-repeat;
}
::selection {
  background: rgba(46, 95, 172, 0.2);
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
  border-radius: 6px;
}

/* La vague Synova, comme dans l'application */
.wave {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 0;
  width: min(980px, 70vw);
  aspect-ratio: 632 / 176;
  opacity: 0.85;
  pointer-events: none;
  background: url("/assets/synova-wave.png") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-composite: intersect;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-24px, 10px, 0);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

header.shell {
  padding-top: 36px;
}
.logo {
  display: inline-block;
}
.logo img {
  display: block;
  width: 168px;
  height: auto;
}

main.shell {
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero {
  max-width: 960px;
}
h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
h1 span {
  display: block;
}
h1 .grad {
  padding-bottom: 0.08em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  max-width: 600px;
  margin: 32px 0 0;
  color: var(--muted-foreground);
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.65;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 1px 2px rgba(15, 20, 38, 0.08), 0 14px 32px -14px rgba(74, 91, 232, 0.65);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(15, 20, 38, 0.08), 0 18px 38px -14px rgba(74, 91, 232, 0.75);
}
.btn-quiet {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-quiet:hover {
  border-color: var(--ring);
  transform: translateY(-1px);
}

.where {
  margin: 28px 0 0;
  color: var(--muted-foreground);
  font-size: 15px;
}

footer.shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(229, 232, 240, 0.9);
  color: var(--muted-foreground);
  font-size: 14px;
}
footer nav {
  display: flex;
  gap: 22px;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Arrivée douce */
.rise {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Pages légales */
.doc {
  max-width: 760px;
  padding-top: 64px;
  padding-bottom: 96px;
}
.doc h1 {
  font-size: clamp(34px, 4.4vw, 52px);
}
.doc h2 {
  margin: 44px 0 10px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.doc p,
.doc li {
  color: #3a4157;
  font-size: 16.5px;
}
.doc ul {
  padding-left: 20px;
}
.doc a {
  color: var(--brand);
}
.back {
  display: inline-block;
  margin-top: 48px;
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

@media (max-width: 720px) {
  .shell {
    padding: 0 22px;
  }
  header.shell {
    padding-top: 24px;
  }
  .logo img {
    width: 140px;
  }
  main.shell {
    align-items: flex-start;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .wave {
    width: 110vw;
    opacity: 0.6;
  }
  .contact {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
    width: 100%;
  }
  footer.shell {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave,
  .rise {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.d1 {
  --d: 120ms;
}
.d2 {
  --d: 260ms;
}
.d3 {
  --d: 380ms;
}
.d4 {
  --d: 480ms;
}
