/* Demo 06: additions on top of the live IT Cares homepage. Everything is prefixed d6- so it can be ported as one block. */

/* ---------- scroll progress ---------- */
.d6-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, #2563eb, #7c3aed, #10b981); z-index: 99990; pointer-events: none; }

/* ---------- hero: moving light ---------- */
.d6-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.d6-aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.d6-aurora i:nth-child(1) { width: 520px; height: 520px; left: -8%; top: -30%; background: #2563eb; animation: d6drift1 16s ease-in-out infinite; }
.d6-aurora i:nth-child(2) { width: 460px; height: 460px; right: -6%; top: 10%; background: #7c3aed; animation: d6drift2 19s ease-in-out infinite; }
.d6-aurora i:nth-child(3) { width: 380px; height: 380px; left: 38%; bottom: -40%; background: #10b981; opacity: .28; animation: d6drift1 23s ease-in-out infinite reverse; }
@keyframes d6drift1 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(90px, 50px, 0) scale(1.15); } }
@keyframes d6drift2 { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.1); } 50% { transform: translate3d(-110px, 70px, 0) scale(.92); } }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { text-wrap: balance; }
.hero h1 span { background: linear-gradient(90deg, #60a5fa, #a78bfa, #60a5fa); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: d6sheen 6s linear infinite; }
@keyframes d6sheen { to { background-position: -200% 0; } }

/* hero entrance */
.d6-js .hero .d6-in { opacity: 0; transform: translateY(22px); }
.d6-js .hero.d6-ready .d6-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d6i, 0) * 80ms); }

/* ---------- hero: the two buttons ---------- */
.d6-cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 620px; margin: 0 auto 14px; }
.d6-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 14px; color: #fff; text-decoration: none; min-height: 68px; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.d6-cta > i { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-size: 1.1rem; }
.d6-cta b { display: block; font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.d6-cta small { display: block; font-size: .78rem; opacity: .92; margin-top: 3px; line-height: 1.3; }
.d6-cta--dom { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 26px rgba(16, 185, 129, .35); }
.d6-cta--dist { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 26px rgba(99, 102, 241, .45); }
.d6-cta:hover, .d6-cta:focus-visible { transform: translateY(-3px); color: #fff; }
.d6-cta:focus-visible, .d6-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.d6-cta::after, .d6-shine::after, .d6-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); animation: d6shine 4.6s ease-in-out infinite; pointer-events: none; }
.d6-cta--dist::after { animation-delay: 1.2s; }
@keyframes d6shine { 0%, 62% { left: -60%; } 100% { left: 130%; } }
.d6-shine, .d6-btn { position: relative; overflow: hidden; }
.d6-call { margin: 0 0 22px; }
.d6-call a { color: #dbeafe; text-decoration: none; font-size: 1rem; }
.d6-call a b { color: #fff; border-bottom: 2px solid rgba(96, 165, 250, .7); }
.d6-call a:hover b { border-color: #fff; }

/* ---------- hero: mode cards (right column) ---------- */
.d6-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: .9rem; perspective: 1100px; }
.d6-mode { position: relative; border-radius: 16px; padding: 1.1rem 1rem 1rem; text-align: left; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transform-style: preserve-3d; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; will-change: transform; }
.d6-mode--dom { background: rgba(16, 185, 129, .16); border: 2px solid rgba(16, 185, 129, .55); }
.d6-mode--dist { background: rgba(79, 70, 229, .28); border: 2px solid rgba(129, 140, 248, .75); box-shadow: 0 16px 40px rgba(79, 70, 229, .35); }
.d6-mode:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, .35); }
.d6-mode-top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; transform: translateZ(26px); }
.d6-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 1.05rem; }
.d6-mode--dom .d6-ico { background: linear-gradient(135deg, #059669, #10b981); }
.d6-mode--dist .d6-ico { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.d6-mode-t { color: #fff; font-weight: 800; font-size: 1.08rem; line-height: 1.15; }
.d6-mode-s { color: #cbd5e1; font-size: .74rem; margin-top: 2px; }
.d6-mode ul { list-style: none; margin: 0 0 12px; padding: 0; transform: translateZ(14px); }
.d6-mode li { color: #e2e8f0; font-size: .8rem; line-height: 1.45; padding: 2px 0 2px 18px; position: relative; }
.d6-mode li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 5px; border-left: 2px solid #6ee7b7; border-bottom: 2px solid #6ee7b7; transform: rotate(-45deg); }
.d6-btn { display: block; text-align: center; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .72rem .5rem; border-radius: 10px; transform: translateZ(30px); transition: filter .2s; }
.d6-btn:hover { filter: brightness(1.12); color: #fff; }
.d6-btn--dom { background: linear-gradient(135deg, #059669, #10b981); }
.d6-btn--dist { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.d6-flag { position: absolute; top: -11px; right: 12px; background: #fbbf24; color: #1e293b; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; }
.d6-pay { display: flex; align-items: center; justify-content: center; gap: 7px; color: #cbd5e1; font-size: .68rem; margin-top: 9px; flex-wrap: wrap; }
.d6-pay .fab { font-size: 1.25rem; color: #fff; }
.d6-noprice { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: .5rem; }
.d6-noprice span { display: block; font-size: .8rem; font-weight: 600; color: #64748b; margin-top: 6px; }

/* ---------- reveal on scroll (small blocks only) ---------- */
.d6-js .d6-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d6i, 0) * 70ms); }
.d6-js .d6-rv.d6-on { opacity: 1; transform: none; }
.section a[style*="border-radius"], .section div[style*="border-radius:16px"] { transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s; }
.section a[style*="border-radius"]:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }

/* ---------- cart: header button, drawer, mobile bar ---------- */
.d6-cartbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #dbe3f5; background: #fff; color: #1b2440; cursor: pointer; font-size: 1.05rem; margin-right: 10px; flex: none; transition: transform .2s, box-shadow .2s; }
.d6-cartbtn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47, 79, 224, .18); }
.d6-cartbtn b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: .72rem; font-weight: 800; display: none; align-items: center; justify-content: center; }
.d6-cartbtn.has b { display: inline-flex; }
.d6-cartbtn.bump { animation: d6bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes d6bump { 40% { transform: scale(1.25); } }
.d6-fab { position: fixed; right: 14px; bottom: 132px; z-index: 99980; width: 56px; height: 56px; border-radius: 50%; border: 0; box-shadow: 0 12px 28px rgba(79, 70, 229, .45); background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 1.2rem; display: none; }
.d6-fab.has { display: grid; place-items: center; }
.d6-fab b { top: -2px; right: -2px; display: inline-flex; }

.d6-veil { position: fixed; inset: 0; background: rgba(8, 12, 30, .55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; z-index: 99991; }
.d6-veil.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.d6-drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: #fff; z-index: 99992; display: flex; flex-direction: column; transform: translateX(104%); visibility: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .45s; box-shadow: -24px 0 60px rgba(8, 12, 30, .25); font-family: Inter, system-ui, sans-serif; color: #0f172a; }
.d6-drawer.on { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.d6-dh { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e2e8f0; }
.d6-dh h2 { margin: 0; font-size: 1.2rem; font-weight: 800; color: #0f172a; }
.d6-x { width: 44px; height: 44px; border: 0; background: #f1f5f9; border-radius: 12px; font-size: 1.3rem; cursor: pointer; color: #334155; }
.d6-steps { display: flex; gap: 6px; padding: 12px 20px; font-size: .74rem; font-weight: 700; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.d6-steps span { display: inline-flex; align-items: center; gap: 6px; }
.d6-steps span::before { content: attr(data-n); width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: #e2e8f0; color: #475569; font-size: .7rem; }
.d6-steps .on { color: #1d4ed8; }
.d6-steps .on::before { background: #2563eb; color: #fff; }
.d6-steps i { flex: 1; height: 1px; background: #e2e8f0; align-self: center; }
.d6-db { flex: 1; overflow: auto; padding: 18px 20px; }
.d6-empty { text-align: center; color: #64748b; padding: 40px 10px; }
.d6-empty .d6-btn { display: inline-block; margin-top: 16px; padding: .75rem 1.2rem; transform: none; }
.d6-item { border: 2px solid #c7d2fe; background: #f5f7ff; border-radius: 16px; padding: 16px; margin-bottom: 14px; animation: d6pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.d6-item.sos { border-color: #fecaca; background: #fff5f5; }
@keyframes d6pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.d6-item-h { display: flex; gap: 12px; align-items: flex-start; }
.d6-item-h .d6-ico { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.d6-item.sos .d6-ico { background: linear-gradient(135deg, #dc2626, #ef4444); }
.d6-item-t { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.d6-item-s { font-size: .82rem; color: #475569; margin-top: 3px; }
.d6-rm { margin-left: auto; border: 0; background: none; color: #64748b; font-size: .8rem; text-decoration: underline; cursor: pointer; padding: 6px; flex: none; }
.d6-item ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.d6-item li { font-size: .84rem; color: #334155; padding-left: 20px; position: relative; }
.d6-item li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 8px; height: 5px; border-left: 2px solid #10b981; border-bottom: 2px solid #10b981; transform: rotate(-45deg); }
.d6-ok { display: flex; gap: 8px; align-items: center; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-weight: 700; font-size: .86rem; border-radius: 10px; padding: 9px 12px; margin-bottom: 14px; }
.d6-f { display: grid; gap: 12px; margin-top: 4px; }
.d6-f label { display: block; font-size: .82rem; font-weight: 700; color: #334155; margin-bottom: 5px; }
.d6-f select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: .95rem; color: #0f172a; }
.d6-f select:focus { outline: 2px solid #2563eb; outline-offset: 1px; }
.d6-note { font-size: .8rem; color: #64748b; line-height: 1.5; margin-top: 14px; }
.d6-warn { display: none; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 10px 12px; font-size: .84rem; line-height: 1.45; margin-top: 12px; }
.d6-warn.on { display: block; }
.d6-warn a { color: #92400e; font-weight: 800; }
.d6-df { border-top: 1px solid #e2e8f0; padding: 16px 20px 20px; background: #fff; }
.d6-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: #475569; margin-bottom: 12px; gap: 12px; }
.d6-total b { color: #0f172a; font-size: .95rem; }
.d6-go { position: relative; overflow: hidden; width: 100%; min-height: 54px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #1e3a6e, #2563eb); color: #fff; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.d6-go:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 99, 235, .35); }
.d6-go:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.d6-badges { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; color: #64748b; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex-wrap: wrap; }
.d6-badges .fab { font-size: 1.6rem; }
.d6-badges .fa-cc-visa { color: #1a1f71; } .d6-badges .fa-cc-mastercard { color: #eb001b; } .d6-badges .fa-cc-amex { color: #2e77bb; } .d6-badges .fa-apple-pay { color: #000; } .d6-badges .fa-google-pay { color: #5f6368; } .d6-badges .fa-stripe { color: #635bff; }
.d6-toast { position: fixed; left: 50%; top: 86px; transform: translate(-50%, -20px); opacity: 0; z-index: 99993; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 999px; font: 700 .88rem Inter, system-ui, sans-serif; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); transition: opacity .3s, transform .3s; pointer-events: none; white-space: nowrap; }
.d6-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* mobile bar with the two modes */
.d6-bar { position: fixed; left: 10px; right: 10px; bottom: 66px; z-index: 99979; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(15, 23, 42, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transform: translateY(260%); opacity: 0; transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.d6-bar.on { transform: none; opacity: 1; }
.d6-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 11px; color: #fff; font: 800 .9rem Inter, system-ui, sans-serif; text-decoration: none; }
.d6-bar--3 { grid-template-columns: 1fr 1fr 1fr; }
.d6-bar--3 a { font-size: .8rem; gap: 6px; }
.d6-bar-call { background: #fff; color: #1d4ed8 !important; }
.d6-bar-home { background: linear-gradient(135deg, #059669, #10b981); }
.d6-bar-pay { background: linear-gradient(135deg, #4f46e5, #7c3aed); }

@media (max-width: 1100px) { .d6-modes { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .d6-cta-row { grid-template-columns: 1fr; }
  .d6-cta { min-height: 64px; }
  .d6-bar { display: grid; }
  .d6-cartbtn { display: none; }
  .d6-aurora i { filter: blur(50px); animation: none; }
}
@media (min-width: 769px) { .d6-fab { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
  .d6-aurora i, .hero h1 span, .d6-cta::after, .d6-shine::after, .d6-btn::after { animation: none !important; }
  .d6-js .d6-rv, .d6-js .hero .d6-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .d6-drawer, .d6-veil, .d6-bar { transition: none; }
}

/* ---------- offer block on money pages: call or pay ---------- */
.d6-offer { background: linear-gradient(180deg, #f5f7ff, #fff); padding: 44px 16px 40px; font-family: Inter, system-ui, sans-serif; }
.d6o-wrap { max-width: 980px; margin: 0 auto; text-align: center; }
.d6o-h { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -.01em; }
.d6o-p { color: #475569; font-size: 1.02rem; margin: 0 auto 26px; max-width: 60ch; line-height: 1.55; }
.d6o-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; text-align: left; perspective: 1200px; }
.d6-offer--one .d6o-grid { grid-template-columns: minmax(0, 520px); justify-content: center; }
.d6o-card { position: relative; background: #fff; border-radius: 20px; padding: 24px 22px 20px; border: 2px solid #e2e8f0; box-shadow: 0 14px 34px rgba(15, 23, 42, .08); transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; display: flex; flex-direction: column; }
.d6o-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(15, 23, 42, .14); }
.d6o-remote { border-color: #818cf8; background: linear-gradient(180deg, #f5f3ff, #fff 60%); }
.d6o-home { border-color: #6ee7b7; background: linear-gradient(180deg, #ecfdf5, #fff 60%); }
.d6o-flag { position: absolute; top: -12px; right: 18px; background: #fbbf24; color: #1e293b; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.d6o-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.d6o-ico { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-size: 1.25rem; }
.d6o-remote .d6o-ico { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.d6o-home .d6o-ico { background: linear-gradient(135deg, #059669, #10b981); }
.d6o-t { font-size: 1.3rem; font-weight: 800; color: #0f172a; line-height: 1.15; }
.d6o-s { font-size: .86rem; color: #64748b; margin-top: 3px; }
.d6o-card ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 7px; flex: 1; }
.d6o-card li { position: relative; padding-left: 24px; color: #334155; font-size: .96rem; line-height: 1.45; }
.d6o-card li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 5px; border-left: 2.5px solid #10b981; border-bottom: 2.5px solid #10b981; transform: rotate(-45deg); }
.d6o-btn { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border-radius: 12px; color: #fff !important; font-weight: 800; font-size: 1.02rem; text-decoration: none; transition: transform .2s, box-shadow .2s, filter .2s; }
.d6o-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.d6o-btn--pay { background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 10px 24px rgba(99, 102, 241, .4); }
.d6o-btn--call { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 10px 24px rgba(16, 185, 129, .35); }
.d6o-btn::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-18deg); animation: d6shine 4.6s ease-in-out infinite; pointer-events: none; }
.d6o-btn:focus-visible { outline: 3px solid #1d4ed8; outline-offset: 3px; }
.d6o-pay { display: flex; align-items: center; justify-content: center; gap: 9px; color: #64748b; font-size: .74rem; font-weight: 700; margin-top: 12px; flex-wrap: wrap; }
.d6o-pay .fab { font-size: 1.5rem; }
.d6o-pay .fa-cc-visa { color: #1a1f71; } .d6o-pay .fa-cc-mastercard { color: #eb001b; } .d6o-pay .fa-cc-amex { color: #2e77bb; } .d6o-pay .fa-apple-pay { color: #000; } .d6o-pay .fa-stripe { color: #635bff; }
.d6o-link { display: block; text-align: center; margin-top: 12px; color: #047857; font-weight: 700; font-size: .9rem; text-decoration: none; }
.d6o-link:hover { text-decoration: underline; }
.d6o-call { margin: 20px 0 0; font-size: 1.05rem; }
.d6o-call a { color: #1d4ed8; text-decoration: none; }
.d6o-call b { border-bottom: 2px solid #93c5fd; }
@media (max-width: 720px) { .d6o-grid { grid-template-columns: 1fr; } .d6-offer { padding: 34px 14px; } }
@media (prefers-reduced-motion: reduce) { .d6o-btn::after { animation: none; } }

/* printer pages: on site only, no cart */
html[data-d6-zone="onsite"] .d6-cartbtn { display: none !important; }

.d6-modes--one { grid-template-columns: 1fr; }
.d6-modes--one .d6-mode { padding: 1.3rem 1.2rem 1.1rem; }
.d6-modes--one .d6-mode-t { font-size: 1.25rem; } .d6-modes--one .d6-mode li { font-size: .9rem; } .d6-modes--one .d6-mode-s { font-size: .82rem; }

/* mode cards: same height, buttons on the same line */
.d6-mode { display: flex; flex-direction: column; }
.d6-mode ul { flex: 1; }
.d6-mode-link { display: block; text-align: center; margin-top: 10px; color: #a7f3d0; font-size: .78rem; font-weight: 700; text-decoration: none; }
.d6-mode-link:hover { text-decoration: underline; color: #fff; }

/* hero photo moved to the top of the left column */
.d6-hero-fig { margin: 0 0 22px !important; max-width: 560px; }
.d6-hero-fig img { width: 100%; height: 230px !important; max-height: 230px !important; object-fit: cover; border-radius: 16px; display: block; }
.d6-hero-fig figcaption { text-align: left !important; }
@media (max-width: 760px) { .d6-hero-fig img { height: 160px !important; } .d6-hero-fig figcaption { display: none; } }

/* mode cards: rows shared between the two cards, so the phone button sits on the same line as "Réserver et payer" */
@supports (grid-template-rows: subgrid) {
  .d6-mode { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; align-content: start; }
  .d6-mode > .d6-btn { align-self: start; }
  .d6-mode > .d6-pay, .d6-mode > .d6-mode-link { align-self: start; }
}

.d6-hero-desc { background: rgba(255, 255, 255, .10); border-left: 4px solid #60a5fa; border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 26px 0 0; max-width: 620px; text-align: left; }
.d6-hero-desc p { margin: 0; color: #e2e8f0; font-size: .95rem; line-height: 1.65; }
.d6-hero-desc strong { color: #fff; }
/* phone line under "Réserver une visite": always one line */
.d6-modes:not(.d6-modes--one) { gap: 10px; }
.d6-modes:not(.d6-modes--one) .d6-mode { padding-left: .8rem; padding-right: .8rem; }
.d6-mode-link { white-space: nowrap; font-size: .74rem; letter-spacing: -.01em; }
.d6-mode-link .fa-phone { margin-right: 2px; }

/* two cards: strictly equal width, payment badges on one line */
.d6-modes:not(.d6-modes--one) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.d6-modes:not(.d6-modes--one) .d6-pay { gap: 5px; font-size: .64rem; flex-wrap: nowrap; white-space: nowrap; }
.d6-modes:not(.d6-modes--one) .d6-pay .fab { font-size: 1.1rem; }
@media (max-width: 1100px) { .d6-modes:not(.d6-modes--one) { grid-template-columns: 1fr; } }

/* two wide cards: every line of text on one line */
@media (min-width: 1101px) { .d6-modes:not(.d6-modes--one) .d6-mode li { white-space: nowrap; } }
.d6-hero-desc { margin: 0 0 24px; }

html[lang^="en"] .d6-hero-desc { margin: 0 auto 26px; }
