/* =========================
   02-layout.css
   Container + header/footer layout + grids/sections
========================= */

.container{
    width: min(var(--container), calc(100% - 56px));
    margin: 0 auto;
  }
  
  /* Header */
  .header{
    position: sticky;
    top:0;
    z-index: 60;
    background: var(--header-bg);
    backdrop-filter: blur(var(--header-blur));
    border-bottom: 1px solid var(--border);
  }
  
  .header__inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding: 14px 0;
  }
  
  /* Footer (même structure) */
  .footer{
    padding: 26px 0;
    border-top: 1px solid rgba(15,23,42,.10);
    background: rgba(255,255,255,.75);
  }
  
  .footer__inner{
    display:flex;
    justify-content:space-between;
    gap: 14px;
    align-items:center;
    flex-wrap: wrap;
  }
  
  .footer__left{
    display:flex;
    gap: 12px;
    align-items:center;
  }
  
  .footer__logo{
    width: 44px;
    height: 44px;
    object-fit: contain;
  }
  
  .footer__title{ font-weight: 300; }
  
  .footer__sub{
    color: rgb(15, 23, 42);
    font-weight: 700;
    margin-top: 4px;
  }
  
  /* Footer right stacked */
  .footer__right{
    display:flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }
  
  .footer__links,
  .footer__legal{
    display:flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  
  .footer__right a{
    text-decoration:none;
    font-weight: 600;
    color: rgba(15,23,42,.86);
  }
  
  .footer__right a:hover{ text-decoration: underline; }
  
  .footer__legal a{
    font-weight: 600;
    color: rgba(15,23,42,.70);
    font-size: 13px;
    text-decoration: none;
  }
  
  .footer__legal a:hover{ text-decoration: underline; }
  
  /* Sections */
  .section{
    padding: 60px 0;
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 44px rgba(15,23,42,.10);
  }
  
  .section--alt{
    border-top: 1px solid rgba(15,23,42,.08);
    border-bottom: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 18px 44px rgba(15,23,42,.10);
  }
  
  .section__head{ margin-bottom: 18px; }
  
  .section__title{
    margin:0;
    font-weight: 600;
    letter-spacing: -.4px;
    font-size: 28px;
  }
  
  .section__title i{
    margin-right: 10px;
    color: rgba(15,23,42,.62);
  }
  
  .section__desc{
    margin: 10px 0 0;
    color: rgba(15,23,42,.70);
    line-height: var(--lh-body);
  }
  
  /* Grids */
  .grid{ display:grid; gap: 16px; }
  .grid--2{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(3, 1fr); }
  
  /* Responsive layout */
  @media (max-width: 980px){
    .grid--3{ grid-template-columns: repeat(2, 1fr); }
  }
  
  @media (max-width: 820px){
    .grid--3, .grid--2{ grid-template-columns: 1fr; }
  }
  /* =========================================
   FIX clearfix parent : ::after devient un flex-item
   -> on neutralise UNIQUEMENT sur header/footer
========================================= */
.header .container::before,
.header .container::after,
.footer .container::before,
.footer .container::after{
  content: none !important;
  display: none !important;
}