Revenir à la leçon

Fichier fonctionnel d’origine

style.css

Le code et les pages d’exemple fonctionnelles conservent leurs identifiants et leurs textes d’origine. La leçon et les consignes des fichiers les expliquent dans votre langue.

:root {
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #10212b;
  color: #f4efdf;
  font: 18px/1.6 system-ui;
}
main {
  max-width: 880px;
  margin: 32px auto;
  padding: 24px;
}
h1 {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.15;
}
a {
  color: #9ee2ce;
}
nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
article {
  padding: 22px;
  background: #142d3b;
  border: 1px solid #426775;
  border-radius: 12px;
  margin: 22px 0;
}
label {
  display: block;
}
button,
input,
select {
  font: inherit;
  padding: 10px;
}
button {
  background: #b3dfce;
  color: #112d37;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
input,
select {
  max-width: 100%;
}
.practice-label {
  color: #e5c872;
}
.category {
  color: #203c48;
  font-size: 14px;
}
img {
  max-width: 100%;
  height: auto;
}