/* Pied de page Traciel — maquette desktop 1440 / mobile 390 */

#footer {
  float: none !important;
  display: block;
  width: 100%;
  clear: both;
  padding: 0;
  margin: 0;
  background: #f4f7fb !important;
}

#footer .footer-container,
#footer .footer-bottom2 {
  display: none !important;
}

.tf-legacy-hooks .block-contact,
.tf-legacy-hooks .links,
.tf-legacy-hooks .block_newsletter,
.tf-legacy-hooks .email_subscription,
.tf-legacy-hooks .wrapper,
.tf-legacy-hooks .footer-link {
  display: none !important;
}

.footer-before {
  display: flow-root;
  float: none;
  width: 100%;
  clear: both;
}

.tf-footer {
  --tf-navy: #0028b8;
  --tf-heading: #164a9a;
  --tf-text: #5b6b7c;
  --tf-muted: #7a8794;
  --tf-bg: #f4f7fb;
  --tf-legal: #e7edf6;
  --tf-line: #d5dee8;
  --tf-magenta: #e8467c;
  --tf-orange: #f5a623;
  --tf-cyan: #2ec5c1;
  --tf-green: #7ac943;
  --tf-radius: 10px;
  display: block;
  float: none;
  clear: both;
  width: 100%;
  background: var(--tf-bg);
  color: var(--tf-text);
  font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
}

.tf-rainbow {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    to right,
    var(--tf-magenta) 0 25%,
    var(--tf-orange) 25% 50%,
    var(--tf-cyan) 50% 75%,
    var(--tf-green) 75% 100%
  );
}

.tf-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 50px 24px;
  box-sizing: border-box;
}

.tf-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) 1fr 1fr 1fr;
  grid-template-areas:
    "id prod serv help"
    "id b2b b2b guide";
  gap: 28px 32px;
  align-items: start;
}

.tf-id { grid-area: id; }
.tf-acc--prod { grid-area: prod; }
.tf-acc--serv { grid-area: serv; }
.tf-acc--help { grid-area: help; }
.tf-b2b { grid-area: b2b; }
.tf-guide { grid-area: guide; }

.tf-logo {
  display: inline-block;
  margin-bottom: 10px;
}

.tf-logo img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
}

.tf-tagline {
  margin: 0 0 12px;
  color: var(--tf-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tf-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.tf-brands span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  background: #fff;
  color: var(--tf-heading);
  font-size: 12px;
  font-weight: 700;
}

.tf-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--tf-text);
}

.tf-ico {
  flex: 0 0 auto;
  display: block;
}

.tf-phone,
.tf-mail,
.tf-hours {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--tf-heading);
  text-decoration: none;
  font-size: 14px;
}

.tf-phone--desktop {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tf-phone--mobile {
  display: none;
}

.tf-mail,
.tf-hours {
  color: var(--tf-text);
  font-size: 13px;
  font-weight: 500;
}

.tf-mail:hover,
.tf-phone:hover {
  color: var(--tf-navy);
  text-decoration: none;
}

.tf-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--tf-navy);
  border-radius: 10px;
  background: #fff;
  color: var(--tf-navy);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.tf-callback:focus-visible,
.tf-cookies:focus-visible,
.tf-phone:focus-visible,
.tf-guide:focus-visible {
  outline: 2px solid var(--tf-navy);
  outline-offset: 2px;
}

.tf-acc {
  border: 0;
  background: transparent;
}

.tf-acc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--tf-cyan);
  color: var(--tf-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: default;
}

.tf-acc--prod summary { border-bottom-color: var(--tf-magenta); }
.tf-acc--serv summary { border-bottom-color: var(--tf-orange); }
.tf-acc--help summary { border-bottom-color: var(--tf-cyan); }

.tf-acc summary::-webkit-details-marker,
.tf-acc summary::marker {
  display: none;
  content: "";
}

.tf-acc summary::after {
  display: none;
}

.tf-acc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-acc li {
  margin: 0 0 7px;
  color: var(--tf-text);
}

.tf-acc a {
  color: var(--tf-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.tf-acc a:hover {
  color: var(--tf-navy);
  text-decoration: none;
}

.tf-b2b {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--tf-radius);
  box-shadow: 0 2px 8px rgba(16, 42, 80, 0.05);
  padding: 16px 18px 14px;
}

.tf-b2b summary {
  border-bottom: 0;
  margin-bottom: 12px;
  padding: 0;
  justify-content: space-between;
  gap: 8px;
  text-transform: uppercase;
  font-size: 13px;
}

.tf-acc__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tf-b2b__ico {
  flex: 0 0 auto;
  color: var(--tf-navy);
}

.tf-b2b__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}

.tf-guide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 16px 44px 16px 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--tf-green);
  border-radius: var(--tf-radius);
  box-shadow: 0 2px 8px rgba(16, 42, 80, 0.05);
  text-decoration: none;
  box-sizing: border-box;
}

.tf-guide:hover {
  text-decoration: none;
}

.tf-guide__kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--tf-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tf-guide__title {
  display: block;
  color: var(--tf-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.tf-guide__sub {
  display: block;
  margin-top: 2px;
  color: var(--tf-text);
  font-size: 13px;
}

.tf-guide__arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--tf-navy);
  transform: translateY(-50%);
}

.tf-legal {
  background: var(--tf-legal);
  margin-top: 8px;
}

.tf-legal .tf-inner {
  padding-top: 16px;
  padding-bottom: 16px;
}

.tf-legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta cards"
    "nav alt";
  gap: 10px 24px;
  align-items: center;
}

.tf-legal__meta { grid-area: meta; }
.tf-pay--cards { grid-area: cards; }
.tf-legal__nav { grid-area: nav; }
.tf-pay--alt { grid-area: alt; }

.tf-legal__meta {
  margin: 0;
  color: var(--tf-muted);
  font-size: 11px;
  line-height: 1.45;
}

.tf-legal__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.tf-legal__nav a {
  color: var(--tf-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 0;
}

.tf-legal__nav a:not(:last-of-type)::after {
  content: "·";
  margin: 0 8px;
  color: #b5c0cc;
}

.tf-legal__nav a:hover {
  color: var(--tf-navy);
}

.tf-cookies {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--tf-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--tf-navy);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.tf-cookies:hover {
  background: var(--tf-navy);
  color: #fff;
}

.tf-pay {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-pay span,
.tf-pay__mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #d3dce6;
  border-radius: 6px;
  background: #fff;
  color: var(--tf-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tf-pay--alt span {
  background: transparent;
  color: #6b7c8d;
  font-weight: 600;
}

.tf-pay__mc {
  gap: 0;
  min-width: 46px;
  position: relative;
}

.tf-pay__mc i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.tf-pay__mc i:first-child {
  background: #eb001b;
  margin-right: -4px;
}

.tf-pay__mc i:last-child {
  background: #f79e1b;
}

@media (max-width: 991px) {
  .tf-inner {
    padding: 20px 16px 16px;
  }

  .tf-main {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .tf-id {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
  }

  .tf-logo { order: 1; }
  .tf-tagline { order: 2; }
  .tf-brands { order: 3; }
  .tf-desc { order: 4; }
  .tf-phone--mobile { order: 5; }
  .tf-callback { order: 6; }
  .tf-id .tf-mail { order: 7; }
  .tf-id .tf-hours { order: 8; }

  .tf-tagline {
    font-size: 17px;
  }

  .tf-phone--desktop {
    display: none;
  }

  .tf-phone--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin: 4px 0 10px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--tf-navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
  }

  .tf-phone--mobile:hover {
    color: #fff;
    background: #001f91;
  }

  .tf-callback {
    display: flex;
    width: 100%;
    margin-top: 0;
  }

  .tf-id .tf-mail,
  .tf-id .tf-hours {
    display: flex;
    justify-content: center;
    margin: 8px 0 0;
    font-size: 13px;
  }

  .tf-guide {
    order: 2;
    width: 100%;
    margin: 8px 0 16px;
    min-height: 72px;
  }

  .tf-acc {
    order: 3;
    width: 100%;
    border-top: 1px solid #d7e0ea;
    background: var(--tf-legal);
    margin: 0;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .tf-acc:last-of-type {
    border-bottom: 1px solid #d7e0ea;
    margin-bottom: 16px;
  }

  .tf-acc summary {
    min-height: 44px;
    margin: 0;
    padding: 10px 0;
    border-bottom: 0;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
  }

  .tf-acc summary::after {
    display: block;
    content: "";
    flex: 0 0 auto;
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--tf-heading);
    border-bottom: 2px solid var(--tf-heading);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .tf-acc[open] summary::after {
    transform: rotate(-135deg) translateY(-2px);
    margin-top: 0;
  }

  .tf-acc ul {
    padding: 0 0 12px;
  }

  .tf-acc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0;
  }

  .tf-b2b {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--tf-legal);
    padding: 0 16px;
  }

  .tf-b2b summary {
    margin-bottom: 0;
    padding: 10px 0;
  }

  .tf-b2b__ico {
    display: none;
  }

  .tf-b2b__links {
    display: block;
  }

  .tf-legal .tf-inner {
    padding: 16px;
  }

  .tf-legal__grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .tf-pay--cards { order: 1; }
  .tf-pay--alt { order: 2; }
  .tf-legal__nav { order: 3; }
  .tf-legal__meta { order: 4; margin-top: 4px; }

  .tf-legal__nav {
    justify-content: flex-start;
  }

  .tf-legal__nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .tf-cookies {
    margin: 8px 0 0;
    min-height: 44px;
    width: auto;
  }

  .tf-pay {
    justify-content: stretch;
    width: 100%;
  }

  .tf-pay li {
    flex: 1 1 0;
  }

  .tf-pay span,
  .tf-pay__mc {
    width: 100%;
    min-width: 0;
    min-height: 36px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .tf-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .tf-acc,
  .tf-b2b {
    /* margin-left: -24px; */
    /* margin-right: -24px; */
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 992px) {
  .tf-acc summary {
    pointer-events: none;
  }

  .tf-b2b__links {
    display: grid !important;
  }
}
