/* THE home.import - page-level styles on top of theme.css (fonts, body, legal pages, toast). */
:root {
  --ct-font-display: Jost, "Helvetica Neue", sans-serif;
  --ct-font-body: Inter, system-ui, sans-serif;
  --ct-font-mono: "IBM Plex Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: #0A0F1C; font-family: var(--ct-font-body); }
a { color: inherit; }
img { max-width: 100%; }
#app:focus { outline: none; }

/* Line drawing shown while a product has no photo */
.ct-plate-icon svg, .ct-pdp-drawing svg { width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ct-pdp-drawing { display: flex; width: 46%; margin: auto; color: #1552F0; opacity: .9; }
.ct-plate img { background: #fff; }

/* Header logo (SVG) and brand logo sprite */
.ct-hd-logo img { height: 34px; width: auto; max-height: none; }
.ct-marques { --ct-logos: url("../img/brand-logos.png"); }

/* Hero visuals live in assets/img */
.ct-carou-lien img { display: block; width: 100%; object-fit: cover; }

/* Basket on phones: one column (theme.css sets the 1100px rule after the phone rule, which overrode it) */
@media (max-width: 699px) {
  .ct-cart-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Filters on listing pages (filtering runs in the browser) */
.ct-filter-opt--lien { cursor: pointer; }
.ct-pagination button { font: inherit; }

/* Legal & information pages */
.ct-info { padding: 22px 0 56px; }
.prose { max-width: 820px; font-size: 15px; line-height: 1.6; }
.prose h1 { font-family: var(--ct-font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; margin: 6px 0 18px; }
.prose h2 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.prose p { margin: 0 0 12px; }
.prose a { color: #1552F0; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 16px; }
.prose th, .prose td { border: 1px solid #DFE4EC; padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #F4F6FA; width: 34%; }
.prose .box { border: 1px solid #DFE4EC; border-radius: 6px; padding: 14px 16px; margin: 12px 0; background: #F4F6FA; }
/* End-of-year clearance: struck usual price + saving badge */
.ct-badge--sale { background: #D62D20; color: #fff; }
.ct-price { flex-wrap: wrap; row-gap: 2px; }
.ct-price .ct-badge--sale { font-size: 10.5px; padding: 3px 6px; align-self: center; }
.ct-pdp-price s { font-size: 22px; color: #5b6573; }

/* Destock Days popup */
.ct-promo-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 16, 28, .62); animation: ct-fade .2s ease-out; }
.ct-promo-dialog { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 10px; padding: 28px 24px 22px; text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border-top: 6px solid #D62D20; }
.ct-promo-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: #5b6573; cursor: pointer; border-radius: 50%; }
.ct-promo-close:hover, .ct-promo-close:focus-visible { background: #F4F6FA; color: #111; }
.ct-promo-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #D62D20; }
.ct-promo-heading { margin: 4px 0 6px; font-family: var(--ct-font-display, Jost, sans-serif); font-weight: 600; font-size: 40px; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; color: #111; }
.ct-promo-lead { margin: 0 0 16px; font-size: 14.5px; color: #3c4655; }
.ct-promo-codes { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ct-promo-code { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px dashed #C9D1DD; border-radius: 8px; background: #F7F9FC; text-align: left; }
.ct-promo-rate { font-size: 24px; font-weight: 800; color: #D62D20; min-width: 64px; }
.ct-promo-min { font-size: 13.5px; color: #3c4655; }
.ct-promo-copy { font: inherit; font-family: var(--ct-font-mono, 'IBM Plex Mono', monospace); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 8px 10px; border: 1px solid #111; border-radius: 4px; background: #FFD400; color: #111; cursor: pointer; }
.ct-promo-copy:hover, .ct-promo-copy:focus-visible { background: #111; color: #FFD400; }
.ct-promo-go { display: block; padding: 14px 18px; border-radius: 4px; background: #1552F0; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.ct-promo-go:hover, .ct-promo-go:focus-visible { background: #0E3FBF; color: #fff; }
.ct-promo-small { margin: 10px 0 0; font-size: 12px; color: #5b6573; }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-promo-modal { animation: none; } }
@media (max-width: 420px) { .ct-promo-heading { font-size: 32px; } .ct-promo-code { grid-template-columns: auto 1fr; } .ct-promo-copy { grid-column: 1 / -1; } }

/* Sticky Destock Days codes box (bottom right; bottom bar on phones) */
.ct-codes-dock { position: fixed; right: 16px; bottom: 16px; z-index: 900; width: 240px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(10, 16, 28, .25); border-top: 4px solid #D62D20; overflow: hidden; font-size: 13px; }
.ct-codes-toggle { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; padding: 10px 12px 8px; border: 0; background: #fff; text-align: left; cursor: pointer; font: inherit; color: #111; }
.ct-codes-title { font-family: var(--ct-font-display, Jost, sans-serif); font-weight: 600; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.ct-codes-sub { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #D62D20; }
.ct-codes-chev { grid-column: 2; grid-row: 1 / span 2; width: 9px; height: 9px; border-right: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); margin: 0 4px 4px; transition: transform .2s; }
.ct-codes-dock.is-folded .ct-codes-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.ct-codes-list { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 6px; }
.ct-codes-list li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
.ct-codes-code { font: inherit; font-family: var(--ct-font-mono, 'IBM Plex Mono', monospace); font-weight: 600; font-size: 12px; padding: 6px 8px; border: 1px solid #111; border-radius: 4px; background: #FFD400; color: #111; cursor: pointer; }
.ct-codes-code:hover, .ct-codes-code:focus-visible { background: #111; color: #FFD400; }
.ct-codes-rule { color: #3c4655; }
.ct-codes-rule b { color: #D62D20; }
.ct-codes-dock.is-folded .ct-codes-list { display: none; }
.ct-codes-dock.is-folded { width: auto; }
.ct-codes-dock.is-folded .ct-codes-toggle { column-gap: 12px; }
@media (max-width: 640px) {
  .ct-codes-dock { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .ct-codes-dock.is-folded { left: auto; }
  .ct-codes-list { grid-template-columns: repeat(3, 1fr); }
  .ct-codes-list li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 3px; }
  .ct-codes-code { font-size: 11px; padding: 6px 4px; width: 100%; }
}
body[data-page="cart"] .ct-codes-dock { display: none; }
@media print { .ct-codes-dock { display: none; } }

/* Promo code in the basket */
.ct-cart-promo { margin: 14px 0 12px; display: grid; gap: 6px; }
.ct-cart-promo label { font-size: 13px; font-weight: 700; }
.ct-cart-promo-row { display: flex; gap: 8px; }
.ct-cart-promo-row input { flex: 1; min-width: 0; font: inherit; font-size: 15px; text-transform: uppercase; padding: 10px 12px; border: 1px solid #C9D1DD; border-radius: 4px; }
.ct-cart-promo-row .ct-btn--ghost { background: #fff; color: #111; border: 1px solid #111; padding: 10px 16px; }
.ct-cart-promo-msg { margin: 0; font-size: 13px; font-weight: 600; }
.ct-cart-promo-msg.is-ok { color: #1B7F3B; }
.ct-cart-promo-msg.is-error { color: #D62D20; }
.ct-cart-promo-pitch { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #D62D20; }
.ct-codes-sub { text-transform: none; letter-spacing: 0; font-size: 12px; }
.ct-cart-codes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ct-cart-code { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 6px 8px; border: 1px dashed #C9D1DD; border-radius: 6px; font-size: 13px; color: #3c4655; }
.ct-cart-code b { color: #D62D20; }
.ct-cart-code.is-on { border: 1px solid #1B7F3B; background: #EEF8F1; }
.ct-cart-code.is-locked .ct-codes-code { background: #fff; }
.ct-cart-row--promo span:last-child { color: #1B7F3B; font-weight: 700; }

/* Contact form */
.ct-contact { display: grid; gap: 14px; border: 1px solid #DFE4EC; border-radius: 6px; padding: 18px; margin: 12px 0 24px; background: #F4F6FA; }
.ct-contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-contact label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.ct-contact abbr { color: #D62D20; text-decoration: none; }
.ct-contact input[type=text], .ct-contact input[type=email], .ct-contact input[type=tel], .ct-contact select, .ct-contact textarea {
  font: inherit; font-weight: 400; font-size: 15px; padding: 11px 12px; border: 1px solid #C9D1DD; border-radius: 4px; background: #fff; color: inherit; width: 100%; box-sizing: border-box; }
.ct-contact textarea { resize: vertical; }
.ct-contact input:focus, .ct-contact select:focus, .ct-contact textarea:focus { outline: 2px solid #1552F0; outline-offset: 1px; border-color: #1552F0; }
.ct-contact .ct-contact-consent { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; }
.ct-contact-consent input { margin-top: 3px; }
.ct-contact .ct-btn { justify-self: start; }
.ct-contact-msg { margin: 0; font-size: 14px; font-weight: 700; }
.ct-contact-msg.is-ok { color: #1B7F3B; }
.ct-contact-msg.is-error { color: #D62D20; }
@media (max-width: 640px) { .ct-contact-row { grid-template-columns: 1fr; } .ct-contact .ct-btn { justify-self: stretch; } }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.legal-nav a { font-size: 12.5px; font-weight: 600; text-decoration: none; border: 1px solid #DFE4EC; border-radius: 99px; padding: 6px 13px; }
.legal-nav a:hover { border-color: #1552F0; color: #1552F0; }
.legal-nav a.is-active { background: #1552F0; color: #fff; border-color: #1552F0; }
.ph { background: #fff3a8; padding: 0 3px; border-radius: 2px; font-weight: 600; }
.placeholder { background: #fff8d1; border: 1px dashed #d6b400; border-radius: 4px; padding: 12px 16px; font-size: 14px; }

/* Empty states */
.ct-empty-page { padding: 64px 0; text-align: center; }
.ct-empty-page h1 { font-family: var(--ct-font-display); font-weight: 600; text-transform: uppercase; font-size: 30px; margin: 0 0 10px; }
.ct-empty-page p { color: #5A6577; margin: 0 0 20px; }

/* Toast + draft badge */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 20px; transform: translate(-50%, 160%); background: #0A0F1C; color: #fff; padding: 12px 18px; border-radius: 4px; font-size: 14px; transition: transform .25s; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.is-on { transform: translate(-50%, 0); }
.draft-flag { position: fixed; z-index: 99; bottom: 10px; left: 10px; background: #000; color: #22D3EE; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 4px 8px; border-radius: 3px; opacity: .8; }

/* Products without a price yet, product photo gallery */
.ct-price--tbc b { font-size: .95em; color: #5b6573; font-weight: 600; }
.ct-pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.ct-pdp-thumb { flex: 0 0 64px; height: 64px; padding: 3px; border: 1px solid #d9dee5; border-radius: 6px; background: #fff; cursor: pointer; }
.ct-pdp-thumb.is-on { border-color: #1d4ed8; box-shadow: 0 0 0 1px #1d4ed8; }
.ct-pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

/* The line drawing is only a fallback: hide it whenever the product photo is shown */
.ct-plate-icon[hidden], .ct-pdp-drawing[hidden] { display: none !important; }
