/**
 * Pied de page Premium — isolé du footer Base (footer-local / main.css).
 * Thèmes noir (dark) et blanc (light), inspiré du layout Framer « Footer Section 2 ».
 */

.tpl-premium[data-premium-page] .premium-footer {
  --pf-accent: var(--tj-color-theme-primary, var(--brand-primary, #c44b2b));
  --pf-font: var(--tj-ff-body, var(--brand-font-body, Helvetica Neue, Arial, sans-serif));
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--pf-font);
  -webkit-font-smoothing: antialiased;
  background: var(--pf-bg);
  color: var(--pf-text);
  transition: background-color 0.4s ease, color 0.4s ease;
}

.tpl-premium[data-premium-page] .premium-footer,
.tpl-premium[data-premium-page] .premium-footer * {
  box-sizing: border-box;
}

.tpl-premium[data-premium-page] .premium-footer[data-theme="dark"] {
  --pf-bg: #0d0d0d;
  --pf-text: #fff;
  --pf-muted: rgba(255, 255, 255, 0.45);
  --pf-soft: rgba(255, 255, 255, 0.6);
  --pf-line: rgba(255, 255, 255, 0.12);
  --pf-icon: rgba(255, 255, 255, 0.45);
}

.tpl-premium[data-premium-page] .premium-footer[data-theme="light"] {
  --pf-bg: #fff;
  --pf-text: #111;
  --pf-muted: rgba(17, 17, 17, 0.45);
  --pf-soft: rgba(17, 17, 17, 0.62);
  --pf-line: rgba(17, 17, 17, 0.12);
  --pf-icon: rgba(17, 17, 17, 0.45);
}

.tpl-premium[data-premium-page] .premium-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px 0;
}

.tpl-premium[data-premium-page] .premium-footer__top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 64px;
}

.tpl-premium[data-premium-page] .premium-footer__brand {
  max-width: 280px;
  flex: 0 1 280px;
}

.tpl-premium[data-premium-page] .premium-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  text-decoration: none;
}

.tpl-premium[data-premium-page] .premium-footer__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 48px;
  object-fit: contain;
}

.tpl-premium[data-premium-page] .premium-footer__tagline {
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pf-soft);
  letter-spacing: 0;
}

.tpl-premium[data-premium-page] .premium-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.tpl-premium[data-premium-page] .premium-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 4px;
  border-radius: 50%;
  color: var(--pf-icon);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tpl-premium[data-premium-page] .premium-footer__social-btn:hover,
.tpl-premium[data-premium-page] .premium-footer__social-btn:focus-visible {
  color: var(--pf-text);
}

.tpl-premium[data-premium-page] .premium-footer__social-btn svg {
  display: block;
  width: 17px;
  height: 17px;
}

/* Certification partenaire + logos additionnels — alignés à gauche comme le thème Base.
   Les feuilles Kontix imposent img { object-fit: cover; max-width: 100% } : on respecifie ici. */
.tpl-premium[data-premium-page] .premium-footer .boreal-footer-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px 20px;
  margin: 0 0 24px;
  width: 100%;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-marks .award-logo-area {
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 18px;
  margin: 0;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-marks .award-logo {
  flex: 0 0 auto;
  max-width: 96px;
  width: 96px;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-marks .award-logo img {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  object-fit: contain;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges {
  --footer-badge-sm-height: 48px;
  --footer-badge-md-height: 88px;
  --footer-badge-lg-height: calc(96px * 2520 / 1886);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-marks--with-partner .boreal-footer-badges {
  flex: 1 1 8rem;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__item {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__item::before {
  content: none;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__link {
  display: flex;
  transition: opacity 0.2s ease;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__link:hover,
.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__link:focus-visible {
  opacity: 0.75;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges img {
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: var(--footer-badge-sm-height);
  object-fit: contain;
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__item--md img {
  max-width: 180px;
  max-height: var(--footer-badge-md-height);
}

.tpl-premium[data-premium-page] .premium-footer .boreal-footer-badges__item--lg img {
  max-width: 220px;
  max-height: var(--footer-badge-lg-height);
}

.tpl-premium[data-premium-page] .premium-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  flex: 1 1 auto;
  min-width: 0;
}

.tpl-premium[data-premium-page] .premium-footer__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tpl-premium[data-premium-page] .premium-footer h2.premium-footer__heading {
  margin: 0 0 16px;
  padding: 0;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--pf-muted);
}

.tpl-premium[data-premium-page] .premium-footer p,
.tpl-premium[data-premium-page] .premium-footer a {
  font-family: inherit;
}

.tpl-premium[data-premium-page] .premium-footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tpl-premium[data-premium-page] .premium-footer a.premium-footer__link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  padding-bottom: 2px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--pf-text);
  text-decoration: none;
}

.tpl-premium[data-premium-page] .premium-footer__link::after,
.tpl-premium[data-premium-page] .premium-footer__top-link span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--pf-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tpl-premium[data-premium-page] .premium-footer__link:hover::after,
.tpl-premium[data-premium-page] .premium-footer__link:focus-visible::after,
.tpl-premium[data-premium-page] .premium-footer__top-link:hover span::after,
.tpl-premium[data-premium-page] .premium-footer__top-link:focus-visible span::after {
  transform: scaleX(1);
}

.tpl-premium[data-premium-page] .premium-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tpl-premium[data-premium-page] .premium-footer__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tpl-premium[data-premium-page] .premium-footer__meta > span:first-child {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pf-muted);
}

.tpl-premium[data-premium-page] .premium-footer__meta a,
.tpl-premium[data-premium-page] .premium-footer__meta > span:last-child:not(:only-child) {
  font-size: 13.5px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  color: var(--pf-text);
  text-decoration: none;
}

.tpl-premium[data-premium-page] .premium-footer__meta a:hover,
.tpl-premium[data-premium-page] .premium-footer__meta a:focus-visible {
  color: var(--pf-accent);
}

.tpl-premium[data-premium-page] .premium-footer__hours {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pf-soft);
}

.tpl-premium[data-premium-page] .premium-footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--pf-line);
}

.tpl-premium[data-premium-page] .premium-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.tpl-premium[data-premium-page] .premium-footer__copy-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pf-muted);
}

.tpl-premium[data-premium-page] .premium-footer__studio {
  display: inline-flex;
  align-items: center;
}

.tpl-premium[data-premium-page] .premium-footer__studio img {
  display: block;
  width: auto;
  height: 22px;
}

.tpl-premium[data-premium-page] .premium-footer[data-theme="light"] .premium-footer__studio img {
  filter: invert(1);
}

.tpl-premium[data-premium-page] .premium-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 6px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--pf-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tpl-premium[data-premium-page] .premium-footer__top-link:hover,
.tpl-premium[data-premium-page] .premium-footer__top-link:focus-visible {
  color: var(--pf-text);
}

.tpl-premium[data-premium-page] .premium-footer__top-link svg {
  display: block;
  width: 11px;
  height: 11px;
  transition: transform 0.25s cubic-bezier(0.77, 0, 0.175, 1);
}

.tpl-premium[data-premium-page] .premium-footer__top-link:hover svg,
.tpl-premium[data-premium-page] .premium-footer__top-link:focus-visible svg {
  transform: translateY(-2px);
}

.tpl-premium[data-premium-page] .premium-footer__top-link span {
  position: relative;
  padding-bottom: 2px;
}

@media (max-width: 991px) {
  .tpl-premium[data-premium-page] .premium-footer__inner {
    padding: 48px 32px 0;
  }

  .tpl-premium[data-premium-page] .premium-footer__top {
    flex-direction: column;
    gap: 40px;
  }

  .tpl-premium[data-premium-page] .premium-footer__brand {
    max-width: none;
    flex: none;
  }

  .tpl-premium[data-premium-page] .premium-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .tpl-premium[data-premium-page] .premium-footer__inner {
    padding: 40px 20px 0;
  }

  .tpl-premium[data-premium-page] .premium-footer__columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tpl-premium[data-premium-page] .premium-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 40px;
    padding: 20px 0 28px;
  }
}
