/* ===================== RESET ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* ===================== GOOGLE FONT (optionnel) ===================== */
  @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
  
  /* ===================== BASE DU BODY ===================== */
  body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: #333;
  }
  
  /* ===================== HEADER ===================== */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1d1f2a;
    padding: 1rem 2rem;
    color: #fff;
  }
  
  /* Logo */
  .header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
  }
  .header__logo i {
    color: #38c172;
    font-size: 1.5rem;
  }
  
  /* Nav */
  .header__nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
  }
  .header__nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }
  .header__nav a:hover {
    color: #ccc;
  }
  
  /* Actions */
  .header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .social-icons a {
    color: #fff;
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }
  
  /* ===================== FOOTER ===================== */
  footer {
    background: #1d1f2a;
    text-align: center;
    color: #fff;
    padding: 1rem;
    margin-top: 2rem;
  }
  
  /* ===================== PAGE DETAILS ===================== */
  .detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  /* ROW BLOCK : structure de base (texte + image en row) */
  .row-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem; /* Espace horizontal */
  }
  
  /* Variation: texte à gauche, image à droite */
  .row-text-left .text-block {
    order: 1;
  }
  .row-text-left .image-block {
    order: 2;
  }
  
  /* Variation: texte à droite, image à gauche */
  .row-text-right .text-block {
    order: 2;
  }
  .row-text-right .image-block {
    order: 1;
  }
  
  /* Text-block & image-block styles */
  .text-block {
    flex: 1;
  }
  .text-block h1,
  .text-block h2 {
    margin-bottom: 1rem;
    color: #1d1f2a;
  }
  .text-block p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  .image-block {
    flex: 1;
    display: flex;
    justify-content: center;
  }
  .image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  /* Additional info (vidéo / GitHub) */
  .additional-info {
    margin-bottom: 2rem;
  }
  .additional-info h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1d1f2a;
  }
  .video-container {
    max-width: 560px;
    margin: 0 auto;
  }
  .video-container iframe {
    width: 100%;
    height: 315px;
  }
  
  /* Some simple tags styles */
  .details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 1rem 0;
  }
  .details-tags span {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
  }
  .top-project-btn {
    background-color: #38c172;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
  }
  
  /* ===================== RESPONSIVE ===================== */
  @media (max-width: 768px) {
    /* Les row-block passent en colonne */
    .row-block {
      flex-direction: column;
      text-align: center;
    }
    .image-block {
      margin-top: 1rem;
    }
    .row-block .text-block,
    .row-block .image-block {
      order: initial !important;
    }
  }
  