/* ============================================================
   affiliation.creativework.fr
   Jetons, polices et bouton repris de la V2 de creativework.fr
   (C:\creativeworkV2\src\styles\tokens.css et base.css).
   ============================================================ */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07060b;
  --fg: #f5f3fa;
  --fg-3: #a9a4ba;
  --label: #8c879c;
  --magenta: #f0169a;
  --grad-brand: linear-gradient(135deg, #6b1cff, #f0169a 60%, #ff7a45);
  --grad-accent: linear-gradient(135deg, #b98cff, #f0169a 55%, #ff7a45);
  --shadow-cta: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 14px 50px -12px rgba(240, 22, 154, 0.55);
  --shadow-cta-hover: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 20px 70px -10px rgba(240, 22, 154, 0.8);
  --ease-in: cubic-bezier(0.16, 0.8, 0.12, 1);
  --ease-cta: cubic-bezier(0.2, 0.7, 0.1, 1);
  --gutter: clamp(20px, 4.4vw, 64px);
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: clip;
  color: var(--fg);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Décor : sol quadrillé qui s'efface et halos de la palette ---------- */

.decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 12% 0%, rgba(107, 28, 255, 0.22), transparent 70%),
    radial-gradient(40% 50% at 92% 30%, rgba(240, 22, 154, 0.14), transparent 70%),
    radial-gradient(50% 45% at 50% 100%, rgba(255, 122, 69, 0.07), transparent 70%);
}

.decor::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000 20%, transparent 75%);
}

/* ---------- En-tête ---------- */

.top,
.foot {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
}

.logo img {
  width: 203px;
  height: auto;
}

/* Pilule secondaire, contour seul. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.pill svg {
  width: 14px;
  height: 14px;
}

/* ---------- Contenu ---------- */

.hero {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(32px, 7vh, 88px) var(--gutter) clamp(56px, 11vh, 128px);
  text-align: center;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, 0.9vw, 13px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

/* Règle éditoriale de la V2 : un fragment du titre en Instrument Serif italique. */
h1 em {
  padding-right: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.02em;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 620px;
  margin: 0;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--fg-3);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}

/* Bouton principal de la V2, unique appel à l'action de la page. */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 10px 0 28px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0910;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: var(--shadow-cta);
  transition:
    transform 0.35s var(--ease-cta),
    box-shadow 0.35s var(--ease-cta);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta-hover);
}

.cta__logo {
  flex: none;
  width: 22px;
  height: 22px;
}

.cta__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
}

.cta__dot svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-cta);
}

.cta:hover .cta__dot svg {
  transform: translateX(2px);
}

.note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--label);
  text-wrap: balance;
}

/* ---------- Pied de page ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 24px 28px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--label);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.foot p {
  margin: 0;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot a {
  transition: color 0.3s;
}

.foot a:hover {
  color: var(--fg);
}

/* ---------- Apparition au chargement (mêmes réglages que la V2) ---------- */

@keyframes rv {
  from {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.rv {
  animation: rv 1.2s var(--ease-in) both;
  animation-delay: var(--d, 0ms);
}

/* Cascade : délais posés ici plutôt qu'en style="" (compatible avec une CSP stricte). */
.hero > .rv:nth-child(1) {
  --d: 80ms;
}

.hero > .rv:nth-child(2) {
  --d: 180ms;
}

.hero > .rv:nth-child(3) {
  --d: 300ms;
}

.hero > .rv:nth-child(4) {
  --d: 420ms;
}

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

  .cta,
  .cta__dot svg,
  .pill,
  .foot a {
    transition: none;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .top {
    justify-content: center;
    padding-block: 22px;
  }

  .logo img {
    width: 176px;
  }

  /* Le logo mène déjà à creativework.fr, et le pied de page aussi. */
  .top .pill {
    display: none;
  }

  .hero {
    gap: 20px;
  }

  .cta {
    height: 58px;
    padding-left: 22px;
    font-size: 16px;
  }

  .cta__dot {
    width: 40px;
    height: 40px;
  }

  .foot {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .foot nav {
    justify-content: center;
  }
}
