/* Promo fin d'année — menu item + floating badge (all pages) */

/* ---- menu item ---- */
.nav a.agpa-nav { color: var(--red); font-weight: 600; white-space: nowrap; gap: 7px; }
.nav a.agpa-nav:hover { color: var(--red-deep); background: var(--red-soft); }
.nav a.agpa-nav.active { background: var(--red); color: #fff; }
.agpa-tag {
  display: inline-block; white-space: nowrap; padding: 2px 8px 1px; border-radius: 100px;
  background: var(--red); color: #fff; font-family: 'Barlow Condensed', var(--display);
  font-weight: 800; font-size: 14px; line-height: 1.35; letter-spacing: .02em;
}
.nav a.agpa-nav.active .agpa-tag { background: #fff; color: var(--red); }
.mm-panel a.agpa-nav { color: var(--red); }
/* desktop: keep every menu item on one line (the live site already wraps
   "Qui sommes-nous" around 1180px; with Déstockage replaced, all fit) */
@media (min-width: 1081px) {
  ul.nav > li > a, ul.nav .navlink { white-space: nowrap; }
}


.mm-panel a.agpa-nav .agpa-tag { font-size: 15px; padding: 3px 10px 2px; margin-left: auto; }

/* ---- floating badge ---- */
.agpa { position: fixed; left: 24px; bottom: 26px; z-index: 79; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity .5s cubic-bezier(.22,.61,.36,1), transform .5s cubic-bezier(.22,.61,.36,1); }
.agpa.on { opacity: 1; transform: none; pointer-events: auto; }
.agpa[hidden] { display: none; }
.agpa-card {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px;
  background: var(--ink); color: #fff; border-radius: 100px;
  box-shadow: 0 18px 40px -16px rgba(20,28,42,.55); transition: transform .25s, box-shadow .25s;
}
.agpa-card:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -16px rgba(20,28,42,.65); }
.agpa-badge {
  position: relative; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red, #e11b22); display: block; text-align: center; line-height: 52px; white-space: nowrap;
  font-family: var(--display, 'Poppins', sans-serif); font-weight: 700; color: #fff; letter-spacing: -.04em;
}
.agpa-badge b { font-size: 16px; font-weight: 700; }
.agpa-badge i { font-style: normal; font-size: 11px; font-weight: 700; margin-left: 1px; }
.agpa-badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; animation: agpaRing 2.4s ease infinite; }
@keyframes agpaRing {
  0% { box-shadow: 0 0 0 0 rgba(245,64,46,.55); }
  70% { box-shadow: 0 0 0 12px rgba(245,64,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,64,46,0); }
}
.agpa-txt { display: flex; flex-direction: column; line-height: 1.25; padding-right: 2px; }
.agpa-txt strong { font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; }
.agpa-txt span { font-size: 13px; color: rgba(255,255,255,.72); white-space: nowrap; }
.agpa-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; transition: transform .25s; }
.agpa-ico svg { width: 16px; height: 16px; }
.agpa-card:hover .agpa-ico { transform: translateX(2px); }
.agpa-close {
  position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; background: var(--ink); color: #fff; font-size: 10px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; padding: 0;
}

/* phones: compact round badge, clear of the WhatsApp bubble */
@media (max-width: 720px) {
  .agpa { left: 16px; bottom: 18px; }
  .agpa-card { padding: 0; background: none; box-shadow: none; }
  .agpa-badge { width: 60px; height: 60px; box-shadow: 0 14px 30px -10px rgba(225,27,34,.7); }
  .agpa-badge { line-height: 60px; }
  .agpa-badge b { font-size: 18px; }
  .agpa-badge i { font-size: 12px; }
  .agpa-txt, .agpa-ico { display: none; }
  .agpa-close { top: -6px; right: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .agpa { transition: none; }
  .agpa-badge::after { animation: none; }
}

/* ---- scrolling band (top of header, all pages) ---- */
.agpa-ticker {
  display: block; position: sticky; top: 0; z-index: 59; overflow: hidden; height: 40px;
  background: linear-gradient(90deg, #C0161C 0%, #E11B22 50%, #C0161C 100%);
  color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; line-height: 40px;
}
.agpa-ticker:hover { color: #fff; }
.agpa-ticker:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.agpa-track { display: flex; width: max-content; animation: agpaScroll 45s linear infinite; }
.agpa-ticker:hover .agpa-track, .agpa-ticker:focus-visible .agpa-track { animation-play-state: paused; }
.agpa-group { display: flex; flex: 0 0 auto; }
.agpa-it { display: inline-flex; align-items: center; white-space: nowrap; padding: 0 22px; }
.agpa-it::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); margin-left: 44px; }
.agpa-it--main { font-family: 'Barlow Condensed', var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }
.agpa-it--main::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFC83D; margin-right: 10px; box-shadow: 0 0 0 3px rgba(255,200,61,.3); }
@keyframes agpaScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* the band stays at the top while scrolling; the sticky header sits just under it */
body.agpa-has-ticker .hwrap { top: 40px; }
body.admin-bar .agpa-ticker { top: 32px; }
body.admin-bar.agpa-has-ticker .hwrap { top: 72px; }
@media (max-width: 782px) {
  body.admin-bar .agpa-ticker { top: 46px; }
  body.admin-bar.agpa-has-ticker .hwrap { top: 86px; }
}
@media (max-width: 600px) {
  body.agpa-has-ticker .hwrap { top: 36px; }
  body.admin-bar .agpa-ticker { top: 0; }
  body.admin-bar.agpa-has-ticker .hwrap { top: 36px; }
  .agpa-ticker { height: 36px; line-height: 36px; font-size: 13px; }
  .agpa-it { padding: 0 16px; }
  .agpa-it::after { margin-left: 32px; }
  .agpa-it--main { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .agpa-track { animation: none; justify-content: center; width: 100%; }
  .agpa-group[aria-hidden] { display: none; }
}
