img {
  max-width: 100%;
  width: 500px;
  display: block;
  margin: 1em auto;
}

img.wide {
  width: 100%;
}

img.small {
  width: 145px;
}

/* === JavaScript: Jaune === */
pre.custom-js {
  position: relative;
  background-color: #fffbe6;
  border-left: 5px solid #f7df1e;
  padding: 1em;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

pre.custom-js::before {
  content: "JavaScript";
  background-color: #000;
  color: #f7df1e;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 0.5em;
  display: inline-block;
}

pre.custom-js::after {
  content: "";
  /* background-image: url("img/js-icon.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

/* === HTML: Bleu === */
pre.custom-html {
  position: relative;
  background-color: #e6f3ff;
  border-left: 5px solid #005f99;
  padding: 1em;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

pre.custom-html::before {
  content: "HTML";
  background-color: #005f99;
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 0.5em;
  display: inline-block;
}

pre.custom-html::after {
  content: "";
  /* background-image: url("img/html-icon.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

/* === CSS: Rose Violet === */
pre.custom-css {
  position: relative;
  background-color: #fce4ec; /* rose très pâle */
  border-left: 5px solid #8e24aa; /* violet soutenu */
  padding: 1em;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

pre.custom-css::before {
  content: "CSS";
  background-color: #8e24aa; /* même violet soutenu */
  color: #fff;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 0.5em;
  display: inline-block;
}

pre.custom-css::after {
  content: "";
  /* background-image: url("img/css-icon.png"); */
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}
/* === url: gris === */
pre.custom-url {
  position: relative;
  background-color: #f0f0f0;
  border-left: 5px solid #737373;
  padding: 1em;
  border-radius: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
  white-space: pre-wrap; /* garde les sauts de ligne */
  color: #333;
}

/* style pour le texte comme du code */
pre.custom-url code {
  font-family: "Fira Code", monospace;
  background-color: #e8e8e8;
  padding: 0.1em 0.3em;
  border-radius: 4px;
  color: #d6336c; /* ou #0074d9 si tu veux du bleu */
}

pre.custom-url::before {
  content: "Copiez-collez dans votre navigateur";
  background-color: #000;
  color: #ffffff;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8em;
  margin-bottom: 0.5em;
  display: inline-block;
}

pre.custom-url::after {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

pre.custom-url::after {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.disclaimer {
  background: #f7e3fa;
  padding: 10px;
  max-width: 700px;
  width: fit-content;
  align-items: center;
  font-size: 24px;
  border: 0px solid;
}

#credit {
  padding: 10px;
  max-width: 700px;
  width: fit-content;
  font-size: 20px;
  border: 0px solid;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center; /* centre le texte à l'intérieur du bloc */
}
