/* ==========================================================================
   FOOTER DEELUXE W26 - widget Creative Elements "dlx-footer" (module io_home_w26)
   Feuille chargée par le modèle de footer CE : /img/cms/home-w26-2/css/footer-w26.css
   Portée : uniquement .dlx-footer. Aucun fichier du thème n'est touché.
   Desktop : 5 colonnes 2.2fr / 1fr x 4. Mobile (< 900px) : accordéon <details>.
   ========================================================================== */

@font-face {
  font-family: "DLX Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/img/cms/home-w26-2/fonts/instrument-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.dlx-footer {
  --dlx-footer-ink: #1A1512;
  --dlx-footer-link: #4A423A;
  --dlx-footer-muted: #6D6359;
  --dlx-footer-hover: #8A5A2E;
  --dlx-footer-line: #E0D8CD;
  --dlx-footer-pill: #DDD5C9;
  --dlx-footer-page: #FAF8F5;
  --dlx-footer-sans: "DLX Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px 36px;
  color: var(--dlx-footer-ink);
  font-family: var(--dlx-footer-sans);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.dlx-footer *,
.dlx-footer *::before,
.dlx-footer *::after {
  box-sizing: border-box;
}

/* Le thème ajoute 40px blancs en haut de #footer : le footer crème démarre directement.
   Sur la home (fond crème jusqu'en bas), la marge de .page-footer (25px) prend aussi la couleur crème. */
#footer:has(.dlx-footer-section) {
  padding-top: 0;
  background-color: #FAF8F5;
}
body#index:has(.dlx-footer-section) #wrapper,
body#index:has(.dlx-footer-section) #wrapper main {
  background-color: #FAF8F5;
}
body#index:has(.dlx-footer-section) #wrapper .page-footer {
  margin: 0;
}

/* Section CE qui porte le footer : fond crème pleine largeur, sans marge du thème */
.elementor .dlx-footer-section.elementor-section {
  background-color: #FAF8F5;
}
.elementor .dlx-footer-section .elementor-widget-container,
.elementor .dlx-footer-section .elementor-widget-wrap,
.elementor .dlx-footer-section .elementor-column-wrap {
  padding: 0 !important;
}

/* Remise à plat des styles du thème (liens, listes, titres, paragraphes) */
.dlx-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dlx-footer p,
.dlx-footer h3 {
  margin: 0;
}
.dlx-footer a {
  font: inherit;
  color: var(--dlx-footer-link);
  text-decoration: none;
  transition: color .15s ease;
}
.dlx-footer a:hover,
.dlx-footer a:focus-visible {
  color: var(--dlx-footer-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dlx-footer a:focus-visible,
.dlx-footer summary:focus-visible {
  outline: 2px solid var(--dlx-footer-hover);
  outline-offset: 2px;
  border-radius: 2px;
}
.dlx-footer img {
  display: block;
  max-width: none;
}

/* -------------------------------------------------------------------------
   Grille desktop
   ------------------------------------------------------------------------- */
.dlx-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 4fr);
  gap: 36px;
}
.dlx-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px;
}

/* Colonne marque */
.dlx-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.dlx-footer__logo {
  display: inline-block;
}
.dlx-footer__logo img {
  width: auto;
  height: 24px;
}
.dlx-footer p.dlx-footer__baseline {
  max-width: 260px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dlx-footer-muted);
}
.dlx-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.dlx-footer .dlx-footer__social a {
  font-weight: 500;
  font-size: 13px;
  color: var(--dlx-footer-ink);
}

/* Colonnes de liens */
.dlx-footer__summary {
  display: block;
  list-style: none;
  cursor: default;
}
.dlx-footer__summary::-webkit-details-marker {
  display: none;
}
.dlx-footer h3.dlx-footer__title {
  margin: 0 0 16px;
  padding: 0;
  font-family: var(--dlx-footer-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dlx-footer-ink);
}
.dlx-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.dlx-footer__links a {
  font-size: 13.5px;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------
   Ligne légale
   ------------------------------------------------------------------------- */
.dlx-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--dlx-footer-line);
}
.dlx-footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12.5px;
  color: var(--dlx-footer-muted);
}
.dlx-footer p.dlx-footer__copyright {
  font-size: 12.5px;
  color: var(--dlx-footer-muted);
}

/* Pilule "Français · EUR" */
.dlx-footer__locale {
  position: relative;
}
.dlx-footer__pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--dlx-footer-pill);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--dlx-footer-ink);
  list-style: none;
  cursor: pointer;
  user-select: none;
}
.dlx-footer__dot {
  margin: 0 6px;
}
.dlx-footer__pill::-webkit-details-marker {
  display: none;
}
.dlx-footer__pill::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.dlx-footer__locale[open] .dlx-footer__pill::after {
  transform: translateY(1px) rotate(-135deg);
}
.dlx-footer__popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: flex;
  gap: 4px;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--dlx-footer-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(26, 21, 18, .12);
}
.dlx-footer__choices {
  flex: 1;
}
.dlx-footer__choices + .dlx-footer__choices {
  padding-left: 4px;
  border-left: 1px solid var(--dlx-footer-line);
}
.dlx-footer .dlx-footer__choices a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--dlx-footer-ink);
  white-space: nowrap;
}
.dlx-footer .dlx-footer__choices a:hover {
  background: #F0ECE5;
  text-decoration: none;
}
.dlx-footer .dlx-footer__choices a[aria-current] {
  font-weight: 600;
}

/* Logos de paiement : niveaux de gris, 75 % d'opacité */
.dlx-footer__payments {
  display: flex;
  align-items: center;
  gap: 18px;
  filter: grayscale(1);
  opacity: .75;
}

/* -------------------------------------------------------------------------
   Mobile et tablette (< 900px) : accordéon
   ------------------------------------------------------------------------- */
@media (max-width: 899.98px) {
  .dlx-footer {
    padding: 48px 16px 28px;
  }
  .dlx-footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .dlx-footer__nav {
    display: block;
    border-top: 1px solid var(--dlx-footer-line);
  }
  .dlx-footer__group {
    border-bottom: 1px solid var(--dlx-footer-line);
  }
  .dlx-footer__summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding-right: 32px;
    cursor: pointer;
  }
  .dlx-footer__summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 12px;
    height: 12px;
    margin-top: -6px;
    background:
      linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
    transition: transform .2s ease;
  }
  .dlx-footer__group[open] .dlx-footer__summary::after {
    transform: rotate(45deg);
  }
  .dlx-footer h3.dlx-footer__title {
    margin: 0;
    font-size: 12.5px;
  }
  .dlx-footer__links {
    gap: 0;
    padding-bottom: 12px;
  }
  .dlx-footer__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .dlx-footer__social {
    gap: 4px 20px;
  }
  .dlx-footer .dlx-footer__social a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  /* Logos de paiement, puis ligne légale */
  .dlx-footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
  }
  .dlx-footer__legal {
    width: 100%;
    justify-content: space-between;
  }
  .dlx-footer__pill {
    min-height: 44px;
    padding: 6px 16px;
  }
  .dlx-footer__popover {
    right: 0;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dlx-footer a,
  .dlx-footer__summary::after {
    transition: none;
  }
}
