/*
 * Site vitrine 5pattes (23/10/2026). Couleurs reprises de l'application : bleu `#0176d3` (suivi,
 * remplissage), violet `#7c3aed → #a855f7` (tout ce qui est IA / Premium). Polices système : aucune
 * police chargée depuis un serveur tiers (pas d'adresse IP des visiteurs transmise, pas de cookie).
 */

:root {
  --blue: #0176d3;
  --blue-strong: #015fa9;
  --blue-soft: #e8f3fc;
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-soft: #f3edff;
  --ai-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --hero-gradient: linear-gradient(120deg, #0176d3 0%, #5b5bf0 50%, #a855f7 100%);
  --green: #16a34a;
  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --bg: #ffffff;
  --bg-2: #f6f8fc;
  --card: #ffffff;
  --border: #e6ebf2;
  --border-2: #d9e1ec;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);
  --shadow-ai: 0 18px 50px rgba(124, 58, 237, 0.28);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --header-bg: rgba(255, 255, 255, 0.72);
  --mock-bg: #f3f6fa;
  --focus: 0 0 0 3px rgba(1, 118, 211, 0.35);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue: #3b9cf0;
    --blue-strong: #62b0f5;
    --blue-soft: rgba(59, 156, 240, 0.14);
    --violet: #9f7aea;
    --violet-2: #c084fc;
    --violet-soft: rgba(159, 122, 234, 0.14);
    --text: #eef2f7;
    --text-2: #b7c1cf;
    --text-3: #8d99ab;
    --bg: #0b1220;
    --bg-2: #101a2c;
    --card: #131e32;
    --border: #22304a;
    --border-2: #2c3b58;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(11, 18, 32, 0.72);
    --mock-bg: #0f192b;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 118, 211, 0.28);
}
.btn-primary:hover {
  background: var(--blue-strong);
}
.btn-ai {
  background: var(--ai-gradient);
  color: #fff;
  box-shadow: var(--shadow-ai);
}
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 15px;
  border-radius: 12px;
}
.btn-block {
  width: 100%;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 38px;
  height: 38px;
}
.brand span b {
  color: var(--blue);
  font-weight: 800;
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.main-nav .nav-install {
  display: none;
}
/* Lien « Se connecter » (2/11/2026) : vers app.5pattes.com, visible à toutes les tailles. */
.header-login {
  color: var(--text-2);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
.header-login:hover {
  color: var(--text);
  background: var(--bg-2);
}
/* Bouton « Créer mon compte gratuit » : téléphone seulement (voir max-width: 640px). */
.hero-signup {
  display: none;
}
.header-cta {
  display: flex;
  gap: 10px;
}
.menu-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* ---------- Héros ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -1;
}
.hero::before {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(1, 118, 211, 0.35), transparent 70%);
  top: -220px;
  left: -160px;
}
.hero::after {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.32), transparent 70%);
  top: -120px;
  right: -180px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Une grille ne rétrécit pas sous le contenu le plus large de ses colonnes (adresse de la
   maquette, sans retour à la ligne) : sans `min-width: 0`, la page débordait sur téléphone. */
.hero-grid > *,
.premium-grid > *,
.bento > *,
.pricing-grid > * {
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.eyebrow .pill {
  background: var(--ai-gradient);
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.hero h1 {
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 850;
  margin: 22px 0 20px;
  text-wrap: balance;
}
.gradient-text {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: 20px;
  color: var(--text-2);
  max-width: 34em;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg {
  width: 16px;
  height: 16px;
  color: var(--green);
}

/* ---------- Maquettes (navigateur, widget, tableau, CV) ---------- */
.mock-browser {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.mock-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #d0d7e2;
}
.mock-url {
  flex: 1;
  margin-left: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-page {
  position: relative;
  padding: 22px;
  min-height: 420px;
  background: var(--mock-bg);
}
.offer-skeleton {
  max-width: calc(100% - 300px);
}
.offer-skeleton .company {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.logo-sq {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex: none;
}
.offer-skeleton .title {
  font-weight: 750;
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.offer-skeleton .meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.line {
  height: 9px;
  border-radius: 6px;
  background: var(--border);
  margin: 10px 0;
}
.line.w90 {
  width: 90%;
}
.line.w75 {
  width: 75%;
}
.line.w60 {
  width: 60%;
}
.line.w40 {
  width: 40%;
}
.fake-apply {
  display: inline-block;
  margin-top: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

.widget {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 270px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  font-size: 13px;
}
.widget-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.widget-head strong {
  display: block;
  font-size: 13.5px;
  line-height: 1.25;
}
.widget-head small {
  color: var(--text-3);
}
.w-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 12.5px;
  margin-bottom: 8px;
}
.w-btn.primary {
  background: var(--blue);
  color: #fff;
}
.w-btn.applied {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
  border: 1px solid rgba(22, 163, 74, 0.25);
}
.w-ai-title {
  margin: 12px 0 8px;
  font-weight: 700;
  font-size: 12px;
  color: var(--violet);
}
.w-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 6px;
}
.w-doc b {
  font-size: 12.5px;
}
.w-doc small {
  display: block;
  color: var(--text-3);
  font-size: 11px;
  line-height: 1.3;
}
.w-ico {
  display: flex;
  gap: 6px;
  color: var(--text-3);
}
.w-ico svg {
  width: 15px;
  height: 15px;
}
.w-ico .clip {
  color: var(--violet);
}
.w-status {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--green);
  font-weight: 600;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--shadow-md);
}
.float-chip .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
}
.float-chip .dot svg {
  width: 15px;
  height: 15px;
}
.chip-1 {
  right: 36px;
  bottom: -20px;
}
.chip-2 {
  left: -18px;
  bottom: -20px;
}
.hero-visual {
  position: relative;
}

/* ---------- Bandeau des sites ---------- */
.boards {
  padding: 28px 0 8px;
}
.boards p {
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.boards ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.boards li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 650;
  font-size: 15px;
  color: var(--text-2);
}
.boards li.more {
  border-style: dashed;
  color: var(--blue);
}
.boards small {
  display: block;
  text-align: center;
  color: var(--text-3);
  font-size: 12.5px;
  margin-top: 12px;
}

/* ---------- Sections ---------- */
section {
  scroll-margin-top: 84px;
}
.section {
  padding: 104px 0;
}
.section.alt {
  background: var(--bg-2);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.kicker.ai {
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 820;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 19px;
  color: var(--text-2);
  margin: 0;
}

/* Problème → solution */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.pain .before {
  font-size: 15px;
  color: var(--text-3);
  text-decoration: line-through;
  text-decoration-color: rgba(220, 38, 38, 0.5);
  margin: 0 0 10px;
}
.pain h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.pain p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}

/* Grille de fonctionnalités (bento) */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.tile {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tile.span-3 {
  grid-column: span 3;
}
.tile.span-2 {
  grid-column: span 2;
}
.tile.span-4 {
  grid-column: span 4;
}
.tile-ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  margin-bottom: 18px;
}
.tile-ico svg {
  width: 24px;
  height: 24px;
}
.tile h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.tile p {
  margin: 0;
  color: var(--text-2);
  font-size: 16px;
}
.tile .free-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 12px;
  font-weight: 750;
  color: var(--green);
  background: rgba(22, 163, 74, 0.1);
  border-radius: 999px;
  padding: 3px 10px;
}

/* Mini tableau de suivi */
.mini-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.mini-col {
  background: var(--mock-bg);
  border-radius: 12px;
  padding: 10px;
}
.mini-col h4 {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.mini-col h4 i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.35;
}
.mini-card b {
  display: block;
  font-size: 12.5px;
}
.mini-card span {
  color: var(--text-3);
}

.dup-badge {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-soft);
  color: var(--blue-strong);
  border: 1px solid rgba(1, 118, 211, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 14px;
}
.dup-badge img {
  width: 22px;
  height: 22px;
}

.form-demo {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}
.form-demo div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13.5px;
  background: var(--mock-bg);
}
.form-demo span {
  color: var(--text-3);
}
.form-demo b {
  font-weight: 650;
}
.form-demo .filled b::after {
  content: " ✓";
  color: var(--green);
}

.stats-demo {
  margin-top: 22px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 110px;
}
.stats-demo i {
  flex: 1;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--blue) 0%, rgba(1, 118, 211, 0.35) 100%);
}

/* ---------- Premium ---------- */
.premium {
  position: relative;
  padding: 110px 0;
  background: radial-gradient(1000px 500px at 10% 0%, rgba(124, 58, 237, 0.12), transparent 60%),
    radial-gradient(900px 500px at 100% 100%, rgba(1, 118, 211, 0.1), transparent 60%), var(--bg);
}
.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.premium h2 {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 850;
  margin: 0 0 18px;
}
.premium .lead {
  font-size: 19px;
  color: var(--text-2);
  margin: 0 0 28px;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 14px;
}
.check-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list .ck {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
}
.check-list .ck svg {
  width: 16px;
  height: 16px;
}
.check-list b {
  display: block;
  font-size: 17px;
}
.check-list span {
  color: var(--text-2);
  font-size: 15.5px;
}

.cv-stage {
  position: relative;
  padding: 20px 0 20px 30px;
}
.cv-paper {
  background: #fff;
  color: #111827;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 26px 28px;
  font-size: 12px;
  line-height: 1.5;
  position: relative;
  border: 1px solid #e6ebf2;
}
.cv-paper .cv-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cv-paper .cv-title {
  color: #0176d3;
  font-weight: 700;
  font-size: 14px;
  margin: 2px 0 4px;
}
.cv-paper .cv-contact {
  color: #667085;
  font-size: 11px;
}
.cv-paper h5 {
  margin: 14px 0 6px;
  color: #0176d3;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid #0176d3;
  padding-bottom: 3px;
}
.cv-paper ul {
  margin: 4px 0 0;
  padding-left: 16px;
}
.hl {
  background: linear-gradient(transparent 55%, rgba(168, 85, 247, 0.28) 55%);
  border-radius: 2px;
}
.cv-match {
  position: absolute;
  top: -14px;
  right: -12px;
  background: var(--ai-gradient);
  color: #fff;
  font-weight: 750;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-ai);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cv-match svg {
  width: 16px;
  height: 16px;
}
.letter-card {
  position: absolute;
  left: -6px;
  bottom: -26px;
  width: 62%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-2);
}
.letter-card b {
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}

/* Étapes Premium */
.ai-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 84px;
}
.ai-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.ai-step .num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--ai-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 14px;
}
.ai-step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.ai-step p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- Comment ça marche ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.step p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Tarifs ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px 24px;
}
.plan.featured {
  border: 2px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, var(--ai-gradient) border-box;
  box-shadow: var(--shadow-ai);
  transform: translateY(-10px);
}
.plan .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ai-gradient);
  color: #fff;
  font-size: 12.5px;
  font-weight: 750;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan .badge.best {
  background: var(--text);
  color: var(--bg);
}
.plan h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.plan .plan-sub {
  color: var(--text-3);
  font-size: 14.5px;
  margin: 0 0 18px;
  min-height: 2.6em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price b {
  font-size: 42px;
  font-weight: 850;
  letter-spacing: -0.03em;
}
.price span {
  color: var(--text-3);
  font-size: 15px;
}
.per-month {
  font-size: 14px;
  color: var(--text-2);
  margin: 0 0 4px;
  min-height: 1.5em;
}
.saving {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--green);
  background: rgba(22, 163, 74, 0.1);
  border-radius: 999px;
  padding: 2px 10px;
  margin-bottom: 18px;
  align-self: flex-start;
}
.saving.empty {
  visibility: hidden;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
  flex: 1;
}
.plan li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
}
.plan li svg {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green);
}
.plan.is-premium li svg {
  color: var(--violet);
}
.pricing-legal {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  margin: 34px auto 0;
  max-width: 760px;
}

/* Tableau comparatif */
.compare {
  margin-top: 64px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 15px;
}
.compare th,
.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare thead th {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 700;
}
.compare thead th:last-child {
  color: var(--violet);
}
.compare td:nth-child(n + 2),
.compare th:nth-child(n + 2) {
  text-align: center;
  width: 130px;
}
.compare tr:last-child td {
  border-bottom: none;
}
.yes {
  color: var(--green);
  font-weight: 800;
}
.no {
  color: var(--text-3);
}

/* ---------- Confiance ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
}
.trust .tile-ico {
  background: rgba(22, 163, 74, 0.1);
  color: var(--green);
}
.trust h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.trust p {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 17.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 24px;
  line-height: 1;
  color: var(--blue);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 20px;
  color: var(--text-2);
}

/* ---------- Appel final ---------- */
.final-cta {
  padding: 40px 0 110px;
}
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  background: var(--hero-gradient);
  box-shadow: var(--shadow-lg);
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 240px at 50% -10%, rgba(255, 255, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-box img {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
}
.cta-box h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 850;
  margin-bottom: 14px;
}
.cta-box p {
  font-size: 19px;
  opacity: 0.92;
  margin: 0 auto 30px;
  max-width: 34em;
}
.cta-box .btn-light {
  background: #fff;
  color: #3b3ad6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.cta-box .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---------- Pied de page ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: 15px;
  color: var(--text-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-grid a {
  color: var(--text-2);
  text-decoration: none;
}
.footer-grid a:hover {
  color: var(--blue);
}
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- Message « bientôt » (boutons d'abonnement, sans paiement pour l'instant) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  visibility: hidden;
  background: var(--text);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 15px;
  z-index: 80;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* ---------- Pages légales ---------- */
.legal {
  padding: 56px 0 96px;
}
.legal .container {
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 850;
  margin: 0 0 10px;
}
.legal h2 {
  font-size: 24px;
  margin: 40px 0 12px;
}
.legal h3 {
  font-size: 19px;
  margin: 26px 0 8px;
}
.legal p,
.legal li {
  color: var(--text-2);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 16px 0;
  display: block;
  overflow-x: auto;
}
.legal th,
.legal td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.legal th {
  background: var(--bg-2);
}
.todo {
  background: rgba(234, 179, 8, 0.18);
  color: inherit;
  border-radius: 4px;
  padding: 0 4px;
  font-weight: 650;
}
.draft-note {
  border: 1px solid rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0 28px;
  font-size: 15px;
}

/* ---------- Apparition au défilement ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.floaty {
  animation: float 6s ease-in-out infinite;
}
.floaty.delay {
  animation-delay: -3s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .floaty {
    animation: none;
  }
  .btn,
  .tile {
    transition: none;
  }
}

/* ---------- Écrans moyens et téléphones ---------- */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 18px;
  }
  .plan.featured {
    transform: none;
  }
  .trust-grid,
  .ai-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .main-nav,
  .header-cta .btn-ghost {
    display: none;
  }
  .header-login {
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: 0;
  }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open a {
    padding: 12px;
    font-size: 17px;
  }
  .main-nav.open .nav-install {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
  }
  .hero-grid,
  .premium-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .tile.span-3,
  .tile.span-2,
  .tile.span-4 {
    grid-column: span 2;
  }
  .pain-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cv-stage {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .container {
    padding: 0 16px;
  }
  .section,
  .premium {
    padding: 72px 0;
  }
  .hero {
    padding-top: 40px;
  }
  .hero .lead {
    font-size: 18px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .header-cta {
    display: none;
  }
  .menu-toggle {
    margin-left: 0;
  }
  /* Téléphone : pas d'extension Chrome, le compte en ligne devient l'action principale. */
  .hero-signup {
    display: inline-flex;
  }
  .hero-chrome {
    display: none;
  }
  .mock-page {
    min-height: 0;
    padding: 16px;
  }
  .offer-skeleton {
    max-width: 100%;
  }
  .widget {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 18px;
  }
  .chip-1,
  .chip-2 {
    display: none;
  }
  .pricing-grid,
  .trust-grid,
  .ai-steps,
  .bento {
    grid-template-columns: 1fr;
  }
  .tile.span-3,
  .tile.span-2,
  .tile.span-4 {
    grid-column: span 1;
  }
  .mini-board {
    grid-template-columns: 1fr 1fr;
  }
  .mini-board .mini-col:nth-child(3) {
    display: none;
  }
  .letter-card {
    position: relative;
    width: 100%;
    left: 0;
    bottom: 0;
    margin-top: 14px;
  }
  .cv-match {
    right: 8px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    padding: 48px 22px;
  }
  .cta-actions .btn {
    width: 100%;
  }
}
