/* DA « pop riso » (voir CLAUDE.md). */

/* Polices hébergées sur ptimo.app (licence OFL dans /fonts) : aucun appel à Google Fonts. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/BricolageGrotesque-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: 'Gochi Hand';
  src: url('/fonts/GochiHand-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bonbon: #ff4f8b;
  --bleu: #2f4bff;
  --citron: #ffd23f;
  --lait: #f6f4fb;
  --encre: #1a1a2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bonbon);
  color: var(--encre);
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 440px;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo {
  margin: 0;
  font-size: 72px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--lait);
  text-shadow: 5px 5px 0 var(--bleu);
}

h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.card {
  padding: 22px;
  border: 3px solid var(--encre);
  border-radius: 28px;
  background: var(--citron);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.card-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code {
  font-family: 'Gochi Hand', cursive;
  font-size: 58px;
  line-height: 1;
  letter-spacing: 0.06em;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--encre);
  color: var(--lait);
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--bleu);
  cursor: pointer;
}

.button:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.soon {
  height: 60px;
  border: 2px dashed var(--encre);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
}

.small {
  font-size: 15px;
}

/* Page d'accueil : date de sortie, aperçu du widget et liste d'attente. */
.date {
  align-self: flex-start;
  padding: 8px 16px;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--citron);
  font-weight: 800;
}

.preview {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  align-self: center;
  border: 2px solid var(--encre);
  border-radius: 28px;
  box-shadow: 4px 4px 0 var(--encre);
}

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  border: 2px solid var(--encre);
  border-radius: 999px;
  background: var(--lait);
  color: var(--encre);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
}

.field::placeholder {
  color: var(--encre);
  opacity: 0.45;
}

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

.field:disabled {
  opacity: 0.6;
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.status {
  font-weight: 600;
}

.status.error {
  padding: 8px 16px;
  border: 2px solid var(--encre);
  border-radius: 14px;
  background: var(--lait);
}

.waitlist.done .status {
  padding: 12px 16px;
  border: 2px solid var(--encre);
  border-radius: 14px;
  background: var(--citron);
  font-weight: 800;
}

.trap {
  position: absolute;
  left: -9999px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: var(--encre);
}

/* Pages légales (/cgu, /confidentialite) : fond Lait, texte long. */
body.legal {
  background: var(--lait);
}

.legal main {
  max-width: 680px;
  gap: 16px;
}

.legal .logo {
  font-size: 44px;
  color: var(--bonbon);
  text-shadow: 3px 3px 0 var(--bleu);
  text-decoration: none;
}

.legal h1 {
  margin-top: 16px;
}

.legal h2 {
  margin: 24px 0 0;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.2;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
  font-size: 17px;
  line-height: 1.45;
}

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

.legal .updated {
  font-size: 15px;
  font-weight: 600;
}

.legal footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 2px solid var(--encre);
  font-size: 15px;
}
