/* ---------------------------------------------------------------------------
   Doucelle — tiroir panier + modale avant paiement, réplique du tunnel SNATCHED.
   Mesures relevées au DOM le 2026-09-25 (styles calculés, mobile 390 px) :
   docs/marketing/missions/doucelle/releve_tunnel_panier_2026-09-25.md §3.
   Encre #121212 · lavande #C4A3F9 · titres Helvetica 400 · corps Questrial · rayons 6/8/10.
   Modale (Zipify OCU) : Arial, #262626, bandeau minuteur #ECEEF1, chiffres #FF5533,
   bouton d'ajout #3BB44A, « Continuer » #262626.
   Préfixe unique `.dcd-` ; rendu seulement quand Doucelle déclare `layout_template`.
--------------------------------------------------------------------------- */
.cart-slide-panel.dcd-on {
    background: #fff; background-image: none; border-left: 0; max-width: 400px;
    box-shadow: -6px 0 24px rgba(0, 0, 0, .12);
}
@media (max-width: 768px) { .cart-slide-panel.dcd-on { max-width: 100%; width: 100vw; } }

.dcd { --dcd-ink: #121212; --dcd-txt: rgba(18, 18, 18, .9); --dcd-lav: #c4a3f9;
    --dcd-head: Helvetica, Arial, sans-serif; --dcd-body: 'Questrial', Helvetica, Arial, sans-serif;
    display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--dcd-txt);
    font-family: var(--dcd-body); font-size: 15px; letter-spacing: .9px; }
.dcd *, .dcd *::before, .dcd *::after { box-sizing: border-box; }
.dcd p { margin: 0; }
.dcd button { font: inherit; cursor: pointer; }

/* En-tête « Panier • 6 articles » ✕ */
.dcd-head { display: flex; align-items: center; justify-content: space-between; padding: 15px;
    border-bottom: 1px solid rgba(18, 18, 18, .08); flex: 0 0 auto; }
.dcd-title { margin: 0; font-family: var(--dcd-head); font-size: 26px; line-height: 32px; font-weight: 400;
    letter-spacing: .78px; color: var(--dcd-ink); }
.dcd-close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none;
    color: var(--dcd-ink); margin: -6px -8px -6px 0; padding: 0; }

.dcd-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0 15px; -webkit-overflow-scrolling: touch; }

/* Lignes */
.dcd-lines { list-style: none; margin: 0; padding: 0; }
.dcd-line { display: grid; grid-template-columns: 72px 1fr; column-gap: 13px; padding: 12px 0 12px; }
.dcd-line__img { width: 72px; height: 72px; object-fit: cover; display: block; }
.dcd-line__main { min-width: 0; }
.dcd-line__top { display: flex; align-items: flex-start; gap: 10px; }
.dcd-line__name { flex: 1 1 auto; font-family: var(--dcd-head); font-size: 15px; line-height: 18.46px;
    letter-spacing: .78px; color: var(--dcd-ink); }
.dcd-trash { flex: 0 0 auto; border: 0; background: none; padding: 0 2px; color: var(--dcd-ink); line-height: 0; }
.dcd-unit { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 4px; font-size: 12px; line-height: 16px; }
.dcd-unit s { color: var(--dcd-ink); }
.dcd-unit__now { color: var(--dcd-lav); font-weight: 700; }
.dcd-tag { display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; height: 16px; border-radius: 6px;
    background: rgba(18, 18, 18, .08); color: var(--dcd-txt); font-size: 8px; font-weight: 700; letter-spacing: 1px; line-height: 14px; }
.dcd-line__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dcd-qty { display: inline-flex; align-items: center; height: 27px; border: 1px solid #787878; border-radius: 6px;
    background: #f3f3f3; padding: 0 1px; }
.dcd-qty button { width: 25px; height: 25px; border: 0; border-radius: 6px; background: #f3f3f3; color: var(--dcd-ink);
    font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 1; padding: 0; }
.dcd-qty button:disabled { color: rgba(18, 18, 18, .35); cursor: default; }
.dcd-qty span { min-width: 43px; text-align: center; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; color: var(--dcd-ink); }
.dcd-line__totals { text-align: right; }
.dcd-line__prices { font-size: 15px; line-height: 15px; letter-spacing: 1px; white-space: nowrap; }
.dcd-line__prices s { font-size: 15px; color: rgba(18, 18, 18, .55); font-weight: 400; margin-right: 2px; }
.dcd-line__prices b { color: var(--dcd-lav); font-weight: 700; }
.dcd-save { display: block; margin-top: 3px; font-size: 14px; line-height: 15.4px; color: var(--dcd-ink); font-weight: 700; }

/* 3 upsells à case */
.dcd-upsells { list-style: none; margin: 3px 0 15px; padding: 0; display: grid; row-gap: 15px; }
.dcd-up { display: grid; grid-template-columns: 50px 1fr auto 28px; align-items: center; column-gap: 10px; min-height: 50px;
    background: #fff; border-radius: 10px; }
.dcd-up__img { width: 50px; height: 50px; object-fit: cover; border-radius: 2px; display: block; }
.dcd-up__name { font-family: var(--dcd-head); font-size: 14px; line-height: 16.8px; letter-spacing: .78px; color: var(--dcd-ink); }
.dcd-up__price { text-align: right; line-height: 1.1; }
.dcd-up__now { display: inline-block; color: var(--dcd-lav); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.dcd-up__was { display: block; font-size: 11.2px; color: rgba(18, 18, 18, .7); letter-spacing: 1px; }
.dcd-up__price .dcd-up__was:only-child { display: inline; }
.dcd-check { width: 28px; height: 28px; padding: 5px; border: 0; background: none; display: grid; place-items: center; }
.dcd-check svg { width: 18px; height: 18px; border: 2px solid var(--dcd-lav); border-radius: 3px; background: #fff; }
.dcd-check svg path { visibility: hidden; }
.dcd-up[data-selected="true"] .dcd-check svg { background: var(--dcd-lav); }
.dcd-up[data-selected="true"] .dcd-check svg path { visibility: visible; }
.dcd-up.is-busy, .dcd-prot.is-busy { opacity: .6; pointer-events: none; }

.dcd-empty { padding: 48px 0; text-align: center; }
.dcd-empty p { margin-bottom: 18px; font-family: var(--dcd-head); font-size: 18px; color: var(--dcd-ink); }

/* Pied : protection, économies, sous-total, réductions, bouton, réassurance */
.dcd-foot { flex: 0 0 auto; padding: 0 15px; border-top: 1px solid rgba(18, 18, 18, .08); background: #fff; }
.dcd-prot { display: grid; grid-template-columns: 50px 1fr auto 55px; align-items: center; column-gap: 10px;
    min-height: 50px; margin: 15px 0; }
.dcd-prot__icon { width: 50px; height: 50px; display: grid; place-items: center; }
.dcd-prot__name { font-family: var(--dcd-head); font-size: 14px; line-height: 16.8px; letter-spacing: .78px; color: var(--dcd-ink); }
.dcd-prot__price { color: var(--dcd-lav); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
.dcd-switch { justify-self: end; position: relative; width: 40px; height: 20px; margin-left: 15px; padding: 0; border: 0;
    border-radius: 20px; background: #d6d6d6; transition: background .2s; }
.dcd-switch__knob { position: absolute; top: 1.5px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff;
    transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.dcd-prot[data-selected="true"] .dcd-switch { background: var(--dcd-lav); }
.dcd-prot[data-selected="true"] .dcd-switch__knob { transform: translateX(19px); }
.dcd-row { display: flex; justify-content: space-between; align-items: baseline; }
.dcd-row + .dcd-row { margin-top: 9px; }
.dcd-row--sav { font-size: 16px; line-height: 17.6px; color: var(--dcd-lav); }
.dcd-row--sub { font-size: 20px; line-height: 22px; color: var(--dcd-ink); }
.dcd-row strong { font-weight: 700; }
.dcd-row--sav strong { font-weight: 400; }
.dcd-discounts { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 6px; margin-top: 10px; font-size: 12px; line-height: 16px; }
.dcd-discounts__label { color: var(--dcd-ink); }
.dcd-discounts .dcd-tag { font-size: 10px; height: 18px; padding: 0 6px; letter-spacing: .5px; }
.dcd-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 49px; margin: 15px 0 0; border: 0;
    border-radius: 8px; background: var(--dcd-lav); color: #fff; font-family: var(--dcd-body); font-size: 18px; font-weight: 700;
    letter-spacing: 1px; text-decoration: none; text-transform: none; padding: 0 30px; }
.dcd-btn:hover, .dcd-btn:focus { color: #fff; text-decoration: none; filter: brightness(.97); }
.dcd-trust { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 16px; font-size: 12px;
    line-height: 21.6px; color: var(--dcd-txt); }
.dcd-trust span { display: inline-flex; align-items: center; gap: 4px; }
.dcd-trust__sep { color: rgba(18, 18, 18, .5); }

/* ---------------- Modale avant paiement (Zipify OCU « pre-purchase ») ---------------- */
.dcd-pre { position: fixed; inset: 0; z-index: 100050; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .55); font-family: Arial, sans-serif; color: #262626; }
.dcd-pre[hidden] { display: none; }
.dcd-pre__box { position: relative; display: flex; flex-direction: column; width: 756px; max-width: 100%; max-height: min(785px, 100dvh);
    background: #fff; border-radius: 4px; overflow: hidden; }
.dcd-pre__head { position: relative; padding: 38px 48px 14px; text-align: center; }
.dcd-pre__title { margin: 0; font-family: Arial, sans-serif; font-size: 20px; line-height: 1.25; font-weight: 700; color: #262626; letter-spacing: 0; }
.dcd-pre__x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; color: #9b9b9b;
    display: grid; place-items: center; padding: 0; cursor: pointer; }
.dcd-pre__timer { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; padding: 8px 12px;
    background: #eceef1; font-size: 20px; font-weight: 700; color: #262626; }
.dcd-pre__timer b { color: #ff5533; font-size: 22px; font-variant-numeric: tabular-nums; }
.dcd-pre__main { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.dcd-offer { padding: 16px 32px 16px; border-bottom: 1px solid #9b9b9b; }
.dcd-offer:last-child { border-bottom: 0; }
.dcd-offer__info { display: grid; grid-template-columns: 114px 1fr; column-gap: 16px; align-items: start; }
.dcd-offer__img { width: 114px; height: 114px; object-fit: cover; border: 1px solid #e3e3e3; border-radius: 4px; display: block; }
.dcd-offer__name { margin: 4px 0 8px; font-size: 18px; line-height: 1.2; font-weight: 700; color: #262626; }
.dcd-offer__price { margin: 0 0 4px; font-size: 18px; line-height: 1.2; font-weight: 700; color: #262626; }
.dcd-offer__desc { margin: 0; font-size: 14px; line-height: 21px; color: #262626; }
.dcd-offer__cta { display: flex; margin-top: 18px; height: 40px; border-radius: 4px; overflow: hidden; }
.dcd-offer__add { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 0;
    background: #3bb44a; color: #fff; font-family: Arial, sans-serif; font-size: 14px; font-weight: 700; padding: 0 12px; }
.dcd-offer__undo { flex: 0 0 38px; border: 0; border-left: 1px solid rgba(255, 255, 255, .45); background: #5f6670; display: grid;
    place-items: center; padding: 0; }
.dcd-offer.is-added .dcd-offer__add { background: #5f6670; }
.dcd-offer__guar { margin: 16px 0 0; text-align: center; font-size: 14px; line-height: 1.4; color: #262626; }
.dcd-badges { list-style: none; display: flex; justify-content: center; gap: 4px; margin: 12px 0 4px; padding: 0; }
.dcd-badge { width: 46px; height: 46px; }
.dcd-pre__foot { flex: 0 0 auto; display: flex; gap: 16px; padding: 16px; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, .06); }
.dcd-pre__foot button { flex: 1 1 0; min-height: 52px; border-radius: 4px; font-family: Arial, sans-serif; font-size: 16px; font-weight: 400;
    padding: 0 10px; cursor: pointer; }
.dcd-pre__decline { border: 1px solid #262626; background: #fff; color: #262626; }
.dcd-pre__continue { border: 1px solid #262626; background: #262626; color: #fff; }
.dcd-pre.is-busy .dcd-pre__foot button { opacity: .6; pointer-events: none; }
@media (max-width: 768px) {
    .dcd-pre { align-items: stretch; background: #fff; }
    .dcd-pre__box { width: 100%; max-height: none; height: 100%; border-radius: 0; }
    .dcd-pre__head { padding: 36px 44px 12px; }
}
body.dcd-pre-open { overflow: hidden; }

/* Spécificité : le skin partagé (static/css/aurelia-checkout-skin.css) peint tout
   `.cart-slide-panel a[href*="checkout"]` (fond, rayon 14, MAJUSCULES) et shell.css met le titre
   du tiroir en gras : on repasse par l'ID du panneau pour rendre la mesure de la source. */
html:root #cartSlidePanel #cart-panel-title.dcd-title { font-weight: 400; font-family: Helvetica, Arial, sans-serif; }
#cartSlidePanel a.dcd-btn, #cartSlidePanel a.dcd-btn:hover {
    background: #c4a3f9 !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
    padding: 0 30px !important; box-shadow: none !important; font-family: 'Questrial', Helvetica, Arial, sans-serif;
    font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: none; }
.dcd [hidden], .dcd-pre [hidden] { display: none !important; }

/* Desktop (relevé 1440 px) : la carte d'offre passe sur deux colonnes — photo + texte à gauche,
   bouton, garantie et cachets à droite ; modale centrée de 756 px. */
@media (min-width: 769px) {
    .dcd-offer { display: grid; grid-template-columns: 1fr 210px; grid-template-rows: auto auto 1fr; column-gap: 28px;
        align-items: start; padding: 18px 16px; }
    .dcd-offer__info { grid-column: 1; grid-row: 1 / span 3; grid-template-columns: 160px 1fr; column-gap: 18px; }
    .dcd-offer__img { width: 160px; height: 160px; }
    .dcd-offer__cta { grid-column: 2; grid-row: 1; margin-top: 30px; height: 38px; }
    .dcd-offer__add { font-size: 13px; }
    .dcd-offer__guar { grid-column: 2; grid-row: 2; margin-top: 14px; font-size: 13px; }
    .dcd-badges { grid-column: 2; grid-row: 3; margin-top: 10px; }
    .dcd-pre__head { padding: 30px 48px 12px; }
}
