/*
 * PasPigeon, le site aux couleurs de l'app (apps/mobile/theme/colors.ts).
 *
 * Les morceaux de l'app (le SMS, le verdict, le téléphone, le bandeau « Fais
 * ça d'abord », les six tuiles) sont montrés comme des objets, avec une ombre
 * douce. Chaque section a son propre traitement selon ce qu'elle porte : la
 * lavande de l'app pour l'exemple, un panneau blanc pour le fonctionnement,
 * les teintes des tuiles pour les situations, le vert et la lavande de l'app
 * pour ce qui reste et ce qui part. La police est celle du système, comme dans l'app.
 */

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --text: #0b0f1a;
  --muted: #3e4553;
  --subtle: #6b7280; /* seulement sur du blanc : 4,8:1 */
  --rule: #dadde5;
  --rule-soft: #e4e6ec;

  --accent: #4b32e6;
  --accent-dark: #2e1cb0;
  --accent-soft: #ece9ff;

  --low: #0f7a4f;
  --low-soft: #ddf5e8;
  --critical: #c81e33;
  --critical-soft: #ffe3e3;

  /* Les teintes des six situations, comme sur l'accueil de l'app. */
  --tint-message: #fde7f0;
  --ink-message: #b0245e;
  --tint-link: #e6f1ff;
  --ink-link: #0b5cad;
  --tint-market: #ece9ff;
  --ink-market: #4b32e6;
  --tint-document: #ddf4ee;
  --ink-document: #0b7a62;
  --tint-housing: #fff1cf;
  --ink-housing: #8a5a00;
  --tint-call: #e1ecff;
  --ink-call: #1e4fd1;

  --shadow-soft: 0 1px 2px rgba(11, 15, 26, 0.04), 0 12px 32px rgba(11, 15, 26, 0.07);
  --shadow-lift: 0 2px 6px rgba(11, 15, 26, 0.06), 0 28px 60px rgba(11, 15, 26, 0.16);

  --content: 1160px;
  --measure: 64ch;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

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

p,
li {
  text-wrap: pretty;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
}

/* La planche des pictogrammes : présente dans la page, jamais affichée. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(54px, 7.2vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* --- En-tête : la marque, puis les liens dans une barre blanche, comme un sélecteur iOS ----- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 22px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--text);
}

.nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: var(--bg);
  color: var(--text);
}

.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav-label-compact {
  display: none;
}

/* --- Boutons, comme le bouton « Vérifier » de l'app --------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 24px;
  border-radius: 18px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(75, 50, 230, 0.28);
}

.button-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button-quiet {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.button-quiet:hover {
  color: var(--accent-dark);
}

/* --- Accueil : le SMS reçu et la réponse de l'app, sur la lavande de l'app ---------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  align-items: center;
  gap: 56px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

/* « Un doute ? » tient sur une ligne, comme le titre de l'app. */
.hero h1 {
  white-space: nowrap;
}

.lead {
  max-width: 30ch;
  margin: 26px 0 0;
  font-size: clamp(21px, 2.1vw, 25px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  max-width: 44ch;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.availability::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--low) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stage {
  display: grid;
  padding: 32px 28px 26px;
  border-radius: 40px;
  background: var(--accent-soft);
}

/* La bulle d'un message reçu, avec sa petite queue en bas à gauche. */
.sms {
  position: relative;
  z-index: 1;
  justify-self: start;
  max-width: 37ch;
  margin: 0;
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 17px;
  line-height: 1.4;
}

.sms::after {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-bottom-right-radius: 14px;
  background: var(--surface);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.sms span,
.paste-field span {
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.product-preview,
.urgent-preview {
  display: grid;
  gap: 12px;
  margin: 0;
}

.stage .product-preview {
  justify-self: end;
  width: min(100%, 420px);
  margin-top: 18px;
}

.result-caption {
  margin: 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* --- Le verdict de l'app ------------------------------------------------------------------------ */

.verdict-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 28px;
  background: var(--critical-soft);
  box-shadow: var(--shadow-lift);
}

.verdict-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.risk-pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--critical);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.verdict-headline {
  margin: 12px 0 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.verdict-mascot {
  flex: none;
  width: 80px;
  height: 80px;
}

.meter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.meter span {
  height: 9px;
  border-radius: 5px;
  background: rgba(11, 15, 26, 0.12);
}

.meter .on {
  background: var(--critical);
}

.meter-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: -6px;
  color: var(--muted);
  font-size: 12px;
}

.meter-labels strong {
  color: var(--text);
}

.immediate {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.todo {
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
}

.todo-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
}

.todo ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: todo;
}

.todo li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.4;
  counter-increment: todo;
}

.todo li::before {
  content: counter(todo);
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.seen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seen span {
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  color: #a3172a;
  font-size: 13px;
  font-weight: 700;
}

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

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 44px 24px;
}

.section > h2 {
  margin-bottom: 24px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  max-width: var(--measure);
  margin: 12px 0 0;
  color: var(--muted);
}

.panel {
  border-radius: 32px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

/* Comment ça marche : l'accueil de l'app et trois étapes, dans un même panneau. */

.how {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
  padding: 48px 56px;
}

.steps {
  display: grid;
  gap: 26px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  counter-increment: step;
}

/* La pastille numérotée des listes de l'app. */
.steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 800;
}

.steps h3 {
  padding-top: 6px;
}

.steps p {
  max-width: 56ch;
  margin: 6px 0 0;
  color: var(--muted);
}

.phone {
  width: min(100%, 340px);
  margin: 0;
  padding: 10px;
  border-radius: 44px;
  background: var(--text);
  box-shadow: var(--shadow-lift);
}

.phone-screen {
  display: grid;
  gap: 12px;
  padding: 20px 14px 18px;
  border-radius: 35px;
  background: var(--bg);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.phone-brand img {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--text);
}

.phone-chip {
  padding: 7px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
}

.phone-title {
  margin: 4px 0 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.phone-subtitle {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.paste-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.paste-label,
.phone-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.paste-field {
  margin: 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.45;
}

.paste-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 15px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.phone-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 8px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.phone-tile .icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.phone-tile .icon svg {
  width: 17px;
  height: 17px;
}

/* Tu as déjà cliqué : le texte, les deux services publics et le bandeau rouge de l'app. */

.acted {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  gap: 64px;
}

.acted-text > p {
  max-width: 46ch;
  margin: 16px 0 0;
  color: var(--muted);
}

.official {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.official a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  text-decoration: none;
}

.official a:hover {
  color: var(--accent-dark);
}

.official strong {
  font-size: 20px;
}

.official span {
  color: var(--muted);
}

.urgent-panel {
  padding: 18px;
  border-radius: 28px;
  background: var(--critical);
  color: #fff;
  box-shadow: var(--shadow-lift);
}

.urgent-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 800;
}

.urgent-heading::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: var(--critical);
  font-size: 14px;
  font-weight: 900;
}

.urgent-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
}

.urgent-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.urgent-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-size: 16px;
}

.urgent-index {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--critical);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

/* Les six situations, chacune dans sa teinte de l'app. */

.situations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.situation-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  padding: 20px;
  border-radius: 26px;
}

.situation-card .icon {
  width: 44px;
  height: 44px;
  background: var(--surface);
}

.situation-card h3 {
  color: var(--text);
  font-size: 18px;
}

.situation-card p {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.45;
}

.icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .dots {
  stroke-width: 2.8;
}

.tint-message { background: var(--tint-message); color: var(--ink-message); }
.tint-link { background: var(--tint-link); color: var(--ink-link); }
.tint-market { background: var(--tint-market); color: var(--ink-market); }
.tint-document { background: var(--tint-document); color: var(--ink-document); }
.tint-housing { background: var(--tint-housing); color: var(--ink-housing); }
.tint-call { background: var(--tint-call); color: var(--ink-call); }

/* Confidentialité : ce qui part ou non, et l'écran de l'app où tu choisis. */

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 64px;
}

.privacy h2 {
  max-width: 22ch;
}

.privacy-text {
  max-width: var(--measure);
  margin: 20px 0 0;
  color: var(--muted);
}

.privacy-facts {
  display: grid;
  gap: 8px;
  max-width: var(--measure);
  margin: 20px 0 0;
  padding-left: 20px;
}

.privacy-facts li {
  color: var(--muted);
  font-size: 16.5px;
}

.privacy-facts li::marker {
  color: var(--accent);
}

/* Le panneau « Avant de commencer » de l'app (ImprovementTelemetryNoticeModal). */
.consent-preview {
  display: grid;
  gap: 12px;
  margin: 0;
}

.consent-card {
  display: grid;
  gap: 12px;
  padding: 24px 22px 22px;
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.consent-title {
  margin: 4px 0 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.consent-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.consent-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.consent-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.consent-more span:first-child {
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
}

.consent-primary,
.consent-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
}

.consent-primary {
  min-height: 48px;
  margin-top: 6px;
  background: var(--text);
  color: #fff;
}

.consent-secondary {
  min-height: 46px;
  border: 1px solid var(--rule-soft);
}

/* Ce qui reste, dans le vert de l'app ; ce qui part avec ton accord, dans sa lavande. */
.privacy-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 44px;
}

.privacy-list {
  padding: 24px 28px;
  border-radius: 26px;
}

.privacy-local {
  background: var(--low-soft);
}

.privacy-shared {
  background: var(--accent-soft);
}

.privacy-list p,
.privacy-list li {
  color: var(--muted);
  font-size: 16px;
}

.privacy-list p {
  margin: 10px 0 0;
}

.privacy-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.privacy-list li + li {
  margin-top: 4px;
}

.privacy-more {
  margin: 24px 0 0;
  font-weight: 700;
}

/* Questions fréquentes : un panneau blanc, des filets à l'intérieur. */

.faq {
  max-width: 880px;
  padding: 6px 32px;
}

.faq details + details {
  border-top: 1px solid var(--rule-soft);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

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

.faq details p {
  max-width: var(--measure);
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

/* Le mot de la fin, avec le pigeon pensif de l'app. */

.closing {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: 36px;
  background: var(--accent-soft);
}

.closing-pigeon {
  width: 132px;
  height: 132px;
}

.closing h2 {
  max-width: 26ch;
  font-size: clamp(26px, 3vw, 34px);
}

.closing p {
  max-width: var(--measure);
  margin: 12px 0 0;
  color: var(--muted);
}

/* --- Pages de texte : confidentialité, mentions, aide ------------------------------------------- */

.page {
  display: block;
  max-width: var(--content);
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.page-hero {
  max-width: 780px;
  padding: 16px 0 36px;
}

.page-hero h1 {
  font-size: clamp(40px, 5.6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.page-hero .lead {
  max-width: var(--measure);
  color: var(--muted);
  font-size: 20px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.legal-sidebar {
  position: sticky;
  top: 16px;
  padding: 22px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: 15px;
}

.legal-sidebar h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.legal-sidebar p {
  color: var(--muted);
}

.legal-nav {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}

.legal-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.legal-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Le texte juridique est posé sur une page blanche, comme un document. */
.legal-content {
  padding: 40px 44px;
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-content h2 {
  margin: 40px 0 12px;
  font-size: 26px;
  scroll-margin-top: 16px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 26px 0 8px;
}

.legal-content p,
.legal-content li,
.legal-content address {
  max-width: 62ch;
  color: var(--muted);
}

.legal-content address {
  font-style: normal;
}

.legal-content strong {
  color: var(--text);
}

.legal-content ul,
.legal-content ol {
  padding-left: 22px;
}

.legal-content li + li {
  margin-top: 6px;
}

/* Le tableau garde ses filets, sans second cadre dans la page. */
.legal-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-bottom: 1px solid var(--rule-soft);
}

.legal-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 15px;
}

.legal-table caption {
  padding: 12px 14px;
  color: var(--subtle);
  font-size: 14px;
  text-align: left;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-top: 1px solid var(--rule-soft);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: #f7f8fa;
  color: var(--text);
  font-weight: 700;
}

/* L'aide */

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 18px;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(75, 50, 230, 0.28);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--accent-dark);
  color: #fff;
}

.support-note {
  max-width: var(--measure);
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.support-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.support-choice {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 18px 22px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 18px;
  text-decoration: none;
}

.support-choice:hover {
  color: var(--accent-dark);
}

.support-choice-urgent {
  background: var(--critical);
  color: #fff;
}

.support-choice-urgent:hover {
  background: #a3172a;
  color: #fff;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.support-grid > :first-child {
  grid-column: 1 / -1;
}

.support-grid .legal-content h2 {
  font-size: 24px;
}

.support-list li + li {
  margin-top: 10px;
}

/* La page introuvable */

.error-page {
  display: flex;
  justify-content: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.error-card {
  width: min(100%, 640px);
  padding: 40px;
  border-radius: 36px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.error-card .pigeon {
  width: 112px;
  height: 112px;
  margin: 0 auto 10px;
}

.error-code {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 700;
}

.error-card h1 {
  font-size: clamp(38px, 5.6vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.error-card .lead {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.error-actions .button-quiet {
  background: var(--bg);
  box-shadow: none;
}

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

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 40px;
  max-width: var(--content);
  margin: 24px auto 0;
  padding: 40px 24px 48px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 15px;
}

.footer-brand-block p {
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer-links strong {
  color: var(--text);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  grid-column: 1 / -1;
  font-size: 14px;
}

/* --- Guides des arnaques et page À propos -------------------------------------------------------- */

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--subtle);
}

.breadcrumb a {
  color: var(--muted);
}

.guide-meta {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 24px;
}

.guide-body h2 {
  scroll-margin-top: 16px;
}

.guide-body .sms {
  margin: 14px 0;
  background: var(--bg);
  box-shadow: none;
}

.guide-body .sms::after {
  background: var(--bg);
}

.guide-body ol,
.guide-body ul {
  margin: 12px 0;
}

.sources li {
  font-size: 15px;
}

.guide-aside {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 26px;
  background: var(--accent-soft);
}

.guide-aside h2 {
  font-size: 21px;
}

.guide-aside p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.guide-aside .button {
  min-height: 52px;
  padding: 12px 18px;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
}

.situation-link {
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 15px;
  font-weight: 700;
}

.hub-reflexes,
.hub-help {
  max-width: 860px;
}

.hub-guides {
  margin: 40px 0;
}

.hub-guides h2 {
  margin-bottom: 18px;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-card {
  border-radius: 26px;
}

.guide-card a {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
}

.guide-card strong {
  font-size: 19px;
}

.guide-card span {
  color: var(--muted);
  font-size: 15.5px;
}

.guide-card a:hover strong {
  color: var(--accent-dark);
  text-decoration: underline;
}

.hub-help {
  margin-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.facts {
  display: grid;
  gap: 0;
  margin: 16px 0 24px;
}

.facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--rule-soft);
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-weight: 700;
}

/* --- Écrans moyens ------------------------------------------------------------------------------ */

@media (max-width: 1000px) {
  .hero,
  .how,
  .acted,
  .privacy,
  .legal-layout,
  .guide-layout,
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-aside {
    position: static;
  }

  .guide-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero,
  .how,
  .acted,
  .privacy {
    gap: 40px;
  }

  .stage,
  .urgent-preview,
  .consent-preview {
    max-width: 520px;
  }

  .how {
    padding: 36px;
  }

  .how .phone {
    justify-self: center;
  }

  .situations,
  .support-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-sidebar {
    position: static;
  }
}

/* --- Téléphones --------------------------------------------------------------------------------- */

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 16px 4px;
  }

  /* Les cinq destinations tiennent sur une ligne, avec leur libellé court. */
  .nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  .nav a {
    min-height: 44px;
    padding: 0 2px;
    font-size: 13.5px;
    line-height: 1.15;
    text-align: center;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-compact {
    display: inline;
  }

  .hero {
    padding: 20px 16px 32px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stage {
    padding: 22px 16px 18px;
    border-radius: 30px;
  }

  .section {
    padding: 28px 16px;
  }

  .how {
    padding: 28px 18px;
    border-radius: 28px;
  }

  .situations,
  .privacy-lists,
  .support-choices,
  .support-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .privacy-list {
    padding: 22px 20px;
  }

  .faq {
    padding: 4px 20px;
    border-radius: 24px;
  }

  .closing {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .closing-pigeon {
    width: 92px;
    height: 92px;
  }

  .verdict-headline {
    font-size: 23px;
  }

  .verdict-mascot {
    width: 68px;
    height: 68px;
  }

  .official a {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .page {
    padding: 8px 16px 48px;
  }

  .legal-content {
    padding: 24px 20px;
  }

  .error-card {
    padding: 28px 20px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 40px;
  }
}
