/* Site de PATATE : mêmes couleurs, polices et ombres « sticker » que l'app. */
:root {
  --cream: #fff3d6;
  --ink: #16120e;
  --ink-soft: #2b231b;
  --potato: #ffc93c;
  --ember: #ff4a1c;
  --white: #ffffff;
  --muted: #6b5a45;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.entete {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-decoration: none;
}

.entete img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 3px solid var(--ink);
}

.entete span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin: 0 0 12px;
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  margin: 40px 0 8px;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  margin: 24px 0 4px;
}

.chapeau {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 24px;
}

.maj {
  font-size: 14px;
  color: var(--muted);
}

.carte {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 5px 5px 0 var(--ink);
  margin: 24px 0;
}

.carte.jaune {
  background: var(--potato);
}

.carte p:first-child,
.carte h2:first-child,
.carte h3:first-child {
  margin-top: 0;
}

.carte p:last-child {
  margin-bottom: 0;
}

.bouton {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--ember);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
}

.bouton:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.bouton.blanc {
  background: var(--white);
}

.bouton.encre {
  background: var(--ink);
  color: var(--potato);
}

.bouton[aria-disabled='true'] {
  opacity: 0.5;
  pointer-events: none;
}

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

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

li {
  margin: 6px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 2px solid #e4d8c0;
}

th {
  font-family: var(--display);
  font-weight: 600;
}

.tableau {
  overflow-x: auto;
}

.pied {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 3px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
}

/* Page d'invitation */
.invitation {
  text-align: center;
}

.code {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 4px;
}

.code span {
  width: 46px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
}

@media (max-width: 380px) {
  .code span {
    width: 40px;
    height: 52px;
    font-size: 26px;
  }
}

.etapes {
  text-align: left;
}

.note {
  font-size: 14px;
  color: var(--muted);
}
