/* ==========================================================================
   En-tete et pied de page
   ========================================================================== */

.ahx, .ahx *, .axf, .axf * { box-sizing: border-box; }

/* ---------- EN-TETE ---------- */
.ahx {
  --ahx-rouge: #E2001A;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: var(--ahx-rouge);
}
.ahx__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}
.ahx__logo { display: flex; align-items: center; flex: 0 0 auto; }
.ahx__logo img { height: 2.5rem; width: auto; object-fit: contain; display: block; }
.ahx .ahx__logo img { height: 2.5rem; }

.ahx__nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2rem); }
.ahx .ahx__nav a, .ahx .ahx__bascule {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
}
.ahx .ahx__nav > a, .ahx .ahx__groupe > .ahx__bascule {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
}
.ahx .ahx__nav a:hover, .ahx .ahx__bascule:hover { color: #fff; }
.ahx .ahx__nav > a.est-actif { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 #fff; }

.ahx__groupe { position: relative; }
.ahx__chevron { width: 0.75rem; height: 0.75rem; transition: transform 0.2s ease; }
.ahx__groupe:hover .ahx__chevron, .ahx__groupe:focus-within .ahx__chevron { transform: rotate(180deg); }

.ahx__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 15rem;
  background: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,0.18);
  padding: 0.5rem 0;
}
.ahx__groupe:hover .ahx__menu, .ahx__groupe:focus-within .ahx__menu { display: block; }
.ahx .ahx__menu a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
  color: #1d1d1b;
  transition: background 0.15s ease, color 0.15s ease;
}
.ahx .ahx__menu a:hover { background: #f4f4f2; color: var(--ahx-rouge); }
.ahx .ahx__menu a.est-actif { color: var(--ahx-rouge); font-weight: 600; }

.ahx__burger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.ahx__burger svg { width: 1.5rem; height: 1.5rem; }
.ahx__burger .ahx__croix { display: none; }
.ahx__burger[aria-expanded="true"] .ahx__croix { display: block; }
.ahx__burger[aria-expanded="true"] .ahx__traits { display: none; }

@media (max-width: 1080px) {
  .ahx__burger { display: flex; }
  .ahx__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    background: var(--ahx-rouge);
    border-top: 1px solid rgba(255,255,255,0.2);
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
  }
  .ahx__nav.est-ouvert { display: flex; }
  .ahx .ahx__nav > a,
  .ahx .ahx__groupe > .ahx__bascule {
    width: 100%;
    justify-content: space-between;
    padding: 0.875rem clamp(1.25rem, 4vw, 3.5rem);
    font-size: 1.05rem;
  }
  .ahx .ahx__nav > a.est-actif { box-shadow: none; }
  .ahx__menu {
    display: none;
    position: static;
    min-width: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 0 0.5rem;
  }
  .ahx__groupe:hover .ahx__menu, .ahx__groupe:focus-within .ahx__menu { display: none; }
  .ahx__groupe.est-ouvert .ahx__menu { display: block; }
  .ahx .ahx__menu a {
    padding: 0.625rem clamp(2.25rem, 6vw, 4.5rem);
    font-size: 1rem;
    color: rgba(255,255,255,0.88);
  }
  .ahx .ahx__menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .ahx .ahx__menu a.est-actif { color: #fff; font-weight: 600; }
}

/* ---------- PIED DE PAGE ---------- */
/* Astra pose son propre pied de page : on le masque. */
.site-footer,
.ast-small-footer,
.site-primary-footer-wrap,
.site-below-footer-wrap { display: none !important; }

.axf {
  --axf-rouge: #E2001A;
  width: 100%;
  background: #1d1d1b;
  color: #fff;
}
.axf a { text-decoration: none; }
.axf a[href], .axf a[href]:hover { text-decoration: none; }

.axf__haut {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 5vw, 7.5rem) clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 3fr);
  gap: clamp(2rem, 4vw, 4.5rem);
}
.axf__marque { display: flex; flex-direction: column; gap: 1.25rem; }
.axf__logo img { height: 2.75rem; width: auto; object-fit: contain; display: block; }
.axf .axf__logo img { height: 2.75rem; }
.axf__baseline {
  margin: 0;
  max-width: 20rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}
.axf__boutique {
  align-self: flex-start;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 1.5rem;
  background: var(--axf-rouge);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s ease;
}
.axf__boutique:hover { background: #b00014; color: #fff; }
.axf__boutique svg { width: 0.9375rem; height: 0.9375rem; }

.axf__colonnes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.axf__colonne { display: flex; flex-direction: column; gap: 0.875rem; }
.axf__titre {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--axf-rouge);
}
.axf .axf__colonne a {
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  transition: color 0.2s ease;
}
.axf .axf__colonne a:hover { color: #fff; }

.axf__bas {
  padding: 1.5rem clamp(1.25rem, 5vw, 7.5rem);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.axf__copyright { margin: 0; font-size: 0.9375rem; color: rgba(255,255,255,0.6); }
.axf__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.axf .axf__legal a { font-size: 0.9375rem; color: rgba(255,255,255,0.6); }
.axf .axf__legal a:hover { color: #fff; }

@media (max-width: 900px) {
  .axf__haut { grid-template-columns: 1fr; }
}
