/* guides.css - Styles spécifiques à la page Guides */

.guides-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
  }
  
  .guide-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 20px -5px var(--shadow);
  }
  
  .guide-icon {
    height: 120px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .guide-icon i {
    font-size: 3rem;
    color: white;
  }
  
  .guide-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .guide-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
  }
  
  .guide-description {
    margin-bottom: 1rem;
    flex-grow: 1;
  }
  
  .guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  /* Modal styles */
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
  }
  
  .modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
  }
  
  .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
  }
  
  .close-modal:hover {
    color: var(--primary);
  }
  
  #guide-content {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.8;
  }
  
  #guide-content h1, #guide-content h2, #guide-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
  }
  
  #guide-content h1 {
    font-size: 2rem;
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.5rem;
  }
  
  #guide-content h2 {
    font-size: 1.6rem;
    text-align: left;
  }
  
  #guide-content h3 {
    font-size: 1.3rem;
  }
  
  #guide-content p {
    margin-bottom: 1rem;
  }
  
  #guide-content ul, #guide-content ol {
    margin-bottom: 1rem;
    margin-left: 1.5rem;
  }
  
  #guide-content li {
    margin-bottom: 0.5rem;
  }
  
  #guide-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
  }
  
  #guide-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
  }
  
  #guide-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    color: #666;
    margin: 1rem 0;
  }
  
  #guide-content img {
    max-width: 100%;
    border-radius: 5px;
    margin: 1rem 0;
  }
  
  .loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--secondary);
  }
  
  .loading i {
    animation: spin 1s infinite linear;
    margin-right: 0.5rem;
    color: var(--primary);
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @media (max-width: 768px) {
    .guides-container {
      grid-template-columns: 1fr;
    }
    
    .modal-content {
      width: 95%;
      margin: 10% auto;
    }
  }