
/* ===== Prototype « nouvelle présentation » (URL de test uniquement) ===== */

.ex-rubrique { margin: 0 0 .3rem; font: 800 11px/1 'Inter', system-ui, sans-serif;
  letter-spacing: .08em; color: var(--c-magenta, #e5007d); }

.ex-apercu { margin-top: .9rem; padding: .9rem 1rem; border: 1px dashed var(--c-gray-200, #e6e6e6);
  border-radius: 10px; background: var(--c-gray-50, #fafafa); display: flex; flex-direction: column;
  align-items: center; gap: .4rem; }
.ex-apercu-rect { background: #fff; border: 2px solid var(--c-gray-400, #bbb); border-radius: 2px;
  box-shadow: 4px 6px 10px rgba(0, 0, 0, .12); transition: width .2s, height .2s; }
.ex-apercu-cotes { margin: 0; font-weight: 700; font-size: .85rem; color: var(--c-gray-700, #555); }
.ex-apercu-note { margin: 0; font-size: .72rem; color: var(--c-gray-500, #888); text-align: center; }

.ex-usages { margin: .9rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.ex-usages li { background: var(--c-gray-50, #fafafa); border: 1px solid var(--c-gray-200, #e6e6e6);
  border-radius: 20px; padding: .35rem .8rem; font-size: .8rem; font-weight: 600; color: var(--c-gray-700, #555); }
.ex-usages li::before { content: '✓ '; color: var(--c-cyan, #00AEEF); font-weight: 800; }

.ex-colonne { box-shadow: 0 8px 30px rgba(31, 60, 88, .06); }

.ex-sticky-barre { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--c-gray-200, #e6e6e6);
  box-shadow: 0 -8px 30px rgba(31, 60, 88, .1);
  padding: .8rem 1.4rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transform: translateY(110%); transition: transform .25s ease; }
.ex-sticky-barre.is-visible { transform: translateY(0); }
.ex-sticky-nom { font-weight: 700; font-size: .95rem; color: var(--c-gray-900, #1b2b3b);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-sticky-prix { font-weight: 800; font-size: 1.05rem; color: var(--c-magenta, #e5007d);
  flex: none; margin-left: auto; margin-right: .6rem; }
.ex-sticky-lien { flex: none; background: var(--c-magenta, #e5007d); color: #fff; font-weight: 700;
  font-size: .85rem; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.ex-sticky-lien:hover { opacity: .9; }

.ex-ligne-cartes { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.ex-ligne-cartes .ex-choix { flex: 1 1 100%; text-align: left; }
.ex-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; width: 100%; }
.ex-carte-opt { border: 1.5px solid var(--c-gray-200, #e6e6e6); background: #fff; border-radius: 10px;
  padding: .6rem .7rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--c-gray-900, #1b2b3b);
  text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ex-carte-opt:hover { border-color: var(--c-gray-400, #bbb); transform: translateY(-1px); }
.ex-carte-opt.is-actif { border-color: var(--c-magenta, #e5007d); background: #fff5fa;
  box-shadow: 0 0 0 1px var(--c-magenta, #e5007d); color: var(--c-magenta, #e5007d); }

/* ⭐⭐⭐⭐ 4 vraies étapes groupées (brief du 07/11/2026), construites par le
   script en fin de page — barre de progression + une étape ouverte à la
   fois, résumé dans l'en-tête de chaque étape repliée. */
.ex-progression { display: flex; gap: .4rem; margin-bottom: 1.1rem; }
.ex-progression span { height: 4px; border-radius: 20px; background: var(--c-gray-200, #e6e6e6); flex: 1; }
.ex-progression span.on { background: var(--c-magenta, #e5007d); }
.ex-etape-grande { border: 1px solid var(--c-gray-200, #e6e6e6); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
.ex-etape-grande.ex-etape-courante { border-color: #f3b8d4; box-shadow: 0 0 0 2px #fdeef5; }
.ex-etape-tete { width: 100%; border: 0; font: inherit; text-align: left; color: inherit;
  padding: .8rem .9rem; display: flex; gap: .7rem; align-items: center; cursor: pointer; background: #fff; }
.ex-etape-num { background: var(--c-gray-100, #f0f0f0); border-radius: 7px; width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center; font-size: .78rem; font-weight: 850; color: var(--c-gray-700, #506b89); flex: none; }
.ex-etape-courante .ex-etape-num { background: var(--c-magenta, #e5007d); color: #fff; }
.ex-etape-titre { flex: 1; }
.ex-etape-titre strong { display: block; font-size: .85rem; }
.ex-etape-caret { font-size: 1.1rem; color: var(--c-gray-400, #94a0ad); transition: transform .15s; }
.ex-etape-courante .ex-etape-caret { transform: rotate(180deg); }
.ex-etape-corps { padding: 0 .9rem .9rem; border-top: 1px solid var(--c-gray-100, #f0f3f7); display: none; }
.ex-etape-courante .ex-etape-corps { display: block; padding-top: .8rem; }
.ex-etape-corps .ex-ligne { margin-bottom: 1rem; }
.ex-etape-corps .ex-ligne:last-child { margin-bottom: 0; }
.ex-prix-dans-etape { border: 0 !important; box-shadow: none !important; padding: 0 !important; }

/* Résumé permanent de la colonne droite — données réelles uniquement,
   aucun prix recalculé côté client. */
.ex-resume-aside { background: #fff; border: 1px solid var(--c-gray-200, #e6e6e6); border-radius: 15px;
  box-shadow: 0 9px 35px rgba(28, 47, 78, .075); padding: 1.3rem; }
.ex-resume-aside h2 { font-size: 1.05rem; margin: 0 0 1rem; }
.ex-resume-item { display: flex; gap: .8rem; border-bottom: 1px solid var(--c-gray-200, #e6e6e6); padding-bottom: .9rem; }
.ex-resume-item strong { font-size: .85rem; }
.ex-resume-item p { font-size: .72rem; color: var(--c-gray-600, #8193a6); margin: .2rem 0; }
.ex-resume-mini { width: 54px; height: 64px; border-radius: 6px; background: #fff; border: 1px solid var(--c-gray-200, #d8e5ef); flex: none; }
.ex-resume-lignes { margin-top: .7rem; }
.ex-resume-ligne { display: flex; justify-content: space-between; gap: .5rem; font-size: .76rem; padding: .45rem 0; color: var(--c-gray-600, #60748a); }
.ex-resume-ligne b { color: var(--c-gray-900, #253d57); font-weight: 750; text-align: right; }
.ex-resume-prixzone { background: var(--c-gray-50, #f4f8fd); border-radius: 10px; padding: .9rem; margin-top: .7rem; }
.ex-resume-prixzone small { color: var(--c-gray-600, #798ca0); font-size: .68rem; }
.ex-resume-prix { font-size: 1.7rem; font-weight: 900; letter-spacing: -.5px; color: var(--c-magenta, #e5007d); line-height: 1.15; }
.ex-resume-prixzone p { font-size: .68rem; color: var(--c-gray-600, #73869a); margin: .25rem 0; }
.ex-resume-note { font-style: italic; }
.ex-resume-cta { display: block; text-align: center; background: var(--c-magenta, #e5007d); color: #fff; font-weight: 750;
  padding: .8rem; border-radius: 9px; text-decoration: none; margin-top: .7rem; font-size: .85rem; }
.ex-resume-cta:hover { opacity: .92; }
.ex-resume-notice { font-size: .68rem; color: var(--c-gray-500, #8493a4); text-align: center; margin: .6rem 0 0; }

/* ===== Vraie structure 3 colonnes (brief du 07/11/2026, v2) =====
   Visuel 35% | Configurateur 40% | Récapitulatif RÉEL 25%. La grille de
   tarifs ne reste plus seule dans sa propre colonne : le script la déplace
   dans l'étape 3 du configurateur central (pas de duplication, le même
   élément DOM est repositionné). La colonne de droite est le NOUVEAU
   résumé sticky (`.ex-resume-aside`), pas l'ancienne `.ex-colonne-prix`.
   Leçon du 1ᵉʳ essai cassé (bak-layout2col-20261107-022956) : aucune grille
   interne imbriquée ne doit entrer en conflit avec la grille externe —
   `.ex-haut` ET `.ex-config` restent aplatis via `display:contents`. */
@media (min-width: 1150px) {
  .ex-section > .container {
    display: grid;
    grid-template-columns: 35% 40% 25%;
    grid-template-areas:
      "fil fil fil"
      "titre titre titre"
      "galerie config resume";
    column-gap: 1.6rem;
    align-items: start;
  }
  .ex-section > .container > .ex-fil { grid-area: fil; }
  .ex-section > .container > .ex-haut { display: contents; }
  .ex-section > .container > .ex-haut > .ex-galerie {
    grid-area: galerie; position: sticky; top: 1.5rem; align-self: start;
  }
  .ex-section > .container > .ex-haut > .ex-presentation { grid-area: titre; min-width: 0; }
  .ex-section > .container > .ex-config { display: contents; }
  .ex-section > .container > .ex-config > .ex-colonne:not(.ex-colonne-prix) { grid-area: config; min-width: 0; }
  .ex-section > .container > .ex-config > .ex-droite { display: contents; }
  /* Filet de sécurité si le script JS ne s'exécute pas : la grille de
     tarifs retombe dans la colonne configurateur plutôt que de disparaître. */
  .ex-section > .container > .ex-config .ex-colonne-prix { grid-area: config; min-width: 0; }
  .ex-section > .container > .ex-resume-aside { grid-area: resume; min-width: 0; position: sticky; top: 1.5rem; align-self: start; }
  .ex-sticky-barre { display: none; }
}
@media (max-width: 1149px) {
  .ex-resume-aside { margin-top: 1.4rem; }
}

/* ===== Tablette (741–1149px) — brief §6 : deux colonnes, récap en dessous
   ===== */
@media (min-width: 741px) and (max-width: 1149px) {
  .ex-section > .container {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    grid-template-areas:
      "fil fil"
      "titre titre"
      "galerie config"
      "resume resume";
    column-gap: 1.3rem;
    align-items: start;
  }
  .ex-section > .container > .ex-fil { grid-area: fil; }
  .ex-section > .container > .ex-haut { display: contents; }
  /* ⚠️ Pas de position:sticky ici : la rangée « galerie/config » partage sa
     hauteur avec la rangée « resume » juste après dans certains cas de
     bord, et un élément sticky peut déborder visuellement sur la rangée
     suivante — repéré en testant à 1024px (chevauchement avec le résumé). */
  .ex-section > .container > .ex-haut > .ex-galerie { grid-area: galerie; align-self: start; }
  .ex-section > .container > .ex-haut > .ex-presentation { grid-area: titre; min-width: 0; }
  .ex-section > .container > .ex-config { display: contents; }
  .ex-section > .container > .ex-config > .ex-colonne:not(.ex-colonne-prix) { grid-area: config; min-width: 0; }
  .ex-section > .container > .ex-config > .ex-droite { display: contents; }
  .ex-section > .container > .ex-config .ex-colonne-prix { grid-area: config; min-width: 0; }
  .ex-section > .container > .ex-resume-aside { grid-area: resume; min-width: 0; position: static; margin-top: 1rem; }
}
@media (min-width: 741px) { .ex-sticky-barre { display: none; } }

/* ===== DOEMO TEST — Correctif structurel 2026-11-07 =====
   Remplace les pourcentages (35% + 40% + 25% + gaps = debordement).
   Applique la nouvelle disposition uniquement a la fiche test. */
.ex-section > .container { min-width: 0; }
.ex-details-bas { min-width: 0; margin-top: 1rem; padding: 1.5rem; background: #fff;
  border: 1px solid #e2e7ee; border-radius: 14px; }
.ex-details-bas .ex-onglets { flex-wrap: wrap; }
.ex-galerie { background:#fff; border:1px solid #e2e7ee; border-radius:14px;
  padding: 1rem; min-width: 0; box-shadow:0 7px 26px rgba(30,60,90,.045); }
.ex-galerie .ex-atouts { margin-top: 1rem; }
.ex-etape-tete:focus-visible, .ex-carte-opt:focus-visible, .ex-resume-cta:focus-visible {
  outline: 3px solid #197ad4; outline-offset: 2px;
}
.ex-etape-tete[aria-expanded="true"] { background: #f7fbff; }
.ex-etape-courante { scroll-margin-top: 90px; }
#ex-tarifs { scroll-margin-top: 96px; }
.ex-resume-aside { max-width: 100%; overflow-wrap: anywhere; }
.ex-resume-aside .ex-resume-ligne { flex-wrap: wrap; }
.ex-resume-aside .ex-resume-ligne b { max-width: 100%; }
.ex-etape-corps .ex-ligne { grid-template-columns: 1fr; gap: .5rem; }
.ex-etape-corps .ex-ligne .ex-num { display: none; }
.ex-etape-corps .ex-ligne label { white-space: normal; }
.ex-etape-corps .ex-ligne .ex-choix { min-width: 0; }
.ex-etape-corps .ex-cartes { grid-template-columns: repeat(auto-fit, minmax(105px,1fr)); }
.ex-etape-corps .ex-colonne-prix { max-width: 100%; overflow-x: auto; }
.ex-etape-corps .bq-scroll { max-width: 100%; overflow-x: auto; }
@media (min-width: 1150px) {
  .ex-section > .container {
    grid-template-columns: minmax(0, 1.09fr) minmax(0, 1.1fr) minmax(250px, .85fr);
    column-gap: clamp(12px, 1.3vw, 20px);
    row-gap: 1rem;
    grid-template-areas: "fil fil fil" "titre titre titre" "galerie config resume" "details details details";
  }
  .ex-section > .container > .ex-haut > .ex-presentation { margin: 0; padding:0; }
  .ex-section > .container > .ex-haut > .ex-galerie { top: 16px; }
  .ex-section > .container > .ex-resume-aside { top: 16px; }
  .ex-section > .container > .ex-details-bas { grid-area: details; }
  .ex-section > .container > .ex-config > .ex-accessoires-section { grid-column: 1 / -1; }
}
@media (min-width: 741px) and (max-width: 1149px) {
  .ex-section > .container {
    grid-template-areas: "fil fil" "titre titre" "galerie config" "resume resume" "details details";
  }
  .ex-section > .container > .ex-details-bas { grid-area: details; }
  .ex-section > .container > .ex-config > .ex-accessoires-section { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .ex-section > .container { display: flex; flex-direction: column; gap: 1rem; }
  .ex-section > .container > .ex-haut { display: contents; }
  .ex-section > .container > .ex-haut > .ex-presentation { order: 1; }
  .ex-section > .container > .ex-haut > .ex-galerie { order: 2; width: 100%; }
  .ex-section > .container > .ex-config { order: 3; width: 100%; display: block; }
  .ex-section > .container > .ex-resume-aside { order: 4; width: 100%; margin-top: 0; }
  .ex-section > .container > .ex-details-bas { order: 5; width: 100%; }
  .ex-section > .container > .ex-sticky-barre { order: 6; }
  .ex-etape-corps .ex-cartes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ex-details-bas { padding: 1rem; }
}


/* ===== V3 — Quantité et livraison : cartes commerciales, vrais boutons et vrais prix =====
   Uniquement la grille #ex-grille de la fiche TEST. Le moteur AJAX, les valeurs
   data-vitesse, les submits name=qte et les champs existants sont inchangés. */
#ex-tarifs .dp-delivery-heading {display:flex;justify-content:space-between;align-items:start;gap:12px;margin:3px 0 13px;}
#ex-tarifs .dp-delivery-heading strong {font-size:15px;line-height:1.35;color:#18334f;display:block;}
#ex-tarifs .dp-delivery-heading p {font-size:12px;color:#66798c;line-height:1.45;margin:5px 0 0;}
#ex-tarifs .dp-delivery-included {flex:none;border:1px solid #b8e6d1;color:#167551;background:#eefaf3;font-size:10px;font-weight:750;border-radius:100px;padding:6px 9px;}
#ex-tarifs .dp-delivery-scroll {overflow:visible;padding-top:0;}
#ex-tarifs .dp-delivery-cards {display:block;width:100%;border:0;border-spacing:0;}
#ex-tarifs .dp-delivery-cards thead {position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
#ex-tarifs .dp-delivery-cards tbody {display:grid;gap:10px;}
#ex-tarifs .dp-delivery-cards tbody tr {display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:7px;padding:12px;background:#fff;border:1px solid #dfe7ef;border-radius:13px;box-shadow:0 2px 8px rgba(28,57,90,.035);min-width:0;}
#ex-tarifs .dp-delivery-cards tbody tr:hover {border-color:#a9c9ea;box-shadow:0 5px 15px rgba(28,57,90,.075);}
#ex-tarifs .dp-delivery-cards tbody tr > th {grid-column:1/-1;display:flex;align-items:center;gap:7px;border:0;border-radius:0;padding:0 0 7px;background:none;text-align:left;font-size:14px;color:#163858;font-weight:850;}
#ex-tarifs .dp-delivery-cards tbody tr > th:before {content:'Quantité';color:#71839a;text-transform:uppercase;letter-spacing:.055em;font-size:9px;font-weight:750;}
#ex-tarifs .dp-delivery-cards tbody tr > td {display:block;min-width:0;border:1px solid #e1e8f0;background:#fbfdff;border-radius:10px;padding:8px;position:relative;}
/* ⚠️⚠️ 07/11/2026, signalé par Julien : ces deux règles dupliquaient le nom
   et la date de livraison déjà écrits par le JS (`.dp-delivery-label` /
   `.dp-delivery-date`, voir produit-test-accordeon.php) — une seule
   source désormais, celle du JS. */
#ex-tarifs .dp-delivery-cards tbody tr > td.dp-service-0 {border-top:3px solid #37af7b;}
#ex-tarifs .dp-delivery-cards tbody tr > td.dp-service-1 {border-top:3px solid #2c8cda;}
#ex-tarifs .dp-delivery-cards tbody tr > td.dp-service-2 {border-top:3px solid #df9a35;}
#ex-tarifs .dp-delivery-cards .ex-prix {width:100%;min-height:58px;padding:8px 5px;background:#fff;border:1px solid #d4e1ed;border-radius:8px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:background .14s,border-color .14s,box-shadow .14s;}
#ex-tarifs .dp-delivery-cards .ex-prix:not(:disabled):hover,#ex-tarifs .dp-delivery-cards .ex-prix:not(:disabled):focus-visible {background:#eaf5ff;border-color:#1680db;box-shadow:0 0 0 2px rgba(22,128,219,.12);outline:0;}
#ex-tarifs .dp-delivery-cards .ex-prix-ht {font-size:15px;font-weight:850;letter-spacing:-.25px;color:#134975;line-height:1.25;}
#ex-tarifs .dp-delivery-cards .ex-prix-ttc {font-size:10px;line-height:1.3;color:#60768a;margin:0;}
#ex-tarifs .dp-delivery-cards .ex-prix:disabled {opacity:.5;cursor:not-allowed;}
#ex-tarifs .dp-delivery-cards .ex-ligne-perso {border-style:dashed;background:#f8fbff;}
#ex-tarifs .dp-delivery-cards #ex-qte-perso {max-width:115px;padding:8px;border:1px solid #b9cfe3;border-radius:7px;background:#fff;font-size:13px;}
#ex-tarifs .ex-toggle-unitaire {display:flex;justify-content:flex-start;align-items:center;gap:8px;margin:10px 0 14px;padding:9px 12px;border:1px solid #e4ebf2;border-radius:10px;background:#f7fafd;}
#ex-tarifs .ex-toggle-unitaire .ex-toggle-label {font-size:11px;}
#ex-tarifs .ex-note {font-size:11px;line-height:1.5;background:#f4f8fc;border-radius:9px;padding:10px 12px;}
@media(max-width:1450px){#ex-tarifs .dp-delivery-cards tbody tr{grid-template-columns:1fr 1fr;}}
@media(max-width:900px){#ex-tarifs .dp-delivery-heading{flex-wrap:wrap;}#ex-tarifs .dp-delivery-cards tbody tr{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));}}
@media(max-width:430px){#ex-tarifs .dp-delivery-cards tbody tr{grid-template-columns:1fr;}#ex-tarifs .dp-delivery-cards tbody tr > td{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px;}#ex-tarifs .dp-delivery-cards tbody tr > td:before{grid-column:1;}#ex-tarifs .dp-delivery-cards tbody tr > td .ex-prix{grid-column:2;grid-row:1/3;}#ex-tarifs .dp-delivery-cards tbody tr > td:after{grid-column:1;grid-row:2;}}

/* ===== V4 — CORRECTION EN-TÊTE FIXE ET STICKY (fiche TEST uniquement) =====
   Le header du site est fixe/sticky sur plusieurs rangées. `top:16px` mettait
   les panneaux GAUCHE et DROIT sous le header lors du scroll.
   --dp-sticky-top est calculé par le script dans le template en fonction
   des blocs fixes visibles réellement présents à l'écran. */
@media (min-width: 1150px) {
  .ex-section > .container > .ex-haut > .ex-galerie,
  .ex-section > .container > .ex-resume-aside {
    position: sticky;
    top: var(--dp-sticky-top, 16px);
    align-self: start;
    z-index: 1;
    max-height: calc(100dvh - var(--dp-sticky-top, 16px) - 12px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  /* Si l'espace libre sous l'en-tête devient trop faible (zoom ou petit écran),
     les cartes restent dans le flux : aucune moitié cachée. */
  .ex-section.dp-no-sticky > .container > .ex-haut > .ex-galerie,
  .ex-section.dp-no-sticky > .container > .ex-resume-aside {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 1149px) {
  .ex-section > .container > .ex-haut > .ex-galerie,
  .ex-section > .container > .ex-resume-aside {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

/* ====================================================================
   DOEMO PRINT — Reproduction de la maquette ORIGINALE à DEUX COLONNES
   Référence : doemo_print_refonte_fiche_produit(1).html (07/11/2026).
   Cette section surcharge le prototype 3 colonnes antérieur sans toucher
   aux moteurs PHP et JS (formulaires / prix / panier).
   ==================================================================== */
.dp-reference { --dp-ink:#14243b; --dp-muted:#66788f; --dp-blue:#1769d2;
  --dp-blue2:#eaf3ff; --dp-line:#e4eaf1; --dp-bg:#f5f7fa;
  --dp-shadow:0 12px 40px rgba(17,39,75,.08); background:var(--dp-bg); }
.dp-reference > .container {max-width:1380px !important; width:100% !important; min-width:0;}
.dp-reference .ex-galerie, .dp-reference .ex-presentation,
.dp-reference .ex-colonne:not(.ex-colonne-prix),
.dp-reference .ex-colonne-prix, .dp-reference .ex-resume-aside {
  border:1px solid var(--dp-line) !important;
  border-radius:19px !important;box-shadow:var(--dp-shadow) !important;
  background:white !important;color:var(--dp-ink);
}
/* Desktop: galerie à gauche, titre + options + quantités + prix à droite. */
@media (min-width:851px){
  .dp-reference > .container{
    display:grid !important;
    grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr) !important;
    grid-template-areas:
      'fil fil'
      'composer composer'
      'galerie titre'
      'galerie config'
      'galerie qty'
      'galerie resume'
      'accessoires accessoires'
      'details details' !important;
    gap:0 26px !important;align-items:start;
  }
  .dp-reference > .container > .ex-fil {grid-area:fil !important;margin-bottom:20px;}
  /* ⭐⭐ 07/11/2026 : certains produits (chantier, plaques, photo, vitrine…)
     ont un bandeau « Composer mon X » (aside.ex-composer), enfant direct de
     .container, absent sur le Dibond donc jamais couvert par les tests
     précédents. Sans grid-area explicite il tombait en placement
     automatique et se retrouvait écrasé tout en bas de la grille (bug
     trouvé en testant panneau-chantier-pvc à 1920px). */
  .dp-reference > .container > .ex-composer {grid-area:composer !important;margin:0 0 20px !important;width:100%;}
  /* ⭐⭐ 07/11/2026 : même piège que .ex-composer, repéré en testant
     drapeau-mat à 1920px — une vieille règle du prototype 3 colonnes
     (`.ex-config > .ex-accessoires-section { grid-column: 1/-1 }`, plus
     haut dans ce fichier) ne porte pas de grid-area et retombait dans la
     ligne vide « composer », au-dessus de la fiche entière.
     ⚠️⚠️ 07/11/2026, EN PRODUCTION : une première correction la plaçait
     dans la colonne « config » (largeur de la seule colonne de droite) —
     trop étroit pour les produits à beaucoup d'accessoires (ex. enseigne
     lettres acrylique, 12 cartes), qui débordaient de la page. Elle a
     maintenant sa propre ligne pleine largeur, comme .ex-composer. */
  .dp-reference > .container > .ex-config > .ex-accessoires-section {
    grid-area:accessoires !important;min-width:0;margin:20px 0 0 !important;
    padding:0 !important;width:100%;
  }
  .dp-reference > .container > .ex-haut {display:contents !important;}
  /* ⭐⭐ 07/11/2026, demandé par Julien : l'image produit doit rester
     visible à l'écran pendant que la colonne de droite défile — collée
     (sticky), décalée sous le vrai menu du site via --dp-sticky-top
     (calculé en direct par le script de positionnement, voir
     produit-test-accordeon.php). */
  .dp-reference > .container > .ex-haut > .ex-galerie {
    grid-area:galerie !important;align-self:start !important;
    position:sticky !important;top:var(--dp-sticky-top, 16px) !important;
    margin:0 !important; padding:18px !important;
    max-height:calc(100dvh - var(--dp-sticky-top, 16px) - 12px) !important;
    overflow-y:auto !important; overflow-x:hidden !important;
    overscroll-behavior:contain;
  }
  .dp-reference.dp-no-sticky > .container > .ex-haut > .ex-galerie {
    position:static !important; top:auto !important; max-height:none !important; overflow:visible !important;
  }
  .dp-reference > .container > .ex-haut > .ex-presentation {
    grid-area:titre !important;min-width:0;align-self:start;
    padding:26px 26px 14px !important; margin:0 !important;
    border-bottom:0 !important;border-radius:19px 19px 0 0 !important;
  }
  .dp-reference > .container > .ex-config {display:contents !important;}
  .dp-reference > .container > .ex-config > .ex-colonne:not(.ex-colonne-prix){
    grid-area:config !important;min-width:0;align-self:start;
    margin:0 !important;padding:0 26px 13px !important;
    border-top:0 !important;border-bottom:0 !important;border-radius:0 !important;
  }
  .dp-reference > .container > .ex-config > .ex-droite {display:contents !important;}
  .dp-reference > .container > .ex-config .ex-colonne-prix{
    grid-area:qty !important;min-width:0;align-self:start;
    margin:0 !important;padding:0 26px 16px !important;
    border-top:0 !important;border-bottom:0 !important;border-radius:0 !important;
  }
  .dp-reference > .container > .ex-resume-aside {
    grid-area:resume !important;position:static !important;top:auto !important;
    align-self:start !important;margin:0 !important;padding:20px 26px 26px !important;
    border-radius:0 0 19px 19px !important;border-top:0 !important;
  }
  .dp-reference > .container > .ex-details-bas {grid-area:details !important;margin-top:27px !important;}
}
@media (max-width:850px) {
  .dp-reference > .container {display:flex !important;flex-direction:column;gap:0 !important;}
  .dp-reference > .container > .ex-fil {order:0;width:100%;margin-bottom:14px;}
  .dp-reference > .container > .ex-haut {display:contents !important;}
  .dp-reference > .container > .ex-haut > .ex-galerie {order:1;position:static !important;width:100%;margin-bottom:16px;}
  .dp-reference > .container > .ex-haut > .ex-presentation {order:2;width:100%;border-radius:19px 19px 0 0 !important;padding:20px 18px 10px;}
  .dp-reference > .container > .ex-config{order:3;display:flex !important;flex-direction:column;width:100%;}
  .dp-reference > .container > .ex-config > .ex-colonne:not(.ex-colonne-prix) {border-radius:0 !important;padding:0 18px 15px !important;border-top:0 !important;border-bottom:0 !important;}
  .dp-reference > .container > .ex-config > .ex-droite {display:contents !important;}
  .dp-reference > .container > .ex-config .ex-colonne-prix {border-radius:0 !important;padding:0 18px 15px !important;border-top:0 !important;border-bottom:0 !important;}
  .dp-reference > .container > .ex-resume-aside {order:4;position:static !important;border-radius:0 0 19px 19px !important;border-top:0 !important;padding:18px !important;width:100%;}
  .dp-reference > .container > .ex-details-bas {order:5;margin-top:24px;width:100%;}
}
.dp-reference .ex-galerie {overflow:visible !important;}
.dp-reference .ex-photo {border-radius:13px !important;overflow:hidden;}
.dp-reference .ex-photo img {width:100%;height:auto;object-fit:contain;}
.dp-reference .ex-miniatures {gap:11px;}
.dp-reference .ex-presentation .ex-onglets {display:none !important;}
.dp-reference .ex-presentation h1 {font-size:clamp(23px,2.3vw,30px);font-weight:850;line-height:1.16;letter-spacing:-.8px;color:var(--dp-ink);}
.dp-reference .ex-rubrique {color:#16745c !important;font-weight:750;letter-spacing:.07em;}
.dp-reference .ex-presentation .ex-accroche {font-size:13px;color:var(--dp-muted);line-height:1.6;}
.dp-reference .ex-config > .ex-colonne > .ex-etape {font-size:16px !important;color:var(--dp-ink);}
.dp-reference .dp-step-head {border-top:1px solid var(--dp-line);padding-top:20px;margin:20px 0 12px;font-size:14px;line-height:1.4;font-weight:800;color:var(--dp-ink);display:flex;align-items:center;gap:8px;}
.dp-reference .dp-step-num {display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:8px;background:var(--dp-blue2);color:var(--dp-blue);font-size:13px;}
.dp-reference .ex-ligne {border-bottom:0 !important;padding:8px 0 !important;margin-bottom:8px;}
/* ⭐⭐ 07/11/2026 : `display:none` retirait la colonne de la grille pour les
   lignes qui utilisent un format à 3 colonnes (num/label/champ, ex.
   papier-antigras « Format »), décalant le libellé dans la colonne du
   numéro et le tronquant. `visibility:hidden` masque le numéro (doublon
   avec nos propres badges dp-step-num) sans retirer sa colonne. */
.dp-reference .ex-ligne .ex-num {visibility:hidden !important;}
.dp-reference .ex-ligne label {font-weight:700;color:#63778b;font-size:12px;}
.dp-reference .ex-ligne input,.dp-reference .ex-ligne select {border:1px solid #d8e2ed;border-radius:10px;min-height:42px;background:#fff;color:var(--dp-ink);}
.dp-reference .ex-ligne .ex-choix {min-width:0;}
.dp-reference .ex-formats {display:flex;flex-wrap:wrap;gap:8px;}
.dp-reference .ex-format,.dp-reference .ex-carte-opt {background:#fff !important;border:1px solid #d8e2ed !important;border-radius:9px !important;padding:10px 12px !important;color:#475b70 !important;font-size:12px !important;}
.dp-reference .ex-format.is-actif,.dp-reference .ex-carte-opt.is-actif {background:var(--dp-blue2) !important;border-color:var(--dp-blue) !important;color:var(--dp-blue) !important;box-shadow:none !important;}
.dp-reference .ex-cartes {grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:9px;}
.dp-reference .ex-carte-opt {min-height:58px;position:relative;text-align:left;display:flex;align-items:end;font-weight:750;}
.dp-reference .ex-carte-opt.is-actif::after {content:'✓';position:absolute;right:7px;top:7px;background:var(--dp-blue);color:white;border-radius:50%;width:18px;height:18px;display:grid;place-items:center;font-size:11px;}
.dp-reference .ex-carte-opt[data-option-value*='bross'],.dp-reference .ex-carte-opt[data-option-value*='noir'],.dp-reference .ex-carte-opt[data-option-value*='blanc'] {padding-top:57px !important;}
.dp-reference .ex-carte-opt[data-option-value*='bross']::before,.dp-reference .ex-carte-opt[data-option-value*='noir']::before,.dp-reference .ex-carte-opt[data-option-value*='blanc']::before {content:'';position:absolute;inset:8px 8px auto;height:39px;border-radius:7px;border:1px solid #dce5ef;}
.dp-reference .ex-carte-opt[data-option-value*='bross']::before {background:repeating-linear-gradient(0deg,#d7dcdf,#f3f5f6 2px,#c7d1d6 3px);}
.dp-reference .ex-carte-opt[data-option-value*='noir']::before {background:linear-gradient(120deg,#1d2732,#596370);}
.dp-reference .ex-carte-opt[data-option-value*='blanc']::before {background:linear-gradient(135deg,#f6f7f8 55%,#d6e0e9);}
/* Tarification affichée comme choix simple : VRAIS boutons de prix conservés */
.dp-reference .dp-qty-widget > .ex-etape {display:none !important;}
.dp-reference .dp-qty-label {border-top:1px solid var(--dp-line);padding-top:20px;font-size:14px;font-weight:800;color:var(--dp-ink);}
.dp-reference .dp-qty-desc {font-size:12px;color:var(--dp-muted);line-height:1.6;margin:8px 0 12px;}
.dp-reference .dp-qty-tiers {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:12px;}
.dp-reference .dp-tier {padding:11px 4px;border:1px solid var(--dp-line);background:white;color:#44596d;border-radius:8px;font-weight:750;font-size:12px;cursor:pointer;}
.dp-reference .dp-tier.active,.dp-reference .dp-tier:focus-visible {background:var(--dp-blue2);border-color:var(--dp-blue);color:var(--dp-blue);}
.dp-reference .dp-custom-qty {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;}
.dp-reference .dp-custom-qty label {font-size:12px;font-weight:650;color:var(--dp-muted);}
.dp-reference .dp-custom-qty input {width:130px;max-width:48%;padding:10px 12px;border:1px solid #d8e2ed;border-radius:10px;}
.dp-reference .dp-price-grid {display:block;width:100%;border:0 !important;}
.dp-reference .dp-price-grid thead {display:none !important;}
.dp-reference .dp-price-grid tbody {display:block;width:100%;}
.dp-reference .dp-price-grid tbody tr {display:none !important;}
.dp-reference .dp-price-grid tbody tr.dp-row-selected {display:grid !important;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;}
.dp-reference .dp-price-grid tbody tr th {display:none !important;}
.dp-reference .dp-price-grid tbody tr td {display:flex !important;flex-direction:column;min-width:0;gap:7px;border:1px solid #d4e6fb !important;border-radius:12px;background:#f8fbff;padding:12px !important;}
.dp-reference .dp-delivery-label {font-weight:850;color:var(--dp-ink);font-size:13px;}
.dp-reference .dp-delivery-date {font-size:11px;color:var(--dp-muted);line-height:1.4;order:3;}
.dp-reference .dp-price-grid button.ex-prix {display:flex !important;flex-direction:column;justify-content:center;align-items:flex-start;width:100% !important;min-height:66px;border:0 !important;background:transparent !important;color:var(--dp-blue) !important;text-align:left;padding:7px 0 !important;box-shadow:none !important;}
.dp-reference .dp-price-grid button.ex-prix:not(:disabled):hover {text-decoration:underline;}
.dp-reference .dp-price-grid .ex-prix-ht {font-size:20px !important;font-weight:900;color:var(--dp-ink) !important;}
.dp-reference .dp-price-grid .ex-prix-ttc {font-size:11px !important;color:var(--dp-muted) !important;}
.dp-reference .ex-resume-aside {overflow:visible !important;}
.dp-reference .ex-resume-aside h2 {font-size:13px;color:var(--dp-ink);}
.dp-reference .ex-resume-prixzone {background:#f5f9fe;border:1px solid #d4e6fb;border-radius:14px;padding:17px;}
.dp-reference .ex-resume-prix {color:var(--dp-ink);font-size:30px;font-weight:900;line-height:1.2;}
.dp-reference .ex-resume-cta {background:var(--dp-blue);border-radius:12px;padding:16px;font-size:14px;box-shadow:0 8px 18px #1769d22e;}
.dp-reference .ex-resume-lignes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;}
.dp-reference .ex-resume-ligne {font-size:11px;}
.dp-reference .ex-resume-note {font-style:normal;}
.dp-reference .ex-sticky-barre {display:none !important;}
@media(max-width:1100px){.dp-reference .dp-qty-tiers{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:500px){.dp-reference .dp-qty-tiers{grid-template-columns:repeat(2,minmax(0,1fr));}.dp-reference .ex-resume-lignes{grid-template-columns:1fr;}.dp-reference .dp-price-grid tbody tr.dp-row-selected{grid-template-columns:1fr 1fr;}}

/* Sections éditoriales conformes à la maquette originale ; dynamiques par produit. */
.dp-editorial-section{padding-top:18px;padding-bottom:12px}
.dp-editorial-panel{background:#fff;border:1px solid #e4eaf1;border-radius:19px;box-shadow:0 12px 40px rgba(17,39,75,.08);padding:26px}
.dp-editorial-header{margin-bottom:20px}.dp-editorial-eyebrow{display:block;font-size:11px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#1769d2;margin-bottom:7px}
.dp-editorial-header h2{font-size:clamp(19px,2.3vw,24px);color:#14243b;margin:0 0 8px;letter-spacing:-.5px}
.dp-editorial-header p{color:#66788f;margin:0;line-height:1.6;font-size:13px}
.dp-comparison-scroll{overflow-x:auto;max-width:100%;border-radius:12px;border:1px solid #e4eaf1}
.dp-comparison-table{border-collapse:collapse;min-width:650px;width:100%;font-size:12px}
.dp-comparison-table th,.dp-comparison-table td{text-align:left;vertical-align:top;padding:15px 13px;border-bottom:1px solid #e4eaf1;line-height:1.5}
.dp-comparison-table tr:last-child th,.dp-comparison-table tr:last-child td{border-bottom:0}
.dp-comparison-table thead th{background:#f5f8fc;color:#14243b;font-weight:800}
.dp-comparison-table thead th:first-child,.dp-comparison-table tbody th{width:18%;color:#42556b;font-weight:800}
.dp-comparison-table td small{display:block;color:#75859a;margin-top:4px}
.dp-current-badge{display:block;width:max-content;margin-top:7px;background:#eaf3ff;color:#1769d2;border-radius:20px;padding:3px 8px;font-size:10px}
.dp-compare-link{color:#1769d2;font-weight:800;text-decoration:none}.dp-compare-link:hover{text-decoration:underline}
.dp-faq-item{border-bottom:1px solid #e4eaf1}.dp-faq-item:last-child{border-bottom:0}
.dp-faq-item summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 2px;font-weight:750;color:#14243b;font-size:14px}
.dp-faq-item summary::-webkit-details-marker{display:none}.dp-faq-chevron{font-size:22px;font-weight:400;color:#1769d2}.dp-faq-item[open] .dp-faq-chevron{transform:rotate(45deg)}
.dp-faq-answer{color:#66788f;line-height:1.75;padding:0 22px 18px 2px;font-size:13px}
.dp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dp-related-card{min-width:0;border:1px solid #e4eaf1;border-radius:13px;overflow:hidden;background:#fff;text-decoration:none;color:#14243b;transition:box-shadow .2s,transform .2s}
.dp-related-card:hover{box-shadow:0 10px 22px rgba(17,39,75,.11);transform:translateY(-2px)}
.dp-related-image{height:180px;background:#f1f5f9;overflow:hidden}.dp-related-image img{width:100%;height:100%;object-fit:cover}
.dp-related-body{position:relative;padding:15px}.dp-related-body h3{font-size:14px;margin:0 0 7px;font-weight:800}.dp-related-body p{font-size:12px;line-height:1.5;color:#66788f;margin:0 0 12px;min-height:36px}
.dp-related-price{font-size:13px;color:#1769d2;font-weight:800}.dp-related-arrow{float:right;color:#1769d2;font-size:19px}
.dp-all-products{display:inline-block;margin-top:19px;font-weight:800;color:#1769d2;font-size:13px;text-decoration:none}
@media(max-width:750px){.dp-editorial-panel{padding:18px}.dp-related-grid{grid-template-columns:1fr 1fr}.dp-related-image{height:140px}}
@media(max-width:480px){.dp-related-grid{grid-template-columns:1fr}.dp-related-card{display:grid;grid-template-columns:36% 1fr}.dp-related-image{height:100%;min-height:140px}.dp-related-body{padding:12px}.dp-related-body p{min-height:0}}

/* V6 universelle - 2 colonnes suivant la maquette originale, non sticky. */
.dp-reference .ex-resume-mini {display:none}
.dp-reference .ex-resume-lignes {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
.dp-reference .ex-resume-ligne {min-width:0}
.dp-reference .dp-qty-control {display:flex;align-items:stretch;max-width:230px;border:1px solid #d8e2ed;border-radius:10px;overflow:hidden;background:#fff}
.dp-reference .dp-qty-control .dp-proxy-qty {min-width:45px;width:85px;flex:1;max-width:none;text-align:center;border:0!important;box-shadow:none!important;padding:8px 2px}
.dp-reference .dp-qty-adjust {width:40px;flex:none;border:0;background:#f6f8fb;color:#14243b;font-size:20px;cursor:pointer}
.dp-reference .dp-qty-adjust:hover {background:#eaf3ff}
.dp-reference .dp-custom-qty {flex-wrap:wrap}
/* ⚠️⚠️ 07/11/2026, demandé par Julien : la galerie doit rester collée à
   l'écran au défilement (déjà demandé et corrigé le même jour) — cette
   règle du paquet V6 la désactivait, retirée volontairement. Voir la
   vraie règle sticky plus haut dans ce fichier (`.dp-reference >
   .container > .ex-haut > .ex-galerie`). */
.dp-reference .ex-presentation .ex-onglets {display:none!important}
.dp-reference .dp-step-head {scroll-margin-top:115px}
.dp-reference .dp-price-grid tbody tr.dp-row-selected {grid-template-columns:repeat(auto-fit,minmax(140px,1fr));}
.dp-reference .dp-qty-tiers {grid-template-columns:repeat(auto-fit,minmax(72px,1fr));}
@media(max-width:700px){.dp-reference .ex-resume-lignes{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.dp-reference *{scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* ================================================================
   V7 — conformite au HTML original : deux colonnes, description sous
   le cadre image ; aucun panneau sticky qui pourrait masquer le contenu.
   Les contenus proviennent du catalogue de la fiche courante.
   ================================================================ */
.dp-reference .dp-gallery-description {
  margin-top: 18px;
  padding: 18px 0 0;
  border-top: 1px solid #e4eaf1;
  min-width: 0;
}
.dp-reference .dp-gallery-description-title {
  margin: 0 0 15px;
  color: #14243b;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 800;
  line-height: 1.35;
}
.dp-reference .dp-gallery-description .ex-onglets {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
}
.dp-reference .dp-gallery-description .ex-onglet {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ed;
  border-radius: 9px;
  padding: 10px 12px;
  background: #f3f6fa;
  color: #62758a;
  font-size: 12px;
  font-weight: 700;
  min-height: 40px;
  white-space: normal;
}
.dp-reference .dp-gallery-description .ex-onglet.is-actif,
.dp-reference .dp-gallery-description .ex-onglet[aria-selected="true"] {
  color: #1769d2;
  background: #e8f3ff;
  border-color: #b6d5f9;
}
.dp-reference .dp-gallery-description .ex-onglet:focus-visible {
  outline: 3px solid #1769d2;
  outline-offset: 2px;
}
.dp-reference .dp-gallery-description .ex-volet {
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 13px;
  color: #596e84;
  max-width: 100%;
}
.dp-reference .dp-gallery-description .ex-volet[hidden] { display: none !important; }
.dp-reference .dp-gallery-description .ex-volet p { margin: 0 0 12px; }
.dp-reference .dp-gallery-description .bq-scroll { max-width: 100%; overflow-x: auto; }
.dp-reference .dp-gallery-description .ex-usages,
.dp-reference .dp-gallery-description .ex-prep-propre { padding-left: 22px; }
/* L'ancienne galerie sticky rendait la description inaccessible dans un
   conteneur defilant. On reprend la galerie statique du HTML original. */
@media (min-width: 851px) {
  .dp-reference > .container > .ex-haut > .ex-galerie {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
  }
}
@media (max-width: 850px) {
  .dp-reference .dp-gallery-description { padding-top: 15px; }
  .dp-reference .dp-gallery-description .ex-onglet { flex: 1 1 auto; }
}

/* V7.1 — Fiche produit pleine largeur, sans changer le parcours métier.
   Le conteneur historique limite la fiche à 1380px : cette règle libère
   l'espace disponible tout en gardant une marge latérale responsive. */
section.ex-section.dp-reference > .container {
  width: calc(100% - 2 * clamp(16px, 2.5vw, 54px)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  min-width: 0;
}
@media (min-width: 851px) {
  section.ex-section.dp-reference > .container {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr) !important;
    column-gap: clamp(16px, 1.6vw, 30px) !important;
  }
  .dp-reference .ex-photo,
  .dp-reference .ex-photo img {
    max-width: 100%;
  }
}
@media (min-width: 1600px) {
  section.ex-section.dp-reference > .container {
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr) !important;
  }
}
@media (max-width: 850px) {
  section.ex-section.dp-reference > .container {
    width: calc(100% - 2 * clamp(12px, 3vw, 20px)) !important;
  }
}


/* ===============================================================
   V8 — FIDELITE A LA MAQUETTE / GALERIE VISIBLE / LISIBILITE
   Cible : uniquement la fiche test (.dp-reference).
   Le conteneur gauche reste une colonne de hauteur egale au
   configurateur et SEUL le visuel (photo + miniatures) est sticky.
   La description et les onglets restent dans le flux normal.
   =============================================================== */
.dp-reference {
  --dp-option-size: 15px;
  --dp-reading-line: 1.55;
}
@media (min-width: 851px) {
  /* Etendre la galerie sur toute la hauteur du configurateur. */
  .dp-reference > .container > .ex-haut > .ex-galerie {
    position: relative !important;
    top: auto !important;
    align-self: stretch !important;
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column;
    min-height: 100%;
  }
  .dp-reference > .container > .ex-haut > .ex-galerie > .dp-gallery-visual {
    position: sticky;
    top: var(--dp-sticky-top, 115px);
    z-index: 3;
    background: #fff;
    border-radius: 13px;
    padding-bottom: 10px;
    max-height: calc(100dvh - var(--dp-sticky-top, 115px) - 12px);
    overflow: auto;
    scrollbar-width: thin;
  }
  .dp-reference.dp-no-sticky > .container > .ex-haut > .ex-galerie > .dp-gallery-visual {
    position: static;
    max-height: none;
    overflow: visible;
  }
  /* Laisse une image lisible meme avec un large en-tete ou un petit ecran. */
  .dp-reference .dp-gallery-visual .ex-photo img {
    width: 100%;
    max-height: min(52dvh, 520px);
    object-fit: contain;
  }
  .dp-reference .dp-gallery-description {
    position: relative;
    z-index: 1;
    background: white;
  }
}
@media (max-width: 850px) {
  .dp-reference .dp-gallery-visual { position: static; max-height: none; overflow: visible; }
}
/* Typographie du configurateur, sans toucher au choix/metier des champs. */
.dp-reference .dp-step-head,
.dp-reference .dp-qty-label {
  font-size: clamp(17px, 1.1vw, 19px) !important;
  line-height: 1.45 !important;
  letter-spacing: -.15px;
}
.dp-reference .dp-step-num {
  min-width: 30px;
  height: 30px;
  font-size: 15px;
}
.dp-reference .ex-ligne label,
.dp-reference .ex-ligne .ex-choix label,
.dp-reference .dp-custom-qty label {
  font-size: var(--dp-option-size) !important;
  line-height: var(--dp-reading-line) !important;
  color: #344b65 !important;
}
.dp-reference .ex-ligne input,
.dp-reference .ex-ligne select,
.dp-reference .ex-ligne textarea {
  font-size: 15px !important;
  min-height: 48px;
  line-height: 1.4;
}
.dp-reference .ex-format,
.dp-reference .ex-carte-opt,
.dp-reference .dp-tier,
.dp-reference .dp-qty-control input {
  font-size: 15px !important;
  line-height: 1.4;
}
.dp-reference .ex-format,.dp-reference .ex-carte-opt {
  min-height: 52px;
}
.dp-reference .dp-qty-desc,
.dp-reference .ex-note,
.dp-reference .dp-gallery-description .ex-volet,
.dp-reference .dp-gallery-description .ex-onglet,
.dp-reference .ex-resume-ligne {
  font-size: 14px !important;
  line-height: 1.6;
}
/* Les dates sont une information de decision majeure, pas une note grise. */
.dp-reference .dp-price-grid tbody tr.dp-row-selected {
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.dp-reference .dp-price-grid tbody tr td {
  gap: 10px;
  padding: 16px !important;
  border: 1.5px solid #d4e6fb !important;
}
.dp-reference .dp-delivery-label {
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.35;
}
.dp-reference .dp-delivery-date {
  font-size: 15px !important;
  font-weight: 750 !important;
  color: #1c5176 !important;
  line-height: 1.5 !important;
  order: 3;
  padding: 9px 10px;
  border-radius: 9px;
  background: #ecf5ff;
}
.dp-reference .dp-price-grid .ex-prix-ht {
  font-size: 23px !important;
}
.dp-reference .dp-price-grid .ex-prix-ttc {
  font-size: 14px !important;
}
.dp-reference .dp-custom-qty input { min-height: 45px; }
.dp-reference .dp-gallery-description .ex-onglet {min-height: 44px;}
.dp-reference .ex-resume-aside h2 {font-size: 18px !important;}
@media (max-width: 520px) {
  .dp-reference .dp-price-grid tbody tr.dp-row-selected {grid-template-columns: 1fr !important;}
  .dp-reference .dp-price-grid tbody tr td {padding: 14px !important;}
  .dp-reference .dp-delivery-date {font-size: 15px !important;}
}

/* ============================================================
   V9 — finitions de conformite a la maquette, lecture et conversion.
   Les styles sont uniquement appliques a la fiche de test.
   Aucun changement au calcul des tarifs ou au panier.
   ============================================================ */
.dp-reference {--dp-option-size:16px;--dp-reading-line:1.55;}
.dp-reference .ex-presentation h1 {font-size:clamp(27px,1.85vw,35px)!important;line-height:1.19!important;}
.dp-reference .ex-presentation .ex-accroche {font-size:15px!important;line-height:1.65!important;}
.dp-reference .dp-step-head,.dp-reference .dp-qty-label {font-size:19px!important;line-height:1.35!important;}
.dp-reference .dp-qty-desc,.dp-reference .dp-delivery-heading p,.dp-reference .ex-note {font-size:14px!important;line-height:1.6!important;}
.dp-reference .ex-ligne label,.dp-reference .ex-ligne .ex-choix label,.dp-reference .dp-custom-qty label {font-size:16px!important;line-height:1.5!important;}
.dp-reference .ex-ligne input,.dp-reference .ex-ligne select,.dp-reference .ex-ligne textarea {font-size:16px!important;min-height:48px;}
.dp-reference .ex-carte-opt,.dp-reference .ex-format {font-size:15px!important;min-height:54px;padding:12px!important;}
.dp-reference .ex-carte-opt:disabled {opacity:.45;cursor:not-allowed;}
.dp-reference .ex-carte-opt:focus-visible,.dp-reference .dp-tier:focus-visible,.dp-reference .ex-prix:focus-visible,.dp-reference .ex-onglet:focus-visible {outline:3px solid #1769d2;outline-offset:3px;}
.dp-reference .dp-tier {min-height:47px;font-size:15px!important;font-weight:750;}
.dp-reference .dp-show-all-tiers {border:1px solid #cfe0f4;border-radius:9px;background:#f4f9ff;color:#1757a0;font-weight:750;font-size:14px;padding:10px 14px;margin:2px 0 16px;width:100%;text-align:center;}
.dp-reference .dp-qty-tiers .dp-tier[hidden] {display:none!important;}
.dp-reference .dp-price-grid tbody tr.dp-row-selected {grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;gap:13px;}
.dp-reference .dp-price-grid tbody tr.dp-row-selected td {padding:16px!important;border-radius:13px;gap:10px;}
.dp-reference .dp-delivery-label {font-size:17px!important;color:#14243b!important;}
.dp-reference .dp-delivery-date {font-size:16px!important;font-weight:800!important;letter-spacing:0;line-height:1.45!important;padding:11px 12px;}
.dp-reference .dp-price-grid .ex-prix {min-height:70px!important;}
.dp-reference .dp-price-grid .ex-prix-ht {font-size:24px!important;}
.dp-reference .dp-price-grid .ex-prix-ttc {font-size:15px!important;}
.dp-reference .ex-resume-aside {border-top:1px solid #d8e5f3!important;}
.dp-reference .ex-resume-prixzone {background:#f3f8ff;border:1px solid #cfe2fa;border-radius:13px;padding:17px!important;}
.dp-reference .ex-resume-ligne {font-size:14px!important;gap:8px;}
.dp-reference .dp-gallery-description .ex-volet {font-size:15px!important;line-height:1.75!important;}
.dp-reference .dp-editorial-panel {border-radius:19px;}
.dp-reference .ex-photo img {max-width:100%;}
@media (min-width:851px) {
  .dp-reference > .container > .ex-haut > .ex-galerie > .dp-gallery-visual {
    top:var(--dp-sticky-top,115px)!important;
    max-height:calc(100dvh - var(--dp-sticky-top,115px) - 16px);
    overflow-y:auto;
  }
  .dp-reference .dp-gallery-visual .ex-photo img {max-height:clamp(170px,48dvh,600px);object-fit:contain;}
}
@media (min-width:851px) and (max-height:720px) {
  .dp-reference .dp-gallery-visual .ex-photo img {max-height:clamp(150px,35dvh,320px);}
  .dp-reference .ex-vignettes-galerie {gap:5px;}
}
@media (max-width:850px) {
  .dp-reference .ex-presentation h1 {font-size:27px!important;}
  .dp-reference .dp-price-grid tbody tr.dp-row-selected {grid-template-columns:1fr!important;}
  .dp-reference .dp-qty-tiers {grid-template-columns:repeat(3,minmax(0,1fr));}
  .dp-reference .dp-gallery-visual {position:static!important;}
}
@media (max-width:520px){
  .dp-reference .dp-qty-tiers {grid-template-columns:repeat(2,minmax(0,1fr));}
  .dp-reference .ex-resume-lignes {grid-template-columns:1fr;}
  .dp-reference .dp-delivery-date {font-size:16px!important;}
}


/* =============================================================
   V10 — harmonisation finale des fiches produits test
   Référence : maquette originale HTML livrée par le client.
   Styles limités au gabarit test, sans modification du moteur prix.
   ============================================================= */
.dp-reference {font-size:16px;line-height:1.55;}
.dp-reference :is(.ex-format,.ex-carte-opt,.dp-tier,.ex-prix,.ex-onglet,button,select,input):focus-visible {
  outline:3px solid #1769d2!important;outline-offset:3px;
}
.dp-reference :is(.ex-ligne label,.ex-aide-choix,.dp-qty-desc,.ex-note,.dp-gallery-description p){overflow-wrap:anywhere;}
.dp-reference .dp-gallery-description {margin-top:18px!important;padding:22px!important;border-top:1px solid #e4eaf1;}
.dp-reference .dp-gallery-description-title {font-size:clamp(19px,1.25vw,23px)!important;line-height:1.3;}
.dp-reference .dp-gallery-description .ex-onglet {font-size:15px!important;font-weight:750;}
.dp-reference .dp-gallery-description .ex-volet {font-size:16px!important;line-height:1.7!important;}
.dp-reference .dp-qty-selector {margin-bottom:16px;}
.dp-reference .dp-qty-tiers {gap:9px;}
.dp-reference .dp-tier {min-height:50px!important;padding:10px 9px!important;}
.dp-reference .dp-custom-qty {margin-top:16px;}
.dp-reference .dp-qty-control button {min-width:46px;min-height:48px;font-size:22px;}
.dp-reference .dp-qty-control input {font-size:17px!important;font-weight:750;min-height:48px;}
.dp-reference .dp-delivery-heading strong {font-size:17px!important;line-height:1.4;}
.dp-reference .dp-delivery-label {font-size:18px!important;line-height:1.3!important;}
.dp-reference .dp-delivery-date {font-size:17px!important;font-weight:850!important;line-height:1.45!important;
  color:#153d68!important;background:#e7f2ff!important;border:1px solid #c9dff7;}
.dp-reference .dp-price-grid .ex-prix {border-radius:9px!important;}
.dp-reference .dp-price-grid .ex-prix:disabled {cursor:not-allowed!important;opacity:.5;}
.dp-reference .dp-price-grid .ex-prix-ttc {font-size:16px!important;}
.dp-reference .ex-resume-prix {font-size:clamp(26px,1.9vw,34px)!important;line-height:1.25;}
.dp-reference .ex-resume-prixzone {padding:20px!important;}
.dp-reference .dp-editorial-section .dp-editorial-header h2 {font-size:clamp(21px,1.6vw,27px)!important;line-height:1.3;}
.dp-reference .dp-editorial-section .dp-editorial-header p {font-size:15px;}
.dp-reference .dp-faq-answer {font-size:15px;line-height:1.75;}
.dp-reference .dp-related-body h3 {font-size:16px;line-height:1.4;}
@media (min-width:851px){
  .dp-reference > .container > .ex-haut > .ex-galerie {align-self:stretch!important;min-height:100%;}
  .dp-reference > .container > .ex-haut > .ex-galerie > .dp-gallery-visual {
    position:sticky!important;top:var(--dp-sticky-top,115px)!important;
    max-height:calc(100dvh - var(--dp-sticky-top,115px) - 12px)!important;
    overflow:visible!important;scrollbar-width:none;
    isolation:isolate;
  }
  .dp-reference .dp-gallery-visual .ex-photo img {
    max-height:clamp(130px,calc(100dvh - var(--dp-sticky-top,115px) - 165px),620px)!important;
    width:100%;object-fit:contain;
  }
  .dp-reference.dp-no-sticky > .container > .ex-haut > .ex-galerie > .dp-gallery-visual {
    position:static!important;max-height:none!important;
  }
}
@media (max-width:1100px) and (min-width:851px){
  section.ex-section.dp-reference > .container {grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)!important;}
  .dp-reference .dp-gallery-visual .ex-photo img {max-height:clamp(130px,calc(100dvh - var(--dp-sticky-top,115px) - 175px),470px)!important;}
}
@media (max-width:850px){
  .dp-reference .dp-gallery-visual {position:static!important;max-height:none!important;overflow:visible!important;}
  .dp-reference .dp-gallery-description {padding:17px!important;}
  .dp-reference .dp-gallery-description .ex-onglets {display:flex;flex-wrap:wrap;}
  .dp-reference .dp-delivery-date {font-size:16px!important;}
}
@media (prefers-reduced-motion:reduce){
 .dp-reference *, .dp-reference *::before, .dp-reference *::after {scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;}
}

/* ⭐⭐⭐ 07/11/2026, EN PRODUCTION (urgence) : le vrai `.ex-select-cache`
   (technique d'accessibilité : select réel masqué visuellement mais
   lisible par lecteur d'écran, width:1px/height:1px/clip) se retrouvait
   avec une largeur de 1920px sur les produits à beaucoup d'accessoires
   (ex. enseigne lettres acrylique, 12 cartes), faisant déborder toute la
   page horizontalement. Cause exacte non isolée avec certitude (conflit
   de cascade), donc on fige la règle de sécurité standard ici, avec
   !important, pour garantir qu'elle ne puisse plus jamais déborder. */
.dp-reference .ex-select-cache {
  position:absolute !important; width:1px !important; height:1px !important;
  padding:0 !important; margin:-1px !important; overflow:hidden !important;
  clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}
