/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* For mobile devices or more generally small devices */
@media only screen and (max-width: 991px) {
  body {
    width: 90%;   /* largeur adaptée au smartphone/tablette */
    background: #000;
    color: #fff;
    font-family: Menlo, Monaco, "Lucida Console", monospace, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
    margin: 0;
    padding: 1rem;
  }

  p, li, ul, ol {
    font-size: 1rem;
  }

  #refs {
    font-size: 1rem;
  }

  ol, ul {
    padding-left: 0.5rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1rem; }
  h6 { font-size: .875rem; }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  body {
    width: 60%;          /* pour les pc */
    max-width: none;
    background: #000;
    color: #fff;
    font-family: Menlo, Monaco, "Lucida Console", monospace, sans-serif;
    font-size: 1.2rem;   
    line-height: 1.8;
    text-align: left;    /* collé à gauche */
    margin: 0;
    padding: 2rem 3rem 2rem 2rem; /* espace interne */
  }

  ol, ul {
    padding-left: 2rem;
  }
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

/* Paragraphes et listes */
p, li {
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

li {
  margin-top: 0.4rem;
}

/* Liens */
a {
  color: #9b6ff5;
  text-decoration: underline dashed;
  text-decoration-thickness: 1.25px;
  text-underline-offset: 0.35em;
}

a:hover, a:focus {
  text-decoration-style: solid;
  text-decoration-thickness: 2.5px;
  color: #c79df7;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Citations */
blockquote {
  padding: 1rem;
  background: #111;
  border-left: 5px solid #222;
  margin-bottom: 1rem;
}

/* Code */
pre, code, kbd, samp {
  font-family: Consolas, monospace;
  background: #111;
  color: #fff;
  border: 1px solid #222;
  border-radius: 4px;
  padding: 4px 6px;
}

pre {
  padding: 1rem;
  overflow-x: auto;
}

/* Tableaux */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #333;
  padding: 0.5rem;
}

th {
  background: #111;
}

/* Formulaires */
input, textarea, select, button {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 6px 12px;
  border-radius: 4px;
}

button {
  background: #9b6ff5;
  color: #fff;
  cursor: pointer;
  border: none;
}

button:hover {
  background: #c79df7;
}

