/* Dynaparts 2026-09-30 — header ordinateur + footer rafraîchis.
   Contenu : AP Page Builder, profil « Home 4 » (barre du haut, header, footer : blocs HTML brut
   modifiables dans l'admin). Menu et mobile : css/mobile-header.css. */

/* ---------- Bandeau livraison (toutes tailles) ---------- */
#header .st-fsm-header .alert {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f3f4f6;
  color: #282b2f;
  text-align: center;
}
#header .st-fsm-header .st-fsm-text { font-weight: 700; }
/* livraison gratuite obtenue : vert (le rouge faisait message d'erreur) */
#header .st-fsm-header .alert-success { background: #e7f6ed; color: #17663a; }
#header .st-fsm-header .alert-success .st-fsm-text::before {
  content: "\f00c";
  margin-right: 8px;
  font-family: FontAwesome;
  font-weight: 400;
}

/* ---------- Header ordinateur ---------- */
@media (min-width: 768px) {
  /* Barre du haut */
  #header #topbar { background: #1d2023; }
  #header #topbar .box-top-header { display: flex; align-items: center; min-height: 38px; }
  #header #topbar .box-top-header::before,
  #header #topbar .box-top-header::after { display: none; }
  /* colonnes latérales de même largeur : le milieu (téléphone / promo) est centré sur la page */
  #header #topbar .box-top-header > .ApColumn { float: none; }
  #header #topbar .box-top-header > .ApColumn:first-child,
  #header #topbar .box-top-header > .ApColumn:last-child { flex: 0 0 25%; width: 25%; max-width: 25%; }
  #header #topbar .box-top-header > .ApColumn:nth-child(2) { flex: 1 1 auto; width: auto; min-width: 0; }
  #header #topbar .box-top-header > .ApColumn:nth-child(2) > .ApRawHtml { float: none; display: block; width: 100%; margin: 0; }
  #header #topbar .popup-title,
  #header #topbar .popup-title a,
  #header #topbar .popup-title > i { color: rgba(255, 255, 255, .75); font-size: 12.5px; }
  #header #topbar .popup-title:hover a,
  #header #topbar .popup-title:hover > i { color: #ffffff; }
  #header #topbar .popup-title .fa-globe,
  #header #topbar .popup-title .fa-user { color: #e9271a; }
  .dp-topinfo { margin: 0; color: rgba(255, 255, 255, .75); font-size: 12.5px; line-height: 38px; text-align: center; }
  .dp-topinfo .fa { margin-right: 7px; color: #e9271a; }
  #header #topbar .dp-topinfo a { color: #ffffff; font-weight: 700; }
  #header #topbar .dp-topinfo a:hover, #header #topbar .dp-topinfo a:focus { color: #ffffff; text-decoration: underline; }
  .dp-topinfo span { margin-left: 8px; opacity: .7; }
  /* une promo active dans le même emplacement (admin AP) prend la place */
  #header #topbar .ApRawHtml + .ApRawHtml .dp-topinfo { display: none; }

  #header .st-fsm-header .alert { padding: 9px 15px; font-size: 13.5px; }

  /* Barre principale : logo, menu, compte, panier */
  #leo-top-menu .megamenu > li > a {
    color: #282b2f;
    font-family: 'DP Saira', Verdana, Geneva, sans-serif;
    font-size: 17px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
  }
  #leo-top-menu .megamenu > li > a:hover,
  #leo-top-menu .megamenu > li > a:focus,
  #leo-top-menu .megamenu > li.dp-mm-parent:hover > a,
  #leo-top-menu .megamenu > li.dp-mm-parent:focus-within > a { color: #e9271a; }
  #leo-top-menu .megamenu > li > a::before { background: #e9271a !important; }

  #header .right-bottom-header { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
  #header .right-bottom-header > .block,
  #header .right-bottom-header > .blockcart_top { float: none; margin: 0; }
  .dp-hacc {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 58px;
    height: 56px;
    padding: 0 6px;
    border-radius: 10px;
    color: #282b2f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .dp-hacc:hover, .dp-hacc:focus { background: #f3f4f6; color: #e9271a; text-decoration: none; }
  #header #cart { padding: 0 8px; border-radius: 10px; background: transparent; }
  #header #cart:hover { background: #f3f4f6; }
  #header #cart .ajax_cart_quantity {
    top: -2px;
    right: -8px;
    left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #e9271a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
  }
  #header #cart .ajax_cart_quantity.unvisible { display: none; }

  /* Barre véhicule + recherche */
  #header #bordered #vehicle-search-widget .vehicle-select {
    height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
  }
  #header #bordered #vehicle-search-widget .vehicle-search-btn {
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #e9271a;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  #header #bordered #vehicle-search-widget .vehicle-search-btn:disabled { background: #4a4f55; color: rgba(255, 255, 255, .6); }
  #header #bordered #vehicle-search-widget .vehicle-search-btn:not(:disabled):hover { background: #c41f13; }
  #header #bordered #search_block_top #searchbox { display: flex; align-items: stretch; }
  #header #bordered #search_block_top #search_query_top {
    flex: 1 1 auto;
    height: 42px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
  }
  #header #bordered #search_block_top .btn[name="submit_search"] {
    position: static;
    flex: 0 0 46px;
    width: 46px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #e9271a;
    color: #ffffff;
    font-size: 16px;
    line-height: 42px;
  }
  #header #bordered #search_block_top .btn[name="submit_search"]:hover { background: #c41f13; }
}

/* ---------- Footer ---------- */
#footer { background: #282b2f; color: rgba(255, 255, 255, .72); }
#footer .dp-ft-row { margin: 0; }
#footer .dp-ft-row ul { margin: 0; padding: 0; list-style: none; }
#footer .dp-ft-row li { margin: 0; padding: 0; border: 0; background: none; }
#footer .dp-ft-row li::before { display: none; }

/* Réassurance */
#footer ul.dp-reassure { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
#footer .dp-reassure li { display: flex; align-items: flex-start; gap: 14px; }
#footer .dp-reassure .fa {
  display: flex;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(40, 43, 47, .08);
  color: #e9271a;
  font-size: 19px;
}
#footer .dp-reassure p { margin: 0; }
#footer .dp-reassure strong {
  display: block;
  color: #282b2f;
  font-family: 'DP Saira', Verdana, Geneva, sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
#footer .dp-reassure span { display: block; margin-top: 3px; color: #5d636a; font-size: 13px; line-height: 1.45; }
#footer .dp-reassure a { color: inherit; text-decoration: underline; text-decoration-color: rgba(233, 39, 26, .5); text-underline-offset: 3px; }
#footer .dp-reassure a:hover { color: #e9271a; }

/* Colonnes */
#footer .dp-ft-row--main { padding: 48px 0 30px; }
#footer .dp-ft-brand__logo { display: inline-block; }
#footer .dp-ft-brand__logo img { display: block; width: 220px; max-width: 100%; height: auto; }
#footer .dp-ft-brand__text { max-width: 380px; margin: 18px 0 16px; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.65; }
#footer .dp-ft-brand__text strong { color: #ffffff; font-weight: 600; }
#footer .dp-ft-brand__address { margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; font-style: normal; line-height: 1.75; }
#footer .dp-ft-brand__address strong { color: #ffffff; }
#footer .dp-ft-brand__address a { color: #ffffff; font-weight: 700; }
#footer .dp-ft-brand__follow {
  margin: 20px 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
#footer .dp-ft-social { display: flex; flex-wrap: wrap; gap: 10px; }
#footer .dp-ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #ffffff;
  font-size: 17px;
  transition: background .15s ease, border-color .15s ease;
}
#footer .dp-ft-social a:hover,
#footer .dp-ft-social a:focus { border-color: #e9271a; background: #e9271a; color: #ffffff; }

#footer .dp-ft-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
#footer .dp-ft-group summary {
  display: block;
  margin: 4px 0 14px;
  color: #ffffff;
  font-family: 'DP Saira', Verdana, Geneva, sans-serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 800;
  list-style: none;
  text-transform: uppercase;
}
#footer .dp-ft-group summary::-webkit-details-marker { display: none; }
#footer .dp-ft-group a {
  display: inline-block;
  padding: 5px 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13.5px;
  line-height: 1.4;
}
#footer .dp-ft-group a:hover,
#footer .dp-ft-group a:focus {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #e9271a;
  text-underline-offset: 4px;
}

/* Bas de page */
#footer .dp-ft-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 24px;
  align-items: center;
  padding: 22px 0 26px;
}
#footer .dp-ft-bottom__copy { margin: 0; color: rgba(255, 255, 255, .8); font-size: 13px; }
#footer .dp-ft-bottom__pay { display: block; width: auto; max-width: 100%; height: 26px; }
#footer .dp-ft-bottom__legal { grid-column: 1 / -1; margin: 0; color: rgba(255, 255, 255, .5); font-size: 11.5px; line-height: 1.6; }
#footer .dp-ft-bottom__legal a { color: rgba(255, 255, 255, .75); text-decoration: underline; }

@media (min-width: 768px) {
  #footer .dp-ft-group summary { cursor: default; pointer-events: none; }
}
@media (min-width: 768px) and (max-width: 991px) {
  #footer ul.dp-reassure { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #footer .dp-ft-col--brand { margin-bottom: 30px; }
}

/* ---------- Footer mobile ---------- */
@media (max-width: 767px) {
  #footer ul.dp-reassure { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 22px 0; }
  #footer .dp-reassure li { flex-direction: column; gap: 8px; }
  #footer .dp-reassure .fa { flex-basis: auto; width: 40px; height: 40px; font-size: 17px; }
  #footer .dp-reassure strong { font-size: 14px; }
  #footer .dp-reassure span { font-size: 12px; }
  #footer .dp-ft-row--main { padding: 32px 0 8px; }
  #footer .dp-ft-brand { margin-bottom: 20px; }
  #footer .dp-ft-nav { display: block; }
  #footer .dp-ft-group { border-top: 1px solid rgba(255, 255, 255, .12); }
  #footer .dp-ft-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  #footer .dp-ft-group summary {
    position: relative;
    margin: 0;
    padding: 15px 36px 15px 0;
    cursor: pointer;
    font-size: 16px;
  }
  #footer .dp-ft-group summary::before,
  #footer .dp-ft-group summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 6px;
    width: 14px;
    height: 2px;
    margin-top: -1px;
    background: #ffffff;
    transition: transform .2s ease;
  }
  #footer .dp-ft-group summary::after { transform: rotate(90deg); }
  #footer .dp-ft-group[open] summary::after { transform: rotate(0deg); }
  #footer .dp-ft-group[open] summary::before,
  #footer .dp-ft-group[open] summary::after { background: #e9271a; }
  #footer .dp-ft-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding-bottom: 12px; }
  #footer .dp-ft-group a { padding: 8px 0; }
  #footer .dp-ft-bottom { grid-template-columns: 1fr; text-align: center; }
  #footer .dp-ft-bottom__pay { margin: 0 auto; height: 22px; }
}

/* ---------- Miniature produit (profil AP plist1475749809) : listes, accueil, fiches ---------- */
.dp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: none;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dp-card:hover { border-color: #cfd3d8; box-shadow: 0 12px 28px rgba(40, 43, 47, .10); }
.dp-card .dp-card__media { position: relative; float: none; width: auto; margin: 0; padding: 0; background: #f6f7f8; }
.dp-card .product-image-container { position: relative; margin: 0; padding: 0; border: 0; background: none; }
.dp-card .product_img_link { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; }
.dp-card .product_img_link > img.replace-2x {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 7%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .3s ease;
}
.dp-card:hover .product_img_link > img.replace-2x { transform: scale(1.04); }
.dp-card .dp-card__brand { position: absolute; top: 10px; right: 10px; width: 64px; height: auto; margin: 0; padding: 0; mix-blend-mode: multiply; }
.dp-card .dp-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.dp-card .dp-card__badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 6px;
  background: #e9271a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  text-transform: uppercase;
}
.dp-card .dp-card__badge--new { background: #282b2f; }
.dp-card .dp-card__tools {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  opacity: 0;
  transition: opacity .2s ease;
}
.dp-card:hover .dp-card__tools,
.dp-card .dp-card__tools:focus-within { opacity: 1; }
.dp-card .dp-card__tools .compare { float: none; width: auto; margin: 0; padding: 0; border: 0; }
.dp-card .dp-card__compare {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #dfe2e6;
  border-radius: 999px;
  background: #ffffff;
  color: #282b2f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.dp-card .dp-card__compare:hover,
.dp-card .dp-card__compare.checked { border-color: #282b2f; background: #282b2f; color: #ffffff; }
@media (hover: none) { .dp-card .dp-card__tools { display: none; } }

.dp-card .dp-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  float: none;
  width: auto;
  margin: 0;
  padding: 12px 14px 14px;
  background: #ffffff;
}
.dp-card .hook-reviews { min-height: 0; margin: 0; padding: 0; }
.dp-card .hook-reviews > p { margin: 0; color: #8a9097; font-size: 11px; letter-spacing: .02em; line-height: 1.3; }
.dp-card .ez-delivery-listing { margin-top: 6px !important; padding: 5px 8px !important; border-radius: 6px !important; font-size: 11px !important; }
.dp-card .dp-card__name { min-height: 2.7em; margin: 2px 0 0; padding: 0; font-size: 14px; font-weight: 700; line-height: 1.35; text-transform: none; }
.dp-card .dp-card__name a {
  display: -webkit-box;
  overflow: hidden;
  color: #282b2f;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.dp-card .dp-card__name a:hover,
.dp-card .dp-card__name a:focus { color: #e9271a; text-decoration: none; }
.dp-card .dp-card__desc { display: none; }
.dp-card .dp-card__buy { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 6px; }
.dp-card .content_price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; padding: 0; }
.dp-card .content_price .price.product-price { color: #e9271a; font-size: 19px; font-weight: 800; line-height: 1.1; }
.dp-card .content_price .old-price.product-price { color: #8a9097; font-size: 13px; font-weight: 500; text-decoration: line-through; }
.dp-card .dp-card__cart { float: none; width: auto; margin: 0; padding: 0; }
.dp-card .dp-card__cart .button,
.dp-card .dp-card__cart .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #e9271a;
  box-shadow: none;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}
.dp-card .dp-card__cart .button span,
.dp-card .dp-card__cart .button i { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; line-height: 1; }
.dp-card .dp-card__cart .button:hover,
.dp-card .dp-card__cart .button:focus { background: #c41f13; color: #ffffff; }
.dp-card .dp-card__cart .button.disabled { background: #eef0f2; color: #8a9097; cursor: not-allowed; }
.dp-card .dp-card__cart .dp-card__see { background: #282b2f; }
.dp-card .dp-card__cart .dp-card__see:hover { background: #e9271a; }

@media (max-width: 767px) {
  .dp-card { border-radius: 12px; }
  .dp-card .dp-card__brand { top: 8px; right: 8px; width: 48px; }
  .dp-card .dp-card__badges { top: 8px; left: 8px; }
  .dp-card .dp-card__badge { padding: 4px 6px; font-size: 11px; }
  .dp-card .dp-card__body { gap: 5px; padding: 10px 10px 12px; }
  .dp-card .dp-card__name { min-height: 3.9em; font-size: 13px; }
  .dp-card .dp-card__name a { -webkit-line-clamp: 3; }
  .dp-card .content_price .price.product-price { font-size: 16px; }
  .dp-card .content_price .old-price.product-price { font-size: 12px; }
  .dp-card .dp-card__cart .button,
  .dp-card .dp-card__cart .btn { height: 38px; padding: 0 8px; font-size: 12px; letter-spacing: 0; text-transform: none; }
}
