/* Deux mises en page : téléphone (maquette 390 px) par défaut, PC (maquette 1280 px) à partir de 1024 px. */

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

@font-face {
  font-family: 'Saira';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/saira-latin-wght-normal.woff2') format('woff2');
}

:root {
  --background: #161619;
  --surface: #1b1b1f;
  --surface-border: #202023;
  --line: #242427;
  --line-strong: #323235;
  --text: #ffffff;
  --text-body: #d6d6db;
  --text-muted: #9f9f9f;
  --text-faint: #6b6b70;
  --accent: #7e52f7;
  --accent-soft: #b7a5e8;
  --accent-tint: rgba(126, 82, 247, 0.16);
  --font-text: 'Hanken Grotesk', system-ui, sans-serif;
  --font-digits: 'Saira', 'Hanken Grotesk', sans-serif;
  --gutter: 24px;
}

@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 80px;
  }
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

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

img,
svg {
  display: block;
}

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

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

.digits {
  font-family: var(--font-digits);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.card-label {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-link {
  color: var(--accent-soft);
}

.text-link:hover {
  text-decoration: underline;
}

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

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

.site-header--overlay {
  position: relative;
  z-index: 2;
  border-bottom: 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.site-nav {
  display: none;
}

.lang-switch {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  line-height: 20px;
}

.lang-switch:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

@media (min-width: 1024px) {
  .site-header__inner {
    height: 76px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-muted);
  }

  .site-nav a:hover,
  .site-nav a.is-current {
    color: var(--text);
  }

  .lang-switch {
    margin-left: 28px;
  }
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.page-home .site-footer {
  margin-top: 56px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  padding-bottom: 32px;
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__nav a {
  display: flex;
  align-items: center;
  height: 44px;
}

.site-footer__nav a:hover,
.site-footer__nav a.is-current {
  color: var(--text);
}

.site-footer__copyright {
  order: 2;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .site-footer {
    margin-top: 120px;
  }

  .page-home .site-footer {
    margin-top: 96px;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .site-footer__nav {
    flex-direction: row;
    align-items: center;
    gap: 28px;
  }

  .site-footer__nav a {
    height: auto;
  }

  .site-footer__copyright {
    order: 0;
    margin-top: 0;
  }
}

/* ---------- Haut des pages intérieures ---------- */

.page-intro {
  padding-top: 48px;
  background: radial-gradient(90% 60% at 100% 0%, rgba(126, 82, 247, 0.14) 0%, rgba(126, 82, 247, 0) 100%);
}

.page-title {
  margin-top: 14px;
  font-size: 40px;
  line-height: 44px;
  font-weight: 200;
  letter-spacing: -0.8px;
}

.page-lead {
  margin-top: 16px;
  max-width: 760px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-muted);
}

.page-updated {
  margin-top: 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--text-muted);
}

.page-body {
  padding-top: 48px;
}

.narrow {
  max-width: 760px;
}

@media (min-width: 1024px) {
  .page-intro {
    padding-top: 88px;
    background: radial-gradient(50% 100% at 85% 0%, rgba(126, 82, 247, 0.14) 0%, rgba(126, 82, 247, 0) 100%);
  }

  .page-title {
    margin-top: 16px;
    font-size: 64px;
    line-height: 70px;
    letter-spacing: -1.2px;
  }

  .page-lead {
    margin-top: 22px;
    font-size: 19px;
    line-height: 30px;
  }

  .page-updated {
    margin-top: 18px;
    font-size: 14px;
  }

  .page-body {
    padding-top: 72px;
  }
}

/* ---------- Parties numérotées et texte courant ---------- */

.section {
  scroll-margin-top: 24px;
}

.section + .section {
  margin-top: 48px;
}

.section__number {
  font-size: 15px;
  line-height: 20px;
  color: var(--accent-soft);
}

.section__title {
  margin-top: 6px;
  font-size: 26px;
  line-height: 32px;
  font-weight: 300;
  letter-spacing: -0.3px;
}

.prose p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-body);
}

.prose p.is-close {
  margin-top: 8px;
}

.prose p.is-spaced {
  margin-top: 24px;
}

.prose h3 {
  margin-top: 28px;
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
}

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

.prose a {
  color: var(--accent-soft);
}

.prose a:hover {
  text-decoration: underline;
}

.prose a.strong-link {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prose li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-body);
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

/* Un tableau Markdown devient une carte : lignes empilées sur téléphone, deux colonnes sur PC. */
.prose table {
  display: block;
  margin-top: 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.prose thead {
  display: none;
}

.prose tbody,
.prose tr,
.prose th,
.prose td {
  display: block;
}

.prose tbody tr {
  padding: 14px 16px;
}

.prose tbody tr + tr {
  border-top: 1px solid var(--line);
}

.prose td {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
}

.prose td + td {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .section + .section {
    margin-top: 64px;
  }

  .page-body--spaced .section + .section {
    margin-top: 72px;
  }

  .section__title {
    font-size: 30px;
    line-height: 38px;
  }

  .prose p,
  .prose li {
    font-size: 17px;
    line-height: 28px;
  }

  .prose li::before {
    top: 11px;
  }

  .prose h3 {
    font-size: 18px;
  }

  .prose table {
    margin-top: 20px;
  }

  .prose thead {
    display: block;
  }

  .prose thead tr,
  .prose tbody tr {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .prose thead tr {
    padding: 12px 20px;
  }

  .prose th {
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 1.1px;
    text-align: left;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .prose tbody tr,
  .prose tbody tr + tr {
    padding: 14px 20px;
    border-top: 1px solid var(--line);
  }

  .prose td,
  .prose td + td {
    margin-top: 0;
    font-size: 15px;
    line-height: 23px;
  }

  .prose td:first-child {
    padding-right: 20px;
  }
}

/* ---------- Textes légaux : résumé, sommaire, carte de suppression ---------- */

.summary-card {
  margin-top: 32px;
  padding: 20px;
  border-radius: 12px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(126, 82, 247, 0.16) 0%, rgba(126, 82, 247, 0) 70%),
    var(--surface);
  border: 1px solid var(--surface-border);
}

.summary-card__list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.summary-card__list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-body);
}

.summary-card__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-soft);
}

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

.summary-card__list a {
  color: var(--accent-soft);
}

.summary-card__list a:hover {
  text-decoration: underline;
}

.contents-mobile {
  margin-top: 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.contents-mobile summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.contents-mobile summary svg {
  color: var(--text-muted);
}

.contents-mobile[open] summary svg {
  transform: rotate(180deg);
}

.contents-mobile__count {
  color: var(--text-muted);
  font-weight: 400;
}

.contents-mobile ol {
  padding: 0 16px 10px;
}

.contents-mobile a {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.contents-mobile a .digits {
  flex: none;
  width: 18px;
  color: var(--accent-soft);
}

.legal-body {
  padding-top: 56px;
}

.contents {
  display: none;
}

.link-card {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 15px;
  line-height: 22px;
}

.link-card:hover {
  border-color: var(--line-strong);
}

.link-card strong {
  font-weight: 600;
}

.link-card__hint {
  color: var(--text-muted);
}

.link-card svg {
  flex: none;
  color: var(--accent-soft);
}

@media (min-width: 1024px) {
  .summary-card {
    margin-top: 48px;
    padding: 32px;
  }

  .summary-card__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 40px;
  }

  .contents-mobile {
    display: none;
  }

  .legal-body {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    padding-top: 88px;
  }

  .contents {
    display: block;
    flex: none;
    width: 260px;
    position: sticky;
    top: 24px;
  }

  .contents ol {
    margin-top: 14px;
  }

  .contents a {
    display: flex;
    gap: 12px;
    padding: 7px 0 7px 14px;
    border-left: 1px solid var(--line);
    font-size: 14px;
    line-height: 20px;
    color: var(--text-muted);
  }

  .contents a .digits {
    flex: none;
    width: 18px;
    color: var(--text-faint);
  }

  .contents a:hover {
    border-left-color: var(--accent);
    color: var(--text);
  }

  .contents a:hover .digits {
    color: var(--accent-soft);
  }

  .legal-content {
    flex: 1 1 0;
    min-width: 0;
    max-width: 684px;
  }
}

@media (min-width: 1280px) {
  .legal-body {
    gap: 96px;
  }
}

/* ---------- Mentions légales : tableau libellé / valeur ---------- */

.fact-table {
  margin-top: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.fact-table__row {
  padding: 14px 16px;
}

.fact-table__row + .fact-table__row {
  border-top: 1px solid var(--line);
}

.fact-table dt {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}

.fact-table dd {
  margin-top: 4px;
  font-size: 15px;
  line-height: 23px;
}

.fact-table strong {
  font-weight: 600;
}

.fact-table a {
  color: var(--accent-soft);
}

.fact-table a:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .fact-table__row {
    display: grid;
    grid-template-columns: 240px 1fr;
    padding: 14px 20px;
  }

  .fact-table dt,
  .fact-table dd {
    margin-top: 0;
    font-size: 15px;
    line-height: 24px;
  }
}

/* ---------- Supprimer votre compte ---------- */

.method-grid {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.method-card {
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.method-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.method-card h3 {
  margin-top: 14px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.method-card p,
.steps li {
  font-size: 15px;
  line-height: 23px;
  color: var(--text-body);
}

.method-card p {
  margin-top: 18px;
}

.method-card p.method-card__note {
  font-size: 14px;
  line-height: 21px;
  color: var(--text-muted);
}

.method-card p + p.method-card__note {
  margin-top: 14px;
}

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

.method-card a {
  color: var(--accent-soft);
}

.method-card a:hover {
  text-decoration: underline;
}

.steps {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  display: flex;
  gap: 14px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-family: var(--font-digits);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--text);
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-card {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.info-card svg {
  flex: none;
  margin-top: 1px;
  color: var(--accent-soft);
}

.info-card__title {
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.info-card__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 21px;
  color: var(--text-muted);
}

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

@media (min-width: 1024px) {
  .method-grid,
  .info-grid--two {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }

  .method-card {
    padding: 28px;
  }

  .method-card h3 {
    font-size: 22px;
  }

  .method-card p,
  .steps li {
    font-size: 16px;
    line-height: 25px;
  }

  .method-card p.method-card__note {
    font-size: 14px;
    line-height: 21px;
  }

  .info-card {
    padding: 22px;
  }
}

/* ---------- Accueil : haut de page ---------- */

/* Pas d'`overflow: hidden` ici : il couperait net l'ombre et la lueur du téléphone au bas de la section.
   Seul le cadre de l'image (.hero__media) rogne son contenu. */
.hero {
  position: relative;
  margin-top: -64px;
  padding-top: 88px;
}

.hero__media {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 0;
  opacity: 0.85;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 22, 25, 0.55) 0%,
    rgba(22, 22, 25, 0.1) 30%,
    rgba(22, 22, 25, 0.6) 65%,
    #161619 100%
  );
}

.hero__inner {
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-soft);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.hero__title {
  margin-top: 140px;
  font-size: 46px;
  line-height: 50px;
  font-weight: 200;
  letter-spacing: -1px;
}

.hero__lead {
  margin-top: 16px;
  font-size: 17px;
  line-height: 26px;
  color: var(--text-muted);
}

.stores {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
}

.store-pill small {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.hero__device {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Le téléphone est dessiné à taille fixe (300 × 620) puis réduit à 94 % sur petit écran, comme la maquette. */
.device-frame {
  flex: none;
  position: relative;
  width: 282px;
  height: 582.8px;
}

.device {
  position: absolute;
  left: 0;
  top: 0;
  width: 300px;
  height: 620px;
  padding: 10px;
  border-radius: 46px;
  background: #0b0b0e;
  box-shadow:
    0 0 0 1px #2a2a2f,
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(126, 82, 247, 0.18);
  transform: scale(0.94);
  transform-origin: 0 0;
}

.device__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 46px 20px 0;
  border-radius: 36px;
  background: var(--background);
  overflow: hidden;
}

.device__notch {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  border-radius: 12px;
  background: #000000;
}

.device__activity {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  font-size: 15px;
  font-weight: 600;
}

.icon-tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--line);
}

.icon-tile--large {
  width: 36px;
  height: 36px;
}

.device__timer {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.device__session {
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.device__time {
  margin-top: 6px;
  font-size: 76px;
  line-height: 76px;
  font-weight: 200;
  letter-spacing: -1.5px;
}

.ticks {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 210px;
  height: 20px;
}

.ticks span {
  width: 3px;
  height: 12px;
  border-radius: 1.5px;
  background: var(--line-strong);
}

.ticks .is-tall {
  height: 20px;
}

.ticks .is-done {
  background: var(--accent);
}

.ticks .is-now {
  background: var(--text);
}

.device__today {
  margin-top: 20px;
  font-size: 12px;
  line-height: 16px;
  color: #9ca3af;
}

.device__today strong {
  color: var(--text);
  font-weight: 500;
}

.device__today .digits {
  color: var(--text);
  font-size: 13px;
}

.device__controls {
  display: flex;
  justify-content: center;
  padding-bottom: 92px;
}

.device__pause {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 29px;
  border: 1.5px solid var(--line-strong);
}

@media (min-width: 1024px) {
  .hero {
    margin-top: -76px;
    padding-top: 76px;
  }

  /* Le bord gauche de l'image est à 180 px à gauche du centre : 820 px de large sur la maquette de 1280 px. */
  .hero__media {
    left: calc(50% - 180px);
    right: 0;
    width: auto;
    height: 100%;
  }

  .hero__media img {
    object-position: 62% 30%;
    opacity: 0.9;
  }

  .hero__media::after {
    background:
      linear-gradient(
        90deg,
        #161619 0%,
        rgba(22, 22, 25, 0.7) 30%,
        rgba(22, 22, 25, 0.15) 70%,
        rgba(22, 22, 25, 0.35) 100%
      ),
      linear-gradient(
        180deg,
        rgba(22, 22, 25, 0.5) 0%,
        rgba(22, 22, 25, 0) 25%,
        rgba(22, 22, 25, 0) 70%,
        #161619 100%
      );
  }

  .hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    height: 668px;
  }

  .hero__text {
    flex: 0 1 560px;
    min-width: 0;
  }

  .hero__title {
    margin-top: 26px;
    font-size: clamp(60px, 5.94vw, 76px);
    line-height: 1.053;
    letter-spacing: -1.5px;
  }

  .hero__lead {
    margin-top: 24px;
    max-width: 470px;
    font-size: 20px;
    line-height: 30px;
  }

  .stores {
    margin-top: 36px;
    gap: 12px;
  }

  .hero__device {
    flex: none;
    width: 420px;
    margin-top: 0;
  }

  .device-frame {
    width: 300px;
    height: 620px;
  }

  .device {
    transform: none;
  }
}

/* Écran plus large que la maquette : l'image garde sa taille et sa place (l'escalier reste derrière le téléphone)
   au lieu de s'étirer jusqu'au bord de la fenêtre, et elle s'efface sur sa droite. */
@media (min-width: 1280px) {
  .hero__media img {
    inset: 0 auto 0 -183.5px;
    width: auto;
    max-width: none;
    height: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 1004px, transparent 100%);
    mask-image: linear-gradient(90deg, #000 1004px, transparent 100%);
  }

  .hero__media::after {
    right: auto;
    width: 933px;
    background:
      linear-gradient(
        90deg,
        #161619 0,
        rgba(22, 22, 25, 0.7) 246px,
        rgba(22, 22, 25, 0.15) 574px,
        rgba(22, 22, 25, 0.35) 820px
      ),
      linear-gradient(
        180deg,
        rgba(22, 22, 25, 0.5) 0%,
        rgba(22, 22, 25, 0) 25%,
        rgba(22, 22, 25, 0) 70%,
        #161619 100%
      );
  }
}

/* ---------- Accueil : sections ---------- */

.home-section {
  padding-top: 72px;
  scroll-margin-top: 0;
}

.home-section--promises {
  padding-top: 56px;
}

.section-title {
  margin-top: 12px;
  font-size: 32px;
  line-height: 38px;
  font-weight: 300;
  letter-spacing: -0.3px;
}

.section-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-muted);
}

.mode-grid {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mode-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 24px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.mode-card__time {
  margin-top: 10px;
  font-size: 52px;
  line-height: 56px;
  font-weight: 200;
  letter-spacing: -1px;
}

.mode-card__name {
  margin-top: 16px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.mode-card__text {
  margin-top: 4px;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.split__visual {
  margin-top: 24px;
}

.panel {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.activity-list__head {
  display: flex;
  justify-content: space-between;
  padding: 16px 16px 4px;
  font-size: 11px;
  line-height: 16px;
  color: var(--text-muted);
}

.activity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.activity + .activity {
  border-top: 1px solid var(--line);
}

.activity__body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
  line-height: 22px;
}

.activity__name {
  font-weight: 500;
}

.activity__progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress {
  flex: 1 1 0;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}

.progress span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.activity__goal {
  flex: none;
  width: 96px;
  text-align: right;
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}

.activity__goal.is-reached {
  color: var(--accent-soft);
}

.stats-card {
  padding: 22px 12px;
}

.stats-card__total {
  margin-top: 6px;
  font-size: 48px;
  line-height: 52px;
  font-weight: 300;
  color: var(--accent-soft);
}

.stats-card__by-month {
  margin-top: 20px;
}

.bars {
  --bar-scale: 0.722;
  margin-top: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 130px;
}

.bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}

.bar__fill {
  width: 100%;
  height: calc(var(--height) * var(--bar-scale) * 1px);
  border-radius: 3px 3px 1px 1px;
  background: rgba(126, 82, 247, 0.55);
}

.bar__label {
  font-size: 9px;
  line-height: 14px;
  white-space: nowrap;
  color: var(--text-muted);
}

.bar.is-current .bar__fill {
  background: linear-gradient(180deg, #a68afb, #7e52f7);
}

.bar.is-current .bar__label {
  color: var(--text);
  font-weight: 600;
}

.active-days {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.active-days__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.active-days__title {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 1.2px;
}

.active-days__count {
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
}

.active-days__total {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
}

.year-grid {
  margin-top: 8px;
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-template-columns: repeat(53, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 2px;
}

.year-grid span {
  aspect-ratio: 1;
  border-radius: 1.5px;
  background: var(--line-strong);
}

.year-grid .is-active {
  background: var(--accent);
}

.year-grid .is-outside {
  background: none;
}

.info-grid--three .info-card {
  padding: 20px;
}

.info-grid--three .info-card__text {
  margin-top: 4px;
}

.cta {
  padding-top: 56px;
}

.cta__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px;
  border-radius: 20px;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(126, 82, 247, 0.35) 0%, rgba(126, 82, 247, 0.08) 55%, rgba(126, 82, 247, 0) 100%),
    var(--surface);
  border: 1px solid var(--surface-border);
  text-align: center;
}

.cta__card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(84, 33, 225, 0.45);
}

.cta__card h2 {
  margin-top: 20px;
  font-size: 30px;
  line-height: 36px;
  font-weight: 300;
}

.cta__card p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 23px;
  color: var(--text-muted);
}

.cta__card a {
  display: block;
  color: var(--accent-soft);
}

.cta__card a:hover {
  text-decoration: underline;
}

@media (min-width: 720px) {
  .mode-grid {
    flex-direction: row;
    gap: 16px;
  }

  .info-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .home-section,
  .home-section--promises {
    padding-top: 144px;
  }

  .home-section--first {
    padding-top: 104px;
  }

  .section-title {
    margin-top: 14px;
    max-width: 720px;
    font-size: 44px;
    line-height: 52px;
    letter-spacing: -0.5px;
  }

  .section-lead {
    margin-top: 20px;
    font-size: 18px;
    line-height: 28px;
  }

  .mode-grid {
    margin-top: 48px;
  }

  .split {
    display: flex;
    align-items: center;
    gap: 64px;
  }

  .split--reverse {
    flex-direction: row-reverse;
  }

  .split__text {
    flex: none;
    width: 460px;
  }

  .split__visual {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
  }

  .stats-card {
    padding: 22px;
  }

  .bars {
    --bar-scale: 1;
    gap: 10px;
    height: 170px;
  }

  .bar__label {
    font-size: 11px;
  }

  .info-grid--three .info-card {
    padding: 24px;
  }

  .info-grid--three .info-card__text {
    margin-top: 6px;
  }

  .cta {
    padding-top: 96px;
  }

  .cta__card {
    justify-content: center;
    min-height: 340px;
    background:
      radial-gradient(60% 90% at 50% 100%, rgba(126, 82, 247, 0.35) 0%, rgba(126, 82, 247, 0.08) 55%, rgba(126, 82, 247, 0) 100%),
      var(--surface);
  }

  .cta__card img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }

  .cta__card h2 {
    margin-top: 24px;
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -0.5px;
  }

  .cta__card p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 26px;
  }

  .cta__card a {
    display: inline;
  }
}

@media (min-width: 1280px) {
  .split {
    gap: 96px;
  }
}
