/*
 * Reset minimal. On ne fait pas un reset agressif car Blocksy a déjà
 * un bon reset. On neutralise juste ce qui diffère.
 */

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

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

body {
  margin: 0;
  background: var(--lpc-bg);
  color: var(--lpc-ink);
  font-family: var(--lpc-font-body);
  font-size: var(--lpc-fs-body);
  line-height: var(--lpc-lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Override Blocksy's inline body bg + CSS variables couleurs boutons
   (specificity html body 0,0,2 beats Blocksy's :root 0,0,1) */
html body {
  background: var(--lpc-bg);

  /* Blocksy utilise ces variables partout pour ses boutons — on les override globalement */
  --theme-button-background-initial-color: var(--lpc-terra);
  --theme-button-background-hover-color: var(--lpc-terra-dark);
  --theme-button-text-initial-color: var(--lpc-bg);
  --theme-button-text-hover-color: var(--lpc-bg);
}

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

/* img en block : recentre les images alignées au centre dans l'éditeur */
.aligncenter img { margin-inline: auto; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  color: inherit;
}

a {
  color: var(--lpc-terra);
  text-decoration: none;
  transition: color var(--lpc-t-fast);
}

a:hover {
  color: var(--lpc-terra-dark);
}

/* Focus visible accessible */
:focus-visible {
  outline: 2px solid var(--lpc-terra);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Suppression marges par défaut sur les éléments courants */
h1, h2, h3, h4, h5, h6, p, figure, blockquote {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
