/* =========================================================================
   FOOTER UNIVERS-PC
   IMPORTANT : tous les sélecteurs sont scopés sous .upc-footer (ou .upc-footer-wrap)
   pour ne JAMAIS toucher d'autres éléments du site (ex. un .upc-grid existant
   utilisé ailleurs sur les pages Elementor).
   ========================================================================= */

.upc-footer-wrap {
  --upc-accent: #2a7fff;
  --upc-accent-2: #1f63d6;
  --upc-ink: #12151c;
  --upc-muted: #4b5563;
  --upc-muted-2: #6b7482;
  --upc-muted-3: #8b93a0;
  --upc-border: #e2e5ea;
  --upc-border-2: #eceef2;
  --upc-line: #e4e7ec;
  --upc-dark: #3d4149;
  --upc-card: #ffffff;
  --upc-page: #e9ecf1;

  background: transparent;
  padding: 0;
  box-sizing: border-box;
}
.upc-footer-wrap *,
.upc-footer-wrap *::before,
.upc-footer-wrap *::after { box-sizing: border-box; }

.upc-footer {
  width: 100%;
  background: var(--upc-card);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--upc-muted);
  -webkit-font-smoothing: antialiased;
}

/* Couleurs de liens forcées : empêche WooCommerce / le thème d'imposer sa
   couleur de lien « actif » (rose par défaut) sur les liens du footer. */
.upc-footer a,
.upc-footer a:link,
.upc-footer a:visited,
.upc-footer a:active {
  color: var(--upc-muted) !important;
  text-decoration: none;
  transition: color .15s ease;
}
.upc-footer a:hover,
.upc-footer a:focus {
  color: var(--upc-accent) !important;
  text-decoration: underline;
}

/* ---------- Barre du haut (bandeau bleu + stats) ---------- */
.upc-footer .upc-top {
  background: linear-gradient(120deg, #0F5EDC 0%, #0A3F96 100%);
  padding: 22px 0;
}
.upc-footer .upc-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.upc-footer .upc-brand { display: flex; align-items: center; gap: 16px; }
.upc-footer .upc-brand__logo {
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
}
.upc-footer .upc-brand__logo a { display: flex; align-items: center; line-height: 0; }
.upc-footer .upc-brand__logo img { height: 40px; width: auto; max-width: none; display: block; }
.upc-footer .upc-brand__tagline {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  max-width: 230px;
  line-height: 1.3;
  border-left: 1px solid rgba(255, 255, 255, .35);
  padding-left: 16px;
}

.upc-footer .upc-stats { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.upc-footer .upc-stat { text-align: center; }
.upc-footer .upc-stat__num {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
  line-height: 1.1;
}
.upc-footer .upc-stat__label { font-size: 11px; color: rgba(255, 255, 255, .82); }
.upc-footer .upc-stat__sep { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .28); }

/* ---------- Grille 5 colonnes ---------- */
.upc-footer .upc-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.15fr 1.25fr;
  gap: 40px;
  padding: 36px 24px 34px;
}
.upc-footer .upc-col__title {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--upc-border-2);
  position: relative;
  color: var(--upc-ink);
}
.upc-footer .upc-col__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 44px; height: 2px;
  background: var(--upc-accent);
}

/* Listes de liens (menus WP + génériques) */
.upc-footer .upc-links {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.upc-footer .upc-links li { margin: 0; padding: 0; }
.upc-footer .upc-links a { display: inline-block; }

/* ---------- Colonne Catégories (accordéon dépliant) ---------- */
.upc-footer .upc-cats { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.upc-footer .upc-cat { margin: 0; padding: 0; }
.upc-footer .upc-cat__row { display: flex; align-items: center; gap: 6px; }
.upc-footer .upc-cat__link { flex: 1 1 auto; }
.upc-footer .upc-cat__toggle {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--upc-muted-3);
  cursor: pointer;
  padding: 0;
  margin: -4px 0;
  transition: background .15s ease, color .15s ease;
}
.upc-footer .upc-cat__toggle:hover { background: #eef4ff; color: var(--upc-accent); }
.upc-footer .upc-cat__toggle svg { width: 13px; height: 13px; transition: transform .2s ease; }
.upc-footer .upc-cat__toggle[aria-expanded="true"] { color: var(--upc-accent); }
.upc-footer .upc-cat__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.upc-footer .upc-cat__sub {
  list-style: none;
  margin: 10px 0 4px;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--upc-border-2);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.upc-footer .upc-cat__sub[hidden] { display: none; }
.upc-footer .upc-cat__sub a { font-size: 13.5px; }

/* ---------- Moyens de paiement ---------- */
.upc-footer .upc-pay { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.upc-footer .upc-pay__badge {
  width: 58px; height: 38px;
  border: 1px solid #e7eaef;
  border-radius: 7px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.upc-footer .upc-pay__badge--4x { border-color: #cfe0ff; background: #eaf2ff; }
.upc-footer .upc-pay__cb { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 12px; }
.upc-footer .upc-pay__cb .c { color: #0b6ab0; }
.upc-footer .upc-pay__cb .b { color: #1aa64b; }
.upc-footer .upc-pay__mc-1, .upc-footer .upc-pay__mc-2 { width: 16px; height: 16px; border-radius: 50%; }
.upc-footer .upc-pay__mc-1 { background: #eb001b; }
.upc-footer .upc-pay__mc-2 { background: #f79e1b; margin-left: -6px; mix-blend-mode: multiply; }
.upc-footer .upc-pay__visa { font-weight: 700; font-style: italic; font-size: 15px; color: #1a1f71; }
.upc-footer .upc-pay__pp { font-weight: 700; font-style: italic; font-size: 13px; }
.upc-footer .upc-pay__pp .a { color: #003087; }
.upc-footer .upc-pay__pp .b { color: #009cde; }
.upc-footer .upc-pay__4x { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14px; color: var(--upc-accent-2); }

/* ---------- Contactez-nous ---------- */
.upc-footer .upc-contact { margin-top: 18px; font-size: 13.5px; line-height: 1.65; color: var(--upc-muted); }
.upc-footer .upc-contact strong { color: var(--upc-ink); }
.upc-footer .upc-partners { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.upc-footer .upc-partner { display: inline-flex; align-items: center; transition: opacity .15s ease; }
.upc-footer .upc-partner:hover { opacity: .82; text-decoration: none; }
.upc-footer .upc-partner img { height: 32px; width: auto; display: block; }

/* ---------- Bandeau copyright ---------- */
.upc-footer .upc-bottom {
  background: var(--upc-dark);
  color: #e6e8ec;
  text-align: center;
  padding: 16px;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
}
.upc-footer .upc-bottom a,
.upc-footer .upc-bottom a:link,
.upc-footer .upc-bottom a:visited,
.upc-footer .upc-bottom a:hover { color: #6fb0ff !important; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .upc-footer .upc-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 640px) {
  .upc-footer .upc-top { padding: 20px; }
  .upc-footer .upc-stats { margin-left: 0; width: 100%; justify-content: space-between; gap: 12px; }
  .upc-footer .upc-grid { grid-template-columns: 1fr; gap: 26px; padding: 28px 22px; }
}
