/* ==========================================================================
   Thème Costaud — feuille de styles principale
   Violet du logo dominant, ambre réservé aux actions, plans cotés en filigrane.
   ========================================================================== */

:root {
	--violet: #2C0474;
	--violet-deep: #19024A;
	--violet-soft: #EEEAF7;
	--violet-line: #DAD3EC;
	--amber: #F2A900;
	--amber-hover: #FFBC1F;
	--amber-ink: #2A1A00;
	--bg: #FBFAFD;
	--surface: #FFFFFF;
	--ink: #1A1230;
	--muted: #5E5776;
	--line: #E6E1F0;
	--wa: #1DA851;
	--danger: #B42318;
	--ok: #1F7A3E;
	--f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
	--r: 10px;
	--wrap: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
p { margin: 0 0 1em; }
a { color: var(--violet); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--amber-ink); padding: 8px 14px; z-index: 999; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.container { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin: 0 0 8px; }
.muted { color: var(--muted); }
.req, abbr.required { color: var(--danger); text-decoration: none; border: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* ---------- Boutons ---------- */
.btn, .button, button.button, input.button, .woocommerce a.button, .woocommerce button.button, .wc-block-components-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 13px 20px;
	font-family: var(--f-display); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
	border: 2px solid transparent; background: var(--violet); color: #fff; transition: background .15s, transform .15s;
}
.btn:active, .button:active { transform: translateY(1px); }
.button:hover, .btn-violet:hover { background: #3B0C96; color: #fff; }
.btn-amber, .woocommerce .button.alt, .woocommerce #place_order, .checkout-button { background: var(--amber) !important; color: var(--amber-ink) !important; }
.btn-amber:hover, .woocommerce .button.alt:hover, .woocommerce #place_order:hover { background: var(--amber-hover) !important; }
.btn-violet { background: var(--violet); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--violet); color: var(--violet); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #17924A; color: #fff; }
.button.disabled, .button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Barre de contact (au-dessus de l'en-tête) ---------- */
.topbar { background: var(--violet-deep); color: #D9D1F2; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; min-height: 40px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; white-space: nowrap; }
.tb-item svg, .tb-login svg { width: 15px; height: 15px; flex: none; }
a.tb-item:hover { color: #fff; }
.tb-wa { color: #fff; font-weight: 600; }
.tb-wa:hover { color: var(--amber) !important; }
.tb-login { display: inline-flex; align-items: center; gap: 7px; background: var(--amber); color: var(--amber-ink); border-radius: 999px; padding: 6px 14px; font-family: var(--f-display); font-weight: 600; font-size: .82rem; text-decoration: none; }
.tb-login:hover { background: var(--amber-hover); color: var(--amber-ink); }
@media (max-width: 760px) { .tb-mail, .tb-lbl { display: none; } }
@media (max-width: 480px) { .tb-left { display: none; } .tb-right { width: 100%; justify-content: space-between; } }

/* ---------- Espace client : connexion / inscription ---------- */
.woocommerce-account .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-account .u-columns .u-column1, .woocommerce-account .u-columns .u-column2 { width: auto !important; float: none !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.woocommerce-account .u-columns h2 { font-size: 1.3rem; }
.woocommerce-form-login, .woocommerce-form-register { border: 0 !important; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.woocommerce-form-login > *, .woocommerce-form-register > * { grid-column: 1 / -1; }
.woocommerce-form-register .form-row-first { grid-column: 1; }
.woocommerce-form-register .form-row-last { grid-column: 2; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; padding: 14px; }
.woocommerce-form-register .button { background: var(--amber); color: var(--amber-ink); }
.woocommerce-form-login__rememberme { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; margin-bottom: 12px; }
.woocommerce-LostPassword a { color: var(--violet); font-weight: 600; }
.cs-account-help { margin-top: 24px; background: var(--violet-soft); border-radius: var(--r); padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cs-account-help p { margin: 0; max-width: 60ch; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 500; font-size: .9rem; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--violet); border-color: var(--violet); color: #fff; }
@media (max-width: 760px) { .woocommerce-account .u-columns.col2-set { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .woocommerce-form-register .form-row-first, .woocommerce-form-register .form-row-last { grid-column: 1 / -1; } }

/* ---------- En-tête ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.hdr { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-img { max-height: 56px; width: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; color: var(--violet); letter-spacing: -.02em; line-height: 1; }
.brand-word small { display: block; font-family: var(--f-body); font-weight: 600; font-size: .62rem; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a { display: block; font-family: var(--f-display); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink); }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { background: var(--violet-soft); color: var(--violet); }
.nav-list .sub-menu { list-style: none; padding: 6px; margin: 0; display: none; position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 220px; box-shadow: 0 12px 30px rgba(25,2,74,.12); }
.nav-list li { position: relative; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--violet); color: #fff; border-radius: 999px; padding: 10px 16px; font-family: var(--f-display); font-weight: 600; font-size: .9rem; text-decoration: none; flex: none; }
.cart-btn:hover { background: #3B0C96; color: #fff; }
.cs-count { background: var(--amber); color: var(--amber-ink); min-width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; font-variant-numeric: tabular-nums; }
.mbar .cs-count { background: none; color: inherit; min-width: 0; padding: 0; height: auto; display: inline; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 44px; height: 44px; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }
@media (max-width: 900px) {
	.nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
	.nav.is-open { display: block; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px; }
	.nav-list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 12px; }
	.burger { display: block; }
	.hdr .cart-btn { display: none; }
}

/* ---------- Slider d'accueil ---------- */
.cs-slider { position: relative; background: var(--violet-deep); color: #fff; overflow: hidden; }
.cs-slider::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 32px 32px; pointer-events: none; z-index: 1; }
.cs-slides { display: grid; position: relative; z-index: 2; }
.cs-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; position: relative; transition: opacity .7s ease, visibility 0s linear .7s; }
.cs-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.cs-slide-bg { position: absolute; inset: 0; }
.cs-slide-bg img { width: 100%; height: 100%; object-fit: cover; }
.cs-slide-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,2,74,.92) 0%, rgba(25,2,74,.65) 55%, rgba(25,2,74,.3) 100%); }
.cs-slide.has-bg .cs-hero-in { grid-template-columns: minmax(0, 640px); min-height: 520px; }
.cs-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 100px; }
.cs-hero-copy > * { transform: translateY(14px); opacity: 0; transition: transform .7s ease, opacity .7s ease; }
.cs-slide.is-on .cs-hero-copy > * { transform: none; opacity: 1; }
.cs-slide.is-on .cs-hero-copy > *:nth-child(2) { transition-delay: .08s; }
.cs-slide.is-on .cs-hero-copy > *:nth-child(3) { transition-delay: .16s; }
.cs-slide.is-on .cs-hero-copy > *:nth-child(4) { transition-delay: .24s; }
.cs-slide .eyebrow { color: var(--amber); }
.cs-slide-title { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; margin: 14px 0 18px; letter-spacing: -.03em; color: #fff; }
.cs-slide-title em { font-style: normal; color: var(--amber); }
.cs-slide .lead { font-size: 1.12rem; color: #D9D1F2; max-width: 34em; }
.cs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cs-hero-figure { min-width: 0; transform: scale(.96); transition: transform 6s ease-out; }
.cs-slide.is-on .cs-hero-figure { transform: scale(1); }
.cs-hero-figure svg { width: 100%; height: auto; display: block; }
.cs-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.cs-ctrl { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; }
.cs-ctrl-in { display: flex; align-items: center; gap: 16px; }
.cs-dots { display: flex; gap: 8px; flex: 1; }
.cs-dot { position: relative; flex: 0 1 120px; height: 34px; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; color: #BFB3E6; font-family: var(--f-display); font-size: .76rem; font-weight: 600; letter-spacing: .04em; }
.cs-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: rgba(255,255,255,.22); border-radius: 2px; }
.cs-dot i { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--amber); border-radius: 2px; }
.cs-dot[aria-current="true"] { color: #fff; }
.cs-dot[aria-current="true"] i { animation: cs-fill var(--cs-dur, 6s) linear forwards; }
.cs-slider.is-paused .cs-dot[aria-current="true"] i { animation-play-state: paused; }
.cs-dot span { display: block; padding-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes cs-fill { to { width: 100%; } }
.cs-num { font-family: var(--f-mono); font-size: .8rem; color: #BFB3E6; font-variant-numeric: tabular-nums; }
.cs-arrows { display: flex; gap: 8px; }
.cs-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 1.2rem; }
.cs-arrows button:hover { background: rgba(255,255,255,.16); }
@media (max-width: 860px) {
	.cs-hero-in { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 92px; gap: 24px; }
	.cs-hero-figure { order: -1; max-width: 420px; }
	.cs-slide.has-bg .cs-hero-in { min-height: 460px; }
}
@media (max-width: 560px) { .cs-dot span { display: none; } .cs-dot { height: 20px; } .cs-arrows button { width: 38px; height: 38px; } }

/* ---------- Réassurance ---------- */
.cs-assure { background: var(--surface); border-bottom: 1px solid var(--line); }
.cs-assure-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.cs-assure-item { display: flex; gap: 14px; align-items: flex-start; padding: 24px 20px; border-left: 1px solid var(--line); }
.cs-assure-item:first-child { border-left: 0; padding-left: 0; }
.cs-assure-item svg { width: 30px; height: 30px; flex: none; color: var(--violet); }
.cs-assure-item b { font-family: var(--f-display); font-weight: 600; display: block; font-size: .98rem; }
.cs-assure-item span { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .cs-assure-in { grid-template-columns: 1fr 1fr; } .cs-assure-item { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); } .cs-assure-item:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 480px) { .cs-assure-in { grid-template-columns: 1fr; } .cs-assure-item:nth-child(2) { border-top: 1px solid var(--line); } }

/* ---------- Sections ---------- */
.section { padding-top: 72px; padding-bottom: 72px; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; margin: 0; }
.link-arrow { font-family: var(--f-display); font-weight: 600; color: var(--violet); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
@media (max-width: 600px) { .section { padding-top: 48px; padding-bottom: 48px; } .section-tight { padding-top: 0; } }

/* Catégories */
.cs-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cs-cat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: border-color .15s, transform .15s; }
.cs-cat:hover { border-color: var(--violet); transform: translateY(-2px); }
.cs-cat .ill { height: 110px; color: var(--violet); background: var(--violet-soft); border-radius: 8px; display: grid; place-items: center; overflow: hidden; }
.cs-cat .ill svg { height: 80px; width: auto; }
.cs-cat .ill img { width: 100%; height: 100%; object-fit: cover; }
.cs-cat h3 { font-size: 1.1rem; font-weight: 600; margin: 4px 0 0; }
.cs-cat p { font-size: .92rem; color: var(--muted); margin: 0; }
.cs-cat .meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .85rem; color: var(--violet); font-family: var(--f-display); font-weight: 600; }
.cs-cat.is-feature { grid-column: span 2; background: var(--violet); border-color: var(--violet); color: #fff; }
.cs-cat.is-feature h3 { color: #fff; }
.cs-cat.is-feature .ill { background: rgba(255,255,255,.1); color: #fff; height: 140px; }
.cs-cat.is-feature .ill svg { height: 104px; }
.cs-cat.is-feature p, .cs-cat.is-feature .meta { color: #E3DBFA; }
@media (max-width: 900px) { .cs-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cs-cats { grid-template-columns: 1fr; } .cs-cat.is-feature { grid-column: span 1; } }

/* Étapes */
.cs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cs-step { border-top: 3px solid var(--violet); padding-top: 18px; }
.cs-step .n { font-family: var(--f-mono); color: var(--violet); font-size: .85rem; }
.cs-step h3 { font-size: 1.15rem; font-weight: 600; margin: 6px 0 8px; }
.cs-step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .cs-steps { grid-template-columns: 1fr; } }

/* Bandeau CTA */
.band { background: var(--violet); color: #fff; }
.band-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin: 0 0 6px; }
.band p { color: #E3DBFA; margin: 0; }
.band .btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* En-tête de page */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 40px; padding-bottom: 32px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; margin: 8px 0 0; }
.page-head p, .page-head-desc { color: var(--muted); margin-top: 10px; max-width: 42em; }
.crumbs, .woocommerce-breadcrumb { font-size: .88rem; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.crumbs a, .woocommerce-breadcrumb a { text-decoration: none; color: var(--violet); }
.entry-content > * { max-width: 100%; }
.entry-content > p, .entry-content > ul, .entry-content > ol { max-width: 68ch; }
.entry-content .wp-block-columns { gap: 48px; }

/* ---------- Catalogue ---------- */
.cs-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.cs-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cs-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-family: var(--f-display); font-weight: 500; font-size: .88rem; text-decoration: none; color: var(--ink); }
.cs-chip:hover { border-color: var(--violet); }
.cs-chip.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.cs-toolbar .woocommerce-product-search { display: flex; gap: 6px; flex: 1 1 320px; max-width: 460px; min-width: 0; }
.cs-toolbar .woocommerce-product-search .search-field { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; }
.cs-toolbar .woocommerce-product-search button { border-radius: 999px; padding: 9px 16px; background: var(--violet); color: #fff; border: 0; cursor: pointer; font-family: var(--f-display); font-weight: 600; font-size: .85rem; }
@media (max-width: 700px) { .cs-toolbar .woocommerce-product-search { margin-left: 0; flex: 1 1 100%; } }
.section-shop { padding-top: 28px; }
.woocommerce-result-count { color: var(--muted); font-size: .9rem; }
.woocommerce-ordering select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--surface); }
.woocommerce-result-count, .woocommerce-ordering { margin: 0 0 18px; }
.woocommerce-ordering { float: right; }
.woocommerce-result-count { float: left; }

ul.products { list-style: none; margin: 0; padding: 0; clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products::before, ul.products::after { display: none !important; }
@media (max-width: 1000px) { ul.products, ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { ul.products, ul.products.columns-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 420px) { ul.products, ul.products.columns-3 { grid-template-columns: 1fr; } }
ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; position: relative; min-width: 0; }
ul.products li.product > a.woocommerce-LoopProduct-link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; flex: 1; }
ul.products li.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--violet-soft); margin: 0; display: block; }
ul.products li.product .woocommerce-loop-product__title { font-size: 1.02rem; font-weight: 600; padding: 14px 16px 0; margin: 0; }
ul.products li.product .price { display: block; padding: 6px 16px 0; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: .95rem; }
ul.products li.product .price del { color: var(--muted); font-weight: 400; }
.cs-unit { font-family: var(--f-body); font-weight: 400; color: var(--muted); font-size: .8rem; }
.cs-on-quote { color: var(--violet); font-family: var(--f-display); font-weight: 600; }
ul.products li.product .button, .cs-loop-add { margin: 14px 16px 16px; }
.cs-loop-add { display: flex; gap: 8px; align-items: center; }
.cs-loop-add .button { margin: 0; flex: 1; padding: 10px 12px; font-size: .88rem; }
.cs-loop-add .quantity input.qty { width: 64px; height: 42px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: var(--surface); }
ul.products li.product .added_to_cart { display: none; }
.onsale { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--amber); color: var(--amber-ink); border-radius: 6px; padding: 3px 8px; font-size: .75rem; font-weight: 700; min-height: 0; min-width: 0; line-height: 1.4; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 32px 0 0; justify-content: center; border: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.woocommerce-pagination .current { background: var(--violet); color: #fff; border-color: var(--violet); }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .cs-notice { list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 10px; background: var(--violet-soft); border: 1px solid var(--violet-line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; padding: 8px 14px; font-size: .85rem; }
.woocommerce-error, .cs-notice-err { background: #FDECEA; border-color: #F5C2BD; color: var(--danger); }
.cs-notice-ok { background: #E8F6EE; border-color: #B9E2C9; color: var(--ok); }

/* ---------- Fiche produit ---------- */
.section-product { padding-top: 28px; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; position: relative; }
.single-product div.product .woocommerce-product-gallery { width: 100% !important; float: none !important; margin: 0; position: relative; }
@media (min-width: 821px) { .single-product div.product .woocommerce-product-gallery { position: sticky !important; top: 100px; } }
@media (max-width: 820px) { .single-product div.product .woocommerce-product-gallery { top: auto; } }
.single-product div.product .woocommerce-product-gallery img { border-radius: var(--r); background: var(--violet-soft); }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 5; }
.flex-control-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flex-control-thumbs img { cursor: pointer; opacity: .6; border-radius: 6px; }
.flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid var(--violet); }
.single-product div.product .summary { width: 100% !important; float: none !important; margin: 0; min-width: 0; }
.single-product .product_title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; margin: 4px 0 12px; }
.single-product .summary .price { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); margin-bottom: 14px; }
.single-product .woocommerce-product-details__short-description { color: var(--muted); }
.single-product .summary form.cart { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin: 20px 0; }
.single-product .summary form.cart .quantity input.qty { width: 80px; height: 48px; border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 1rem; background: var(--bg); }
.single-product .summary form.cart .single_add_to_cart_button { flex: 1; min-width: 180px; background: var(--amber); color: var(--amber-ink); padding: 14px 20px; }
.single-product .summary form.cart .single_add_to_cart_button:hover { background: var(--amber-hover); color: var(--amber-ink); }
.product_meta { font-size: .88rem; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.product_meta a { color: var(--violet); }
.woocommerce-tabs { grid-column: 1 / -1; margin-top: 24px; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; margin: 0 0 -1px; display: flex; gap: 4px; flex-wrap: wrap; position: relative; z-index: 1; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li { border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--bg); margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 18px; font-family: var(--f-display); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--muted); }
.woocommerce-tabs ul.tabs li.active { background: var(--surface); }
.woocommerce-tabs ul.tabs li.active a { color: var(--violet); }
.woocommerce-tabs .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0 var(--r) var(--r) var(--r); padding: 24px; margin: 0; }
.woocommerce-tabs .panel > h2:first-child { font-size: 1.2rem; }
.shop_attributes, .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.shop_attributes th, .shop_attributes td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shop_attributes th { color: var(--muted); font-weight: 500; width: 40%; }
.shop_attributes td p { margin: 0; font-weight: 600; }
.cs-related { grid-column: 1 / -1; margin-top: 48px; }
.cs-related h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; }
.cs-related > .muted { margin-bottom: 20px; }
@media (max-width: 820px) { .single-product div.product { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Panier de devis ---------- */
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce { display: block; }
table.shop_table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.shop_table th { text-align: left; font-family: var(--f-display); font-weight: 600; font-size: .85rem; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg); }
table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table td.product-thumbnail img { width: 72px; border-radius: 8px; background: var(--violet-soft); }
table.shop_table td.product-name a { font-family: var(--f-display); font-weight: 600; text-decoration: none; color: var(--ink); }
table.shop_table .product-remove a.remove { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--danger) !important; text-decoration: none; font-size: 1.3rem; }
table.shop_table .product-remove a.remove:hover { background: #FDECEA; }
table.shop_table .quantity input.qty { width: 72px; height: 42px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: var(--bg); }
table.shop_table td.actions { background: var(--bg); text-align: right; }
table.shop_table td.actions .coupon { display: none; }
.cart-collaterals { margin-top: 28px; display: flex; justify-content: flex-end; }
.cart_totals { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.cart_totals h2 { font-size: 1.2rem; }
.cart_totals table { border: 0; }
.cart_totals table th, .cart_totals table td { background: none; padding: 10px 0; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; padding: 15px; font-size: 1rem; margin-top: 12px; }
.cs-total-note { font-size: .84rem; color: var(--muted); margin-top: 10px; }
.cart-empty { font-size: 1.1rem; }
.return-to-shop { margin-top: 12px; }
@media (max-width: 760px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; border: 0; padding: 8px 16px; text-align: right; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--muted); font-size: .85rem; text-align: left; }
	table.shop_table_responsive td.product-thumbnail, table.shop_table_responsive td.product-remove { justify-content: flex-start; }
	table.shop_table_responsive td.product-thumbnail::before, table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.actions::before { display: none; }
}

/* ---------- Formulaire de devis (validation) ---------- */
form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
form.checkout #customer_details { grid-column: 1; display: flex; flex-direction: column; gap: 24px; }
form.checkout #customer_details .col-1, form.checkout #customer_details .col-2 { width: 100% !important; float: none !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.2rem; }
form.checkout #order_review { grid-column: 2; grid-row: 1; margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: sticky; top: 100px; }
form.checkout h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; }
.cs-sub { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-row-wide, .cs-seg, .notes { grid-column: 1 / -1; }
.form-row label { font-size: .9rem; font-weight: 600; }
.form-row .optional { color: var(--muted); font-weight: 400; }
.form-row input.input-text, .form-row select, .form-row textarea, .cs-form input, .cs-form select, .cs-form textarea, .flatpickr-input.form-control {
	width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
.form-row input.input-text:focus, .form-row select:focus, .form-row textarea:focus, .cs-form input:focus, .cs-form select:focus, .cs-form textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px var(--violet-soft); }
.form-row.woocommerce-invalid input.input-text, .form-row.woocommerce-invalid select { border-color: var(--danger); }
.cs-seg .woocommerce-input-wrapper { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cs-seg .woocommerce-input-wrapper input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.cs-seg .woocommerce-input-wrapper label.radio { flex: 1; margin: 0; text-align: center; padding: 11px; cursor: pointer; font-weight: 600; border-left: 1px solid var(--line); }
.cs-seg .woocommerce-input-wrapper label.radio:first-of-type { border-left: 0; }
.cs-seg .woocommerce-input-wrapper input:checked + label.radio { background: var(--violet); color: #fff; }
.cs-seg .woocommerce-input-wrapper input:focus-visible + label.radio { outline: 3px solid var(--amber); outline-offset: -3px; }
.cs-datepicker + input, .cs-datepicker { cursor: pointer; }
#order_review table.shop_table { border: 0; }
#order_review table.shop_table th, #order_review table.shop_table td { padding: 10px 0; background: none; }
#payment { background: none; }
#payment ul.payment_methods { display: none; }
#payment .place-order { padding: 0; margin-top: 16px; }
#place_order { width: 100%; padding: 15px; font-size: 1rem; }
.woocommerce-privacy-policy-text { font-size: .82rem; color: var(--muted); }
@media (max-width: 920px) {
	form.checkout { grid-template-columns: 1fr; }
	form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; margin-top: 0; position: static; }
}
@media (max-width: 560px) { .woocommerce-billing-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; } }

.cs-subh { grid-column: 1 / -1; font-family: var(--f-display); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 10px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.form-row.cs-company input.input-text { background: var(--violet-soft); }

/* Calendrier flatpickr aux couleurs Costaud */
.flatpickr-calendar { font-family: var(--f-body); border-radius: 12px; box-shadow: 0 16px 40px rgba(25,2,74,.18); border: 1px solid var(--line); }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months { font-family: var(--f-display); }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--violet); border-color: var(--violet); }
.flatpickr-day.today { border-color: var(--violet); }
.flatpickr-day.cs-range { background: var(--violet-soft); border-color: var(--violet-soft); color: var(--violet); }

/* Page de remerciement */
.woocommerce-order { max-width: 900px; margin: 0 auto; }
.woocommerce-thankyou-order-received { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); background: var(--violet-soft); border-radius: var(--r); padding: 20px 22px; }
.woocommerce-order-overview { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.woocommerce-order-overview li { flex: 1 1 160px; padding: 14px 18px; border-left: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.woocommerce-order-overview li:first-child { border-left: 0; }
.woocommerce-order-overview li strong { display: block; color: var(--ink); font-size: 1rem; margin-top: 2px; }
.woocommerce-order-overview .method { display: none; }
.cs-thanks { margin: 24px 0; }
.cs-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.cs-flow-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cs-flow-item b { font-family: var(--f-display); font-weight: 600; display: block; margin: 8px 0 4px; }
.cs-flow-item p { font-size: .9rem; color: var(--muted); margin: 0; }
.cs-flow .st { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cs-flow .st.ok { color: var(--wa); }
.cs-flow .st.todo { color: #9A6B00; }
.cs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.cs-panel h2 { font-size: 1.2rem; }
.cs-wa-preview { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; white-space: pre-wrap; font-family: var(--f-mono); font-size: .82rem; line-height: 1.6; max-height: 360px; overflow: auto; }
@media (max-width: 720px) { .cs-flow { grid-template-columns: 1fr; } }

/* ---------- Contact & À propos ---------- */
.cs-form .cs-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cs-f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.cs-f label { font-size: .9rem; font-weight: 600; }
.cs-full { grid-column: 1 / -1; }
.cs-hp { position: absolute; left: -9999px; }
@media (max-width: 560px) { .cs-form .cs-fields { grid-template-columns: 1fr; } }
.cs-coord { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.cs-coord-item { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cs-coord-item svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 2px; }
.cs-coord-item b { display: block; font-family: var(--f-display); font-weight: 600; font-size: .92rem; }
.cs-coord-item span, .cs-coord-item a { color: var(--muted); }
.cs-map { margin-top: 20px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cs-map iframe { width: 100%; border: 0; display: block; }
.cs-values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cs-value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cs-value h3 { font-size: 1.02rem; margin: 0 0 6px; }
.cs-value p { font-size: .92rem; color: var(--muted); margin: 0; }
.cs-zones { color: var(--violet); font-weight: 600; }
@media (max-width: 480px) { .cs-values { grid-template-columns: 1fr; } }
.cs-404 { text-align: center; max-width: 640px; }
.cs-404 h1 { font-size: clamp(2rem, 5vw, 3rem); }
.cs-404 .cs-ctas { justify-content: center; }
.cs-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.cs-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cs-post h2 { font-size: 1.15rem; margin-top: 12px; }
.cs-post h2 a { text-decoration: none; color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--violet-deep); color: #CFC6EA; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.site-footer a, .site-footer span { color: #CFC6EA; text-decoration: none; display: block; padding: 3px 0; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word small { color: #A99BD6; display: block; padding: 0; font-size: .62rem; }
.site-footer .brand { display: flex; }
.foot-brand p { margin-top: 14px; font-size: .94rem; max-width: 32ch; }
.foot-menu { list-style: none; margin: 0; padding: 0; }
.foot-wa { color: var(--amber) !important; font-weight: 600; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 18px; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-bottom span, .foot-bottom a { display: inline; font-size: .84rem; }
@media (max-width: 820px) { .foot-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-in { grid-template-columns: 1fr; } }

/* Barre d'action mobile */
.mbar { display: none; }
@media (max-width: 900px) {
	.mbar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
	.mbar .btn { flex: 1; padding: 12px; }
	body { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.cs-dot[aria-current="true"] i { width: 100%; }
	.cs-hero-copy > * { opacity: 1; transform: none; }
}


/* ==========================================================================
   Ajouts : durée de location, filtres, Expo Stand, devis, accueil
   ========================================================================== */

/* Fiche produit : durée de location */
.single-product .summary form.cart:has(.cs-dur) { display: grid; grid-template-columns: auto 1fr; align-items: center; padding: 0; overflow: hidden; gap: 0; }
.single-product .summary form.cart:has(.cs-dur) .cs-dur { grid-column: 1 / -1; }
.single-product .summary form.cart:has(.cs-dur) .quantity { padding: 14px 0 14px 18px; margin: 0; }
.single-product .summary form.cart:has(.cs-dur) .single_add_to_cart_button { margin: 14px 18px 14px 12px !important; }
.cs-dur { border-bottom: 1px solid var(--line); }
.cs-dur-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 18px 10px; }
.cs-dur-h label { font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.cs-dur-hint { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.cs-dur-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 0 18px; }
.cs-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.cs-stepper button { width: 36px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.15rem; color: var(--violet); }
.cs-stepper button:hover { background: var(--violet-soft); }
.cs-stepper input { width: 56px; height: 42px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; background: none; font-weight: 600; -moz-appearance: textfield; }
.cs-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cs-dchips { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-dchip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 6px 11px; font-size: .84rem; font-weight: 600; cursor: pointer; }
.cs-dchip[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.cs-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 6px; padding: 12px 18px 14px; }
.cs-tier { border: 1px dashed var(--violet-line); border-radius: 8px; padding: 6px 4px; text-align: center; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.cs-tier b { display: block; font-family: var(--f-display); font-size: .92rem; color: var(--ink); }
.cs-tier.is-on { border-style: solid; border-color: var(--amber); background: #FFF6DC; }
.cs-bsum { padding: 12px 18px; background: var(--violet-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 48px; }
.cs-bsum .bt { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.cs-bsum .bd { font-size: .86rem; color: var(--muted); }
.cs-bsum .sv { display: inline-block; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: .78rem; border-radius: 999px; padding: 2px 9px; margin-left: 6px; }

/* Comment ça se passe + WhatsApp / Appeler */
.cs-howto { margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 18px 18px 6px; }
.cs-howto h2 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; }
.cs-howto ol { list-style: none; margin: 0; padding: 0; counter-reset: h; }
.cs-howto li { counter-increment: h; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding-bottom: 14px; position: relative; font-size: .94rem; }
.cs-howto li::before { content: counter(h); width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: .85rem; position: relative; z-index: 1; }
.cs-howto li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--violet-line); }
.cs-howto li b { font-weight: 700; }
.cs-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cs-pay span { font-size: .74rem; font-weight: 600; border: 1px solid var(--violet-line); background: var(--violet-soft); color: var(--violet); border-radius: 999px; padding: 2px 9px; }
.cs-askrow { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cs-askrow .btn svg { width: 18px; height: 18px; }
.btn-call { background: var(--surface); color: var(--violet); border-color: var(--violet); }
.btn-call:hover { background: var(--violet-soft); color: var(--violet); }
.cs-askno { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.cs-askno span { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Catalogue : colonne de filtres */
.section-shop { padding-top: 28px; }
.cs-shop { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 28px; align-items: start; }
.cs-shop-main { min-width: 0; }
.cs-filters { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 901px) and (min-height: 1020px) { .cs-filters { position: sticky; top: 100px; } .admin-bar .cs-filters { top: 132px; } }
.cs-filter-form { display: flex; flex-direction: column; gap: 14px; }
.cs-fbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.cs-fbox h3 { font-size: .95rem; font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cs-fbox h3 small { font-family: var(--f-body); font-weight: 500; font-size: .76rem; color: var(--muted); }
.cs-fchk { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: .93rem; }
.cs-fchk input { width: 18px; height: 18px; accent-color: var(--violet); flex: none; margin: 0; }
.cs-fchk span { flex: 1; min-width: 0; }
.cs-fchk em { font-style: normal; font-size: .78rem; color: var(--muted); background: var(--violet-soft); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.cs-fchk:has(input:checked) span { font-weight: 600; color: var(--violet); }
.cs-frange { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.cs-frange label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--muted); min-width: 0; }
.cs-frange input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.cs-frange > span { padding-bottom: 9px; color: var(--muted); }
.cs-fq { margin-top: 8px; }
.cs-freset { width: 100%; padding: 9px 12px; font-size: .85rem; }
.cs-active-f { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cs-afchip { border: 1px solid var(--violet); background: var(--violet-soft); color: var(--violet); border-radius: 999px; padding: 5px 12px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.cs-ftoggle { display: none; }

/* Service client */
.cs-care { background: var(--violet); color: #E3DBFA; border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.cs-care-h { display: flex; align-items: center; gap: 8px; }
.cs-care-h b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; color: #fff; }
.cs-care-dot { width: 9px; height: 9px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 3px rgba(61,220,132,.25); flex: none; }
.cs-care-t { margin-left: auto; font-family: var(--f-display); font-weight: 700; font-size: .98rem; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 4px 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-care p { font-size: .86rem; margin: 0; }
.cs-care .btn { width: 100%; padding: 10px 14px; font-size: .88rem; }
.cs-care-num { text-align: center; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.cs-care-m { display: none; margin-top: 24px; }

/* Articles du catalogue, légèrement réduits */
.cs-shop-main ul.products { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 14px; }
.cs-shop-main ul.products li.product img { aspect-ratio: 16 / 11; }
.cs-shop-main ul.products li.product .woocommerce-loop-product__title { font-size: .94rem; padding: 12px 13px 0; }
.cs-shop-main ul.products li.product .price { font-size: .9rem; padding: 4px 13px 0; }
.cs-shop-main ul.products li.product .button, .cs-shop-main .cs-loop-add { margin: 10px 13px 14px; }
.cs-shop-main .cs-loop-add .button { padding: 8px 10px; font-size: .82rem; }
.cs-shop-main .cs-loop-add .quantity input.qty { width: 52px; height: 38px; }

@media (max-width: 900px) {
	.cs-shop { grid-template-columns: 1fr; gap: 14px; }
	.cs-ftoggle { display: inline-flex; justify-self: start; }
	.cs-filters { position: static; display: none; max-height: none; overflow: visible; }
	.cs-filters.is-open { display: flex; }
	.cs-care-m { display: flex; }
}
@media (max-width: 460px) { .cs-shop-main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Expo Stand */
.cs-xpo { grid-column: 1 / -1; min-width: 0; }
.cs-xpo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cs-xpo-card { display: flex; align-items: center; gap: 12px; text-align: left; border: 2px solid var(--violet); background: var(--violet); color: #fff; border-radius: 12px; padding: 10px 16px; cursor: pointer; font: inherit; transition: transform .15s, box-shadow .15s; }
.cs-xpo-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(44,4,116,.22); }
.cs-xpo-card.alt { background: var(--surface); color: var(--ink); }
.cs-xpo-card[aria-expanded="true"] { outline: 3px solid var(--amber); outline-offset: 2px; }
.cs-xpo-ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; color: #fff; }
.cs-xpo-card.alt .cs-xpo-ic { background: var(--violet-soft); color: var(--violet); }
.cs-xpo-ic svg { width: 30px; }
.cs-xpo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-xpo-t b { font-family: var(--f-display); font-weight: 700; font-size: 1rem; line-height: 1.25; }
.cs-xpo-t span { font-size: .86rem; opacity: .85; }
.cs-xpo-go { font-size: 1.15rem; font-weight: 700; color: var(--amber); transition: transform .2s; }
.cs-xpo-card[aria-expanded="true"] .cs-xpo-go { transform: rotate(90deg); }
.cs-xpo-panel { margin-top: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.cs-xpo-ph { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cs-xpo-ph h3 { font-size: 1.15rem; font-weight: 700; margin: 0; }
.cs-xpo-days { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.cs-xpo-days select { border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 7px 10px; }
.cs-xpo-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-xpack { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); margin: 0; }
.cs-xpack.is-hl { border-color: var(--amber); background: #FFFBF0; }
.cs-xpack h4 { font-family: var(--f-display); font-weight: 700; font-size: 1rem; margin: 0; }
.cs-xs { font-size: .82rem; color: var(--muted); margin: 0; }
.cs-xpack ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .86rem; }
.cs-xpack li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.cs-xprice { margin: auto 0 0; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.cs-xprice small { font-family: var(--f-body); font-weight: 500; font-size: .78rem; color: var(--muted); }
.cs-xnote { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }
.cs-xpo-custom { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.cs-xsteps { list-style: none; margin: 0; padding: 0; counter-reset: x; display: flex; flex-direction: column; gap: 14px; }
.cs-xsteps li { counter-increment: x; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.cs-xsteps li::before { content: counter(x); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.cs-xsteps b { font-family: var(--f-display); font-weight: 600; }
.cs-xsteps span { font-size: .9rem; color: var(--muted); }
.cs-xcta { background: var(--violet-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cs-xcta p { font-size: .9rem; margin: 0; }
.cs-xcta form, .cs-xcta .btn { width: 100%; margin: 0; }
.cs-xcta form .btn { width: 100%; }
@media (max-width: 1000px) { .cs-xpo-packs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .cs-xpo-cards, .cs-xpo-packs, .cs-xpo-custom { grid-template-columns: 1fr; } }

/* Devis : durée par ligne et suggestions */
.cs-ld { display: flex; gap: 6px; align-items: center; margin-top: 6px; font-size: .82rem; color: var(--muted); }
.cs-ld select { border: 1px solid var(--line); background: var(--bg); border-radius: 6px; padding: 3px 6px; font-size: .82rem; }
.cs-upsell { margin-top: 24px; background: var(--violet-soft); border: 1px solid var(--violet-line); border-radius: var(--r); padding: 22px; }
.cs-up-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cs-up-head h2 { font-size: 1.25rem; margin: 0; }
.cs-up-head form { margin: 0; }
.cs-upsell .cs-sub { color: var(--muted); font-size: .9rem; margin: 6px 0 4px; }
.cs-up-g { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin: 16px 0 6px; }
.cs-up { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0 0 8px; }
.cs-up-v img { width: 56px; height: 48px; object-fit: cover; border-radius: 8px; background: var(--violet-soft); display: block; }
.cs-up-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cs-up-t a { font-family: var(--f-display); font-weight: 600; font-size: .92rem; text-decoration: none; color: var(--ink); line-height: 1.3; }
.cs-up-t .why { font-size: .8rem; color: var(--muted); }
.cs-up-t .pp { font-size: .8rem; font-weight: 600; }
.cs-up-act { display: flex; gap: 6px; align-items: center; }
.cs-up-act input { width: 58px; height: 38px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: var(--bg); }
.cs-up-act .btn { padding: 8px 14px; font-size: .85rem; }
@media (max-width: 480px) { .cs-up { grid-template-columns: 48px 1fr; } .cs-up-act { grid-column: 1 / -1; justify-content: flex-end; } }

/* Accueil : catégories défilantes */
.cs-cats-mq { overflow: hidden; padding: 4px 0 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cs-cats-track { display: flex; gap: 16px; width: max-content; padding-left: 16px; animation: cs-cats-mq 32s linear infinite; }
.cs-cats-copy { display: contents; }
.cs-cats-mq:hover .cs-cats-track, .cs-cats-mq:focus-within .cs-cats-track, .cs-cats-mq.is-paused .cs-cats-track { animation-play-state: paused; }
@keyframes cs-cats-mq { to { transform: translateX(-50%); } }
.cs-cats-track .cs-cat { width: 260px; flex: none; padding: 16px; gap: 8px; }
.cs-cats-track .cs-cat .ill { height: 64px; place-items: center start; padding-left: 14px; }
.cs-cats-track .cs-cat .ill svg { height: 42px; }
.cs-cats-track .cs-cat .ill img { width: 64px; height: 48px; border-radius: 6px; }
.cs-cats-track .cs-cat.is-feature { grid-column: auto; }
.cs-cats-track .cs-cat.is-feature .ill { height: 64px; }
.cs-cats-track .cs-cat.is-feature .ill svg { height: 42px; }
@media (max-width: 520px) { .cs-cats-track .cs-cat { width: 220px; } .cs-cats-track { animation-duration: 24s; } }

/* Accueil : Nous équipons */
.cs-equip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-eq { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cs-eq:hover { border-color: var(--violet); transform: translateY(-2px); }
.cs-eq-ic { width: 52px; height: 52px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; flex: none; }
.cs-eq-ic svg { width: 38px; }
.cs-eq-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cs-eq-t b { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; line-height: 1.25; }
.cs-eq-t span { font-size: .92rem; color: var(--muted); }
.cs-eq-go { color: var(--violet); font-weight: 700; align-self: center; }
@media (max-width: 900px) { .cs-equip-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cs-equip-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	.cs-cats-mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.cs-cats-track { animation: none; }
	.cs-cats-copy { display: none; }
}


/* Correctifs d'affichage (priorité sur les styles WooCommerce) */
.woocommerce ul.products li.product .woocommerce-loop-product__title, ul.products li.product .woocommerce-loop-product__title { padding: 14px 16px 0; font-size: 1.02rem; }
.woocommerce ul.products li.product .price, ul.products li.product .price { color: var(--ink); padding: 6px 16px 0; margin: 0; font-size: .95rem; }
.woocommerce .cs-shop-main ul.products li.product .woocommerce-loop-product__title { padding: 12px 13px 0; font-size: .94rem; }
.woocommerce .cs-shop-main ul.products li.product .price { padding: 4px 13px 0; font-size: .9rem; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); }
.woocommerce ul.products li.product .cs-on-quote, .cs-on-quote { color: var(--violet); }
.woocommerce ul.products li.product a img { margin: 0; }
.cs-loop-add.cart { border: 0; padding: 0; background: none; }
@media (max-width: 420px) { ul.products, ul.products.columns-3, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; } .cs-loop-add { flex-wrap: wrap; } .cs-loop-add .quantity, .cs-loop-add .quantity input.qty { width: 100%; } }
table.shop_table td.actions .button[name="update_cart"] { background: var(--violet-soft); color: var(--violet); border: 1px solid var(--violet-line); }
table.shop_table td.actions .button[name="update_cart"]:disabled { opacity: .55; }
.woocommerce-cart table.shop_table dl.variation { display: none; }
.mbar .cs-count { display: inline !important; min-width: 0 !important; height: auto !important; padding: 0 !important; background: none !important; color: inherit !important; }


/* Galerie produit (WooCommerce) */
.woocommerce-product-gallery .flex-viewport { border-radius: var(--r); background: var(--violet-soft); }
.woocommerce-product-gallery__image img { border-radius: 0 !important; }
.woocommerce-product-gallery .flex-direction-nav { list-style: none; margin: 0; padding: 0; }
.woocommerce-product-gallery .flex-direction-nav a { position: absolute; top: calc(50% - 60px); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--violet); display: grid; place-items: center; font-size: 1.4rem; line-height: 1; text-decoration: none; box-shadow: 0 4px 12px rgba(25,2,74,.12); overflow: hidden; }
.woocommerce-product-gallery .flex-direction-nav a:hover { border-color: var(--violet); }
.woocommerce-product-gallery .flex-direction-nav .flex-prev { left: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-next { right: 12px; }
.woocommerce-product-gallery .flex-direction-nav .flex-disabled { opacity: .35; pointer-events: none; }
.woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; }
.woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; float: none !important; margin: 0 !important; list-style: none; }
.woocommerce-product-gallery .flex-control-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; opacity: .6; cursor: pointer; transition: opacity .15s, border-color .15s; }
.woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--violet); outline: none; }
.woocommerce-product-gallery__trigger { position: absolute !important; top: 12px !important; right: 12px !important; z-index: 4; width: 38px !important; height: 38px !important; border-radius: 10px !important; background: var(--surface) !important; border: 1px solid var(--line); display: grid !important; place-items: center; text-indent: -9999px; overflow: hidden; }
.woocommerce-product-gallery__trigger::before { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; text-indent: 0; background: var(--violet); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / contain no-repeat; border: 0 !important; border-radius: 0 !important; }
.woocommerce-product-gallery__trigger::after { display: none !important; }
.cs-gal-count { position: absolute; top: 12px; left: 12px; z-index: 4; background: rgba(25,2,74,.75); color: #fff; border-radius: 999px; padding: 3px 10px; font-family: var(--f-mono); font-size: .76rem; font-variant-numeric: tabular-nums; pointer-events: none; }
.pswp__bg { background: #0E0726 !important; }
@media (max-width: 600px) { .woocommerce-product-gallery .flex-control-thumbs { grid-template-columns: repeat(5, minmax(0, 56px)); } .woocommerce-product-gallery .flex-direction-nav a { width: 36px; height: 36px; } }

/* Catalogue : 2e photo au survol, nombre de photos */
ul.products li.product > a.woocommerce-LoopProduct-link { position: relative; }
ul.products li.product .cs-alt-img { position: absolute; top: 0; left: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: 0; transition: opacity .3s; pointer-events: none; }
.cs-shop-main ul.products li.product .cs-alt-img { aspect-ratio: 16 / 11; }
ul.products li.product:hover .cs-alt-img { opacity: 1; }
.cs-photo-count { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; background: rgba(25,2,74,.72); color: #fff; border-radius: 999px; padding: 3px 9px; font-size: .72rem; font-weight: 600; }
.cs-photo-count svg { width: 13px; height: 13px; }
@media (hover: none) { ul.products li.product .cs-alt-img { display: none; } }


/* ==========================================================================
   Demande de devis : mise en page de la maquette
   ========================================================================== */
/* Mon devis (panier) : sélection à gauche, estimation à droite */
.woocommerce-cart .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 28px; align-items: start; }
.woocommerce-cart .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
.woocommerce-cart .cs-upsell { grid-column: 1; }
.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; position: sticky; top: 100px; display: block; }
.woocommerce-cart .cart-collaterals .cart_totals { max-width: none; float: none; width: 100%; }
.woocommerce-cart .wc-empty-cart-message, .woocommerce-cart .return-to-shop, .woocommerce-cart .cart-empty { grid-column: 1 / -1; }
.woocommerce-cart table.shop_table td.product-name { font-size: .95rem; }
@media (max-width: 980px) {
	.woocommerce-cart .entry-content > .woocommerce { grid-template-columns: 1fr; }
	.woocommerce-cart .cart-collaterals { grid-column: 1; grid-row: auto; position: static; margin-top: 24px; }
}

/* Finaliser ma demande : sélection à gauche, formulaire en 3 étapes à droite */
form.checkout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
form.checkout #customer_details { grid-column: 2; grid-row: 1 / span 3; }
form.checkout .cs-edit-sel { grid-column: 1; grid-row: 1; margin: 0; font-size: .9rem; }
form.checkout .cs-edit-sel a { color: var(--violet); font-weight: 600; text-decoration: none; }
form.checkout #order_review_heading { grid-column: 1; grid-row: 2; margin: 0; }
form.checkout #order_review { grid-column: 1; grid-row: 3; margin-top: 0; top: 100px; }
form.checkout #customer_details .col-1, form.checkout #customer_details .col-2 { padding: 0; border: 0; background: none; }
form.checkout #customer_details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; gap: 26px; }
.cs-step-h { display: flex; align-items: center; gap: 10px; font-size: 1.05rem !important; margin: 0 0 14px !important; }
.cs-step-h .n { font-family: var(--f-mono); font-size: .78rem; background: var(--violet); color: #fff; border-radius: 6px; padding: 2px 8px; }
.cs-event-fields { display: flex; flex-direction: column; gap: 26px; }

.cs-date-grid { display: grid; grid-template-columns: minmax(0, 310px) 1fr; gap: 18px; align-items: start; }
.cs-cal-slot:empty { display: none; }
.cs-cal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--bg); }
.cs-cal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cs-cal-top b { font-family: var(--f-display); font-weight: 600; font-size: .95rem; text-transform: capitalize; }
.cs-cal-top button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--violet); font-size: 1.1rem; }
.cs-cal-top button:disabled { opacity: .35; cursor: not-allowed; }
.cs-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.cs-cal-grid .dow { font-size: .7rem; color: var(--muted); font-weight: 600; padding: 4px 0; text-transform: uppercase; }
.cs-cal-grid button { aspect-ratio: 1; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--ink); padding: 0; }
.cs-cal-grid button:hover:not(:disabled) { background: var(--violet-soft); }
.cs-cal-grid button:disabled { color: var(--line); cursor: not-allowed; }
.cs-cal-grid button.in-range { background: var(--violet-soft); color: var(--violet); }
.cs-cal-grid button.sel { background: var(--violet); color: #fff; font-weight: 700; }
.cs-cal-grid button.today { box-shadow: inset 0 0 0 1px var(--violet); }
.cs-date-fields { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cs-date-fields .form-row { width: 100% !important; float: none !important; }
.cs-datebox { background: var(--violet-soft); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; border: 1px solid transparent; }
.cs-datebox small { display: block; color: var(--muted); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.cs-datebox b { font-family: var(--f-display); font-weight: 600; color: var(--violet); font-size: 1.02rem; }
.cs-datebox.is-invalid { border-color: var(--danger); background: #FDECEA; }
.cs-has-cal #costaud_event_date_field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cs-datebox { display: none; }
.cs-has-cal .cs-datebox { display: block; }
@media (max-width: 980px) {
	form.checkout #customer_details, form.checkout .cs-edit-sel, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; }
	form.checkout #customer_details { order: 2; }
	form.checkout .cs-edit-sel { order: 0; }
	form.checkout #order_review_heading { order: 0; }
	form.checkout #order_review { order: 1; }
	form.checkout { display: flex; flex-direction: column; }
}
@media (max-width: 620px) { .cs-date-grid { grid-template-columns: 1fr; } }

/* Correctifs de la page « Finaliser ma demande » */
form.checkout { grid-template-rows: auto auto 1fr; align-content: start; }
form.checkout .cs-edit-sel, form.checkout #order_review_heading, form.checkout #order_review { align-self: start; }
.woocommerce form.checkout .form-row-first, .woocommerce form.checkout .form-row-last, .woocommerce form.checkout .form-row-wide,
.woocommerce-checkout .form-row-first, .woocommerce-checkout .form-row-last { width: auto !important; float: none !important; }
.woocommerce form.checkout .form-row-wide, .woocommerce form.checkout .cs-seg { grid-column: 1 / -1; }
.woocommerce form.checkout .form-row .input-text, .woocommerce form.checkout .form-row select { width: 100%; }
form.checkout .cs-company .optional, form.checkout .cs-seg .optional { display: none; }
.woocommerce form.checkout .woocommerce-input-wrapper { display: block; width: 100%; }
.woocommerce form.checkout .cs-seg .woocommerce-input-wrapper { display: flex; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button { font-size: 1rem; padding: 14px 18px; }
.mbar .btn { gap: 0; }


/* ==========================================================================
   Formulaire de devis : organisation (Particulier / Entreprise)
   ========================================================================== */
form.checkout { row-gap: 0; }
form.checkout .cs-edit-sel { margin-bottom: 12px; }
form.checkout #order_review_heading { margin-bottom: 12px; }
/* Étapes : un séparateur fin et identique entre chaque étape */
.cs-fstep + .cs-fstep, .cs-event-fields > .cs-fstep:first-of-type { border-top: 1px solid var(--line); padding-top: 22px; }
.woocommerce-billing-fields.cs-fstep { border-top: 0; padding-top: 0; }
form.checkout #customer_details { gap: 22px; }
/* Choix Particulier / Entreprise : pas d'astérisque dans les boutons */
.cs-seg .woocommerce-input-wrapper label.radio .required, .cs-seg .woocommerce-input-wrapper label.radio abbr { display: none; }
/* Pas de bordure verte sur les champs remplis */
.woocommerce form .form-row.woocommerce-validated input.input-text, .woocommerce form .form-row.woocommerce-validated select { border-color: var(--line); }
.woocommerce form .form-row.woocommerce-validated input.input-text:focus, .woocommerce form .form-row.woocommerce-validated select:focus { border-color: var(--violet); }
/* Libellés sur une ligne, « facultatif » discret */
form.checkout .form-row label { line-height: 1.35; }
form.checkout .form-row .optional { font-size: .78rem; font-weight: 400; }
#costaud_event_days_field .optional { display: none; }
/* Messages d'erreur : en haut du formulaire, pas sous la page */
form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; margin-bottom: 20px; }
form.checkout:has(> .woocommerce-NoticeGroup) .cs-edit-sel { grid-row: 2; }
form.checkout:has(> .woocommerce-NoticeGroup) #order_review_heading { grid-row: 3; }
form.checkout:has(> .woocommerce-NoticeGroup) #order_review { grid-row: 4; }
form.checkout:has(> .woocommerce-NoticeGroup) #customer_details { grid-row: 2 / span 3; }
form.checkout .woocommerce-error { display: block; padding: 14px 18px; }
form.checkout .woocommerce-error li { display: inline; margin-right: 6px; }
form.checkout .woocommerce-error li::after { content: " ·"; color: var(--muted); }
form.checkout .woocommerce-error li:last-child::after { content: ""; }
form.checkout .woocommerce-error a { color: var(--danger); text-decoration: none; }
.woocommerce form .form-row .checkout-inline-error-message { font-size: .78rem; margin: 2px 0 0; }
/* Smartphone : formulaire d'abord, puis la sélection et le bouton d'envoi */
@media (max-width: 980px) {
	form.checkout > .woocommerce-NoticeGroup { order: -1; }
	form.checkout .cs-edit-sel { order: 0; }
	form.checkout #customer_details { order: 1; }
	form.checkout #order_review_heading { order: 2; margin-top: 24px; }
	form.checkout #order_review { order: 3; }
}


/* « Votre sélection » en un seul panneau (titre + articles + total), bouton d'envoi sous le formulaire */
form.checkout { grid-template-rows: auto 1fr; }
form.checkout #order_review_heading { grid-column: 1; grid-row: 1; margin: 0 !important; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 22px 22px 0; font-size: 1.2rem; }
form.checkout #order_review { grid-column: 1; grid-row: 2; align-self: start; border-top: 0; border-radius: 0 0 var(--r) var(--r); padding: 4px 22px 18px; position: static; }
form.checkout #customer_details { grid-column: 2; grid-row: 1 / span 2; }
form.checkout:has(> .woocommerce-NoticeGroup) #order_review_heading { grid-row: 2; }
form.checkout:has(> .woocommerce-NoticeGroup) #order_review { grid-row: 3; }
form.checkout:has(> .woocommerce-NoticeGroup) #customer_details { grid-row: 2 / span 2; }
.cs-sel-sub { color: var(--muted); font-size: .9rem; margin: 2px 0 12px; }
.cs-sel-sub a { color: var(--violet); }
#order_review table.shop_table thead { display: none; }
#order_review table.shop_table td.product-name { font-weight: 600; }
#order_review table.shop_table .product-quantity { color: var(--violet); }
#order_review table.shop_table dl.variation { font-weight: 400; font-size: .84rem; color: var(--muted); margin: 4px 0 0; }
#order_review table.shop_table dl.variation dt, #order_review table.shop_table dl.variation dd { display: inline; margin: 0; }
#order_review table.shop_table dl.variation p { display: inline; margin: 0; }
#order_review .cart-subtotal { display: none; }
#order_review .order-total th, #order_review .order-total td { font-family: var(--f-display); font-size: 1rem; }
#order_review .cs-total-note-row td { padding-top: 0 !important; border: 0; }
#order_review .cs-total-note { margin: 0; }
.cs-submit { border-top: 1px solid var(--line); padding-top: 20px; }
.cs-submit #payment { background: none; border: 0; padding: 0; margin: 0; }
.cs-submit #payment .place-order { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.cs-submit #place_order { width: 100%; padding: 16px; font-size: 1.02rem; border-radius: 10px; order: 3; }
.cs-submit .cs-total-note { text-align: center; order: 4; margin: 0; }
.cs-submit .woocommerce-terms-and-conditions-wrapper { order: 1; font-size: .8rem; color: var(--muted); }
.cs-submit .woocommerce-privacy-policy-text p { margin: 0; }
@media (max-width: 980px) {
	form.checkout #order_review_heading { order: 0; margin-top: 0 !important; }
	form.checkout #order_review { order: 0; margin-bottom: 20px; }
	form.checkout #customer_details { order: 1; }
}

/* Finitions « Finaliser ma demande » */
form.checkout:has(> .woocommerce-NoticeGroup) { grid-template-rows: auto auto 1fr; }
#order_review table.shop_table dl.variation dt { margin-right: 4px; }
#order_review .cs-total-note { font-weight: 400; }
@media (max-width: 980px) {
	form.checkout #order_review_heading, form.checkout #order_review { align-self: stretch; width: 100%; }
}

/* Fiche produit : la photo reste fixe jusqu'aux suggestions, sans les recouvrir.
   Photo à gauche sur 2 lignes (infos + onglets à droite), suggestions sur toute la largeur en dessous. */
@media (min-width: 821px) {
	.single-product div.product { grid-template-rows: auto 1fr; row-gap: 0; }
	.single-product div.product > .woocommerce-product-gallery { grid-column: 1; grid-row: 1 / span 2; align-self: start; }
	.single-product div.product > .summary { grid-column: 2; grid-row: 1; }
	.single-product div.product > .woocommerce-tabs { grid-column: 2; grid-row: 2; margin-top: 28px; align-self: start; }
	.single-product div.product > .woocommerce-tabs ul.tabs li a { padding: 9px 14px; font-size: .88rem; }
}

.single-product .cs-related { margin-top: 56px; }

/* ==========================================================================
   Photos des produits adaptées au cadre (toutes tailles d'écran)
   ========================================================================== */
/* Cartes : cadre 4:3 identique partout (catalogue, accueil, suggestions) */
.woocommerce ul.products li.product a img,
ul.products li.product a img,
.woocommerce .cs-shop-main ul.products li.product a img,
ul.products li.product .cs-alt-img {
	display: block; width: 100% !important; height: auto !important; max-width: 100%;
	aspect-ratio: 4 / 3 !important; object-fit: cover; object-position: center;
	background: var(--violet-soft); margin: 0 !important; border-radius: 0;
}
.cs-fit-contain ul.products li.product a img,
.cs-fit-contain.woocommerce ul.products li.product a img,
.cs-fit-contain ul.products li.product .cs-alt-img { object-fit: contain; padding: 6px; box-sizing: border-box; }
ul.products li.product > a.woocommerce-LoopProduct-link { overflow: hidden; }

/* Fiche produit : cadre 4:3 fixe, photo entière centrée */
.woocommerce-product-gallery .woocommerce-product-gallery__image { background: var(--violet-soft); }
.woocommerce-product-gallery .woocommerce-product-gallery__image > a { display: block; aspect-ratio: 4 / 3; max-width: 100%; position: relative; }
.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img.wp-post-image,
.woocommerce-product-gallery .woocommerce-product-gallery__image > a > img:first-child {
	position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: contain; object-position: center; margin: 0;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image .zoomImg { background: #fff; }
.woocommerce-product-gallery .flex-viewport { height: auto !important; }
@media (min-width: 821px) {
	.woocommerce-product-gallery .woocommerce-product-gallery__image > a { max-height: calc(100vh - 220px); width: 100%; margin: 0 auto; }
}
/* Miniatures : carrées, recadrées au centre */
.woocommerce-product-gallery .flex-control-thumbs img { aspect-ratio: 1; width: 100%; height: auto; object-fit: cover; object-position: center; }

/* Devis : vignettes carrées */
table.shop_table td.product-thumbnail img, .cs-up-v img { aspect-ratio: 1; width: 64px; height: 64px !important; object-fit: cover; }
@media (max-width: 760px) { table.shop_table td.product-thumbnail img { width: 56px; height: 56px !important; } }

/* Accueil : photos des catégories et du slider */
.cs-cat .ill img { width: 100%; height: 100%; object-fit: cover; }
.cs-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cs-slide-bg img { object-position: center; }

/* ==========================================================================
   « Mon devis » en une page : devis à gauche, formulaire à droite
   ========================================================================== */
.cs-onepage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 28px; align-items: start; }
.cs-op-left, .cs-op-right { min-width: 0; }
.cs-op-h { font-size: 1.3rem; margin: 0 0 14px; }
/* Les deux blocs WooCommerce reprennent un affichage simple dans leur colonne */
.cs-devis-onepage .cs-op-left > .woocommerce, .cs-devis-onepage .cs-op-right > .woocommerce { display: block !important; }
.cs-devis-onepage .cs-op-left .cart-collaterals { position: static; margin-top: 16px; display: block; }
.cs-devis-onepage .cs-op-left .cart_totals { max-width: none; padding: 16px 18px; }
.cs-devis-onepage .cs-op-left .cart_totals h2 { font-size: 1rem; margin: 0 0 6px; }
.cs-devis-onepage .cs-op-left .cart_totals .cart-subtotal { display: none; }
.cs-devis-onepage .cs-op-left .cs-upsell { margin-top: 20px; padding: 18px; }
/* Tableau du devis compact (colonne étroite) */
.cs-devis-onepage .cs-op-left table.shop_table thead { display: none; }
.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item { display: grid; grid-template-columns: 28px 56px minmax(0, 1fr) auto; grid-template-areas: "rm th name sub" "rm th qty sub"; align-items: center; column-gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item td { display: block; border: 0; padding: 0; text-align: left; background: none; }
.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item td::before { display: none; }
.cs-devis-onepage .cs-op-left td.product-remove { grid-area: rm; }
.cs-devis-onepage .cs-op-left td.product-thumbnail { grid-area: th; }
.cs-devis-onepage .cs-op-left td.product-thumbnail img { width: 56px; height: 56px !important; }
.cs-devis-onepage .cs-op-left td.product-name { grid-area: name; font-size: .95rem; }
.cs-devis-onepage .cs-op-left td.product-price { display: none !important; }
.cs-devis-onepage .cs-op-left td.product-quantity { grid-area: qty; margin-top: 6px; }
.cs-devis-onepage .cs-op-left td.product-quantity input.qty { width: 70px; height: 36px; }
.cs-devis-onepage .cs-op-left td.product-subtotal { grid-area: sub; font-family: var(--f-display); font-weight: 600; text-align: right; white-space: nowrap; }
.cs-devis-onepage .cs-op-left .woocommerce-cart-form table.shop_table tr:not(.cart_item) { display: block; }
.cs-devis-onepage .cs-op-left table.shop_table td.actions { display: block; padding: 10px 14px; text-align: right; }
.cs-devis-onepage .cs-op-left .cs-ld { margin-top: 4px; }
/* Formulaire : une seule colonne, sans répéter la sélection */
.cs-devis-onepage .cs-op-right form.checkout { display: block; }
.cs-devis-onepage .cs-op-right #order_review_heading, .cs-devis-onepage .cs-op-right #order_review { display: none !important; }
.cs-devis-onepage .cs-op-right #customer_details { display: flex; padding: 24px; }
.cs-devis-onepage .cs-op-right .woocommerce-NoticeGroup { margin-bottom: 16px; }
.cs-devis-onepage .cs-op-right .cs-date-grid { grid-template-columns: minmax(0, 290px) 1fr; }
@media (min-width: 981px) { .cs-devis-onepage .cs-op-left { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; } }
@media (max-width: 980px) {
	.cs-onepage { grid-template-columns: 1fr; }
	.cs-devis-onepage .cs-op-right .cs-date-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
	.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item { grid-template-columns: 24px 48px minmax(0, 1fr); grid-template-areas: "rm th name" "rm th qty" "rm th sub"; }
	.cs-devis-onepage .cs-op-left td.product-subtotal { text-align: left; margin-top: 4px; }
}

/* Finitions « Mon devis » en une page */
.cs-devis-onepage .cs-op-left > .woocommerce { display: flex !important; flex-direction: column; }
.cs-devis-onepage .cs-op-left > .woocommerce > .woocommerce-notices-wrapper { order: 0; }
.cs-devis-onepage .cs-op-left > .woocommerce > .woocommerce-cart-form { order: 1; }
.cs-devis-onepage .cs-op-left > .woocommerce > .cart-collaterals { order: 2; }
.cs-devis-onepage .cs-op-left > .woocommerce > .cs-upsell { order: 3; }
.cs-devis-onepage .cs-op-left td.actions { display: none !important; } /* mise à jour automatique */
.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item td { text-align: left !important; justify-content: flex-start !important; }
.cs-devis-onepage .cs-op-left table.shop_table tr.cart_item td.product-subtotal { text-align: right !important; }
.cs-devis-onepage .cs-op-left .cart_totals .cs-total-note { margin-top: 6px; }
.cs-devis-onepage .cs-op-left .cart_totals table { margin: 0; }
.cs-devis-onepage .cs-op-left .cart_totals { margin-top: 0; }
.cs-devis-onepage .cs-op-left .wc-proceed-to-checkout { display: none; }
@media (max-width: 480px) { .cs-devis-onepage .cs-op-left table.shop_table tr.cart_item td.product-subtotal { text-align: left !important; } }
/* Jour choisi : reste coloré même sous la souris */
.cs-cal-grid button.sel, .cs-cal-grid button.sel:hover { background: var(--violet) !important; color: #fff !important; }
.cs-devis-onepage .cs-op-left .cart_totals table.shop_table tr.cart-subtotal { display: none !important; }
.cs-devis-onepage .cs-op-left .cart_totals table.shop_table { border: 0; }
.cs-devis-onepage .cs-op-left .cart_totals table.shop_table th, .cs-devis-onepage .cs-op-left .cart_totals table.shop_table td { padding: 8px 0; border: 0; background: none; font-family: var(--f-display); font-size: 1.05rem; }
.cs-devis-onepage .cs-op-left .cart_totals table.shop_table td { text-align: right; }


/* Catalogue : recherche, nombre d'articles et tri sur une même ligne */
.cs-shop-main .cs-toolbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: nowrap; margin-bottom: 18px; }
.cs-shop-main .cs-toolbar .woocommerce-product-search { flex: 1 1 auto; max-width: none; min-width: 0; margin: 0; }
.cs-toolbar-r { display: flex; align-items: center; gap: 12px; flex: none; }
.cs-toolbar-r .woocommerce-result-count { float: none; margin: 0; white-space: nowrap; color: var(--muted); font-size: .88rem; }
.cs-toolbar-r .woocommerce-ordering { float: none; margin: 0; }
.cs-toolbar-r .woocommerce-ordering select { height: 42px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 999px; background-color: var(--surface); font-size: .9rem; cursor: pointer; }
.cs-shop-main .cs-toolbar .woocommerce-product-search .search-field { height: 42px; }
.cs-shop-main .cs-toolbar .woocommerce-product-search button { height: 42px; }
@media (max-width: 760px) {
	/* Smartphone : recherche et tri restent sur la même ligne (loupe à la place du texte, compteur masqué) */
	.cs-shop-main .cs-toolbar { gap: 8px; }
	.cs-shop-main .cs-toolbar .woocommerce-product-search { flex: 1 1 auto; gap: 4px; }
	.cs-shop-main .cs-toolbar .woocommerce-product-search .search-field { padding: 0 12px; font-size: .88rem; }
	.cs-shop-main .cs-toolbar .woocommerce-product-search button { width: 42px; padding: 0; font-size: 0; position: relative; flex: none; }
	.cs-shop-main .cs-toolbar .woocommerce-product-search button::before { content: ""; position: absolute; inset: 0; margin: auto; width: 17px; height: 17px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") center / contain no-repeat; }
	.cs-toolbar-r .woocommerce-result-count { display: none; }
	.cs-toolbar-r .woocommerce-ordering select { width: 128px; padding: 0 26px 0 12px; font-size: .84rem; }
}

/* ==========================================================================
   Boutique : la photo occupe toujours toute la largeur de sa colonne,
   y compris avec les extensions d'optimisation (WebP <picture>, chargement différé, Elementor…)
   ========================================================================== */
.woocommerce ul.products li.product, ul.products li.product { padding: 0 !important; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link,
ul.products li.product > a.woocommerce-LoopProduct-link,
ul.products li.product > a:first-child { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
ul.products li.product a picture,
ul.products li.product a .cs-img-frame,
ul.products li.product a > span:has(> img),
ul.products li.product a > div:has(> img) { display: block !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; }
.woocommerce ul.products li.product a img,
.woocommerce-page ul.products li.product a img,
ul.products li.product a img,
ul.products li.product a picture img,
ul.products li.product a img.attachment-woocommerce_thumbnail,
ul.products li.product a img.woocommerce-placeholder,
ul.products li.product a img[data-lazy-src],
ul.products li.product a img.lazyload,
ul.products li.product a img.lazyloaded {
	display: block !important; width: 100% !important; min-width: 100% !important; max-width: 100% !important;
	height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; object-position: center !important;
	margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
}
.cs-fit-contain ul.products li.product a img,
.cs-fit-contain ul.products li.product a picture img { object-fit: contain !important; padding: 6px !important; box-sizing: border-box; }
/* Photo de survol : même cadre que la photo principale */
ul.products li.product a img.cs-alt-img { position: absolute !important; top: 0; left: 0; }

/* Produit sans photo : visuel Costaud plein cadre */
.cs-ph { display: grid !important; place-items: center; width: 100% !important; aspect-ratio: 4 / 3; max-width: 100%; background: var(--violet-soft); color: var(--violet); }
.cs-ph svg { width: 52%; height: auto; }
ul.products li.product a .cs-ph { margin: 0; }
.cs-ph-single { aspect-ratio: 4 / 3; border-radius: var(--r); }
.cs-ph-single svg { width: 46%; }
table.shop_table td.product-thumbnail .cs-ph, .cs-up-v .cs-ph { width: 64px !important; height: 64px; aspect-ratio: 1; border-radius: 8px; }
table.shop_table td.product-thumbnail .cs-ph svg, .cs-up-v .cs-ph svg { width: 70%; }
.cs-devis-onepage .cs-op-left td.product-thumbnail .cs-ph { width: 56px !important; height: 56px; }
#order_review .cs-ph { display: none !important; }

/* ==========================================================================
   Assistant Costaud (bulle de discussion)
   ========================================================================== */
.cs-ai { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; font-family: var(--f-body); }
.cs-ai-fab { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem; cursor: pointer; box-shadow: 0 10px 28px rgba(25,2,74,.32); transition: transform .15s; }
.cs-ai-fab:hover { transform: translateY(-2px); }
.cs-ai-fab svg { width: 22px; height: 22px; }
.cs-ai.is-open .cs-ai-fab { display: none; }
.cs-ai-panel { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: min(400px, calc(100vw - 32px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(25,2,74,.28); overflow: hidden; }
.cs-ai-panel[hidden] { display: none; }
.cs-ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--violet); color: #fff; }
.cs-ai-avatar { width: 38px; height: 38px; flex: none; border-radius: 10px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.cs-ai-avatar svg { width: 38px; height: 38px; }
.cs-ai-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.cs-ai-who b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.cs-ai-who span { font-size: .76rem; color: #D9D1F2; }
.cs-ai-icon { width: 34px; height: 34px; border-radius: 8px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 1.3rem; line-height: 1; display: grid; place-items: center; flex: none; }
.cs-ai-icon:hover { background: rgba(255,255,255,.24); }
.cs-ai-icon svg { width: 17px; height: 17px; }
.cs-ai-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.cs-ai-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.cs-ai-msg p { margin: 0 0 6px; } .cs-ai-msg p:last-child { margin: 0; }
.cs-ai-msg ul { margin: 4px 0 6px; padding-left: 18px; } .cs-ai-msg li { margin: 2px 0; }
.cs-ai-msg.is-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cs-ai-msg.is-user { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.cs-ai-suggest { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-ai-suggest button, .cs-ai-human { border: 1px solid var(--violet-line); background: var(--surface); color: var(--violet); border-radius: 999px; padding: 7px 12px; font-size: .84rem; font-weight: 600; cursor: pointer; text-decoration: none; text-align: left; }
.cs-ai-suggest button:hover { border-color: var(--violet); background: var(--violet-soft); }
.cs-ai-human { background: var(--wa); border-color: var(--wa); color: #fff; }
.cs-ai-cards { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cs-ai-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "im t" "im a"; column-gap: 10px; row-gap: 6px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.cs-ai-card img, .cs-ai-noimg { grid-area: im; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--violet-soft); align-self: start; }
.cs-ai-card-t { grid-area: t; min-width: 0; display: flex; flex-direction: column; }
.cs-ai-card-t a { font-weight: 700; font-size: .86rem; color: var(--ink); text-decoration: none; line-height: 1.3; }
.cs-ai-card-t a:hover { color: var(--violet); }
.cs-ai-card-t span { font-size: .78rem; color: var(--muted); }
.cs-ai-card-a { grid-area: a; display: flex; gap: 6px; }
.cs-ai-card-a input { width: 60px; height: 32px; border: 1px solid var(--line); border-radius: 8px; text-align: center; background: var(--surface); }
.cs-ai-add, .cs-ai-addall { border: 0; border-radius: 8px; background: var(--violet); color: #fff; font-weight: 700; font-size: .8rem; padding: 0 12px; height: 32px; cursor: pointer; }
.cs-ai-add.is-done { background: var(--wa); }
.cs-ai-addall { margin-top: 6px; width: 100%; background: var(--amber); color: var(--amber-ink); height: 36px; }
.cs-ai-wa, .cs-ai-cart { display: block; margin-top: 8px; text-align: center; border-radius: 8px; padding: 8px 10px; font-weight: 700; font-size: .84rem; text-decoration: none; }
.cs-ai-wa { background: var(--wa); color: #fff; }
.cs-ai-cart { background: var(--violet-soft); color: var(--violet); }
.cs-ai-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.cs-ai-typing span:not(.screen-reader-text) { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cs-ai-dot 1s infinite ease-in-out; }
.cs-ai-typing span:nth-child(2) { animation-delay: .15s; } .cs-ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cs-ai-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cs-ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.cs-ai-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .92rem; line-height: 1.4; max-height: 120px; background: var(--bg); }
.cs-ai-form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-soft); }
.cs-ai-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 12px; background: var(--amber); color: var(--amber-ink); cursor: pointer; display: grid; place-items: center; }
.cs-ai-send svg { width: 20px; height: 20px; }
.cs-ai-note { margin: 0; padding: 0 12px 10px; font-size: .7rem; color: var(--muted); background: var(--surface); line-height: 1.4; }
/* Smartphone : au-dessus de la barre « Mon devis / WhatsApp », plein écran une fois ouvert */
@media (max-width: 900px) {
	.cs-ai { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
	.cs-ai-fab { height: 50px; width: 50px; padding: 0; justify-content: center; }
	.cs-ai-fab-label { display: none; }
}
@media (max-width: 600px) {
	.cs-ai-panel { inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
	.cs-ai.is-open ~ .mbar, body:has(.cs-ai.is-open) .mbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cs-ai-typing span { animation: none !important; } }


/* Unité de mesure à côté de la quantité */
.cs-qty-unit { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.single-product .summary form.cart .cs-qty-unit { align-self: center; margin-left: 8px; }
.single-product .summary form.cart:has(.cs-dur):has(.cs-qty-unit) { grid-template-columns: auto auto 1fr; }
.cs-qty-wrap { display: inline-flex; align-items: center; gap: 6px; }

/* Lien « Modifier ces encadrés » (visible seulement par l'administrateur) */
.cs-xpo { position: relative; }
.cs-xpo-edit { position: absolute; top: -28px; right: 0; font-size: .8rem; font-weight: 600; color: var(--violet); background: var(--violet-soft); padding: 3px 10px; border-radius: 999px; text-decoration: none; z-index: 2; }
.cs-xpo-edit:hover { background: var(--violet); color: #fff; }

/* Pagination des produits : numéros espacés (prend le pas sur le style WooCommerce) */
.woocommerce nav.woocommerce-pagination { margin-top: 36px; text-align: center; }
.woocommerce nav.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; margin: 0; padding: 0; overflow: visible; white-space: normal; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li { float: none; border: 0; margin: 0; overflow: visible; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; line-height: 1; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible { background: var(--violet-soft); border-color: var(--violet); color: var(--violet); }
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.current { background: var(--violet); border-color: var(--violet); color: #fff; }
.woocommerce nav.woocommerce-pagination ul.page-numbers li span.dots { border-color: transparent; background: transparent; min-width: 24px; padding: 0; }
@media (max-width: 600px) {
	.woocommerce nav.woocommerce-pagination ul.page-numbers { gap: 8px; }
	.woocommerce nav.woocommerce-pagination ul.page-numbers li a.page-numbers,
	.woocommerce nav.woocommerce-pagination ul.page-numbers li span.page-numbers { min-width: 40px; height: 40px; }
}

/* Fiche produit : espace entre la grande image et la galerie de miniatures */
.woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs { margin-top: 18px !important; gap: 12px; }
@media (max-width: 600px) { .woocommerce div.product div.images.woocommerce-product-gallery .flex-control-thumbs { margin-top: 12px !important; gap: 8px; } }

/* Fiche produit : marges intérieures du bloc Description / Caractéristiques / Avis */
.woocommerce div.product .woocommerce-tabs .panel { padding: 24px 28px !important; }
.woocommerce div.product .woocommerce-tabs .panel > :last-child { margin-bottom: 0; }
.woocommerce div.product .woocommerce-tabs .panel ul { padding-left: 1.2em; }
@media (max-width: 600px) { .woocommerce div.product .woocommerce-tabs .panel { padding: 18px 18px !important; } }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 -1px !important; }

/* Fiche produit : la durée de location passe sous le bouton « Demande de devis » */
.single-product .summary form.cart:has(.cs-dur) .cs-dur { border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: 6px; }
.single-product .summary form.cart:has(.cs-dur) { display: flex !important; flex-wrap: wrap; align-items: center; }
.single-product .summary form.cart:has(.cs-dur) .cs-dur { flex: 0 0 100%; order: 10; }
.single-product .summary form.cart:has(.cs-dur) .single_add_to_cart_button { flex: 1 1 180px; }

/* Fiche produit : formulaire de choix des variations (couleur, taille…) */
.single-product .summary form.variations_form { display: block; padding: 20px 22px; }
.single-product .summary form.variations_form table.variations { display: block; width: 100%; margin: 0 0 18px; border: 0; }
.single-product .summary form.variations_form table.variations tbody { display: grid; gap: 16px; }
.single-product .summary form.variations_form table.variations tr { display: grid; gap: 6px; }
.single-product .summary form.variations_form table.variations th,
.single-product .summary form.variations_form table.variations td { display: block; padding: 0; border: 0; text-align: left; line-height: 1.3; }
.single-product .summary form.variations_form table.variations th.label label { font-family: var(--f-display); font-weight: 600; font-size: .95rem; margin: 0; }
.single-product .summary form.variations_form table.variations td.value { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.single-product .summary form.variations_form table.variations select {
	flex: 1 1 220px; min-width: 0; max-width: 100%; height: 48px; padding: 0 40px 0 14px; margin: 0 !important;
	font: inherit; color: var(--ink); background-color: var(--bg); border: 1px solid var(--line); border-radius: 10px;
	appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232C0474' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.single-product .summary form.variations_form table.variations select:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.single-product .summary form.variations_form .reset_variations { font-size: .85rem; font-weight: 600; color: var(--violet); }
.single-product .summary form.variations_form .single_variation_wrap { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.single-product .summary form.variations_form .woocommerce-variation:empty,
.single-product .summary form.variations_form .woocommerce-variation[style*="none"] { display: none; }
.single-product .summary form.variations_form .woocommerce-variation-price { margin: 0; }
.single-product .summary form.variations_form .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 600px) { .single-product .summary form.variations_form { padding: 16px; } }
.single-product .summary form.variations_form .reset_variations[style*="hidden"] { display: none !important; }
.single-product .summary form.variations_form table.variations select { flex-basis: 100%; }
.single-product .summary form.variations_form table.variations td.value { gap: 6px; }
.single-product .summary form.variations_form .reset_variations[style*="visible"] { display: inline-block; }
.single-product .summary form.variations_form .reset_variations:not([style*="visible"]) { display: none !important; }

/* Catalogue (boutique et catégories) : photo entière, un peu réduite dans son cadre 4:3 */
body .cs-shop-main ul.products li.product a img,
body .cs-shop-main ul.products li.product a picture img,
body .cs-shop-main ul.products li.product a img.cs-alt-img {
	object-fit: contain !important; object-position: center !important;
	padding: 14px !important; box-sizing: border-box !important;
	background: var(--violet-soft) !important;
}
@media (max-width: 600px) {
	body .cs-shop-main ul.products li.product a img,
	body .cs-shop-main ul.products li.product a picture img,
	body .cs-shop-main ul.products li.product a img.cs-alt-img { padding: 8px !important; }
}

/* Catalogue : fond blanc dans le cadre des photos */
body .cs-shop-main ul.products li.product a img,
body .cs-shop-main ul.products li.product a picture img,
body .cs-shop-main ul.products li.product a img.cs-alt-img,
body .cs-shop-main ul.products li.product a .cs-ph,
body .cs-shop-main ul.products li.product > a.woocommerce-LoopProduct-link { background: #FFFFFF !important; }
body .cs-shop-main ul.products li.product a img:not(.cs-alt-img),
body .cs-shop-main ul.products li.product a .cs-ph { border-bottom: 1px solid var(--line) !important; }

/* Accueil : photos entières, un peu réduites, sur fond blanc (comme le catalogue) */
body.home ul.products li.product a img,
body.home ul.products li.product a picture img,
body.home ul.products li.product a img.cs-alt-img {
	object-fit: contain !important; object-position: center !important;
	padding: 14px !important; box-sizing: border-box !important;
}
body.home ul.products li.product a img,
body.home ul.products li.product a picture img,
body.home ul.products li.product a img.cs-alt-img,
body.home ul.products li.product a .cs-ph,
body.home ul.products li.product > a.woocommerce-LoopProduct-link { background: #FFFFFF !important; }
body.home ul.products li.product a img:not(.cs-alt-img),
body.home ul.products li.product a .cs-ph { border-bottom: 1px solid var(--line) !important; }
@media (max-width: 600px) {
	body.home ul.products li.product a img,
	body.home ul.products li.product a picture img,
	body.home ul.products li.product a img.cs-alt-img { padding: 8px !important; }
}

/* Fiche produit, suggestions : photos entières, un peu réduites, sur fond blanc */
body .cs-related ul.products li.product a img,
body .cs-related ul.products li.product a picture img,
body .cs-related ul.products li.product a img.cs-alt-img {
	object-fit: contain !important; object-position: center !important;
	padding: 14px !important; box-sizing: border-box !important;
}
body .cs-related ul.products li.product a img,
body .cs-related ul.products li.product a picture img,
body .cs-related ul.products li.product a img.cs-alt-img,
body .cs-related ul.products li.product a .cs-ph,
body .cs-related ul.products li.product > a.woocommerce-LoopProduct-link { background: #FFFFFF !important; }
body .cs-related ul.products li.product a img:not(.cs-alt-img),
body .cs-related ul.products li.product a .cs-ph { border-bottom: 1px solid var(--line) !important; }
@media (max-width: 600px) {
	body .cs-related ul.products li.product a img,
	body .cs-related ul.products li.product a picture img,
	body .cs-related ul.products li.product a img.cs-alt-img { padding: 8px !important; }
}

/* ==========================================================================
   Expérience utilisateur (2.0)
   ========================================================================== */
/* Fil d'Ariane */
.cs-crumb-sep { color: var(--muted); }

/* Réassurance sous le prix */
.cs-reassure { list-style: none; margin: 4px 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.cs-reassure li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.cs-reassure svg { width: 16px; height: 16px; flex: none; color: #1E7F4F; }
.cs-delay { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; padding: 8px 12px; border-radius: 10px; background: #FFF5DA; color: #6B4A00; font-size: .88rem; font-weight: 600; }
.cs-delay svg { width: 18px; height: 18px; flex: none; }

/* Moyens de paiement sous le bouton */
.cs-paybar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 4px; }
.cs-paybar-l { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.cs-paychip { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* FAQ produit */
.cs-faq { display: flex; flex-direction: column; gap: 8px; }
.cs-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cs-faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-family: var(--f-display); font-weight: 600; font-size: .98rem; position: relative; }
.cs-faq summary::-webkit-details-marker { display: none; }
.cs-faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--violet); }
.cs-faq details[open] summary::after { content: "−"; }
.cs-faq summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 12px; }
.cs-faq details p { margin: 0; padding: 0 16px 14px; color: var(--muted); line-height: 1.55; }

/* Barre fixe « Ajouter au devis » (fiche produit, mobile) */
.cs-pbar { display: none; }
@media (max-width: 820px) {
	.cs-pbar:not([hidden]) { display: flex; align-items: center; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(25, 2, 74, .08); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
	.cs-pbar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
	.cs-pbar-name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cs-pbar-price { font-family: var(--f-display); font-weight: 700; color: var(--violet); font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cs-pbar-price del { display: none; }
	.cs-pbar-wa { width: 46px; height: 46px; padding: 0 !important; display: grid !important; place-items: center; flex: none; }
	.cs-pbar-wa svg { width: 22px; height: 22px; }
	.cs-pbar-add { flex: none; height: 46px; padding: 0 18px !important; }
	body.cs-pbar-on .mbar { display: none !important; }
}

/* Bulle de l'assistant réduite à son icône au défilement */
.cs-ai-fab-label { transition: opacity .15s; }
.cs-ai.cs-ai-mini .cs-ai-fab { width: 54px; padding: 0; justify-content: center; }
.cs-ai.cs-ai-mini .cs-ai-fab-label { display: none; }
@media (max-width: 900px) { .cs-ai.cs-ai-mini .cs-ai-fab { width: 50px; height: 50px; } }

/* Catalogue sur mobile : un seul bouton par carte */
@media (max-width: 600px) {
	.cs-loop-add .quantity { display: none !important; }
	.cs-loop-add .button { width: 100%; }
}

/* Accueil : nos réalisations */
.cs-reals-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cs-real { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.cs-real-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--violet-soft); }
.cs-real-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cs-real-img:hover img { transform: scale(1.03); }
.cs-real figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.cs-real figcaption b { font-family: var(--f-display); font-size: 1rem; }
.cs-real figcaption span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .cs-reals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-reals-grid { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cs-real-img img { transition: none; } }

/* Accueil : logos clients */
.cs-clients { padding-top: 24px; padding-bottom: 24px; }
.cs-clients-t { text-align: center; margin-bottom: 18px; }
.cs-clients-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; }
.cs-clients-row img { height: 44px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.cs-clients-row li:hover img { filter: none; opacity: 1; }
.cs-clients-row span { font-family: var(--f-display); font-weight: 600; color: var(--muted); }
@media (max-width: 820px) { .cs-pbar-price .cs-unit { display: none; } }
/* Onglets de la fiche sur une seule ligne (défilement horizontal si besoin) */
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { flex: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 14px !important; font-size: .9rem; white-space: nowrap; }
.woocommerce div.product > *, .woocommerce div.product .woocommerce-tabs { min-width: 0; max-width: 100%; }

/* Texte de référencement sous les articles du catalogue */
.cs-seo-text { margin-top: 40px; padding: 28px 30px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); max-width: 860px; }
.cs-seo-text h2 { font-size: 1.3rem; margin: 0 0 10px; color: var(--violet); }
.cs-seo-text h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.cs-seo-text p { margin: 0 0 10px; color: var(--muted); line-height: 1.65; }
.cs-seo-text p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .cs-seo-text { padding: 20px 18px; } }

/* Page Nos prestations */
.cs-presta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-presta-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-presta-tags a { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.cs-presta-tags a:hover, .cs-presta-tags a:focus-visible { border-color: var(--violet); color: var(--violet); }
.cs-presta-ol { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cs-presta-ol li { counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 56px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.cs-presta-ol li::before { content: counter(step); position: absolute; top: 18px; left: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: #19024A; font-family: var(--f-display); font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.cs-presta-ol b { font-family: var(--f-display); font-size: 1.02rem; }
.cs-presta-ol li > span:not(.cs-pay) { color: var(--muted); }
.cs-presta-ol .cs-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cs-presta-faq .cs-faq { max-width: 860px; }
.cs-presta-events, .cs-presta-faq { padding-top: 0; }
@media (max-width: 900px) { .cs-presta-grid { grid-template-columns: 1fr 1fr; } .cs-presta-ol { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cs-presta-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .cs-presta-grid > .cs-eq:last-child:nth-child(3n+1) { grid-column: 1 / -1; } }
@media (min-width: 561px) and (max-width: 900px) { .cs-presta-grid > .cs-eq:last-child:nth-child(2n+1) { grid-column: 1 / -1; } }

/* ==========================================================================
   Page Contact
   ========================================================================== */
.cs-contact-head .eyebrow { margin-bottom: 4px; }
.cs-contact-head p:last-child { max-width: 620px; }
.cs-qc { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cs-qc-card { display: flex; align-items: center; gap: 14px; height: 100%; box-sizing: border-box; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cs-qc-card:hover, .cs-qc-card:focus-visible { border-color: var(--violet); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44, 4, 116, .08); }
.cs-qc-card:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.cs-qc-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.cs-qc-ic svg { width: 22px; height: 22px; }
.cs-qc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-qc-t b { font-family: var(--f-display); font-size: 1rem; }
.cs-qc-t span { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.cs-qc-wa { background: #1E9E55; border-color: #1E9E55; color: #fff; }
.cs-qc-wa .cs-qc-ic { background: rgba(255, 255, 255, .18); color: #fff; }
.cs-qc-wa .cs-qc-t span { color: rgba(255, 255, 255, .88); }
.cs-qc-wa:hover, .cs-qc-wa:focus-visible { border-color: #17864A; background: #17864A; }

.cs-contact-custom { margin-bottom: 28px; max-width: 860px; }
.cs-contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cs-contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; }
.cs-contact-form h2, .cs-contact-info h2 { font-size: 1.45rem; margin: 0 0 6px; }
.cs-contact-sub { margin: 0 0 20px; color: var(--muted); }
.cs-contact-form .btn { width: 100%; justify-content: center; }

.cs-contact-info { background: var(--violet); color: #fff; border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.cs-contact-info h2 { color: #fff; }
.cs-contact-info dl { margin: 0; display: flex; flex-direction: column; }
.cs-contact-info dl > div { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.cs-contact-info dl > div:first-child { padding-top: 4px; }
.cs-contact-info dt { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #CFC4F0; margin-bottom: 4px; }
.cs-contact-info dt svg { width: 16px; height: 16px; }
.cs-contact-info dd { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; color: #fff; }
.cs-contact-info dd a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.cs-contact-info dd a:hover { border-color: var(--amber); color: var(--amber); }
.cs-ci-devis { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.cs-ci-devis b { font-family: var(--f-display); font-size: 1.05rem; }
.cs-ci-devis span { color: #DCD4F2; font-size: .92rem; line-height: 1.5; }
.cs-ci-devis .btn { align-self: flex-start; margin-top: 4px; }

.cs-contact-map { margin-top: 24px; }
.cs-contact-map .cs-map { margin-top: 0; border-radius: 18px; }

@media (max-width: 1000px) { .cs-qc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cs-contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cs-qc { grid-template-columns: minmax(0, 1fr); gap: 10px; } .cs-qc-card { padding: 14px; } .cs-contact-form, .cs-contact-info { padding: 22px 18px; } }
