/* Roselabs : feuille de style du site vitrine */

@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000;
  --text: #f7eff5;
  --text-soft: #dcd0d8;
  --muted: #a99ca6;
  --faint: #857a82;
  --rose: #f36fd6;
  --rose-pale: #fcc8ef;
  --rose-rgb: 243 111 214;
  --on-rose: #22001b;
  --line: rgb(255 220 244 / 0.1);
  --line-strong: rgb(255 220 244 / 0.2);

  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 78rem;
  --header-h: 4.5rem;
  --section-space: clamp(6rem, 13vw, 11rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */

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

html {
  background: var(--black);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

::selection {
  background: rgb(var(--rose-rgb) / 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--rose-pale);
  outline-offset: 4px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--rose);
  color: var(--on-rose);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.3s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.125rem;
  padding: 0 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-text);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.5s ease,
    transform 0.35s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--rose);
  color: var(--on-rose);
}

.btn-primary:hover {
  background: var(--rose-pale);
  box-shadow: 0 0 2.5rem -0.5rem rgb(var(--rose-rgb) / 0.75);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgb(255 255 255 / 0.02);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgb(var(--rose-rgb) / 0.55);
  background: rgb(var(--rose-rgb) / 0.08);
}

.btn-small {
  min-height: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.875rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    transform 0.6s var(--ease-out);
  animation: fade-in 1s ease 0.2s both;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgb(0 0 0 / 0.84);
  border-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header.menu-open {
  background: #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.menu-locked {
  overflow: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  line-height: 1;
}

.brand-tagline {
  color: var(--muted);
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0;
  list-style: none;
}

.nav-links a:not(.btn) {
  position: relative;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover,
.nav-links a[aria-current="true"] {
  color: var(--text);
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.4rem;
  height: 1px;
  background: var(--rose);
  box-shadow: 0 0 0.6rem rgb(var(--rose-rgb) / 0.9);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out);
}

.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.25rem 0 0.9rem;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  cursor: pointer;
}

.menu-toggle-icon {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.45s var(--ease-out);
}

.menu-toggle-icon::before {
  top: 0.5rem;
}

.menu-toggle-icon::after {
  top: 0.95rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
  transform: translateY(0.225rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
  transform: translateY(-0.225rem) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(42rem, 100svh);
  padding-block: calc(var(--header-h) + 2.5rem) 2.5rem;
  overflow: hidden;
}

.lattice {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 8;
  grid-row: 1;
}

.hero-title {
  max-width: 10em;
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 0.9rem + 3.9vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.06em 0.12em;
  margin: 0 -0.06em -0.12em;
}

.hero-title .line > span {
  display: block;
  text-wrap: balance;
  animation: line-rise 1.3s var(--ease-out) 0.15s both;
}

.hero-title .line + .line > span {
  animation-delay: 0.27s;
}

.hero-lead {
  max-width: 35rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  animation: fade-up 1.1s var(--ease-out) 0.5s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: fade-up 1.1s var(--ease-out) 0.65s both;
}

.hero-visual {
  position: relative;
  z-index: 1;
  grid-column: 7 / -1;
  grid-row: 1;
  margin-right: calc(-1 * var(--gutter));
  transform: translate3d(0, calc(var(--hero-p, 0) * 22%), 0) scale(calc(1 - var(--hero-p, 0) * 0.08));
  opacity: calc(1 - var(--hero-p, 0) * 0.8);
  mix-blend-mode: screen;
}

.rose-tilt {
  width: min(100%, 46rem);
  margin-inline: auto;
}

.rose-bloom {
  position: relative;
  animation: rose-in 2.2s var(--ease-out) both;
}

.rose-bloom::before {
  content: "";
  position: absolute;
  inset: 14%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--rose-rgb) / 0.3), rgb(var(--rose-rgb) / 0.08) 60%, transparent);
  opacity: var(--glow, 1);
}

.rose {
  width: 100%;
  height: auto;
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}

.section-title {
  grid-column: 1 / span 7;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.2rem + 3vw, 3.9rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-lead {
  grid-column: 8 / span 5;
  max-width: 32rem;
  color: var(--muted);
}

/* ---------- Approche ---------- */

.statement {
  max-width: 20em;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 0.9rem + 2.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}

.statement .w {
  color: rgb(247 239 245 / 0.4);
  transition: color 0.6s ease;
}

.statement .w.is-lit {
  color: var(--text);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(4.5rem, 10vw, 8rem);
  padding: 0;
  list-style: none;
}

.principle {
  position: relative;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2.5rem;
  height: 1px;
  background: var(--rose);
  box-shadow: 0 0 0.75rem rgb(var(--rose-rgb) / 0.9);
}

.principle h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.principle p {
  max-width: 36ch;
  color: var(--muted);
}

/* ---------- Produits ---------- */

.products {
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.product {
  border-bottom: 1px solid var(--line);
}

.product-link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 3rem minmax(9rem, 1fr) minmax(0, 2.1fr) 12rem;
  grid-template-areas: "glyph name body aside";
  align-items: center;
  gap: 1rem 2.5rem;
  padding: clamp(1.75rem, 3.4vw, 2.75rem) clamp(0.25rem, 1.5vw, 1.25rem);
}

.product-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(36rem circle at var(--mx, 20%) 50%, rgb(var(--rose-rgb) / 0.1), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.product-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose) 50%, transparent);
  transform: scaleX(0);
  transform-origin: var(--mx, 50%) 50%;
  transition: transform 0.8s var(--ease-out);
}

a.product-link:hover::before,
a.product-link:focus-visible::before,
.product--secret .product-link:hover::before {
  opacity: 1;
}

a.product-link:hover::after,
a.product-link:focus-visible::after {
  transform: scaleX(1);
}

a.product-link:focus-visible {
  outline-offset: -2px;
}

.product-glyph {
  grid-area: glyph;
  width: 2.75rem;
}

.product-glyph svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.product-glyph polygon {
  fill: transparent;
  stroke: var(--line-strong);
  stroke-width: 1.2;
  transition: stroke 0.5s ease, fill 0.5s ease;
}

.product-glyph polygon.is-lit {
  fill: rgb(var(--rose-rgb) / 0.22);
  stroke: var(--rose);
}

a.product-link:hover .product-glyph polygon:not(.is-lit) {
  stroke: rgb(var(--rose-rgb) / 0.55);
}

a.product-link:hover .product-glyph polygon.is-lit {
  fill: rgb(var(--rose-rgb) / 0.5);
}

.product-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.1vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  transition: color 0.4s ease;
}

a.product-link:hover .product-name {
  color: var(--rose-pale);
}

.product-body {
  grid-area: body;
}

.product-kind {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.0625rem;
  font-weight: 500;
}

.product-desc {
  display: block;
  max-width: 48ch;
  color: var(--muted);
}

.product-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.tag {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.product-url {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.product-url svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}

a.product-link:hover .product-url svg {
  color: var(--rose);
  transform: translate(3px, -3px);
}

.product--secret .product-name {
  color: var(--faint);
}

.redacted {
  display: inline-block;
  color: var(--rose);
  opacity: 0.6;
  filter: blur(7px);
  user-select: none;
}

.product--secret .product-kind {
  color: var(--text-soft);
}

/* ---------- Méthode ---------- */

.method {
  position: relative;
  padding-top: 3rem;
}

.method-track {
  position: absolute;
  top: 0.5rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line-strong);
}

.method-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(var(--rose-rgb) / 0.15), var(--rose));
  box-shadow: 0 0 0.9rem rgb(var(--rose-rgb) / 0.8);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
}

.step::before,
.step::after {
  content: "";
  position: absolute;
  left: 0;
}

.step::before {
  top: -2.95rem;
  width: 0.875rem;
  height: 1rem;
  background: #4a3f47;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  transition: background-color 0.5s ease;
}

.step::after {
  top: -3.95rem;
  left: -1rem;
  width: 2.875rem;
  height: 3rem;
  background: radial-gradient(closest-side, rgb(var(--rose-rgb) / 0.55), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.step.is-active::before {
  background: var(--rose);
}

.step.is-active::after {
  opacity: 1;
}

.step-num {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

.step.is-active .step-num {
  color: var(--rose);
}

.step h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.15rem + 0.8vw, 1.85rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.step p {
  color: var(--muted);
}

/* ---------- Engagements ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding: 0;
  list-style: none;
}

.trust li {
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.trust svg {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--rose);
}

.trust h3 {
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.trust p {
  max-width: 38ch;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(7rem, 16vw, 13rem);
  text-align: center;
}

.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -30%;
  z-index: -1;
  width: min(70rem, 140vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--rose-rgb) / 0.16), transparent);
  transform: translateX(-50%);
  pointer-events: none;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  max-width: 16ch;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.1rem + 4.6vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact-lead {
  max-width: 34rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.contact-mail {
  padding-bottom: 0.2em;
  background: linear-gradient(var(--rose), var(--rose)) no-repeat 50% 100% / 0% 1px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 0.8rem + 2.4vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  transition: background-size 0.7s var(--ease-out), color 0.4s ease, text-shadow 0.6s ease;
}

.contact-mail:hover,
.contact-mail:focus-visible {
  background-size: 100% 1px;
  color: var(--rose-pale);
  text-shadow: 0 0 1.75rem rgb(var(--rose-rgb) / 0.55);
}

.contact-actions {
  margin-top: 2.25rem;
}

.contact-actions .btn {
  min-width: 11.5rem;
}

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

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2rem;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.footer-brand p {
  max-width: 30ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-nav h2 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav ul {
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--muted);
  font-size: 0.9375rem;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--rose-pale);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.8125rem;
}

/* ---------- Pages légales et 404 ---------- */

.page-main {
  padding-block: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) clamp(5rem, 10vw, 8rem);
}

.legal {
  max-width: 46rem;
}

.legal h1 {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.legal .updated {
  margin-bottom: 3.5rem;
  color: var(--faint);
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 3rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p,
.legal ul,
.legal address {
  margin-bottom: 1rem;
  color: var(--text-soft);
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal li::marker {
  color: var(--rose);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.legal a {
  color: var(--rose-pale);
  text-decoration: underline;
  text-decoration-color: rgb(var(--rose-rgb) / 0.45);
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.3s ease;
}

.legal a:hover {
  text-decoration-color: var(--rose);
}

.not-found {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) 4rem;
  text-align: center;
}

.not-found h1 {
  max-width: 14ch;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.3rem + 4vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.not-found p {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

.optout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin: 1.5rem 0 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
}

.optout[hidden] {
  display: none;
}

.legal .optout p {
  margin: 0;
  color: var(--text);
}

[tabindex="-1"]:focus {
  outline: none;
}

/* ---------- Apparition au défilement ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 1.75rem, 0);
  transition:
    opacity 1s var(--ease-out),
    transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */

@keyframes line-rise {
  from { transform: translate3d(0, 110%, 0); }
  to { transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translate3d(0, 1.25rem, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rose-in {
  from { opacity: 0; transform: scale(0.88); filter: blur(16px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- Adaptation aux écrans ---------- */

@media (max-width: 1100px) {
  .product-link {
    grid-template-columns: 3rem minmax(0, 1fr) auto;
    grid-template-areas:
      "glyph name aside"
      ". body body";
  }

  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 4rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    gap: 1.25rem;
  }

  .js .nav-links {
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    overflow-y: auto;
    background: #000;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(0, -0.75rem, 0);
    transition:
      opacity 0.35s ease,
      transform 0.5s var(--ease-out),
      visibility 0s linear 0.5s;
  }

  .js .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.35s ease,
      transform 0.5s var(--ease-out),
      visibility 0s;
  }

  .js .nav-links a:not(.btn) {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.625rem;
    letter-spacing: -0.025em;
    font-weight: 500;
  }

  .js .nav-links a:not(.btn)::after {
    display: none;
  }

  .js .nav-cta {
    margin-top: 1.5rem;
  }

  .js .nav-cta .btn {
    width: 100%;
    min-height: 3.125rem;
  }

  .hero {
    min-height: auto;
    padding-block: calc(var(--header-h) + 0.5rem) 2.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 1;
    width: min(92%, 30rem);
    margin: 0 auto -8%;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-title,
  .section-lead {
    grid-column: 1;
  }

  .principles,
  .trust {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .method {
    padding-top: 0;
    padding-left: 2.5rem;
  }

  .method-track {
    top: 0.3rem;
    bottom: 0;
    left: 0.4375rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .method-fill {
    background: linear-gradient(180deg, rgb(var(--rose-rgb) / 0.15), var(--rose));
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
  }

  .method-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .step::before {
    top: 0.2rem;
    left: -2.5rem;
  }

  .step::after {
    top: -0.8rem;
    left: -3.5rem;
  }

  .step-num {
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 640px) {
  .product-link {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    grid-template-areas:
      "glyph name"
      "body body"
      "aside aside";
    gap: 1rem;
  }

  .product-glyph {
    width: 2.25rem;
  }

  .product-aside {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .tags {
    justify-content: flex-start;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .product-link::before,
  .product-link::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
