/* RESET SIMPLE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
  line-height: 1.6;
  padding: 60px;
  max-width: 900px;
  margin: auto;
}

/* TITRES */
h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 60px;
  color: #1a1a1a;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

h3 {
  font-size: 18px;
  margin-bottom: 25px;
}

/* SECTION PRINCIPALE */
section {
  margin-bottom: 80px;
}

/* TEXTE */
p {
  margin-bottom: 20px;
  max-width: 650px;
}

/* CODE */
pre {
  background: #f0f0f0;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  border-left: 4px solid #3b82f6; /* ligne bleu pour code */
}

/* EXEMPLES */
.exemple {
  background: #eeeeee;
  padding: 20px;
  margin-top: 10px;
  border-left: 4px solid #3b82f6; /* petit accent bleu */
}

/* GRID CARTES */
.cartes-balises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* CARTES */
.carte-balise {
  text-decoration: none;
  color: black;
  border: 1px solid #ddd;
  padding: 25px;
  background: white;
  transition: all 0.2s ease;
  border-radius: 8px;
}

/* TITRE CARTE */
.carte-balise h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1a1a1a;
}

/* TEXTE CARTE */
.carte-balise p {
  font-size: 14px;
  color: #555;
}

/* HOVER CARTE */
.carte-balise:hover {
  border-color: #3b82f6; /* bleu */
  background: #eff6ff; /* bleu très clair */
  transform: translateY(-3px);
}

/* EXEMPLES INTERACTIFS */
.cursor-example {
  cursor: pointer;
}

.no-select {
  user-select: none;
}

.selection-text::selection {
  background: black;
  color: white;
}

.no-click {
  pointer-events: none;
  background: #ddd;
  padding: 20px;
}

/* BOUTONS */
button {
  padding: 10px 18px;
  border: 1px solid #3b82f6;
  background: #3b82f6;
  color: white;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
}

button:hover {
  background: #1e40af; /* bleu plus foncé au hover */
  border-color: #1e40af;
}
/* DRAWER BASIQUE */
.drawer {
  position: fixed;
  top: 0;
  left: -250px; /* caché à gauche */
  width: 250px;
  height: 100%;
  background: #4ecdc4; /* couleur principale */
  color: white;
  padding: 40px 20px;
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease;
  z-index: 1000;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* TITRE DU DRAWER */
.drawer h3 {
  margin-bottom: 30px;
  color: #ffe66d;
  font-size: 24px;
}

/* LIENS */
.drawer ul {
  list-style: none;
  padding: 0;
}

.drawer ul li {
  margin-bottom: 20px;
}

.drawer ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s;
}

.drawer ul li a:hover {
  color: #ff6b6b; /* accent au hover */
}

/* BOUTON MENU */
.drawer-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #ff6b6b;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1100;
  transition: background 0.2s;
}

.drawer-button:hover {
  background: #e55a5a;
}

/* TOGGLE DRAWER */
#drawer-toggle:checked ~ .drawer {
  left: 0; /* le drawer apparaît */
}

/* OPTIONNEL : fond semi-transparent quand ouvert */
#drawer-toggle:checked ~ .drawer::after {
  content: "";
  position: fixed;
  top: 0;
  left: 250px;
  width: calc(100% - 250px);
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: -1;
}
