/* Hobee : socle du site (tokens de l'app, polices auto-hébergées, composants de base). */

@font-face {
  font-family: 'Fraunces Hobee';
  src: url('/assets/fonts/fraunces-soft.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces Hobee';
  src: url('/assets/fonts/fraunces-soft-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Hobee';
  src: url('/assets/fonts/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* palette de l'app (src/constants/theme.ts) */
  --creme: #fff7f0;
  --surface: #fffdfa;
  --sable: #f3eae0;
  --sable-2: #eadfd2;
  --encre: #2e2a26;
  --gris: #6b635c;
  --trait: #827f7d;
  --corail: #e8a45d;
  --terre: #b05716;
  --terre-fonce: #8f4611;
  --vert: #9cc283;
  --bleu: #5b9df0;
  --ambre: #ffc24b;
  --lilas: #b9a6e0;
  --galet: #b39ecb;
  --peche: #f8e0c9;
  --menthe: #e4f0d4;
  --ciel: #dbeaf9;
  --lilas-clair: #eae2f7;
  --jaune-clair: #fbebbd;
  --vif-violet: #b39de8;
  --vif-rose: #f5b8cf;
  --vif-ciel: #8bbdf5;

  --titre: 'Fraunces Hobee', 'Fraunces', Georgia, serif;
  --texte: 'Nunito Hobee', 'Nunito', ui-rounded, -apple-system, 'Segoe UI', sans-serif;

  --r-pilule: 999px;
  --r-hero: 28px;
  --r-carte: 20px;
  --r-champ: 14px;
  --ombre-pose: 0 1px 3px rgba(46, 42, 38, 0.08), 0 1px 1px rgba(46, 42, 38, 0.04);
  --ombre-flottant: 0 6px 12px rgba(46, 42, 38, 0.1), 0 18px 36px -12px rgba(46, 42, 38, 0.18);
  --sortie: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--creme);
  color: var(--encre);
  font: 500 17px/1.55 var(--texte);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
::selection {
  background: var(--lilas-clair);
  color: var(--encre);
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--encre);
  outline-offset: 3px;
}

/* Le titre « SuperSoft » : Fraunces, axe SOFT à 100, très gras, peu contrasté */
.titre-rond {
  font-family: var(--titre);
  font-weight: 900;
  font-variation-settings: 'opsz' 24;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-wrap: balance;
}

/* Boutons-pilules (couleur d'action unique : la terre cuite) */
.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: var(--r-pilule);
  font: 800 16px/1 var(--texte);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition-property: transform, background-color, box-shadow;
  transition-duration: 0.18s;
  transition-timing-function: var(--sortie);
}
.bouton:active {
  transform: scale(0.96);
}
.bouton-action {
  background: var(--terre);
  color: var(--creme);
  box-shadow: 0 10px 22px -10px rgba(143, 70, 17, 0.7);
}
.bouton-action:hover {
  background: var(--terre-fonce);
}
.bouton-clair {
  background: var(--surface);
  color: var(--encre);
  box-shadow: var(--ombre-pose);
}
.bouton-clair:hover {
  background: var(--creme);
}
.bouton-contour {
  background: var(--surface);
  color: var(--encre);
  box-shadow: inset 0 0 0 2px var(--trait);
}

.visuellement-cache {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
