/* =====================================================================
   Sync Technology : pied de page v2 (assets/css/footer.css)
   Remplace l'ancien footer.css. Couleurs et polices identiques au header.
   ===================================================================== */
.sync-footer, .sync-footer *, .sync-footer *::before, .sync-footer *::after { box-sizing: border-box; }

.sync-footer {
  margin-top: 56px; color: #C6CCD6;
  font: 400 14px/1.5 var(--font-ui, 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
}
.sync-footer a { color: inherit; text-decoration: none; }
.sync-footer ul { list-style: none; margin: 0; padding: 0; }
.sync-footer :focus-visible { outline: 3px solid #17B8D6; outline-offset: 2px; border-radius: 6px; }
.sync-footer svg { display: block; }

/* ---------- 1. Bandeau des agences ---------- */
.sync-footer__agency { background: #0B7C93; color: #fff; }
.sync-footer__agency-inner {
  max-width: var(--header-max, 1320px); margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; gap: 20px 28px;
}
.sync-footer__agency-icon {
  flex: 0 0 auto; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.sync-footer__agency-icon svg { width: 28px; height: 28px; }
.sync-footer__agency-text { flex: 1 1 auto; min-width: 0; }
.sync-footer__agency-text h2 { margin: 0 0 4px; font: 600 24px/1.25 var(--font-title, inherit); letter-spacing: -.01em; }
.sync-footer__agency-text p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .92); }
.sync-footer__agency-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 26px;
  background: #fff; color: #0E1420 !important; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: background .15s ease, transform .15s ease;
}
.sync-footer__agency-btn svg { width: 18px; height: 18px; transition: transform .15s ease; }
.sync-footer__agency-btn:hover { background: #F5F9FA; }
.sync-footer__agency-btn:hover svg { transform: translateX(3px); }

/* ---------- 2. Accès rapides ---------- */
.sync-footer__quick { background: #F5F9FA; border-bottom: 1px solid #E4E8ED; }
.sync-footer__quick ul { max-width: var(--header-max, 1320px); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; }
.sync-footer__quick li { display: flex; align-items: center; }
.sync-footer__quick li + li::before { content: "›"; color: #5B6472; margin: 0 4px; font-size: 18px; }
.sync-footer__quick a { display: inline-block; padding: 14px 10px; font-size: 14px; font-weight: 500; color: #0E1420; }
.sync-footer__quick li:first-child a { padding-left: 0; }
.sync-footer__quick a:hover { color: #0B7C93; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 3. Sections ---------- */
.sync-footer__main { background: #0E1420; }
.sync-footer__inner { max-width: var(--header-max, 1320px); margin: 0 auto; padding: 48px 24px 36px; }
.sync-footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; }

.sync-footer__group summary {
  list-style: none; cursor: default; display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font: 600 16px/1.3 var(--font-title, inherit); color: #fff;
}
.sync-footer__group summary::-webkit-details-marker { display: none; }
.sync-footer__group summary svg { display: none; width: 20px; height: 20px; flex: 0 0 auto; transition: transform .2s ease; }
.sync-footer__group li a { display: inline-block; padding: 5px 0; color: #C6CCD6; }
.sync-footer__group li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 4 et 5. Applications et réseaux sociaux ---------- */
.sync-footer__label { margin: 0 0 8px; font: 600 16px/1.3 var(--font-title, inherit); color: #fff; }
.sync-footer__label--social { margin-top: 28px; }
.sync-footer__apptext { margin: 0 0 16px; color: #9BA4B2; }
.sync-footer__stores { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.sync-footer__store {
  display: inline-flex; align-items: center; gap: 12px; min-width: 190px; padding: 9px 18px 9px 14px;
  background: #000; border: 1px solid #3A4356; border-radius: 10px; color: #fff; transition: border-color .15s ease, background .15s ease;
}
a.sync-footer__store:hover { border-color: #17B8D6; background: #0A0F18; }
.sync-footer__store i { font-size: 26px; }
.sync-footer__store span { display: flex; flex-direction: column; line-height: 1.15; }
.sync-footer__store small { font-size: 11px; color: #C6CCD6; }
.sync-footer__store strong { font-size: 17px; font-weight: 600; }
.sync-footer__store.is-soon { opacity: .7; cursor: not-allowed; }
.sync-footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.sync-footer__social a {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #2A3242; border-radius: 50%; font-size: 17px; color: #C6CCD6; transition: all .15s ease;
}
.sync-footer__social a:hover { background: #17B8D6; border-color: #17B8D6; color: #06222A; }

/* ---------- Pays (affiché seulement si 2 sites ou plus sont en ligne) ---------- */
.sync-footer__country { margin-top: 36px; padding-top: 24px; border-top: 1px solid #232B39; }
.sync-footer__country ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sync-footer__country a { display: inline-block; padding: 7px 16px; border: 1px solid #2A3242; border-radius: 999px; font-size: 13.5px; transition: all .15s ease; }
.sync-footer__country a:hover { border-color: #17B8D6; color: #fff; }
.sync-footer__country a[aria-current] { background: #17B8D6; border-color: #17B8D6; color: #06222A; font-weight: 600; }

/* ---------- 6. Mentions légales ---------- */
.sync-footer__legal { background: #090D15; border-top: 1px solid #232B39; }
.sync-footer__legal-inner { max-width: var(--header-max, 1320px); margin: 0 auto; padding: 18px 24px; }
.sync-footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.sync-footer__legal a { color: #B7BFCB; font-size: 13px; }
.sync-footer__legal a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 7. Sync Technology France, date ---------- */
.sync-footer__end { background: #090D15; border-top: 1px solid #1A2230; }
.sync-footer__end-inner {
  max-width: var(--header-max, 1320px); margin: 0 auto; padding: 16px 24px 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
}
.sync-footer__end p { margin: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: #8A93A3; }
.sync-footer__end p strong { color: #fff; font-weight: 600; }
.sync-footer__totop { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff; }
.sync-footer__totop svg { width: 16px; height: 16px; }
.sync-footer__totop:hover { color: #17B8D6; }

/* ---------- Tablette ---------- */
@media (max-width: 1023px) {
  .sync-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
}

/* ---------- Mobile : sections en menus déroulants ---------- */
@media (max-width: 767px) {
  .sync-footer { margin-top: 40px; }
  .sync-footer__agency-inner { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .sync-footer__agency-text h2 { font-size: 21px; }
  .sync-footer__agency-btn { width: 100%; justify-content: center; }
  .sync-footer__quick ul { padding: 0 16px; }

  .sync-footer__inner { padding: 4px 16px 28px; }
  .sync-footer__cols { grid-template-columns: 1fr; gap: 0; }
  .sync-footer__group { border-bottom: 1px solid #232B39; }
  .sync-footer__group summary { cursor: pointer; margin: 0; padding: 18px 0; }
  .sync-footer__group summary svg { display: block; }
  .sync-footer__group[open] summary svg { transform: rotate(180deg); }
  .sync-footer__group ul { padding-bottom: 14px; }

  .sync-footer__apps { padding-top: 28px; }
  .sync-footer__stores { flex-direction: row; flex-wrap: wrap; }
  .sync-footer__store { min-width: 0; flex: 1 1 160px; }
  .sync-footer__legal-inner, .sync-footer__end-inner { padding-left: 16px; padding-right: 16px; }
  .sync-footer__end-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .sync-footer * { transition: none !important; }
}