/* LiveMoney — feuille de style commune */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('/assets/fonts/archivo.woff2') format('woff2-variations'),
    url('/assets/fonts/archivo.woff2') format('woff2');
}

:root {
  --cobalt: #1f3ce0;
  --cobalt-deep: #142aa6;
  --cobalt-tint: #eef1fd;
  --sun: #ffd43b;
  --sun-deep: #f2b705;
  --ink: #10132b;
  --ink-soft: #4b5072;
  --line: #dde1f2;
  --paper: #ffffff;
  --on-cobalt-soft: #c9d2ff;
  --radius-s: 6px;
  --radius-m: 14px;
  --gutter: 20px;
  --measure: 66ch;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
}

body {
  margin: 0;
  font-family: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: 'wdth' 100;
}

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

a {
  color: var(--cobalt);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 10;
}

.skip-link:focus {
  left: 8px;
}

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

.site-header {
  background: var(--cobalt);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  font-stretch: 112%;
  font-variation-settings: 'wdth' 112;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark-icon {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: var(--radius-s);
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  background: var(--cobalt-deep);
}

.lang-switch {
  display: inline-flex;
  margin-left: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-s);
  overflow: hidden;
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
}

.lang-switch button[aria-pressed='true'] {
  background: #fff;
  color: var(--cobalt);
}

@media (max-width: 520px) {
  .site-nav .nav-optional {
    display: none;
  }
}

/* ---------- Héros / compteur ---------- */

.hero {
  background: var(--cobalt);
  color: #fff;
  padding: 8px 0 40px;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(30px, 7.4vw, 56px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-stretch: 118%;
  font-variation-settings: 'wdth' 118;
  max-width: 14ch;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 56px;
    padding: 24px 0 16px;
  }
}

/* Phrase de configuration : « Je gagne ___ € net par ___ » */

.sentence {
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.7;
  font-weight: 600;
  margin: 0;
}

.sentence label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.blank {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 3px solid var(--sun);
  border-radius: 0;
  padding: 0 2px;
  margin: 0 2px;
  outline: none;
}

.blank:focus-visible {
  background: var(--cobalt-deep);
  outline: none;
}

input.blank {
  width: 5.2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

input.blank::-webkit-outer-spin-button,
input.blank::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.blank[type='number'] {
  -moz-appearance: textfield;
}

input.blank,
select.blank {
  field-sizing: content;
}

select.blank {
  cursor: pointer;
  padding-right: 18px;
  background-image: linear-gradient(45deg, transparent 50%, var(--sun) 50%),
    linear-gradient(135deg, var(--sun) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

select.blank option {
  color: var(--ink);
}

.example-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--on-cobalt-soft);
}

.example-note[hidden] {
  display: none;
}

.rhythm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  font-size: 15px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--cobalt-deep);
}

.segmented button {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  color: var(--on-cobalt-soft);
  background: transparent;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.segmented button[aria-pressed='true'] {
  background: #fff;
  color: var(--ink);
}

.hours-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-cobalt-soft);
}

.hours-field input {
  width: 3.4ch;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--sun);
  text-align: center;
  -moz-appearance: textfield;
}

.hours-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.hours-field[hidden] {
  display: none;
}

/* Le compteur : rouleaux sans cases, centimes en exposant façon étiquette de prix */

.meter {
  background: var(--cobalt-deep);
  border-radius: 20px;
  padding: 20px 16px 18px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06);
}

.odometer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  font-weight: 850;
  font-stretch: 76%;
  font-variation-settings: 'wdth' 76;
  line-height: 1;
  letter-spacing: 0;
  user-select: none;
}

.drum {
  position: relative;
  width: 0.56em;
  height: 1.16em;
  overflow: hidden;
  color: #fff;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}

.drum-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  will-change: transform;
}

.drum-strip span {
  display: block;
  height: 1em;
  line-height: 1em;
  text-align: center;
}

.odometer .big {
  font-size: clamp(72px, 21vw, 136px);
  display: flex;
  align-items: flex-start;
}

.odometer .sep {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  color: var(--sun);
  width: 0.24em;
  justify-content: center;
  padding-bottom: 0.12em;
}

.odometer .small {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0.06em;
  font-size: clamp(30px, 8.6vw, 56px);
}

.odometer .small-digits {
  display: flex;
  color: var(--sun);
  margin-top: 0.1em;
}

.odometer .small .drum {
  color: var(--sun);
}

.odometer .currency {
  color: #fff;
  font-size: 1.25em;
  line-height: 1;
  margin-top: 0.08em;
  padding-left: 0.04em;
}

.meter-caption {
  margin: 12px 0 0;
  text-align: center;
  color: var(--on-cobalt-soft);
  font-size: 15px;
}

.meter-caption strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
}

.meter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
}

.btn-sun {
  background: var(--sun);
  color: var(--ink);
}

.btn-sun:hover {
  background: #ffdf6b;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: #fff;
}

.btn-line {
  background: var(--paper);
  color: var(--cobalt);
  border-color: var(--line);
}

.btn-line:hover {
  border-color: var(--cobalt);
}

.rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.rates div {
  padding: 12px 4px 0;
  text-align: center;
}

.rates div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.rates dt {
  font-size: 13px;
  color: var(--on-cobalt-soft);
}

.rates dd {
  margin: 2px 0 0;
  font-size: clamp(18px, 4.6vw, 22px);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

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

.band {
  padding: 48px 0;
}

.band-tint {
  background: var(--cobalt-tint);
}

.band h2,
.prose h2 {
  font-size: clamp(26px, 5.4vw, 36px);
  line-height: 1.1;
  font-weight: 820;
  letter-spacing: -0.015em;
  font-stretch: 112%;
  font-variation-settings: 'wdth' 112;
  margin: 0 0 8px;
}

.band .lede {
  margin: 0 0 22px;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Objectifs : liste façon ticket */

.goals {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.goal {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  grid-template-areas:
    'emoji name time'
    'emoji bar bar';
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  padding: 14px 0;
  border-bottom: 1px dashed #b9bfdc;
}

.goal-emoji {
  grid-area: emoji;
  font-size: 28px;
  line-height: 1;
  text-align: center;
}

.goal-name {
  grid-area: name;
  min-width: 0;
}

.goal-name strong {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.goal-name span {
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.goal-time {
  grid-area: time;
  text-align: right;
  font-weight: 800;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.goal-time small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.goal-bar {
  grid-area: bar;
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}

.goal-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--cobalt);
  border-radius: 4px;
}

.goal.unlocked .goal-bar i {
  background: var(--sun-deep);
}

.goal-count {
  font-weight: 700;
  color: var(--cobalt);
}

.goal-delete {
  grid-area: time;
  justify-self: end;
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  min-height: 36px;
  padding: 0 10px;
  cursor: pointer;
}

.goal-delete:hover {
  border-color: #c23b3b;
  color: #c23b3b;
}

.goals-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.goal-form {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 110px;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius-m);
  background: var(--cobalt-tint);
  align-items: end;
}

.goal-form[hidden] {
  display: none;
}

.goal-form label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.goal-form input {
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.goal-form input:focus {
  border-color: var(--cobalt);
  outline: none;
}

.goal-form .form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.form-error {
  grid-column: 1 / -1;
  margin: 0;
  color: #b42318;
  font-size: 14px;
  font-weight: 600;
}

.form-error:empty {
  display: none;
}

@media (max-width: 480px) {
  .goal-form {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .goal-form .field-price {
    grid-column: 1 / -1;
  }
}

/* Depuis le 1er janvier */

.year-figure {
  margin: 4px 0 6px;
  font-size: clamp(40px, 11vw, 72px);
  line-height: 1;
  font-weight: 850;
  font-stretch: 82%;
  font-variation-settings: 'wdth' 82;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
  letter-spacing: -0.01em;
}

.fine {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Liste de guides */

.guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.guide-list li {
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  display: grid;
  gap: 2px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
}

.guide-list a strong {
  font-size: 19px;
  font-weight: 750;
  color: var(--cobalt);
}

.guide-list a:hover strong {
  text-decoration: underline;
}

.guide-list a span {
  color: var(--ink-soft);
  font-size: 15px;
}

/* Publicité : rien ne s'affiche tant qu'une annonce n'est pas servie */

.ad-unit {
  margin: 0 auto;
  max-width: 1080px;
  padding: 0 var(--gutter);
}

.ad-unit ins.adsbygoogle[data-ad-status='unfilled'] {
  display: none !important;
}

.ad-unit:empty {
  display: none;
}

.ad-label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 24px 0 4px;
}

/* ---------- Pages de contenu ---------- */

.page-head {
  background: var(--cobalt);
  color: #fff;
  padding: 28px 0 36px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(30px, 6.6vw, 48px);
  line-height: 1.06;
  font-weight: 850;
  letter-spacing: -0.02em;
  font-stretch: 114%;
  font-variation-settings: 'wdth' 114;
  max-width: 22ch;
}

.page-head .standfirst {
  margin: 14px 0 0;
  font-size: 19px;
  color: var(--on-cobalt-soft);
  max-width: 56ch;
}

.page-head .meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--on-cobalt-soft);
}

.breadcrumb {
  font-size: 14px;
  margin: 0 0 14px;
}

.breadcrumb a {
  color: var(--on-cobalt-soft);
}

.prose {
  max-width: var(--measure);
  padding: 36px 0 56px;
}

.prose h2 {
  font-size: clamp(24px, 4.6vw, 30px);
  margin: 40px 0 10px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 750;
  margin: 28px 0 6px;
}

.prose p,
.prose li {
  margin: 0 0 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 16px;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  border-bottom: 2px solid var(--ink);
  font-weight: 750;
}

.prose td.num,
.prose th.num {
  text-align: right;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.formula {
  margin: 16px 0 20px;
  padding: 14px 16px;
  background: var(--cobalt-tint);
  border-left: 4px solid var(--cobalt);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-weight: 650;
}

.callout {
  margin: 28px 0;
  padding: 18px;
  border-radius: var(--radius-m);
  background: var(--cobalt);
  color: #fff;
}

.callout p {
  margin: 0 0 12px;
}

.callout a.btn {
  color: var(--ink);
}

.sources {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
  font-size: 15px;
  color: var(--ink-soft);
}

.sources h2 {
  font-size: 18px;
  margin: 0 0 8px;
  font-stretch: 100%;
  font-variation-settings: 'wdth' 100;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq details:first-of-type {
  border-top: 2px solid var(--ink);
}

.faq summary {
  cursor: pointer;
  padding: 14px 28px 14px 0;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 10px;
  font-size: 24px;
  font-weight: 600;
  color: var(--cobalt);
}

.faq details[open] summary::after {
  content: '–';
}

.faq details > div {
  padding: 0 0 12px;
}

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

.site-footer {
  background: var(--ink);
  color: #c6c9df;
  padding: 36px 0 44px;
  font-size: 15px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

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

.site-footer li {
  margin: 0 0 8px;
}

.site-footer .footer-title {
  margin: 0 0 10px;
  color: #fff;
  font-weight: 700;
}

.linklike {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(16, 19, 43, 0.3);
}

.toast[hidden] {
  display: none;
}

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

.goals,
.goal-form {
  max-width: 780px;
}

mark {
  background: var(--sun);
  color: var(--ink);
  padding: 0 4px;
}

.wordmark {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .site-header .wrap {
    gap: 8px;
  }
  .wordmark {
    font-size: 19px;
    gap: 8px;
  }
  .wordmark-icon {
    width: 30px;
    height: 30px;
  }
  .site-nav {
    gap: 0;
  }
  .site-nav a {
    padding: 8px 7px;
    font-size: 14px;
  }
  .lang-switch {
    margin-left: 4px;
  }
}
