/*
 * Style provisoire de l'appli : jetons et règles dans docs/design/README.md.
 * Mobile d'abord (390 px), centré et limité en largeur sur desktop.
 */

/* Nunito servie par l'appli elle-même : aucun appel à un service tiers. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/nunito-latin-ext-wght-normal-f2973fe8.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/nunito-latin-wght-normal-8d9cc785.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fond: #F4F2FA;
  --carte: #FFFFFF;
  --texte: #1F1B3A;
  --texte-secondaire: #5B5675;
  --accent: #4338CA;
  --sur-accent: #FFFFFF;
  --fond-secondaire: #E7E5F7;
  --bordure: #DDD9F0;
  --matin-fond: #FFF1D6;
  --matin-icone: #B45309;

  --rayon-carte: 24px;
  --rayon-bouton: 16px;
}

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

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--fond);
  color: var(--texte);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
}

h1, h2, p {
  margin: 0;
}

.ecran {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 56px 24px 32px;
}

.entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.entete__titres {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.entete__date {
  font-size: 15px;
  font-weight: 600;
  color: var(--texte-secondaire);
}

.entete__salut {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
}

.bouton-icone {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--carte);
  color: var(--texte);
  cursor: pointer;
}

.carte {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border-radius: var(--rayon-carte);
  background: var(--carte);
}

.carte__entete {
  display: flex;
  align-items: center;
  gap: 12px;
}

.carte__titres {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carte__titre {
  font-size: 20px;
  font-weight: 800;
}

.carte__detail {
  font-size: 15px;
  color: var(--texte-secondaire);
}

.pastille {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--rayon-bouton);
}

.pastille--matin {
  background: var(--matin-fond);
  color: var(--matin-icone);
}

.pastille--soir,
.pastille--cle {
  background: var(--fond-secondaire);
  color: var(--accent);
}

.bouton-principal {
  height: 56px;
  border: none;
  border-radius: var(--rayon-bouton);
  background: var(--accent);
  color: var(--sur-accent);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.bouton-principal:focus-visible,
.bouton-icone:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.pied {
  margin-top: auto;
  font-size: 15px;
  color: var(--texte-secondaire);
  text-align: center;
}

.carte__texte {
  font-size: 16px;
  line-height: 1.5;
  color: var(--texte-secondaire);
}

/* Les liens qui ont l'allure d'un bouton principal (écran de lien périmé). */
a.bouton-principal {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.bouton-principal:disabled {
  opacity: 0.6;
  cursor: progress;
}

.message {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--texte);
  text-align: center;
}
