/* ==========================================================================
   Variables Globales du Thème Enfant
   ========================================================================== */

   :root {
    /* Couleurs */
    --color-brand: #e5a909;
    --color-text: #333;
    --color-text-light: #555;
    --color-background: #fff;
    --color-background-alt: #f9f9f9;
    --color-border: #ddd;
    --color-border-light: rgba(0, 0, 0, 0.15);
  
    /* Typographie */
    --font-size-base: 16px; /* 1rem */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-xs: 0.75rem;  /* 12px */
    --font-size-h3: 1.5rem;   /* 24px */
  
    /* Espacements */
    --spacing-xs: 0.5rem;  /* 8px */
    --spacing-sm: 0.75rem; /* 12px */
    --spacing-md: 1.25rem; /* 20px */
    --spacing-lg: 2rem;    /* 32px */
  
    /* Autres */
    --border-radius-sm: 4px;
    --border-radius-md: 10px;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  h3 {
    margin: 1em 0;
  }
  
  h4 + ul { 
      margin-top: 1.5em;
  }
  
  
  /* ==========================================================================
     Styles de la Fiche Produit "Pierre"
     ========================================================================== */
  
  /* Conteneur principal de la fiche
  --------------------------------------------- */
  .fiche-pierre-wrapper {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    background: var(--color-background);
  }
  
  /* Section des détails (nom, origine, couleurs)
  --------------------------------------------- */
  .fiche-pierre-details {
    flex: 2; /* Prend plus de place que la photo sur grand écran */
    min-width: 300px; /* Empêche la section d'être trop écrasée */
  }
  
  .fiche-pierre-details h3 {
    font-size: var(--font-size-h3);
    margin-top: 0;
    margin-bottom: var(--spacing-sm);
  }
  
  .fiche-pierre-details > p { /* Cible uniquement les <p> directs */
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-base);
    line-height: 1.5;
  }
  
  /* Section des couleurs
  --------------------------------------------- */
  .pierre-couleurs {
    margin-bottom: var(--spacing-md);
  }
  
  .couleurs-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm); /* Espace entre chaque item de couleur */
    margin-top: var(--spacing-xs);
  }
  
  .couleur-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
  }
  
  .apercu-couleur {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--box-shadow);
  }
  
  .nom-couleur {
    font-size: var(--font-size-xs);
    color: var(--color-text-light);
    text-align: center;
    max-width: 80px;
  }
  
  
  /* Section du bas (signes astro, chakra)
  --------------------------------------------- */
  .fiche-pierre-bottom {
    flex: 1 1 100%; /* Occupe toute la largeur */
    border-top: 1px solid var(--color-border);
  }
  
  .fiche-pierre-bottom p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    font-weight: bold;
  }
  
  .fiche-pierre-bottom > div { /* Espacement après les div de contenu */
    margin-bottom: var(--spacing-md);
  }
  
  
  /* ==========================================================================
     Styles pour le bloc de texte universel
     ========================================================================== */
  
  .pierre-texte-universel {
    background-color: var(--color-background-alt);
    padding: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    border-left: 5px solid var(--color-brand);
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-base);
    line-height: 1.6;
  }
  
  
  /* ==========================================================================
     Design Responsive
     ========================================================================== */
  
  /* Tablettes et écrans intermédiaires (layout vertical)
  -------------------------------------------------------------------------- */
  @media (max-width: 992px) {
    .fiche-pierre-wrapper {
      flex-direction: column;
      gap: var(--spacing-md);
    }
  }
  
  /* Mobiles et petits écrans (ajustement de la typographie et des espaces)
  -------------------------------------------------------------------------- */
  @media (max-width: 576px) {
    :root {
      /* On réduit la taille des polices sur mobile */
      --font-size-h3: 1.25rem; /* 20px */
      --font-size-base: 0.9375rem; /* 15px */
    }
  
    .fiche-pierre-wrapper,
    .pierre-texte-universel {
      padding: var(--spacing-sm);
    }
  
    .apercu-couleur {
      width: 24px;
      height: 24px;
    }
  }