/* ================= POLICES (auto-hébergées) ================= */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('/fonts/caveat-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('/fonts/caveat-latin-ext-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-display: swap; font-weight: 400; src: url('/fonts/instrument-serif-latin-ext-400-italic.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ================= TOKENS ================= */
:root {
  --ink: #1c1c1c;
  --ink-soft: #2f2f2d;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --line: #e0dfdb;
  --line-dark: #3a3a38;
  --brand: #ff5623;
  /* Darker brand tone for white-text-on-brand contexts: #ff5623 fails
     WCAG 4.5:1 with white text (3.1:1); this variant hits 4.76:1. */
  --brand-contrast: #cc441c;
  /* Orange foncé pour le TEXTE sur fonds clairs (#ff5623 ne fait que 2,9:1 sur --paper) : 4,7:1. */
  --brand-text: #c2421a;
  --red: #e44125;
  --green: #32a676;
  --blue: #65a1f5;
  --yellow: #f9c039;
  --pink: #f8bcc8;
  --purple: #a68df2;
  /* #7d7d7a was 4.13:1 on white and worse on off-white card backgrounds
     (#f5f4f0); this hits 4.5:1+ against both. */
  --muted: #6a6a6a;
  --muted-light: #a3a3a0;

  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-hand: 'Caveat', cursive;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 2px 4px rgba(28, 28, 28, 0.04), 0 12px 32px rgba(28, 28, 28, 0.08);
  --shadow-lift: 0 4px 8px rgba(28, 28, 28, 0.06), 0 24px 56px rgba(28, 28, 28, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
::selection {
  background: var(--brand);
  color: #fff;
}

/* ================= GRAIN OVERLAY ================= */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-3%, 2%);
  }
  40% {
    transform: translate(2%, -3%);
  }
  60% {
    transform: translate(-2%, -2%);
  }
  80% {
    transform: translate(3%, 3%);
  }
}

/* ================= UTILS ================= */
.wrap {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}
.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: '( ';
}
.label::after {
  content: ' )';
}
.label--light {
  color: rgba(245, 244, 240, 0.55);
}
.dot {
  color: var(--brand);
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* reveal on scroll */
.rv {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
.rv.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.35s;
  will-change: transform;
}
.btn-primary {
  background: var(--brand-contrast);
  color: #fff;
  position: relative;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(255, 86, 35, 0.45);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 86, 35, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 86, 35, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 86, 35, 0);
  }
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 86, 35, 0.35);
}
.btn-ghost {
  border: 1.5px solid var(--line-dark);
  color: var(--paper);
}
.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(245, 244, 240, 0.07);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(28, 28, 28, 0.3);
}
.btn .arr {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arr {
  transform: translateX(4px);
}

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background 0.4s,
    box-shadow 0.4s,
    padding 0.4s;
  padding: 1.1rem 0;
}
.nav.scrolled {
  background: rgba(245, 244, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 480px) {
  .logo-img {
    height: 48px;
  }
}
.nav .logo-img {
  transition: filter 0.4s var(--ease);
}
.nav:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}
.nav.scrolled .logo-img {
  filter: none;
}
footer .logo-img {
  filter: brightness(0) invert(1);
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  color: rgba(245, 244, 240, 0.75);
  transition: color 0.3s;
  position: relative;
  /* taller hit area (~40px) without changing the visual line height */
  display: inline-block;
  padding: 0.6rem 0;
}
.nav.scrolled .nav-links a {
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-cta .btn {
  padding: 0.65rem 1.3rem;
  min-height: 2.5rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .nav-cta .btn {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
  }
}
.nav-cta .btn-primary::after {
  animation: none;
}
.btn-ghost-nav {
  border: 1.5px solid rgba(245, 244, 240, 0.35);
  color: var(--paper);
  background: transparent;
}
.btn-ghost-nav:hover {
  transform: translateY(-2px);
  background: rgba(245, 244, 240, 0.08);
}
.nav.scrolled .btn-ghost-nav {
  border-color: var(--line);
  color: var(--ink);
}
.nav.scrolled .btn-ghost-nav:hover {
  background: rgba(28, 28, 28, 0.05);
}
.lang-select {
  border: 1px solid var(--border, #e5e5e5);
  background: transparent;
}
.btn-ghost-nav:hover {
  transform: translateY(-2px);
  background: rgba(245, 244, 240, 0.08);
}
.nav.scrolled .btn-ghost-nav {
  border-color: var(--line);
  color: var(--ink);
}
.nav.scrolled .btn-ghost-nav:hover {
  background: rgba(28, 28, 28, 0.05);
}
.lang-select {
  border: 1px solid rgba(245, 244, 240, 0.35);
  background: var(--ink);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.lang-select option {
  background: var(--ink);
  color: var(--paper);
}
.nav.scrolled .lang-select {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.nav.scrolled .lang-select option {
  background: var(--surface);
  color: var(--ink);
}
@media (max-width: 480px) {
  .lang-select {
    padding: 0.4rem 0.4rem;
    min-height: 2.5rem;
    font-size: 0.72rem;
  }
}
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  /* 40px+ hit area (RGAA/WCAG 2.5.5 spirit): the 3 bars are 16px tall. */
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.75rem;
}
.burger span {
  width: 22px;
  height: 2px;
  background: var(--paper);
  transition: 0.3s var(--ease);
}
.nav.scrolled .burger span {
  background: var(--ink);
}
.nav.open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .burger span:nth-child(2) {
  opacity: 0;
}
.nav.open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  gap: 0.5rem;
  clip-path: circle(0 at calc(100% - 3rem) 2.5rem);
  /* visibility keeps the closed menu's links out of the Tab order; it
     flips to hidden only after the clip-path close animation ends. */
  visibility: hidden;
  transition:
    clip-path 0.7s var(--ease),
    visibility 0s linear 0.7s;
}
.mobile-menu.open {
  clip-path: circle(150% at calc(100% - 3rem) 2.5rem);
  visibility: visible;
  transition:
    clip-path 0.7s var(--ease),
    visibility 0s linear 0s;
}
.mobile-menu a {
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  color: var(--paper);
  padding: 0.4rem 0;
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.mobile-menu a small {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--brand);
}
@media (min-width: 880px) {
  .nav-links {
    display: flex;
  }
  .burger,
  .mobile-menu {
    display: none;
  }
}
@media (max-width: 879px) {
  .nav-cta .btn-ghost-nav {
    display: none;
  }
}

/* ================= HERO ================= */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(7rem, 16vh, 10rem) 0 0;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  overflow: hidden;
}
.hero::before {
  /* faint radial glow */
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  top: -20vw;
  right: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 86, 35, 0.14), transparent 65%);
  pointer-events: none;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    linear-gradient(var(--paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  text-align: center;
}
.hero .label {
  display: inline-block;
  margin-bottom: 2.2rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 8.6vw, 7.2rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero h1 .serif {
  text-transform: none;
  color: var(--brand);
  font-size: 1.06em;
}
.hero h1 .row {
  display: block;
  overflow: hidden;
}
.hero h1 .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease) forwards;
}
.hero h1 .row:nth-child(1) > span {
  animation-delay: 0.1s;
}
.hero h1 .row:nth-child(2) > span {
  animation-delay: 0.22s;
}
.hero h1 .row:nth-child(3) > span {
  animation-delay: 0.34s;
}
.hero h1 .row:nth-child(4) > span {
  animation-delay: 0.46s;
}
@keyframes rise {
  to {
    transform: translateY(0);
  }
}
.hero-sub {
  max-width: 560px;
  margin: 2.2rem auto 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.75s forwards;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.6rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 0.95s forwards;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-note {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.1s forwards;
}

/* Poulppy flottant dans le hero */
.hero-poulppy {
  position: absolute;
  width: clamp(70px, 9vw, 120px);
  right: clamp(0.5rem, 6vw, 7rem);
  top: clamp(5.5rem, 14vh, 9rem);
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.35));
  z-index: 1;
}
.hero-poulppy svg {
  transform: rotate(8deg);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}
.hero-annot {
  position: absolute;
  left: clamp(0.5rem, 7vw, 8rem);
  top: clamp(6rem, 18vh, 12rem);
  font-family: var(--font-hand);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--yellow);
  transform: rotate(-7deg);
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.3s forwards;
}
.hero-annot svg {
  margin: 0 auto;
  width: 46px;
  transform: rotate(20deg);
}
@media (max-width: 720px) {
  .hero-poulppy {
    top: auto;
    bottom: 14rem;
    right: 0.6rem;
    width: 64px;
  }
  .hero-annot {
    display: none;
  }
}

/* ================= MARQUEE ================= */
.marquee {
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(3.5rem, 8vh, 6rem);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  gap: 3rem;
  animation: scroll 28s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}
.marquee span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 3rem;
}
.marquee .star {
  color: var(--brand);
  font-size: 1rem;
}

/* ================= MOCKUP DASHBOARD ================= */
.mockup-zone {
  position: relative;
  margin-top: -1px;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.mockup-zone::before {
  /* dark continues behind top half */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: var(--ink);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.mockup {
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transform: perspective(1400px) rotateX(6deg) scale(0.97);
  transition:
    transform 1.2s var(--ease),
    box-shadow 1.2s var(--ease);
}
.mockup.in {
  transform: perspective(1400px) rotateX(0) scale(1);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #101010;
  padding: 0.8rem 1.1rem;
}
.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3a38;
}
.mock-bar i:nth-child(1) {
  background: var(--red);
}
.mock-bar i:nth-child(2) {
  background: var(--yellow);
}
.mock-bar i:nth-child(3) {
  background: var(--green);
}
.mock-bar em {
  font-style: normal;
  font-size: 0.7rem;
  color: #777;
  margin-inline: auto;
  background: #1e1e1e;
  border-radius: 6px;
  padding: 0.2rem 2.2rem;
  letter-spacing: 0.05em;
}
.mock-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  min-height: 380px;
}
.mock-side {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}
.mock-side i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #2c2c2a;
}
.mock-side i:first-child {
  background: var(--brand);
}
.mock-main {
  padding: clamp(1rem, 3vw, 1.8rem);
}
.mock-title {
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.mock-cards {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 680px) {
  .mock-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mc {
  border-radius: 14px;
  padding: 0.9rem;
  min-height: 108px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  transition: transform 0.4s var(--ease);
}
.mc:hover {
  transform: translateY(-5px) rotate(-1deg);
}
.mc b {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.mc.green {
  background: var(--green);
}
.mc.red {
  background: var(--red);
}
.mc.blue {
  background: var(--blue);
}
.mc.yellow {
  background: var(--yellow);
  color: var(--ink);
}
.mc.pink {
  background: var(--pink);
  color: var(--ink);
}
.mc.purple {
  background: var(--purple);
}
.mc.wide {
  grid-column: span 2;
}
.mc .bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.mc.yellow .bar,
.mc.pink .bar {
  background: rgba(28, 28, 28, 0.15);
}
.mc .bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 3px;
  transition: width 1.4s var(--ease) 0.4s;
}
.mc.yellow .bar i,
.mc.pink .bar i {
  background: var(--ink);
}
.mockup.in .mc .bar i {
  width: var(--w, 60%);
}

/* stickers flottants */
.sticker {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: float 6s ease-in-out infinite;
}
.sticker .pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}
.stick-1 {
  top: 14%;
  left: max(-12px, 2%);
  transform: rotate(-5deg);
  animation-delay: 0.5s;
}
.stick-1 .pin {
  background: var(--green);
}
.stick-2 {
  bottom: 10%;
  right: max(-12px, 2%);
  transform: rotate(4deg);
  animation-delay: 1.2s;
}
.stick-2 .pin {
  background: var(--purple);
}
.stick-3 {
  top: 42%;
  right: max(-20px, -1%);
  transform: rotate(7deg);
  animation-delay: 2s;
  background: var(--yellow);
}
@media (max-width: 720px) {
  .stick-3 {
    display: none;
  }
}

/* ================= SECTIONS COMMUNS ================= */
section {
  position: relative;
}
.sec-head {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.sec-head h2 {
  font-size: clamp(2.1rem, 5.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 1.1rem;
  text-transform: uppercase;
}
.sec-head h2 .serif {
  text-transform: none;
  color: var(--brand-text);
  font-size: 1.05em;
}
.sec-head p {
  max-width: 520px;
  color: var(--muted);
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

/* ================= PROBLÈME ================= */
.pains {
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
}
.pain-list {
  border-top: 1px solid var(--line);
}
.pain {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.6rem) 0.5rem;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition:
    background 0.4s,
    padding-left 0.4s var(--ease);
  border-radius: var(--r-sm);
}
.pain:hover {
  background: var(--surface);
  padding-left: 1.4rem;
}
.pain-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--brand-text);
}
.pain h3 {
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
.pain h3 s {
  text-decoration-color: var(--brand);
  text-decoration-thickness: 3px;
}
.pain p {
  grid-column: 2;
  color: var(--muted);
  max-width: 600px;
}
.pain p strong {
  color: var(--ink);
  font-weight: 600;
}
.pain p strong::before {
  content: '→ ';
  color: var(--brand-text);
}

/* ================= FEATURES ================= */
.features {
  padding: clamp(3rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.ghost {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(8rem, 24vw, 22rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}
.feat-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feat {
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.feat:hover {
  transform: translateY(-8px) rotate(-0.6deg);
  box-shadow: var(--shadow-lift);
}
.feat::after {
  /* texture cercle */
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.18;
  right: -70px;
  bottom: -90px;
  transition: transform 0.6s var(--ease);
}
.feat:hover::after {
  transform: scale(1.15);
}
.feat-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
}
.feat-ico svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feat h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: auto;
}
.feat p {
  font-size: 0.92rem;
  opacity: 0.88;
  line-height: 1.5;
}
.feat .tag {
  position: absolute;
  top: 1.3rem;
  right: 1.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  opacity: 0.75;
}
.feat.red {
  background: var(--red);
}
.feat.green {
  background: var(--green);
}
.feat.blue {
  background: var(--blue);
}
.feat.purple {
  background: var(--purple);
}
.feat.yellow {
  background: var(--yellow);
  color: var(--ink);
}
.feat.yellow .feat-ico {
  background: rgba(28, 28, 28, 0.1);
}
.feat.pink {
  background: var(--pink);
  color: var(--ink);
}
.feat.pink .feat-ico {
  background: rgba(28, 28, 28, 0.1);
}
/* cascade */
.feat-grid .rv:nth-child(1) {
  transition-delay: 0.05s;
}
.feat-grid .rv:nth-child(2) {
  transition-delay: 0.13s;
}
.feat-grid .rv:nth-child(3) {
  transition-delay: 0.21s;
}
.feat-grid .rv:nth-child(4) {
  transition-delay: 0.29s;
}
.feat-grid .rv:nth-child(5) {
  transition-delay: 0.37s;
}
.feat-grid .rv:nth-child(6) {
  transition-delay: 0.45s;
}

/* ================= POULPPY ================= */
.poulppy {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl);
  margin: clamp(2rem, 5vw, 4rem) auto;
  width: min(1320px, 100% - 1.5rem);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  overflow: hidden;
  position: relative;
}
.poulppy::before {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  bottom: -25vw;
  left: -15vw;
  background: radial-gradient(circle, rgba(166, 141, 242, 0.16), transparent 65%);
}
.poulppy-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .poulppy-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}
.poulppy h2 {
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-transform: uppercase;
  margin-top: 1.1rem;
}
.poulppy h2 .serif {
  text-transform: none;
  color: var(--purple);
  font-size: 1.05em;
}
.poulppy .lead {
  color: var(--muted-light);
  margin-top: 1.2rem;
  max-width: 480px;
}
.poulppy-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}
.poulppy-chips span {
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  color: var(--muted-light);
  transition: 0.3s;
  cursor: default;
}
.poulppy-chips span:hover {
  border-color: var(--brand);
  color: var(--paper);
  transform: translateY(-2px);
}
.ai-demo {
  background: #242422;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  padding: 1.4rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.ai-demo .poulppy-avatar {
  position: absolute;
  top: -44px;
  right: 18px;
  width: 84px;
  animation: float 5.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
}
.ai-row {
  display: flex;
  gap: 0.7rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.ai-row .who {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.ai-row.user .who {
  background: var(--yellow);
  color: var(--ink);
}
.ai-row.bot .who {
  background: var(--brand);
  color: #fff;
}
.ai-bubble {
  background: #2e2e2c;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  color: #d9d8d4;
  max-width: 90%;
}
.ai-row.bot .ai-bubble {
  background: #33312e;
}
#typed {
  min-height: 3.2em;
  display: block;
}
#typed::after {
  content: '▌';
  color: var(--brand);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.ai-input {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
  background: #1a1a18;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0.6rem 0.7rem 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted-light);
}
.ai-input .send {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: #fff;
}

/* ================= STATS + TÉMOIGNAGES ================= */
.proof {
  padding: clamp(4rem, 10vw, 8rem) 0;
}
.stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
@media (min-width: 880px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  background: var(--paper);
  padding: clamp(1.6rem, 4vw, 2.6rem) 1rem;
  text-align: center;
  transition: background 0.4s;
}
.stat:hover {
  background: var(--surface);
}
.stat b {
  display: block;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat b em {
  font-style: normal;
  color: var(--brand-text);
}
.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-top: 0.7rem;
}
.quotes {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}
.quote {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.quote:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.quote:nth-child(2) {
  transform: rotate(0.8deg);
}
.quote:nth-child(2):hover {
  transform: rotate(0) translateY(-6px);
}
.quote .qmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--brand);
}
.quote p {
  font-size: 1rem;
  line-height: 1.6;
}
.quote p em {
  font-style: normal;
  background: linear-gradient(transparent 62%, rgba(249, 192, 57, 0.55) 62%);
}
.quote-who {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}
.quote-who .av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}
.quote:nth-child(1) .av {
  background: var(--green);
}
.quote:nth-child(2) .av {
  background: var(--purple);
}
.quote:nth-child(3) .av {
  background: var(--blue);
}
.quote-who b {
  display: block;
  font-size: 0.92rem;
}
.quote-who span {
  font-size: 0.78rem;
  color: var(--muted);
}
.quotes .rv:nth-child(2) {
  transition-delay: 0.12s;
}
.quotes .rv:nth-child(3) {
  transition-delay: 0.24s;
}

/* ================= PRICING ================= */
.pricing {
  padding: clamp(3rem, 8vw, 7rem) 0;
}
.plans {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 880px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* 4 cartes (plan Gratuit + 3 plans payants, cf. landing.js) : 2 colonnes
   sur tablette, 4 sur grand écran, avec un prix un peu plus compact. */
@media (min-width: 700px) {
  .plans[data-count='4'] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1180px) {
  .plans[data-count='4'] {
    grid-template-columns: repeat(4, 1fr);
  }
  .plans[data-count='4'] .plan {
    padding: 1.7rem 1.4rem;
  }
  .plans[data-count='4'] .plan-price {
    flex-wrap: wrap;
  }
  .plans[data-count='4'] .plan-price b {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
  }
}
.plan-loading,
.plan-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
}
.plan {
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
  position: relative;
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.plan.hot {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: scale(1.03);
}
.plan.hot:hover {
  transform: scale(1.03) translateY(-6px);
}
.plan.hot .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  background: var(--brand-contrast);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  white-space: nowrap;
}
.plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan.hot .plan-name {
  color: var(--muted-light);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.plan-price b {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  color: var(--muted);
  font-size: 0.9rem;
}
.plan.hot .plan-price span {
  color: var(--muted-light);
}
.plan-price-vat {
  margin-top: -0.9rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.plan.hot .plan-price-vat {
  color: var(--muted-light);
}
.plan-desc {
  font-size: 0.92rem;
  color: var(--muted);
}
.plan.hot .plan-desc {
  color: var(--muted-light);
}
/* « Sans carte bancaire » sur la carte du plan gratuit */
.plan-nocard {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
}
.plan ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
}
.plan ul li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.plan ul li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex: none;
}
.plan.hot ul li::before {
  color: var(--yellow);
}
.plan .btn {
  justify-content: center;
  margin-top: auto;
}
.plan:not(.hot) .btn {
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.plan:not(.hot) .btn:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-3px);
}
.plans .rv:nth-child(2) {
  transition-delay: 0.12s;
}
.plans .rv:nth-child(3) {
  transition-delay: 0.24s;
}
.pricing-note {
  text-align: center;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.pricing-note .hand {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: var(--brand-text);
}

/* ================= CTA FINAL ================= */
.final {
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-xl);
  width: min(1320px, 100% - 1.5rem);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(4rem, 10vw, 8rem) 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final::before,
.final::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.final::before {
  width: 420px;
  height: 420px;
  top: -180px;
  left: -120px;
}
.final::after {
  width: 560px;
  height: 560px;
  bottom: -260px;
  right: -160px;
}
.final .label {
  color: rgba(255, 255, 255, 0.7);
}
.final h2 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
  margin: 1.2rem 0 1.6rem;
  position: relative;
  z-index: 1;
}
.final h2 .serif {
  text-transform: none;
  font-size: 1.06em;
}
.final p {
  max-width: 460px;
  margin: 0 auto 2.4rem;
  opacity: 0.85;
  position: relative;
  z-index: 1;
}
.final .btn {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.final .btn::after {
  animation: none;
}
.final .btn:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.final-poulppy {
  width: 110px;
  margin: 2.5rem auto 0;
  animation: float 5s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* ================= FOOTER ================= */
footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 0;
  overflow: hidden;
}
.foot-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 880px) {
  .foot-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.foot-brand p {
  color: var(--muted-light);
  max-width: 300px;
  margin-top: 1rem;
  font-size: 0.92rem;
}
.foot-col h3 {
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1.1rem;
}
.foot-col a {
  display: block;
  padding: 0.32rem 0;
  color: var(--muted-light);
  font-size: 0.94rem;
  transition:
    color 0.3s,
    transform 0.3s var(--ease);
}
.foot-col a:hover {
  color: var(--brand);
  transform: translateX(4px);
}
.foot-giant {
  font-size: clamp(4rem, 17vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-align: center;
  user-select: none;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(245, 244, 240, 0.14);
  transform: translateY(0.18em);
  transition:
    -webkit-text-stroke 0.5s,
    color 0.5s;
  cursor: default;
}
.foot-giant:hover {
  color: rgba(255, 86, 35, 0.9);
  -webkit-text-stroke: 1.5px transparent;
}
.foot-legal {
  border-top: 1px solid var(--line-dark);
  padding: 1.3rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted-light);
}
.foot-legal .made {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.foot-legal .made b {
  color: var(--brand);
}

/* ================= ACCESSIBILITÉ ================= */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 0.75rem 1.1rem;
  border-radius: 10px;
  background: #ffffff;
  color: #1c1c1c;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: none;
}
/* Anneau double (blanc + bleu) : visible sur fonds clairs ET sombres (WCAG 2.4.7). */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:not([tabindex='-1']):focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #0b40c7;
}
main:focus {
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}
