/* Ase Soccer — tiroir mobile (calque du menu de la reference).
   Bloc autonome : toutes les couleurs sont ecrites en clair, la feuille ne
   depend d'aucune variable du theme. */

#ase-mob {
  --ase-mob-k: 1;
  --ase-mob-ab: 0px;
  position: fixed;
  top: var(--ase-mob-ab);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9997;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #0a0f1a;
  font: 500 14px/20px Montserrat, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  visibility: hidden;
  transform: translateX(-102%);
  transition: transform .6s cubic-bezier(.2,.9,.25,1), visibility 0s .6s;
}

body.admin-bar #ase-mob { --ase-mob-ab: 32px; }
@media screen and (max-width: 782px) { body.admin-bar #ase-mob { --ase-mob-ab: 46px; } }

/* Le tiroir du theme ne sert plus : c'est celui-ci qui ouvre le menu mobile. */
#offcanvas.ct-panel { display: none !important; }

#ase-mob, #ase-mob *, #ase-mob *::before, #ase-mob *::after { box-sizing: border-box; }
#ase-mob ul, #ase-mob li { margin: 0; padding: 0; list-style: none; }
#ase-mob a { color: inherit; text-decoration: none; }
#ase-mob img, #ase-mob svg { display: block; flex: none; }
#ase-mob svg { fill: none; stroke: currentColor; }
#ase-mob button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
#ase-mob :focus-visible { outline: 2px solid #30b7ff; outline-offset: 2px; }

#ase-mob .ase-mob-p {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* --- Barre de recherche --- */
#ase-mob .ase-mob-top {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px calc(6px + 2px * var(--ase-mob-k)) 19px;
}

#ase-mob .ase-mob-x {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0a0f1a;
  color: #fff;
}

#ase-mob .ase-mob-sr {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border-radius: 99px;
  background: #f3f5f8;
  color: #5b6678;
}

#ase-mob .ase-mob-sr input {
  flex: 1;
  min-width: 0;
  font: 500 13.5px/18px Montserrat, sans-serif;
  color: #0a0f1a;
  background: none;
  border: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}

#ase-mob .ase-mob-sr input::placeholder { color: #5b6678; opacity: 1; }
#ase-mob .ase-mob-lb {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Cartes --- */
#ase-mob .ase-mob-sc {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#ase-mob .ase-mob-sc::-webkit-scrollbar { display: none; }

#ase-mob .ase-mob-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(8px + 2px * var(--ase-mob-k));
  padding: calc(8px + 2px * var(--ase-mob-k)) 16px calc(12px + 4px * var(--ase-mob-k));
}

#ase-mob .ase-mob-list > li.is-wide { grid-column: 1 / -1; }

#ase-mob .ase-mob-el {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: calc(56px + 22px * var(--ase-mob-k));
  padding: 10px 46px calc(10px + 3px * var(--ase-mob-k)) 15px;
  border-radius: 20px;
  background: #f3f5f8;
  font: italic 900 15.5px/18px Montserrat, sans-serif;
  letter-spacing: -.01em;
  text-transform: uppercase;
  transition: background .15s;
}
#ase-mob .ase-mob-el:active { background: #e7eaf0; }
/* Pas de display:block sur les enfants : .ase-mob-stk est aussi un <span>,
   et une regle plus specifique le bloquait (les 3 logos s'empilaient). */
#ase-mob .ase-mob-el > span:not(.ase-mob-stk) { display: block; }

#ase-mob li.is-big .ase-mob-el {
  align-items: center;
  height: calc(74px + 18px * var(--ase-mob-k));
  padding: 0 18px;
  font: italic 900 26px/28px Montserrat, sans-serif;
  letter-spacing: -.02em;
}

#ase-mob .ase-mob-stk {
  position: absolute;
  top: 50%;
  right: 66px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: -19px;
}
#ase-mob .ase-mob-stk img,
#ase-mob .ase-mob-stk .ase-mm-noi {
  width: 38px;
  min-width: 38px;
  height: 38px;
  flex: 0 0 38px;
  margin-left: -11px;
  padding: 6px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 0 0 2px #f3f5f8, 0 2px 6px rgba(10,15,26,.1);
  display: grid;
  place-items: center;
  font: 700 13px/1 Montserrat, sans-serif;
  color: #5b6678;
}

#ase-mob .ase-mob-ar {
  position: absolute;
  right: 12px;
  bottom: calc(14px - 2px * var(--ase-mob-k));
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #e3e6ec;
  border-radius: 50%;
  color: #5b6678;
}
#ase-mob li.is-big .ase-mob-ar {
  top: 50%;
  right: 16px;
  bottom: auto;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 0;
  background: #0a0f1a;
  color: #fff;
}
/* Si les cartes sont resserrees, le libelle se recentre sur la pastille. */
#ase-mob.is-tight .ase-mob-list > li:not(.is-big) .ase-mob-el {
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
#ase-mob.is-tight .ase-mob-list > li:not(.is-big) .ase-mob-ar {
  bottom: auto;
  top: 50%;
  margin-top: -14px;
}
/* --- Bandeau tournant --- */
#ase-mob .ase-mob-mo {
  display: block;
  margin: 0 16px calc(12px + 4px * var(--ase-mob-k));
}

#ase-mob .ase-mob-mor {
  position: relative;
  display: block;
  height: calc(104px + 28px * var(--ase-mob-k));
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(90deg, #1b86d8, #56c4fb);
  color: #fff;
}

#ase-mob .ase-mob-rs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(4px + 4px * var(--ase-mob-k));
  padding: 0 20px calc(14px + 4px * var(--ase-mob-k));
  text-align: center;
  opacity: 0;
  transform: translateX(26px);
  pointer-events: none;
  transition: opacity .35s, transform .5s cubic-bezier(.2,.8,.2,1);
}
#ase-mob .ase-mob-rs.is-on { opacity: 1; transform: none; pointer-events: auto; }
#ase-mob .ase-mob-rs.is-out { opacity: 0; transform: translateX(-26px); }

#ase-mob .ase-mob-e { display: block; font: normal 600 12px/16px Montserrat, sans-serif; opacity: .92; }
#ase-mob .ase-mob-s {
  display: block;
  font: italic 900 calc(25px + 5px * var(--ase-mob-k))/calc(26px + 6px * var(--ase-mob-k)) Montserrat, sans-serif;
  letter-spacing: -.03em;
  text-transform: uppercase;
}
#ase-mob .ase-mob-d { display: block; font: 500 12px/16px Montserrat, sans-serif; opacity: .92; }

#ase-mob .ase-mob-dts {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(9px + 4px * var(--ase-mob-k));
  display: flex;
  justify-content: center;
  gap: 5px;
}
#ase-mob .ase-mob-dts i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: #fff;
  opacity: .4;
  transition: width .3s, opacity .3s;
}
#ase-mob .ase-mob-dts i.is-on { width: 16px; opacity: 1; }

/* --- Barre basse --- */
#ase-mob .ase-mob-b {
  position: relative;
  display: flex;
  flex: none;
  gap: 8px;
  padding: calc(10px + 2px * var(--ase-mob-k)) 16px calc(14px + 4px * var(--ase-mob-k));
  border-top: 1px solid #eceef2;
  background: #fff;
}
#ase-mob .ase-mob-b::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 1px);
  height: 12px;
  background: linear-gradient(rgba(255,255,255,0), #fff);
  pointer-events: none;
}
#ase-mob .ase-mob-b a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 99px;
  background: #f3f5f8;
  font: 600 13px/18px Montserrat, sans-serif;
  white-space: nowrap;
}
#ase-mob .ase-mob-b a.is-pr { background: #0a0f1a; color: #fff; font-weight: 700; }
#ase-mob .ase-mob-n {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: #fff;
  color: #0a0f1a;
  font: 800 11px/20px Montserrat, sans-serif;
  text-align: center;
}
#ase-mob .ase-mob-n.is-z { display: none; }

/* --- Sous-panneaux (Clubs, Nations) --- */
#ase-mob .ase-mob-sub {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  background: #fff;
  visibility: hidden;
  transform: translateX(102%);
  transition: transform .45s cubic-bezier(.2,.9,.25,1), visibility 0s .45s;
}
#ase-mob .ase-mob-sub.is-on {
  visibility: visible;
  transform: none;
  transition: transform .45s cubic-bezier(.2,.9,.25,1), visibility 0s 0s;
}

#ase-mob .ase-mob-sh {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 10px 19px;
}
#ase-mob .ase-mob-bk {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #0a0f1a;
  color: #fff;
}
#ase-mob .ase-mob-sh b {
  display: block;
  font: italic 900 24px/28px Montserrat, sans-serif;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
#ase-mob .ase-mob-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font: 600 12.5px/18px Montserrat, sans-serif;
  color: #5b6678;
  white-space: nowrap;
}

#ase-mob .ase-mob-lgs {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  padding: 6px 16px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
#ase-mob .ase-mob-lgs::-webkit-scrollbar { display: none; }

#ase-mob .ase-mob-lg {
  display: block;
  flex: none;
  height: 36px;
  padding: 0 14px;
  border-radius: 99px;
  background: #f3f5f8;
  font: 600 12.5px/34px Montserrat, sans-serif;
  color: #3b4453;
  white-space: nowrap;
}
#ase-mob .ase-mob-lg.is-on { background: #0a0f1a; color: #fff; }

#ase-mob .ase-mob-gr { display: none; }
#ase-mob .ase-mob-gr.is-on {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  padding-top: 8px;
}
#ase-mob .ase-mob-tm {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 54px;
  padding: 0 10px 0 9px;
  border: 1px solid #e3e6ec;
  border-radius: 16px;
  background: #fff;
  font: 600 12.5px/16px Montserrat, sans-serif;
  color: #0a0f1a;
}
#ase-mob .ase-mob-tm img, #ase-mob .ase-mob-tm .ase-mm-noi {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f3f5f8;
  object-fit: contain;
  font: 700 11px/1 Montserrat, sans-serif;
  color: #5b6678;
  overflow: hidden;
}
#ase-mob .ase-mob-tm span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
#ase-mob .ase-mob-pg {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  margin-top: 6px;
  border-radius: 99px;
  background: #0a0f1a;
  color: #fff;
  font: 700 13.5px/18px Montserrat, sans-serif;
}

/* --- Ouverture --- */
html.ase-mob-open #ase-mob {
  visibility: visible;
  transform: none;
  transition: transform .6s cubic-bezier(.2,.9,.25,1), visibility 0s 0s;
}
html.ase-mob-open, html.ase-mob-open body { overflow: hidden; }

/* --- Le tiroir ne sert qu'aux largeurs ou le menu d'en-tete disparait --- */
@media (min-width: 1100px) { #ase-mob { display: none !important; } }
@media (max-width: 1099px) { #ase-mob { display: flex; } }

@media (max-width: 349px) {
  #ase-mob .ase-mob-list > li:not(.is-big) .ase-mob-el {
    padding-right: 40px;
    font-size: 12.5px;
    line-height: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ase-mob, #ase-mob .ase-mob-sub, #ase-mob .ase-mob-rs { transition-duration: .01s; }
}
