/* ============================================
   CSS pour .regular - Kanbios
   Basé sur: le-neo-brutalisme-dans-le-design-dinterfaces-digitales
   Police: Montserrat (Google Fonts)
   ============================================ */

/* IMPORTANT: Importer Montserrat depuis Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

* {
  padding: 0;
  margin: 0;
}

/* Conteneur principal */
.regular {
  padding: 0;
  margin: 0;
}

/* Paragraphes */
.regular p {
  margin: 0 0 16px 0;
  padding: 0;
  line-height: 24px;
  font-size: 16px;
  font-weight: 400;
  color: rgb(16, 16, 16);
  font-family: 'Montserrat', sans-serif;
}

/* Premier paragraphe - pas de margin-top */
.regular p:first-child {
  margin-top: 0;
}

/* Dernier paragraphe - pas de margin-bottom */
.regular p:last-child {
  margin-bottom: 0;
}

/* Strong / Gras */
.regular strong {
  font-weight: 700;
  color: rgb(16, 16, 16);
}

/* Emphasis / Italique */
.regular em {
  font-style: italic;
  color: inherit;
}

/* Liens (si présents) */
.regular a {
  color: #0066cc;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.regular a:hover {
  color: #0052a3;
}

.regular a:active {
  color: #003d7a;
}

/* Non-breaking spaces et espacements spéciaux */
.regular nbsp {
  margin: 0 0.2em;
}

/* Listes (si présentes) */
.regular ul,
.regular ol {
  margin: 0 0 16px 2rem;
  padding: 0;
  line-height: 21px;
}

.regular li {
  margin: 0 0 7px 0;
  padding: 0;
  font-size: 16px;
  color: rgb(16, 16, 16);
  font-weight: 400;
}

.regular ul li {
  list-style-type: disc;
  list-style-position: outside;
}

.regular ol li {
  list-style-type: decimal;
  list-style-position: outside;
}

/* Blockquotes (si présentes) */
.regular blockquote {
  margin: 1.5rem 0 1.5rem 2rem;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 4px solid #cccccc;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  font-style: italic;
}

/* Code inline (si présent) */
.regular code {
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  background-color: #f5f5f5;
  color: #d63384;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
}

/* Code blocks (si présents) */
.regular pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background-color: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: #333333;
}

.regular pre code {
  background-color: transparent;
  color: #333333;
  padding: 0;
  border-radius: 0;
}

/* Marques/highlights (si présents) */
.regular mark {
  background-color: #ffeb3b;
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

/* Underline (si présent) */
.regular u {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Petite texte (si présent) */
.regular small {
  font-size: 14px;
  line-height: 1.6;
}

/* Espaces et alignements responsive */
.regular > * {
  box-sizing: border-box;
}

/* Gestion des images si présentes */
.regular img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* Sélection de texte */
.regular ::selection {
  background-color: #0066cc;
  color: #ffffff;
}

.regular ::-moz-selection {
  background-color: #0066cc;
  color: #ffffff;
}

/* Mode sombre - optionnel mais recommandé */
@media (prefers-color-scheme: dark) {
  .regular p {
    color: #e0e0e0;
  }
  
  .regular strong {
    color: #ffffff;
  }
  
  .regular a {
    color: #66b3ff;
  }
  
  .regular a:hover {
    color: #99ccff;
  }
  
  .regular a:active {
    color: #4d99ff;
  }
  
  .regular blockquote {
    color: #b0b0b0;
    border-left-color: #555555;
  }
  
  .regular code {
    background-color: #2a2a2a;
    color: #ff6b9d;
  }
  
  .regular pre {
    background-color: #1e1e1e;
    color: #e0e0e0;
  }
  
  .regular ::selection {
    background-color: #66b3ff;
    color: #1a1a1a;
  }
  
  .regular ::-moz-selection {
    background-color: #66b3ff;
    color: #1a1a1a;
  }
}
