/* ============================================
   DAGDA TEMPLATE - Grid Layout
   Structure 3 colonnes
   ============================================ */

@layer components {
  /* Root - Layout 3 colonnes */
  .layout-shell {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    min-height: 100vh;
  }
  
  /* Trunk - Contenu central */
  .trunk {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
  }
  
  /* Main */
  main {
    padding: var(--space-xl) var(--space-md);
    flex: 1;
    position: relative;
    z-index: 1;
  }
  
  /* Container section */
  .bx-sctn {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
  }
  
  /* Box base */
  .box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
  }
  
  /* Grilles */
  .grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
  }
  
  /* Grid générique avec classes responsive (déjà dans display.css) */
  .grid {
    display: grid;
  }
  
  /* Stack vertical */
  .stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .stack-lg {
    gap: var(--space-xl);
  }
}
