/* Pingclip — feuille de style du site (design system validé le 21/11/2026) */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --nuit: #0e1116;
  --nuit-raised: #171b22;
  --hairline: #2a303a;
  --signal: #ff7a1a;
  --on-signal: #0e1116;
  --craie: #f4f1ea;
  --brume: #9aa3af;

  --display: "Space Grotesk", system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--nuit);
  color: var(--craie);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: var(--craie);
  text-decoration: underline;
  text-decoration-color: var(--brume);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-color: var(--craie);
}
a:focus-visible {
  outline: 2px solid var(--craie);
  outline-offset: 3px;
  border-radius: 2px;
}

p {
  margin: 0;
}

.conteneur {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.conteneur-texte > * {
  max-width: 720px;
}

/* En-tête */

.entete {
  padding-block: var(--space-6);
}
.entete a {
  display: inline-block;
}
.entete img {
  height: 36px;
  width: auto;
}

/* Typographie */

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 68px;
  letter-spacing: -1px;
  margin: 0;
}

h1,
.h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 44px;
  margin: 0;
}

h2,
.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  margin: 0;
}

h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

.chapeau {
  font-size: 18px;
  line-height: 28px;
}

.legende {
  font-size: 13px;
  line-height: 18px;
  color: var(--brume);
}

/* Bouton d'action principal : le seul élément orange de l'écran, avec le logo */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--signal);
  color: var(--on-signal);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}
.bouton:hover {
  background: #ff8a33;
}
.bouton:focus-visible {
  outline: 2px solid var(--craie);
  outline-offset: 3px;
  border-radius: var(--radius-pill);
}

/* Accueil */

.ouverture {
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: var(--space-10) calc(var(--space-10) * 2);
}
.ouverture-texte {
  display: grid;
  gap: var(--space-6);
}
.ouverture-texte .actions {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.message {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.message figcaption {
  font-size: 13px;
  line-height: 18px;
  color: var(--brume);
}
.bulle {
  background: var(--nuit-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-2);
}
.bulle .bulle-titre {
  font-weight: 600;
}
.bulle .bulle-pied {
  color: var(--brume);
}

.etapes {
  padding-block: 0 calc(var(--space-10) * 2);
  display: grid;
  gap: var(--space-6);
}
.etapes ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.etapes li {
  background: var(--nuit-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.etapes .numero {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  color: var(--brume);
}
.etapes li p {
  color: var(--brume);
}

/* Pages légales */

.legal {
  padding-block: var(--space-6) calc(var(--space-10) * 2);
}
.legal > * + * {
  margin-top: var(--space-4);
}
.legal .version {
  margin-top: var(--space-3);
}
.legal .intro {
  margin-top: var(--space-6);
}
.legal h2 {
  margin-top: var(--space-10);
}
.legal h2 + * {
  margin-top: var(--space-4);
}
.legal ul {
  margin-bottom: 0;
  padding-left: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
.legal li::marker {
  color: var(--brume);
}

.adresse {
  font-style: normal;
  display: grid;
  gap: var(--space-1);
}

.traitements {
  display: grid;
  gap: var(--space-4);
}
.carte {
  background: var(--nuit-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: grid;
  gap: var(--space-4);
}
.carte dl {
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.carte dl > div {
  display: grid;
  gap: var(--space-1);
}
.carte dt {
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  color: var(--brume);
}
.carte dd {
  margin: 0;
}

.destinataires {
  list-style: none;
  padding: 0 !important;
  margin-bottom: 0;
  border-top: 1px solid var(--hairline);
  display: block !important;
}
.destinataires li {
  border-bottom: 1px solid var(--hairline);
  padding-block: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.destinataires .lieu {
  font-size: 13px;
  line-height: 18px;
  color: var(--brume);
}

/* Page introuvable */

.introuvable {
  padding-block: calc(var(--space-10) * 2);
  display: grid;
  gap: var(--space-6);
  justify-items: start;
}

/* Pied de page */

.pied {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-10);
}
.pied .conteneur {
  display: grid;
  gap: var(--space-3);
  font-size: 13px;
  line-height: 18px;
  color: var(--brume);
}
.pied nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.pied nav a {
  font-size: 14px;
  line-height: 20px;
}

/* Grands écrans */

@media (min-width: 880px) {
  .ouverture {
    grid-template-columns: 7fr 5fr;
    gap: calc(var(--space-10) * 1.5);
    padding-block: calc(var(--space-10) * 1.5) calc(var(--space-10) * 2.5);
  }
  .etapes ol {
    grid-template-columns: repeat(3, 1fr);
  }
  .carte dl > div {
    grid-template-columns: 132px 1fr;
    gap: var(--space-4);
  }
  .destinataires li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: var(--space-4);
  }
  .destinataires .lieu {
    text-align: right;
  }
}

/* Petits écrans */

@media (max-width: 560px) {
  .conteneur {
    padding-inline: var(--space-5);
  }
  .display {
    font-size: 46px;
    line-height: 50px;
  }
  h1,
  .h1 {
    font-size: 32px;
    line-height: 36px;
  }
  h2,
  .h2 {
    font-size: 24px;
    line-height: 30px;
  }
  .ouverture-texte .actions,
  .bouton {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .bouton {
    transition: background-color 120ms ease;
  }
}
