.ddb-blog{margin-bottom:48px}.ddb-blog a{text-decoration:none}.ddb-filter-description{max-width:900px;margin:0 0 24px;line-height:1.7}.ddb-categories{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 30px}.ddb-categories a{padding:8px 13px;border:1px solid #e2e2e2;border-radius:3px;background:#fff;color:#333}.ddb-categories a:hover{background:#f7f7f7}.ddb-post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:25px}.ddb-post-card{overflow:hidden;border:1px solid #e1e1e1;border-radius:4px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.04)}.ddb-post-card>a{display:block;overflow:hidden}.ddb-post-card img{display:block;width:100%;aspect-ratio:8 / 4;object-fit:fill;transition:transform .25s ease}.ddb-post-card:hover img{transform:scale(1.02)}.ddb-post-body{padding:20px}.ddb-post-meta{font-size:13px;color:#777;margin-bottom:9px}.ddb-post-meta a{color:inherit}.ddb-post-title{margin:0 0 12px;font-size:1.35rem;line-height:1.3}.ddb-post-title a{color:#232323}.ddb-btn-read-more{display:inline-block;margin-top:8px;padding:9px 16px;border-radius:3px;background:#2fb5d2;color:#fff!important}.ddb-pagination{display:flex;gap:6px;flex-wrap:wrap;margin-top:32px}.ddb-pagination a{min-width:38px;padding:8px 11px;border:1px solid #ddd;text-align:center;color:#333}.ddb-pagination a.active{background:#2fb5d2;border-color:#2fb5d2;color:#fff}.ddb-post{max-width:960px;margin-left:auto;margin-right:auto}.ddb-post-cover{display:block;width:100%;height:auto;margin:16px 0 28px;border-radius:4px}.ddb-content{font-size:inherit;line-height:1.75}.ddb-content img{max-width:100%;height:auto}.ddb-excerpt{font-size:1.15rem;line-height:1.65;margin-bottom:25px}.ddb-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:30px}.ddb-tag{padding:6px 10px;border-radius:3px;background:#f1f1f1;color:#333}.ddb-author-box{display:flex;gap:16px;align-items:flex-start;margin-top:32px;padding:20px;border:1px solid #e4e4e4;border-radius:4px;background:#fafafa}.ddb-author-box img{width:72px;height:72px;flex:0 0 72px;border-radius:50%;object-fit:cover}.ddb-products{margin-top:38px}.ddb-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.ddb-product{display:block;padding:12px;border:1px solid #e2e2e2;border-radius:4px;color:#333;text-align:center}.ddb-product-link{display:block;color:inherit;text-decoration:none}.ddb-product-link:hover{color:inherit;text-decoration:none}.ddb-product img{display:block;width:100%;height:150px;object-fit:contain;margin-bottom:9px}@media(max-width:575px){.ddb-post-grid{grid-template-columns:1fr}.ddb-post-body{padding:16px}.ddb-author-box{flex-direction:column}.ddb-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Fiches conseils */
.ddb-advice-intro{max-width:900px;margin:0 auto 2rem;font-size:1.05rem;line-height:1.7}.ddb-advice-categories{display:flex;gap:.65rem;flex-wrap:wrap;margin:0 0 2rem}.ddb-advice-categories a{border:1px solid #ddd;border-radius:999px;padding:.55rem .9rem;text-decoration:none}.ddb-advice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}.ddb-advice-card{background:#fff;border:1px solid #e8e8e8;display:flex;flex-direction:column;height:100%}.ddb-advice-image{display:block;aspect-ratio:4/3;overflow:hidden}.ddb-advice-image img{width:100%;height:100%;object-fit:contain;transition:transform .25s ease}.ddb-advice-card:hover .ddb-advice-image img{transform:scale(1.025)}.ddb-advice-body{padding:1.35rem;display:flex;flex-direction:column;flex:1}.ddb-advice-badge{display:inline-block;align-self:flex-start;font-size:.72rem;font-weight:700;letter-spacing:.12em;border:1px solid currentColor;padding:.28rem .5rem;margin-bottom:.65rem}.ddb-advice-category{font-size:.82rem;opacity:.7;margin-bottom:.4rem}.ddb-advice-card h2{font-size:1.25rem;line-height:1.3;margin:.25rem 0 .8rem}.ddb-advice-card h2 a{text-decoration:none;color:inherit}.ddb-advice-card p{line-height:1.6;flex:1}.ddb-advice-read{font-weight:700;letter-spacing:.06em;text-decoration:none;margin-top:1rem}.ddb-advice-kicker{display:flex;gap:.8rem;align-items:center;margin-bottom:1.25rem}.ddb-advice-kicker .ddb-advice-badge{margin:0}.ddb-advice-lead{font-size:1.15rem;line-height:1.7;margin-bottom:1.5rem}.ddb-advice-cover{width:100%;max-height:620px;object-fit:cover;margin-bottom:2rem}.ddb-advice-content{font-size:inherit;line-height:1.75}.ddb-advice-content h2{margin-top:2rem}.ddb-advice-products{margin-top:2.5rem}.ddb-advice-back{margin-top:2rem}@media(max-width:991px){.ddb-advice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:575px){.ddb-advice-grid{grid-template-columns:1fr}}

/* Images insérées dans le contenu */
.ddb-content-image,.ddb-advice-content .ddb-content-image{display:block;clear:both;margin:1.5rem 0}.ddb-content-image img,.ddb-advice-content .ddb-content-image img{display:block;max-width:100%;height:auto}.ddb-image-center{margin-left:auto!important;margin-right:auto!important;text-align:center}.ddb-image-center img{margin-left:auto;margin-right:auto}.ddb-image-left{margin-right:auto!important;text-align:left}.ddb-image-right{margin-left:auto!important;text-align:right}.ddb-image-right img{margin-left:auto}.ddb-image-w-100{width:100%}.ddb-image-w-75{width:75%}.ddb-image-w-50{width:50%}.ddb-image-w-33{width:33%}@media(max-width:767px){.ddb-image-w-75,.ddb-image-w-50,.ddb-image-w-33{width:100%}}

.ddb-image-w-25{width:25%}.ddb-image-w-custom{max-width:100%}.ddb-image-caption{display:block;margin-top:.45rem;font-size:.9em;line-height:1.4;color:#777}.ddb-image-left .ddb-image-caption{text-align:left}.ddb-image-center .ddb-image-caption{text-align:center}.ddb-image-right .ddb-image-caption{text-align:right}@media(max-width:767px){.ddb-image-w-25,.ddb-image-w-custom{width:100%!important}}

/* Product prices in associated content cards */
.ddb-product-prices{display:flex;align-items:baseline;justify-content:center;gap:.55rem;margin-top:.35rem;line-height:1.25}
.ddb-product-prices strong{font-size:1.05rem;font-weight:700}
.ddb-product-prices del{opacity:.65;font-size:.9rem}

/* Métadonnées de publication */
.ddb-publication-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.35rem;margin:0 0 1.25rem;color:#6c6c6c;font-size:.875em;line-height:1.5}.ddb-publication-meta a{color:inherit;text-decoration:underline}.ddb-meta-separator{opacity:.6}

/* Étiquettes : ombrage discret, intensifié au survol */
.ddb-categories a,
.ddb-advice-categories a,
.ddb-advice-badge,
.ddb-tag{
  box-shadow:0 2px 6px rgba(0,0,0,.10);
  transition:box-shadow .2s ease, transform .2s ease;
}
@media (hover:hover) and (pointer:fine){
  .ddb-categories a:hover,
  .ddb-advice-categories a:hover,
  .ddb-advice-badge:hover,
  .ddb-tag:hover{
    box-shadow:0 5px 14px rgba(0,0,0,.20);
    transform:translateY(-1px);
  }
}

/* Cartes Articles / Conseils / Guides : relief et survol */
.ddb-post-card,
.ddb-advice-card{
  box-shadow:0 3px 10px rgba(0,0,0,.09);
  transition:box-shadow .25s ease;
}
@media (hover:hover) and (pointer:fine){
  .ddb-post-card:hover,
  .ddb-advice-card:hover{
    box-shadow:0 9px 24px rgba(0,0,0,.18);
  }
}

/* Cartes sans bordures */
.ddb-post-card,.ddb-advice-card{border:none!important;}

/* Section contenu Dede Blog sans bordure */
#content:has(.ddb-blog),
#content:has(.ddb-advice),
#content:has(.ddb-guide-detail),
.page-content:has(.ddb-blog),
.page-content:has(.ddb-advice),
.page-content:has(.ddb-guide-detail),
.ddb-blog,
.ddb-advice,
.ddb-guide-detail{
  border:none!important;
}

/* Prix produits associés : même couleur que les prix du thème */
.ddb-product-prices,
.ddb-product-prices strong{
  color:inherit;
}
.ddb-product{
  color:inherit;
}

/* Laisser le thème PrestaShop piloter la couleur des prix */
.ddb-product-prices.product-price-and-shipping .price{
  color:inherit;
}

/* Prix associés : reprendre le style de la fiche produit du thème */
.ddb-product-prices .current-price{
  display:inline;
}
.ddb-product-prices .current-price-value{
  color:inherit;
}

/* Cartes produits associées : sans bordure, ombre statique */
.ddb-product{
  border:none!important;
  box-shadow:0 3px 10px rgba(0,0,0,.09);
  transition:box-shadow .25s ease;
}
@media (hover:hover) and (pointer:fine){
  .ddb-product:hover{
    box-shadow:0 9px 24px rgba(0,0,0,.18);
  }
}

/* Cartes produits associées sans arrondi */
.ddb-product{border-radius:0!important;}

/* Badge CONSEIL / GUIDE centré et sans effet au survol */
.ddb-advice-badge{
  align-self:center!important;
  display:table!important;
  width:auto!important;
  margin-left:auto!important;
  margin-right:auto!important;
  text-align:center!important;
  transition:none!important;
}
@media (hover:hover) and (pointer:fine){
  .ddb-advice-badge:hover{
    box-shadow:0 2px 6px rgba(0,0,0,.10)!important;
    transform:none!important;
  }
}

/* Blog : cartes sans arrondi, étiquettes sans bordure ni arrondi */
.ddb-post-card{
  border-radius:0!important;
}

.ddb-blog .ddb-categories a,
.ddb-blog .ddb-tag{
  border:none!important;
  border-radius:0!important;
}


/* Produits insérés dans le contenu */
.ddb-embedded-product{display:flex;align-items:center;gap:1rem;margin:1.5rem 0;padding:1rem;background:#fff;border:none;box-shadow:0 3px 10px rgba(0,0,0,.09);transition:box-shadow .25s ease;max-width:100%}
.ddb-embedded-product-card{align-items:stretch}
.ddb-embedded-product-image{display:block;flex:0 0 180px;max-width:35%}
.ddb-embedded-product-image img{display:block;width:100%;height:160px;object-fit:contain}
.ddb-embedded-product-body{display:flex;flex:1;min-width:0;flex-direction:column;justify-content:center;gap:.55rem}
.ddb-embedded-product-name{font-weight:600;color:inherit;text-decoration:none}
.ddb-embedded-product-prices{display:flex;align-items:baseline;gap:.55rem;line-height:1.25}
.ddb-embedded-product-prices del{opacity:.65;font-size:.9rem}
.ddb-embedded-product-prices .current-price{display:inline}
.ddb-embedded-product-compact{padding:.75rem}.ddb-embedded-product-compact .ddb-embedded-product-image{flex-basis:100px}.ddb-embedded-product-compact .ddb-embedded-product-image img{height:90px}
@media (hover:hover) and (pointer:fine){.ddb-embedded-product:hover{box-shadow:0 9px 24px rgba(0,0,0,.18)}}
@media(max-width:575px){.ddb-embedded-product{align-items:center}.ddb-embedded-product-image{flex-basis:110px;max-width:40%}.ddb-embedded-product-image img{height:110px}.ddb-embedded-product-compact .ddb-embedded-product-image{flex-basis:80px}.ddb-embedded-product-compact .ddb-embedded-product-image img{height:80px}}

/* Produits insérés dans le contenu : disposition en grille */
.ddb-embedded-product-card{
  display:inline-flex;
  vertical-align:top;
  width:calc(33.333% - 1rem);
  margin:.5rem;
  box-sizing:border-box;
  flex-direction:column;
  align-items:stretch;
  text-align:center;
}
.ddb-embedded-product-card .ddb-embedded-product-image{
  flex:none;
  max-width:none;
  width:100%;
}
.ddb-embedded-product-card .ddb-embedded-product-image img{
  width:100%;
  height:180px;
  object-fit:contain;
}
.ddb-embedded-product-card .ddb-embedded-product-body{
  width:100%;
  align-items:center;
}
.ddb-embedded-product-card .ddb-embedded-product-prices{
  justify-content:center;
}
@media(max-width:991px){
  .ddb-embedded-product-card{width:calc(50% - 1rem)}
}
@media(max-width:575px){
  .ddb-embedded-product-card{
    display:flex;
    width:100%;
    margin:.75rem 0;
  }
}

/* Produits insérés dans le contenu : grille centrée */
.ddb-content .ddb-embedded-product-card,
.ddb-advice-content .ddb-embedded-product-card{
  margin-left:.5rem;
  margin-right:.5rem;
}
.ddb-content,
.ddb-advice-content{
  text-align:initial;
}
.ddb-content .ddb-embedded-product-card:first-of-type,
.ddb-advice-content .ddb-embedded-product-card:first-of-type{
  margin-left:.5rem;
}
/* Le wrapper généré pour une série de produits occupe la largeur et centre les cartes */
.ddb-embedded-products-grid{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:stretch;
  width:100%;
  margin:1rem auto;
}
.ddb-embedded-products-grid .ddb-embedded-product-card{
  display:flex;
  margin:.5rem;
}

.ddb-content:has(.ddb-embedded-product-card),
.ddb-advice-content:has(.ddb-embedded-product-card){
  text-align:center;
}
.ddb-content:has(.ddb-embedded-product-card) > :not(.ddb-embedded-product-card),
.ddb-advice-content:has(.ddb-embedded-product-card) > :not(.ddb-embedded-product-card){
  text-align:initial;
}

/* Produits intégrés : même rendu que les produits associés */
.ddb-embedded-product-card.ddb-product{
  display:inline-block;
  vertical-align:top;
  width:calc(33.333% - 1rem);
  margin:.5rem;
  padding:12px;
  text-align:center;
  border:none!important;
  border-radius:0!important;
  box-shadow:0 3px 10px rgba(0,0,0,.09);
  transition:box-shadow .25s ease;
}
.ddb-embedded-product-card.ddb-product .ddb-product-link{
  display:block;
  color:inherit;
  text-decoration:none;
}
.ddb-embedded-product-card.ddb-product .ddb-product-link img{
  display:block;
  width:100%;
  height:150px;
  object-fit:contain;
  margin-bottom:9px;
}
.ddb-embedded-product-card.ddb-product .ddb-product-prices{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:.55rem;
  margin-top:.35rem;
  line-height:1.25;
}
.ddb-embedded-product-compact.ddb-product{
  display:inline-flex;
  vertical-align:top;
  width:calc(50% - 1rem);
  margin:.5rem;
  padding:12px;
  align-items:center;
  gap:12px;
  text-align:left;
  border:none!important;
  border-radius:0!important;
  box-shadow:0 3px 10px rgba(0,0,0,.09);
  transition:box-shadow .25s ease;
}
.ddb-embedded-product-compact .ddb-embedded-product-image{
  flex:0 0 90px;
  max-width:90px;
}
.ddb-embedded-product-compact .ddb-embedded-product-image img{
  display:block;
  width:90px;
  height:90px;
  object-fit:contain;
  margin:0;
}
.ddb-embedded-product-compact .ddb-embedded-product-body{
  display:flex;
  min-width:0;
  flex:1;
  flex-direction:column;
  gap:.35rem;
}
.ddb-embedded-product-compact .ddb-embedded-product-name{
  font-weight:600;
}
.ddb-embedded-product-compact .ddb-product-prices{
  justify-content:flex-start;
  margin-top:0;
}
@media (hover:hover) and (pointer:fine){
  .ddb-embedded-product-card.ddb-product:hover,
  .ddb-embedded-product-compact.ddb-product:hover{
    box-shadow:0 9px 24px rgba(0,0,0,.18);
  }
}
@media(max-width:991px){
  .ddb-embedded-product-card.ddb-product{width:calc(50% - 1rem)}
}
@media(max-width:575px){
  .ddb-embedded-product-card.ddb-product,
  .ddb-embedded-product-compact.ddb-product{
    display:flex;
    width:100%;
    margin:.75rem 0;
  }
  .ddb-embedded-product-card.ddb-product{
    flex-direction:column;
  }
}

/* Production-safe layout for products embedded in editorial content.
   No :has(); normal content spans the full grid width. */
.ddb-content,
.ddb-advice-content{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

/* Every normal editorial element uses the full content width. */
.ddb-content > :not(.ddb-embedded-product),
.ddb-advice-content > :not(.ddb-embedded-product){
  grid-column:1 / -1!important;
}

/* CARD = vertical product card, 3 / 2 / 1 responsive grid */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  grid-column:auto!important;
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  margin:0!important;
  padding:12px!important;
  flex-direction:column!important;
  align-items:stretch!important;
  text-align:center!important;
  border:none!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}

.ddb-content > .ddb-embedded-product-card .ddb-product-link,
.ddb-advice-content > .ddb-embedded-product-card .ddb-product-link{
  display:flex!important;
  flex:1 1 auto!important;
  flex-direction:column!important;
  color:inherit!important;
  text-decoration:none!important;
}

.ddb-content > .ddb-embedded-product-card .ddb-product-link img,
.ddb-advice-content > .ddb-embedded-product-card .ddb-product-link img{
  display:block!important;
  width:100%!important;
  height:150px!important;
  max-width:100%!important;
  object-fit:contain!important;
  margin:0 0 9px!important;
}

.ddb-content > .ddb-embedded-product-card .ddb-product-link > span,
.ddb-advice-content > .ddb-embedded-product-card .ddb-product-link > span{
  min-height:2.8em!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

.ddb-content > .ddb-embedded-product-card .ddb-product-prices,
.ddb-advice-content > .ddb-embedded-product-card .ddb-product-prices{
  display:flex!important;
  align-items:baseline!important;
  justify-content:center!important;
  gap:.55rem!important;
  margin-top:auto!important;
}

/* COMPACT = deliberately different: horizontal, full-width row */
.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  grid-column:1 / -1!important;
  display:flex!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:12px!important;
  align-items:center!important;
  gap:16px!important;
  text-align:left!important;
  border:none!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}

.ddb-content > .ddb-embedded-product-compact .ddb-embedded-product-image,
.ddb-advice-content > .ddb-embedded-product-compact .ddb-embedded-product-image{
  flex:0 0 100px!important;
  max-width:100px!important;
}

.ddb-content > .ddb-embedded-product-compact .ddb-embedded-product-image img,
.ddb-advice-content > .ddb-embedded-product-compact .ddb-embedded-product-image img{
  display:block!important;
  width:100px!important;
  height:100px!important;
  object-fit:contain!important;
  margin:0!important;
}

.ddb-content > .ddb-embedded-product-compact .ddb-embedded-product-body,
.ddb-advice-content > .ddb-embedded-product-compact .ddb-embedded-product-body{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:.4rem!important;
}

.ddb-content > .ddb-embedded-product-compact .ddb-product-prices,
.ddb-advice-content > .ddb-embedded-product-compact .ddb-product-prices{
  justify-content:flex-start!important;
  margin-top:0!important;
}

@media(max-width:991px){
  .ddb-content,
  .ddb-advice-content{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:575px){
  .ddb-content,
  .ddb-advice-content{
    grid-template-columns:1fr!important;
  }

  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product{
    grid-column:1!important;
  }

  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    grid-column:1!important;
  }
}

/* Centrage horizontal des produits intégrés dans le contenu */
.ddb-content,
.ddb-advice-content{
  justify-content:center!important;
}

/* Une ligne incomplète reste centrée : les cartes occupent une largeur contrôlée */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  justify-self:center!important;
  max-width:320px!important;
}

/* Le mode compact reste centré horizontalement dans la zone de contenu */
.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  justify-self:center!important;
  max-width:760px!important;
}

@media(max-width:991px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product{
    max-width:360px!important;
  }
}

@media(max-width:575px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product,
  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    max-width:100%!important;
  }
}

/* Ajustement centrage des lignes incomplètes + grille compact 2/2/1 */

/* Les cartes produit classiques restent en 3/2/1, mais une ligne incomplète est centrée */
.ddb-content,
.ddb-advice-content{
  justify-items:center!important;
}

/* Carte produit : largeur contrôlée pour que 2 cartes se centrent visuellement */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  width:100%!important;
  max-width:320px!important;
  justify-self:center!important;
}

/* Compact : 2 colonnes sur ordinateur ET tablette */
.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  grid-column:auto!important;
  width:100%!important;
  max-width:360px!important;
  justify-self:center!important;
}

/* Ordinateur : carte 3 colonnes, compact 2 colonnes via placement naturel */
@media(min-width:992px){
  .ddb-content:has(> .ddb-embedded-product-compact),
  .ddb-advice-content:has(> .ddb-embedded-product-compact){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Tablette : compact reste à 2 colonnes */
@media(min-width:576px) and (max-width:991px){
  .ddb-content:has(> .ddb-embedded-product-compact),
  .ddb-advice-content:has(> .ddb-embedded-product-compact){
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Mobile : tout en 1 colonne */
@media(max-width:575px){
  .ddb-content:has(> .ddb-embedded-product-compact),
  .ddb-advice-content:has(> .ddb-embedded-product-compact){
    grid-template-columns:1fr!important;
  }

  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product,
  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    max-width:100%!important;
  }
}

/* Correctif : ne jamais transformer tout le contenu éditorial en grille */
.ddb-content,
.ddb-advice-content{
  display:block!important;
  text-align:initial!important;
  justify-items:initial!important;
  justify-content:initial!important;
}

/* Conteneur virtuel uniquement pour les produits intégrés.
   Les cartes utilisent inline-grid/flex afin de rester centrées sans toucher au texte. */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  display:inline-flex!important;
  vertical-align:top!important;
  width:calc(33.333% - 1rem)!important;
  max-width:320px!important;
  min-height:100%!important;
  margin:.5rem!important;
  flex-direction:column!important;
  box-sizing:border-box!important;
}

.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  display:inline-flex!important;
  vertical-align:top!important;
  width:calc(50% - 1rem)!important;
  max-width:360px!important;
  margin:.5rem!important;
  box-sizing:border-box!important;
}

/* Centre uniquement les produits via un alignement local */
.ddb-content > .ddb-embedded-product,
.ddb-advice-content > .ddb-embedded-product{
  position:relative;
  left:50%;
  transform:translateX(-50%);
}

/* Repositionnement pour plusieurs cartes sur la même ligne */
.ddb-content > .ddb-embedded-product + .ddb-embedded-product,
.ddb-advice-content > .ddb-embedded-product + .ddb-embedded-product{
  left:auto;
  transform:none;
}

/* Variante robuste : les cartes restent centrées grâce aux marges auto si elles sont seules */
.ddb-content > .ddb-embedded-product:first-child:last-child,
.ddb-advice-content > .ddb-embedded-product:first-child:last-child{
  display:flex!important;
  margin-left:auto!important;
  margin-right:auto!important;
  left:auto!important;
  transform:none!important;
}

/* Tablette */
@media(max-width:991px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product{
    width:calc(50% - 1rem)!important;
    max-width:360px!important;
  }

  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    width:calc(50% - 1rem)!important;
  }
}

/* Mobile */
@media(max-width:575px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product,
  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:.75rem 0!important;
    left:auto!important;
    transform:none!important;
  }
}

/* Correctif chevauchement : aucun positionnement relatif/transform sur les produits */
.ddb-content > .ddb-embedded-product,
.ddb-advice-content > .ddb-embedded-product{
  position:static!important;
  left:auto!important;
  transform:none!important;
  float:none!important;
}

/* Les produits restent dans le flux normal */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  display:inline-flex!important;
  vertical-align:top!important;
  width:calc(33.333% - 1rem)!important;
  max-width:320px!important;
  margin:.5rem!important;
  box-sizing:border-box!important;
}

.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  display:inline-flex!important;
  vertical-align:top!important;
  width:calc(50% - 1rem)!important;
  max-width:360px!important;
  margin:.5rem!important;
  box-sizing:border-box!important;
}

/* Centrage sans chevauchement : alignement du contenu inline uniquement */
.ddb-content,
.ddb-advice-content{
  text-align:left!important;
}

/* Les cartes elles-mêmes gardent leur texte centré */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  text-align:center!important;
}

@media(max-width:991px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product{
    width:calc(50% - 1rem)!important;
    max-width:360px!important;
  }

  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    width:calc(50% - 1rem)!important;
  }
}

@media(max-width:575px){
  .ddb-content > .ddb-embedded-product-card.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-card.ddb-product,
  .ddb-content > .ddb-embedded-product-compact.ddb-product,
  .ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
    display:flex!important;
    width:100%!important;
    max-width:100%!important;
    margin:.75rem 0!important;
  }
}

/* Centrage sûr des produits sur la page de contenu */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product,
.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  position:static!important;
  left:auto!important;
  transform:none!important;
}

/* Centre une carte seule sans modifier les paragraphes/titres */
.ddb-content > .ddb-embedded-product:first-of-type:last-of-type,
.ddb-advice-content > .ddb-embedded-product:first-of-type:last-of-type{
  display:flex!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Quand plusieurs produits se suivent, le groupe est centré horizontalement */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  margin-left:.5rem!important;
  margin-right:.5rem!important;
}

/* Le texte interne des cartes produit reste centré */
.ddb-content > .ddb-embedded-product-card.ddb-product,
.ddb-advice-content > .ddb-embedded-product-card.ddb-product{
  text-align:center!important;
}

/* Les compacts gardent leur présentation horizontale */
.ddb-content > .ddb-embedded-product-compact.ddb-product,
.ddb-advice-content > .ddb-embedded-product-compact.ddb-product{
  text-align:left!important;
}

.ddb-embedded-products-row{
  display:flex!important;
  flex-wrap:wrap!important;
  justify-content:center!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  margin:1rem auto!important;
  clear:both!important;
}
.ddb-embedded-products-row > .ddb-embedded-product{
  position:static!important;
  left:auto!important;
  transform:none!important;
}

/* Compact : 2 par ligne ordinateur/tablette, 1 par ligne mobile */
.ddb-embedded-products-row > .ddb-embedded-product-compact.ddb-product{
  flex:0 1 calc(50% - 1rem)!important;
  width:calc(50% - 1rem)!important;
  max-width:360px!important;
  margin:.5rem!important;
  box-sizing:border-box!important;
}

@media(max-width:575px){
  .ddb-embedded-products-row > .ddb-embedded-product-compact.ddb-product{
    flex:0 0 100%!important;
    width:100%!important;
    max-width:100%!important;
    margin:.75rem 0!important;
  }
}

/* Titres produits sémantiques : H3 sans changement visuel */
.ddb-product-title{
  margin:0!important;
  padding:0!important;
  font-size:inherit!important;
  line-height:inherit!important;
  font-weight:inherit!important;
  color:inherit!important;
  text-transform:none!important;
}
.ddb-product-link .ddb-product-title{
  min-height:2.8em;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.ddb-embedded-product-compact .ddb-product-title{
  min-height:0;
  justify-content:flex-start;
  text-align:left;
  font-weight:600!important;
}
