/*
 * TrustMe — site public.
 * Une seule feuille de style, sans dépendance. L'identité est celle de l'application
 * (design-system.ts) : beige chaud, framboise TrustMe, Playfair Display pour les titres,
 * Poppins pour le texte et l'interface. Les polices sont servies par le site lui-même
 * (assets/fonts, licences OFL jointes) : aucun appel à un service tiers.
 * Thème clair uniquement : `only light` empêche l'assombrissement forcé par le navigateur.
 */

/* --- Polices ------------------------------------------------------------- */

/* Playfair Display a un nom réservé : le fichier est la police d'origine, seulement emballée en WOFF. */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Poppins : sous-ensemble latin (plage « latin » de Google Fonts, plus Ÿ et les flèches). */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-500.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-600.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* La graisse du mot-symbole officiel « TrustMe ». */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/poppins-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+0178, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Jetons -------------------------------------------------------------- */

:root {
  color-scheme: only light;

  /* Fonds : le beige chaud de l'application, jamais un blanc pur en fond de page. */
  --cream: #fff6ee;
  --cream-deep: #fbefe4;
  --card: #ffffff;
  --surface: #e7e1db;
  --rule: #ecdfd3;
  --rule-strong: #dccbbd;

  /* Encres. */
  --ink: #1c1c1e;
  --ink-soft: #6e6862;

  /* Framboise TrustMe (Brand.raspberry900 à raspberry100). */
  --brand: #8b0e3a;
  --brand-strong: #730b30;
  --brand-deep: #5c0926;
  --brand-border: #f5a8b8;
  --brand-soft: #ffe6ec;

  /* Ambre : uniquement en fond, toujours sous un texte anthracite. */
  --amber: #ffad32;
  --amber-soft: #fff1da;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-chip: 8px;
  --radius-card: 12px;
  --radius-sheet: 20px;
  --shadow: 0 1px 2px rgb(92 9 38 / 6%), 0 10px 28px rgb(92 9 38 / 9%);

  --page: 76rem;
  --measure: 42rem;
  --gutter: 1.25rem;
}

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

*,
*::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;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

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

a:hover {
  color: var(--brand-strong);
  text-decoration-thickness: 2px;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 600;
}

img {
  max-width: 100%;
}

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

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -3rem;
  z-index: 30;
  padding: 0.5rem 0.875rem;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-chip);
}

.skip-link:focus {
  top: 0.75rem;
}

/* --- Logo ---------------------------------------------------------------- */

/* Le cœur officiel (assets/brand) et le mot-symbole officiel : « Trust » anthracite, « Me » framboise. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: block;
  width: auto;
  height: 2.5rem;
}

.brand-name {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--brand);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.375rem;
  border-radius: var(--radius-card);
  background: var(--brand);
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-strong);
  color: var(--cream);
}

.button:active {
  background: var(--brand-deep);
}

.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.button-small {
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

/* Un chevron dessiné en CSS : rien à charger, et il suit la couleur du texte. */
.chevron {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

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

.site-header {
  position: relative;
  z-index: 20;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
}

.site-nav {
  display: none;
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  display: block;
  padding: 0.375rem 0;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--brand);
  color: var(--ink);
}

.header-cta {
  display: none;
  margin-left: 0.5rem;
}

/* Menu des petits écrans : un <details>, sans script. */
.menu {
  margin-left: auto;
}

.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

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

.menu-icon {
  width: 1.125rem;
  height: 0.75rem;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
}

.menu[open] > summary {
  border-color: var(--brand);
  color: var(--brand);
}

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 18px 30px rgb(92 9 38 / 10%);
}

.menu-panel ul {
  max-width: var(--page);
  margin: 0 auto 1.25rem;
  padding: 0;
  list-style: none;
}

.menu-panel li + li {
  margin-top: 0;
}

.menu-panel a:not(.button) {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.menu-panel a[aria-current="page"] {
  color: var(--brand);
}

.menu-panel .button {
  display: flex;
  max-width: var(--page);
  margin: 0 auto;
}

@media (min-width: 72rem) {
  .site-nav {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .menu {
    display: none;
  }
}

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

.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2.25rem;
}

.footer-about p {
  max-width: 22rem;
  margin: 1rem 0 0;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

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

.footer-list li + li {
  margin-top: 0.5rem;
}

.site-footer a:not(.brand) {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer a:not(.brand):hover {
  color: var(--brand);
  text-decoration: underline;
}

.soon-label {
  font-size: 0.8125rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-contact .icon {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--brand);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr;
  }
}

/* --- Accueil : en-tête de page ------------------------------------------ */

.eyebrow {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  overflow: hidden;
  padding: 3rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 70% at 85% 35%, #fde1e8 0%, rgb(253 225 232 / 0%) 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  max-width: 19ch;
  margin: 0 0 1.5rem;
  color: var(--brand);
  font-size: clamp(2.375rem, 1.6rem + 3.1vw, 3.625rem);
  line-height: 1.06;
}

.lead {
  max-width: 30rem;
  margin-bottom: 2rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

/* Les plateformes visées, présentées comme à venir : ce ne sont pas des liens de téléchargement. */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.stores li + li {
  margin-top: 0;
}

.store {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 9.75rem;
  padding: 0.5625rem 1.125rem 0.625rem;
  border-radius: 10px;
  background: var(--ink);
  color: #ffffff;
  line-height: 1.2;
}

.store-small {
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.store-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: baseline;
  gap: 0.625rem;
  margin: 0;
  padding: 0.625rem 1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.status-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-0.05em);
}

/* Captures officielles de l'application (fiche Google Play), dans un cadre de téléphone en CSS. */
.phone {
  margin: 0;
  overflow: hidden;
  border: 0.5rem solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 0 22px 44px rgb(92 9 38 / 18%), 0 4px 12px rgb(28 28 30 / 12%);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem 0 0.5rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fbd5df 0%, rgb(251 213 223 / 0%) 70%);
}

.hero-visual .phone {
  position: relative;
  width: min(15.5rem, 46%);
}

.hero-visual .phone-back {
  margin-right: -2.75rem;
  transform: rotate(-5deg) translateY(1rem);
}

.hero-visual .phone-front {
  transform: rotate(4deg);
}

@media (min-width: 60rem) {
  .hero {
    padding: 4.5rem 0 4.5rem;
  }

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

/* --- Accueil : fonctionnalités ------------------------------------------ */

.features {
  padding: 3.5rem 0;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.feature-list li + li {
  margin-top: 0;
}

.feature {
  padding: 0 1rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon svg {
  width: 1.625rem;
  height: 1.625rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.feature p {
  max-width: 17rem;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 36rem) {
  .feature {
    padding: 0;
  }

  .feature h3 {
    font-size: 1.25rem;
  }

  .feature p {
    font-size: 0.875rem;
  }
}

@media (min-width: 64rem) {
  .feature-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .feature-list .feature + .feature {
    border-left: 1px solid var(--rule);
  }
}

/* --- Accueil : communauté ----------------------------------------------- */

.community {
  padding: 4rem 0;
  background: var(--cream-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.community-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.screens {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-sheet);
  background: linear-gradient(160deg, #fbe2e8 0%, #f6e7da 100%);
}

.screens .phone {
  width: min(11rem, 31%);
  border-width: 0.3125rem;
  border-radius: 1.25rem;
  box-shadow: 0 12px 26px rgb(92 9 38 / 14%);
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.875rem);
  line-height: 1.1;
}

.title-accent {
  color: var(--brand);
}

.section-text {
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.section-text + .button {
  margin-top: 0.75rem;
}

@media (min-width: 60rem) {
  .community-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3.5rem;
  }
}

/* --- Accueil : bêta fermée ---------------------------------------------- */

.beta {
  padding: 4rem 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgb(255 246 238 / 55%) 0%, rgb(255 246 238 / 0%) 70%),
    linear-gradient(115deg, #fbe8dc 0%, #f4cfbc 50%, #ebb8a8 100%);
}

.beta-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.beta-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-sheet);
  background: var(--cream);
  box-shadow: var(--shadow);
}

.beta-card .section-title {
  font-size: clamp(1.875rem, 1.45rem + 1.8vw, 2.5rem);
}

.beta-card p {
  color: var(--ink-soft);
}

.beta-card .button {
  margin-top: 0.5rem;
}

.beta-note {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
}

.benefits {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li + li {
  margin-top: 0;
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-card);
  background: rgb(255 246 238 / 88%);
}

.benefit-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.benefit-icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.benefit h3 {
  margin: 0 0 0.125rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.benefit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 60rem) {
  .beta-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
  }

  .beta-card {
    padding: 2.5rem 2.5rem 2.25rem;
  }
}

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

/* Bandeau de titre, étendu sur toute la largeur sans débordement horizontal. */
.page-head {
  padding: 3rem 0 2.25rem;
  background: var(--cream-deep);
  box-shadow: 0 0 0 100vmax var(--cream-deep);
  clip-path: inset(0 -100vmax);
}

.page-head h1 {
  max-width: 22ch;
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: clamp(2.125rem, 1.55rem + 2.6vw, 3.25rem);
  line-height: 1.08;
}

.updated {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* L'introduction d'un texte long, lisible d'emblée, avant le sommaire. */
.page-head .intro,
.page-head .page-note {
  max-width: var(--measure);
  margin: 1.25rem 0 0;
}

.page-head .intro {
  font-size: 1.125rem;
  line-height: 1.65;
}

.page-head .page-note {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.prose {
  max-width: var(--measure);
  padding: 2.5rem 0 4rem;
  line-height: 1.75;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  line-height: 1.2;
  scroll-margin-top: 1.5rem;
}

.prose > h2:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1.0625rem;
  scroll-margin-top: 1.5rem;
}

.prose ul li::marker {
  color: var(--brand);
}

.prose ol li::marker {
  color: var(--brand);
  font-weight: 600;
}

.prose .intro {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Textes juridiques longs : sommaire en colonne fixe sur grand écran, en carte ailleurs. */
.legal-aside .toc {
  margin: 2.5rem 0 0;
}

@media (min-width: 64rem) {
  .legal {
    display: grid;
    grid-template-columns: 16rem minmax(0, var(--measure));
    gap: 4rem;
    align-items: start;
  }

  .legal-aside {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding-bottom: 1.5rem;
  }
}

.toc {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.375rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: var(--card);
}

.toc-title {
  margin: 0 0 0.625rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 1.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.toc li + li {
  margin-top: 0.4375rem;
}

.toc li::marker {
  color: var(--brand);
  font-weight: 600;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.note,
.warn {
  margin: 1.5rem 0;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: var(--brand-soft);
}

.warn {
  border-left-color: var(--amber);
  background: var(--amber-soft);
}

.note > :last-child,
.warn > :last-child {
  margin-bottom: 0;
}

/* Un point juridique en attente de validation : il reste visible et ne passe
   jamais pour une clause ou un fait établi. */
.pending {
  margin: 1.25rem 0;
  padding: 0.875rem 1.125rem;
  border: 1px dashed var(--brand-border);
  border-radius: var(--radius-card);
  background: var(--cream-deep);
}

.pending > :last-child {
  margin-bottom: 0;
}

.pending-label {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Un tableau défile seul sur un petit écran, jamais la page. */
.table-wrap {
  margin: 0 0 1.25rem;
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.table-wrap th,
.table-wrap td {
  padding: 0.625rem 0.75rem 0.625rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  font-weight: 600;
}

.table-wrap thead th {
  color: var(--brand);
}

dl.providers {
  margin: 0 0 1rem;
}

dl.providers dt {
  margin-top: 1rem;
  font-weight: 600;
}

dl.providers dd {
  margin: 0.125rem 0 0;
  color: var(--ink-soft);
}

.page-end {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

/* --- Suppression de compte et contact ----------------------------------- */

.method {
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sheet);
  background: var(--card);
  box-shadow: var(--shadow);
}

.prose .method h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.method-label {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin: 0 0 1.25rem;
}

.ui {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-chip);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Une flèche voyage avec l'élément qu'elle désigne : un retour à la ligne ne la laisse jamais seule. */
.path .hop {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.path .sep {
  color: var(--ink-soft);
}

.steps {
  counter-reset: step;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.steps > li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: step;
}

.steps > li + li {
  margin-top: 0.875rem;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.0625rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--cream);
  font-size: 0.8125rem;
  font-weight: 600;
}

.email {
  display: inline-block;
  margin: 0.125rem 0 0.25rem;
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --- Page introuvable ---------------------------------------------------- */

.not-found {
  max-width: 34rem;
  padding: 4rem 0 4.5rem;
}

.not-found .brand-mark {
  height: 3.5rem;
  margin-bottom: 1.5rem;
}

.not-found h1 {
  margin: 0 0 1rem;
  color: var(--brand);
  font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.25rem);
}

.not-found ul {
  margin-top: 1.5rem;
}

.not-found li::marker {
  color: var(--brand);
}

/* --- Petits écrans ------------------------------------------------------- */

@media (max-width: 36rem) {
  :root {
    --gutter: 1rem;
  }

  .brand-name {
    font-size: 1.375rem;
  }

  .brand-mark {
    height: 2.25rem;
  }

  .page-head {
    padding-top: 2.25rem;
  }

  .prose h2 {
    margin-top: 2.5rem;
  }

  .method {
    padding: 1.375rem 1.125rem 0.5rem;
  }

  .store {
    min-width: 0;
    flex: 1 1 8.5rem;
  }
}

/* --- Impression ---------------------------------------------------------- */

@media print {
  :root {
    --cream: #ffffff;
    --cream-deep: #ffffff;
    --card: #ffffff;
    --ink: #000000;
    --ink-soft: #333333;
  }

  .site-nav,
  .header-cta,
  .menu,
  .skip-link,
  .footer-grid,
  .legal-aside {
    display: none;
  }

  .page-head {
    box-shadow: none;
  }

  .legal {
    display: block;
  }
}
