/* Styles pour la page de consignes */

/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
  padding: 20px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Typographie */
h1, h2, h3, h4, h5, h6 {
  color: #1A2C6A;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid #F9A11E;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #1A2C6A;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #F9A11E;
  text-decoration: underline;
}

/* Sections */
section {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Code */
pre {
  background-color: #f5f5f5;
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

code {
  font-family: monospace;
  font-size: 0.9rem;
}

/* Exemples de polices */
.font-examples {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0;
}

.font-example {
  font-size: 1.2rem;
  padding: 0.5rem;
  background-color: #f5f5f5;
  border-radius: 4px;
}

/* Grille de couleurs */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.color-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
}

.color-box {
  height: 100px;
  width: 100%;
}

.color-info {
  padding: 0.8rem;
  background-color: #fff;
}

.color-name {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.color-hex {
  font-family: monospace;
  color: #666;
}

/* Grille d'icônes */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.icon-item {
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  background-color: #fff;
}

.icon-preview {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 4px;
}

/* Sections de texte */
.text-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.text-list {
  list-style-type: none;
  margin-left: 1rem;
}

.text-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed #ddd;
}

.text-list li:last-child {
  border-bottom: none;
}

/* Media Queries */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 20px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.7rem;
  }
  
  h3 {
    font-size: 1.3rem;
  }
  
  .color-grid, .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}
