/* ==========================================================================
   Rodrigues — site B2B · design system
   Bleu du logo (#184185) décliné + accent orange « bazar » pour les appels à l'action.
   ========================================================================== */

:root {
	--brand-950: #07152f;
	--brand-900: #0b1f45;
	--brand-800: #11306a;
	--brand: #184185;
	--brand-600: #1f55ad;
	--brand-500: #2c6bd6;
	--brand-300: #8fb3f0;
	--brand-100: #dde8fb;
	--brand-50: #f0f5fd;
	--accent: #ff7a1a;
	--accent-600: #ea6100;
	--accent-100: #ffe6d3;
	--sun: #ffc93c;
	--success: #12a150;
	--success-50: #e7f7ee;
	--warning: #d98a00;
	--warning-50: #fff5e0;
	--danger: #dc2f45;
	--danger-50: #fdecee;

	--ink: #0f1b33;
	--ink-2: #3b4863;
	--ink-3: #6b7792;
	--line: #e3e8f2;
	--line-2: #eef2f8;
	--bg: #f7f9fc;
	--surface: #ffffff;

	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--shadow-sm: 0 1px 2px rgba(15, 27, 51, .06), 0 1px 3px rgba(15, 27, 51, .04);
	--shadow: 0 4px 12px -2px rgba(15, 27, 51, .08), 0 2px 4px rgba(15, 27, 51, .04);
	--shadow-lg: 0 24px 48px -12px rgba(15, 27, 51, .18);
	--shadow-brand: 0 12px 28px -8px rgba(24, 65, 133, .45);
	--shadow-accent: 0 12px 28px -8px rgba(255, 122, 26, .55);

	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-display: "Outfit", "Inter", system-ui, sans-serif;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--header-h: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); color: var(--brand-900); }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 28px; } }
.container.narrow { max-width: 860px; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; vertical-align: -.22em; }
.muted { color: var(--ink-3); }
.small { font-size: .88rem; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.center { text-align: center; justify-content: center; }
.text-success { color: var(--success); }
.mt { margin-top: 1.5rem; }
.inline { display: inline; }
.text-gradient {
	background: linear-gradient(100deg, #ffffff 0%, var(--sun) 45%, var(--accent) 100%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------------ Boutons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.25em; border-radius: 999px; border: 1.5px solid transparent;
	font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
	position: relative; overflow: hidden; isolation: isolate; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-sm { padding: .45em .9em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px -8px rgba(24, 65, 133, .55); }
.btn-accent { background: linear-gradient(135deg, #ff9442, var(--accent)); color: #fff; box-shadow: var(--shadow-accent); }
.btn-accent:hover { color: #fff; }
.btn-primary::after, .btn-accent::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
	transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after, .btn-accent:hover::after { transform: translateX(120%); }
.btn-soft { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-800); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); color: var(--brand); background: #fff; }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn.is-disabled, .btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading::before { content: ""; position: absolute; width: 1.2em; height: 1.2em; border: 2.5px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-soft.is-loading::before { border-color: var(--brand-100); border-top-color: var(--brand); }
.link-btn { background: none; border: 0; padding: .4em 0; color: var(--brand-600); font-weight: 600; display: inline-flex; gap: .4em; align-items: center; }
.link-btn:hover { color: var(--brand); text-decoration: underline; }
.link-more { display: inline-flex; align-items: center; gap: .35em; font-weight: 600; white-space: nowrap; }
.link-more .icon { transition: transform .25s var(--ease); }
.link-more:hover .icon { transform: translateX(4px); }
.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s;
}
.icon-btn:hover { border-color: var(--brand-300); color: var(--brand); transform: translateY(-1px); }
.icon-btn-danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-50); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ Barres du haut */
.topbar { background: var(--brand-950); color: rgba(255,255,255,.82); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 36px; }
.topbar-msg { display: inline-flex; align-items: center; gap: .5em; }
.topbar-msg .icon { color: var(--sun); }
.topbar-links { display: flex; gap: 1.25rem; }
.topbar-links a { color: rgba(255,255,255,.82); display: inline-flex; gap: .35em; align-items: center; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 720px) { .topbar-links { display: none; } .topbar-msg { font-size: .76rem; } }

.sales-banner { background: linear-gradient(90deg, var(--accent), #ff9a4d); color: #fff; font-size: .9rem; }
.sales-banner .container { display: flex; align-items: center; gap: .6em; min-height: 40px; flex-wrap: wrap; }
.sales-banner-link { margin-left: auto; color: #fff; font-weight: 700; display: inline-flex; gap: .3em; align-items: center; }
.sales-banner-link:hover { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------------ En-tête */
.header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid rgba(227,232,242,.8);
	transition: box-shadow .3s, background .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(15, 27, 51, .35); background: rgba(255,255,255,.94); }
.header-inner { display: flex; align-items: center; gap: 1.25rem; height: 78px; transition: height .3s var(--ease); }
.header.is-scrolled .header-inner { height: 64px; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .brand img { height: 36px; }
.menu-toggle { display: none; }

.search { position: relative; flex: 1; max-width: 640px; }
.search input {
	width: 100%; height: 48px; padding: 0 3rem 0 3rem; border-radius: 999px;
	border: 1.5px solid var(--line); background: var(--bg); transition: all .25s var(--ease);
}
.search input:focus { outline: none; border-color: var(--brand-500); background: #fff; box-shadow: 0 0 0 5px rgba(44,107,214,.12); }
.search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search-kbd { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 600 .75rem var(--font); color: var(--ink-3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; background: #fff; }
.search input:focus ~ .search-kbd { opacity: 0; }
.search-results {
	position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #fff; border-radius: var(--radius);
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: .5rem; z-index: 60;
	animation: pop .25s var(--ease);
}
.search-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; padding: .5rem .6rem; border-radius: 12px; color: var(--ink); }
.search-item:hover, .search-item.is-active { background: var(--brand-50); color: var(--ink); }
.search-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-2); }
.search-item strong { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.search-item small { color: var(--ink-3); font-size: .78rem; }
.search-item .search-price { font-weight: 700; color: var(--brand); font-size: .9rem; white-space: nowrap; }
.search-more { display: block; text-align: center; padding: .6rem; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--line-2); margin-top: .3rem; }
.search-empty { padding: 1rem; text-align: center; color: var(--ink-3); }
.search mark { background: var(--sun); color: inherit; border-radius: 3px; padding: 0 2px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

.header-actions { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.header-link { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; border-radius: 12px; color: var(--ink); font-size: .85rem; line-height: 1.15; font-weight: 600; }
.header-link .icon { width: 24px; height: 24px; color: var(--brand); }
.header-link small { font-weight: 500; color: var(--ink-3); font-size: .75rem; }
.header-link:hover { background: var(--brand-50); color: var(--ink); }
.cart-btn { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); transition: transform .25s var(--ease); }
.cart-btn:hover { color: #fff; transform: translateY(-2px) rotate(-3deg); }
.cart-btn .icon { width: 24px; height: 24px; }
.cart-count {
	position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
	background: var(--accent); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
	transition: transform .3s var(--ease);
}
.cart-count.is-empty { transform: scale(0); }
.cart-count.is-bump { animation: bump .5s var(--ease); }
.cart-btn.is-bump { animation: wiggle .6s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: none; } 25% { transform: rotate(-10deg) scale(1.08); } 60% { transform: rotate(8deg); } }

/* Menu principal & méga-menu */
.mainnav { border-top: 1px solid var(--line-2); }
.mainnav-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.mainnav-list::-webkit-scrollbar { display: none; }
.mainnav-item > a {
	display: flex; align-items: center; gap: .35em; padding: .8rem .9rem; font-weight: 600; font-size: .92rem;
	color: var(--ink-2); white-space: nowrap; position: relative;
}
.mainnav-item > a::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); transform: scaleX(0); transition: transform .3s var(--ease); }
.mainnav-item:hover > a, .mainnav-item:focus-within > a { color: var(--brand); }
.mainnav-item:hover > a::after { transform: scaleX(1); }
.mainnav-item .chev { width: 14px; height: 14px; transition: transform .25s; }
.mainnav-item:hover .chev { transform: rotate(180deg); }
.mainnav-item.is-accent > a { color: var(--brand-600); }
.mainnav-item.is-accent .icon { color: var(--sun); }
.mainnav-item.is-hot > a { color: var(--accent-600); }
.mega {
	position: absolute; left: 0; right: 0; top: 100%; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .25s var(--ease); pointer-events: none;
}
.mainnav-item:hover .mega, .mainnav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.mega-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.mega-links {
	background: #fff; border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
	padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .35rem;
}
.mega-links a { padding: .65rem .9rem; border-radius: 12px; color: var(--ink); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.mega-links a span { font-size: .75rem; color: var(--ink-3); background: var(--bg); padding: .1rem .5rem; border-radius: 999px; }
.mega-links a:hover { background: var(--brand-50); color: var(--brand); }
.mega-links .mega-all { font-weight: 700; color: var(--brand); background: var(--brand-50); }

@media (max-width: 960px) {
	:root { --header-h: 124px; }
	.menu-toggle { display: inline-grid; }
	.header-inner { height: auto; min-height: 64px; gap: .5rem .6rem; flex-wrap: wrap; padding-top: .55rem; padding-bottom: .6rem; }
	.header.is-scrolled .header-inner { height: auto; }
	.brand img, .header.is-scrolled .brand img { height: 30px; }
	.search { order: 10; flex: 1 1 100%; max-width: none; }
	.search input { height: 44px; }
	.search-kbd, .hide-md { display: none !important; }
	.mainnav { display: none; }
	.flashes { top: auto; bottom: 84px; right: 12px; left: 12px; width: auto; }
}
@media (max-width: 560px) { .hide-sm { display: none; } .header-link { padding: .45rem; } .cart-btn { width: 44px; height: 44px; border-radius: 14px; } }

/* Menu latéral mobile */
.mnav { position: fixed; inset: 0; z-index: 110; visibility: hidden; }
.mnav.is-open { visibility: visible; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(7,21,47,.5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.mnav.is-open .mnav-backdrop { opacity: 1; }
.mnav-panel {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); background: #fff; overflow-y: auto;
	padding: 1rem 1.1rem 2rem; transform: translateX(-100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: .6rem;
}
.mnav.is-open .mnav-panel { transform: none; }
.mnav-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line-2); }
.mnav-head img { height: 30px; width: auto; }
.mnav-account { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: var(--radius); background: var(--brand-50); color: var(--ink); }
.mnav-account span:nth-child(2) { flex: 1; }
.mnav-account small { display: block; color: var(--ink-3); }
.mnav-account .client-avatar { width: 42px; height: 42px; font-size: 1.1rem; border-radius: 13px; }
.mnav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mnav-cta .btn { padding: .7em .5em; font-size: .88rem; }
.mnav-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.mnav-quick a { display: flex; align-items: center; gap: .45rem; padding: .75rem; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); font-weight: 600; font-size: .9rem; }
.mnav-quick .icon { color: var(--brand); }
.mnav-quick a.is-hot .icon { color: var(--accent); }
.mnav-title { margin: .8rem 0 0; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.mnav-group { border-bottom: 1px solid var(--line-2); }
.mnav-group summary { list-style: none; display: flex; align-items: center; gap: .5rem; padding: .85rem .2rem; font-weight: 700; font-size: 1.02rem; cursor: pointer; }
.mnav-group summary::-webkit-details-marker { display: none; }
.mnav-group summary span { margin-left: auto; font-size: .75rem; font-weight: 600; color: var(--ink-3); background: var(--bg); padding: .1rem .5rem; border-radius: 999px; }
.mnav-group .chev { transition: transform .3s var(--ease); color: var(--ink-3); }
.mnav-group[open] .chev { transform: rotate(180deg); }
.mnav-group a { display: flex; justify-content: space-between; padding: .55rem .8rem; margin: 0 0 .15rem .4rem; border-radius: 10px; color: var(--ink-2); font-size: .95rem; }
.mnav-group a:hover { background: var(--brand-50); }
.mnav-group a span { font-size: .75rem; color: var(--ink-3); }
.mnav-group a.is-all { font-weight: 700; color: var(--brand); }
.mnav-group[open] { padding-bottom: .5rem; }
.mnav-links { display: grid; }
.mnav-links a { padding: .5rem .2rem; color: var(--ink-2); }

/* Barre d'onglets mobile */
.tabbar { display: none; }
@media (max-width: 960px) {
	.tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 95;
		background: rgba(255,255,255,.92); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
		border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 40px -12px rgba(15,27,51,.35); padding: 6px;
	}
	.tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .45rem 0; border: 0; background: none; border-radius: 16px; color: var(--ink-3); font-size: .68rem; font-weight: 600; }
	.tabbar .icon { width: 22px; height: 22px; }
	.tabbar .is-active { color: var(--brand); background: var(--brand-50); }
	.tabbar-cart em { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .66rem; font-style: normal; font-weight: 800; display: grid; place-items: center; transition: transform .3s var(--ease); }
	.tabbar-cart em.is-empty { transform: scale(0); }
	.tabbar-cart em.is-bump { animation: bump .5s var(--ease); }
	.header-actions .cart-btn { display: none; }
}

/* ------------------------------------------------------------------ Toasts */
.flashes { position: fixed; top: 96px; right: 20px; z-index: 120; display: grid; gap: .6rem; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
	display: flex; align-items: flex-start; gap: .7rem; padding: .9rem 1.1rem; border-radius: var(--radius); background: #fff;
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-left: 5px solid var(--brand); font-weight: 500; font-size: .92rem;
	animation: toast-in .5s var(--ease) both; pointer-events: auto;
}
.toast .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.toast-success { border-left-color: var(--success); } .toast-success .icon { background: var(--success-50); color: var(--success); }
.toast-error { border-left-color: var(--danger); } .toast-error .icon { background: var(--danger-50); color: var(--danger); }
.toast.is-leaving { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px); } }

/* ------------------------------------------------------------------ Héros */
.hero { position: relative; background: var(--brand-900); color: #fff; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 2.5rem; isolation: isolate; }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; animation: float-blob 18s ease-in-out infinite; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--brand-500), transparent 70%); top: -180px; left: -120px; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #6a3cf0, transparent 70%); bottom: -220px; right: 10%; animation-delay: -6s; opacity: .45; }
.blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, var(--accent), transparent 70%); top: 20%; right: -140px; animation-delay: -12s; opacity: .4; }
@keyframes float-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, -40px) scale(1.1); } 66% { transform: translate(-40px, 50px) scale(.92); } }
.hero-grid {
	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: 56px 56px; mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.05; margin-bottom: 1.2rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; padding: .45em 1em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .85rem; font-weight: 600; margin-bottom: 1.4rem; backdrop-filter: blur(8px); }
.eyebrow .icon { color: var(--sun); }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: rgba(255,255,255,.82); max-width: 560px; }
.hero-lead strong { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-ctas.center { justify-content: center; }
.hero-note { margin-top: 1.2rem; font-size: .88rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: .4em; }
.hero-visual { position: relative; height: 460px; }
.float-card {
	position: absolute; background: #fff; border-radius: 24px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
	animation: floaty 7s ease-in-out infinite; transition: transform .4s var(--ease);
}
.float-card img { border-radius: 16px; width: 100%; height: 100%; object-fit: cover; }
.float-1 { width: 210px; height: 210px; top: 10px; left: 12%; transform: rotate(-6deg); }
.float-2 { width: 170px; height: 170px; top: 40px; right: 2%; animation-delay: -2s; transform: rotate(5deg); }
.float-3 { width: 230px; height: 230px; bottom: 20px; left: 28%; animation-delay: -4s; transform: rotate(3deg); }
.float-4 { width: 140px; height: 140px; bottom: 60px; left: -2%; animation-delay: -1s; transform: rotate(-4deg); }
.float-5 { width: 130px; height: 130px; bottom: 10px; right: 6%; animation-delay: -3s; transform: rotate(-8deg); }
.float-6 { display: none; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
.hero-badge {
	position: absolute; top: 46%; right: 34%; width: 110px; height: 110px; border-radius: 50%;
	background: conic-gradient(from 0deg, var(--sun), var(--accent), var(--sun)); display: grid; place-content: center; text-align: center;
	color: var(--brand-950); box-shadow: 0 20px 40px -10px rgba(255,122,26,.6); animation: spin-slow 16s linear infinite; z-index: 2;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1; animation: spin-slow 16s linear infinite reverse; }
.hero-badge span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; animation: spin-slow 16s linear infinite reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.stats {
	margin-top: 3rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius-lg); overflow: hidden;
	background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px);
}
.stat { padding: 1.3rem 1.5rem; background: rgba(11,31,69,.55); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.1; }
.stat > span { color: rgba(255,255,255,.7); font-size: .88rem; }
@media (max-width: 960px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-visual { height: 300px; }
	.float-1 { width: 150px; height: 150px; } .float-2 { width: 120px; height: 120px; } .float-3 { width: 160px; height: 160px; left: 30%; }
	.float-4, .float-5 { display: none; }
	.hero-badge { width: 90px; height: 90px; right: 8%; top: auto; bottom: 10px; }
	.stats { grid-template-columns: repeat(2, 1fr); }
}

/* Bandeau défilant */
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: .9rem 0; transform: rotate(-1.2deg); margin: -12px -20px 0; position: relative; z-index: 2; box-shadow: 0 10px 30px -12px rgba(255,122,26,.6); }
.marquee-track { display: flex; gap: 1.6rem; width: max-content; animation: marquee 38s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--sun); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tight { padding: 2rem 0 4rem; }
.section-tint { background: linear-gradient(180deg, var(--brand-50), #fff); }
.section-hot { background: linear-gradient(180deg, #fff4ec, #fff); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 420px; color: var(--ink-3); margin: 0; }
.kicker { display: inline-flex; align-items: center; gap: .4em; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-500); margin-bottom: .5rem; }
.section-hot .kicker { color: var(--accent-600); }
.pill { display: inline-flex; align-items: center; padding: .15em .7em; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .8rem; font-weight: 700; }

/* Univers */
.universes { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.universe {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; transition-delay: var(--d, 0ms);
}
.universe:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); color: var(--ink); }
.universe-imgs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 190px; background: var(--line-2); }
.universe-imgs img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); background: #fff; }
.universe-imgs img:first-child { grid-row: span 2; }
.universe:hover .universe-imgs img { transform: scale(1.07); }
.universe-body { padding: 1.1rem 1.3rem 1.3rem; }
.universe-body h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.universe-body span { color: var(--ink-3); font-size: .88rem; }
.universe-arrow {
	position: absolute; right: 1.2rem; bottom: 1.2rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
	background: var(--brand-50); color: var(--brand); transition: all .35s var(--ease);
}
.universe:hover .universe-arrow { background: var(--brand); color: #fff; transform: rotate(-45deg); }

/* ------------------------------------------------------------------ Cartes produit */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
@media (max-width: 560px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: .7rem; } }
.card {
	position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
	border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
	transform-style: preserve-3d;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .7s var(--ease), opacity .25s; }
.card:hover .card-media img { transform: scale(1.08); }
.card-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(44,107,214,.10), transparent 55%); opacity: 0; transition: opacity .3s; }
.card:hover .card-media::after { opacity: 1; }
.card-badges { position: absolute; top: .8rem; left: .8rem; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: .3em; padding: .28em .7em; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.badge .icon { width: 13px; height: 13px; }
.badge-new { background: var(--brand); color: #fff; box-shadow: 0 6px 14px -6px var(--brand); }
.badge-hot { background: var(--accent); color: #fff; box-shadow: 0 6px 14px -6px var(--accent); animation: pulse-hot 2.4s ease-in-out infinite; }
.badge-soft { background: rgba(255,255,255,.92); color: var(--ink-2); border: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-weight: 600; }
@keyframes pulse-hot { 50% { box-shadow: 0 0 0 6px rgba(255,122,26,.18); } }
.card-body { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.card-ref { font-size: .74rem; font-weight: 700; color: var(--ink-3); letter-spacing: .05em; text-transform: uppercase; }
.card-title { font-family: var(--font); font-size: .98rem; font-weight: 600; line-height: 1.35; margin: 0; }
.card-title a { color: var(--ink); }
.card-title a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.card-foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem; position: relative; z-index: 1; }
.card-price { display: flex; flex-direction: column; gap: .1rem; }
.card-pack { font-size: .75rem; color: var(--ink-3); }
.btn-add {
	width: 44px; height: 44px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center;
	box-shadow: var(--shadow-brand); transition: transform .3s var(--ease), background .2s;
}
.btn-add:hover { transform: rotate(90deg) scale(1.08); background: var(--accent); box-shadow: var(--shadow-accent); }
.btn-add.is-done { background: var(--success); transform: none; }
.swatches { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; position: relative; z-index: 1; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 0 0 2px #fff; cursor: pointer; transition: transform .2s var(--ease); display: inline-block; flex-shrink: 0; }
.swatch:hover { transform: scale(1.3); }
.swatch-more { font-size: .72rem; color: var(--ink-3); font-weight: 700; align-self: center; }

/* Prix */
.price { display: inline-flex; align-items: baseline; gap: .25em; }
.price-value { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--brand); letter-spacing: -.01em; }
.price-tax { font-size: .74rem; font-weight: 700; color: var(--ink-3); }
.price-lg .price-value { font-size: 2.3rem; }
.price-locked { position: relative; display: inline-flex; align-items: center; min-height: 34px; color: var(--ink-2); }
.price-blur { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--brand); filter: blur(7px); user-select: none; }
.price-lock { position: absolute; left: 0; display: inline-flex; align-items: center; gap: .3em; font-size: .78rem; font-weight: 700; padding: .3em .7em; border-radius: 999px; background: var(--brand-50); color: var(--brand); border: 1px solid var(--brand-100); transition: all .25s var(--ease); white-space: nowrap; }
.price-locked:hover .price-lock { background: var(--brand); color: #fff; transform: scale(1.04); }
.price-lg.price-locked .price-blur { font-size: 2.3rem; }
.price-lg .price-lock { font-size: .95rem; }

/* Carrousel */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 24px; margin: -6px -4px 0; scrollbar-width: none; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .carousel { grid-auto-columns: calc((100% - 3.6rem) / 4); } }
.carousel-nav { display: flex; align-items: center; gap: .5rem; }
.carousel-nav .link-more { margin-left: .6rem; }

/* Étapes */
.steps-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; background: #fff; border-radius: var(--radius-xl); padding: clamp(1.5rem, 4vw, 3.5rem); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: s; }
.steps li { display: flex; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line-2); transition: all .35s var(--ease); }
.steps li:hover { background: var(--brand-50); border-color: var(--brand-100); transform: translateX(6px); }
.steps li p { margin: .2rem 0 0; color: var(--ink-3); font-size: .92rem; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; flex-shrink: 0; font-size: .95rem; }
@media (max-width: 860px) { .steps-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Bandeau CTA */
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(1.8rem, 4vw, 3rem); border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--brand-800), var(--brand) 60%, var(--brand-600)); color: #fff; isolation: isolate; }
.cta-band h2 { color: #fff; margin-bottom: .3rem; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 560px; }
.cta-band-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,201,60,.45), transparent 65%); right: -80px; top: -200px; z-index: -1; animation: float-blob 14s ease-in-out infinite; }

/* Réassurance & pied de page */
.reassurance { background: #fff; border-top: 1px solid var(--line); }
.reassurance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 2rem; padding-bottom: 2rem; }
.reassurance-item { display: flex; align-items: center; gap: .9rem; }
.reassurance-item strong { display: block; font-size: .95rem; }
.reassurance-item small { color: var(--ink-3); }
.reassurance-icon { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.reassurance-icon .icon { width: 24px; height: 24px; }
@media (max-width: 860px) { .reassurance-grid { grid-template-columns: repeat(2, 1fr); } }

.footer { position: relative; overflow: hidden; background: var(--brand-950); color: rgba(255,255,255,.72); padding-top: 4rem; font-size: .92rem; isolation: isolate; }
.footer-glow { position: absolute; width: 600px; height: 600px; left: -200px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(44,107,214,.35), transparent 65%); z-index: -1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer h3 { color: #fff; font-size: .95rem; letter-spacing: .02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color: #fff; }
.footer-logo { filter: brightness(0) invert(1); height: 40px; width: auto; margin-bottom: 1.2rem; }
.footer-contact { line-height: 2; }
.footer-contact .icon { color: var(--brand-300); margin-right: .3em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.3rem; padding-bottom: 5.5rem; font-size: .82rem; }
.footer-made strong { color: var(--sun); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ Tiroir panier */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(7,21,47,.45); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column;
	transform: translateX(100%); transition: transform .45s var(--ease); box-shadow: var(--shadow-lg);
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.25rem; display: flex; gap: .5rem; align-items: center; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; display: flex; flex-direction: column; }
.drawer-loading { display: grid; place-items: center; flex: 1; }
.drawer-lines { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .8rem; }
.drawer-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; animation: pop .35s var(--ease) both; }
.drawer-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; border: 1px solid var(--line-2); background: #fff; }
.drawer-line a { color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.3; display: block; }
.drawer-line small { color: var(--ink-3); font-size: .78rem; }
.drawer-foot { margin-top: auto; display: grid; gap: .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer-total { display: flex; justify-content: space-between; font-size: 1.05rem; margin-bottom: .3rem; }
.drawer-total strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--brand); }
.drawer-note { text-align: center; font-size: .82rem; color: var(--warning); margin: 0; }

/* Barre franco */
.franco { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: .85rem 1rem; }
.franco-text { font-size: .88rem; display: flex; align-items: center; gap: .45em; flex-wrap: wrap; }
.franco-text .icon { color: var(--brand); }
.franco-bar { margin-top: .6rem; height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.franco-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-500), var(--accent)); transition: width .8s var(--ease); position: relative; overflow: hidden; }
.franco-bar span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 2s infinite; }
.franco.is-done { background: var(--success-50); border-color: #bfe8cf; }
.franco.is-done .icon { color: var(--success); }
.franco.is-done .franco-bar span { background: var(--success); }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ------------------------------------------------------------------ Barre démo */
.demo-bar { position: fixed; left: 20px; bottom: 20px; z-index: 90; }
.demo-toggle {
	display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.15rem; border-radius: 999px; border: 0;
	background: var(--brand-950); color: #fff; font-weight: 700; font-size: .88rem; box-shadow: 0 16px 36px -10px rgba(7,21,47,.6);
	animation: demo-glow 3s ease-in-out infinite;
}
.demo-toggle .icon { color: var(--sun); }
@keyframes demo-glow { 50% { box-shadow: 0 16px 36px -10px rgba(7,21,47,.6), 0 0 0 6px rgba(255,201,60,.25); } }
.demo-panel {
	position: absolute; left: 0; bottom: calc(100% + 12px); width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1rem; display: grid; gap: .4rem;
	opacity: 0; visibility: hidden; transform: translateY(10px) scale(.97); transform-origin: bottom left; transition: all .3s var(--ease);
}
.demo-bar.is-open .demo-panel { opacity: 1; visibility: visible; transform: none; }
.demo-title { font-size: .82rem; color: var(--ink-3); margin: 0 0 .4rem; }
.demo-profile { display: flex; align-items: center; gap: .8rem; padding: .6rem .7rem; border-radius: 14px; color: var(--ink); border: 1.5px solid transparent; transition: all .2s; }
.demo-profile:hover { background: var(--brand-50); color: var(--ink); }
.demo-profile.is-active { border-color: var(--brand-300); background: var(--brand-50); }
.demo-profile strong { display: block; font-size: .9rem; line-height: 1.25; }
.demo-profile small { color: var(--ink-3); font-size: .78rem; }
.demo-profile-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; flex-shrink: 0; }
.demo-check { margin-left: auto; color: var(--success); }
.demo-logout, .demo-erp { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .55rem .7rem; border-radius: 12px; border: 0; background: none; color: var(--ink-2); font-size: .86rem; font-weight: 600; }
.demo-logout:hover, .demo-erp:hover { background: var(--bg); color: var(--brand); }
.demo-erp { border-top: 1px solid var(--line-2); border-radius: 0 0 12px 12px; margin-top: .2rem; padding-top: .8rem; }

/* ------------------------------------------------------------------ En-têtes de page & listes */
.page-hero { position: relative; overflow: hidden; background: var(--brand-900); color: #fff; padding: 2.4rem 0 2.2rem; isolation: isolate; }
.page-hero .blob { opacity: .5; }
.page-hero h1 { color: #fff; margin: .4rem 0 .2rem; }
.page-hero-meta { color: rgba(255,255,255,.72); margin: 0; }
.page-hero .kicker { color: var(--sun); }
.breadcrumb { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-3); margin-bottom: 1rem; }
.breadcrumb .icon { width: 14px; height: 14px; opacity: .6; }
.breadcrumb a { color: inherit; }
.page-hero .breadcrumb { color: rgba(255,255,255,.65); }
.page-hero .breadcrumb a:hover { color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .45em 1em; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: .88rem; font-weight: 600; transition: all .2s; }
.chip span { font-size: .75rem; opacity: .7; }
.chip:hover { background: rgba(255,255,255,.2); color: #fff; }
.chip.is-active { background: #fff; color: var(--brand); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.toolbar-count { color: var(--ink-3); font-weight: 600; display: inline-flex; gap: .4em; align-items: center; }
.toolbar-sort label { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--ink-3); }
.toolbar-sort select, select { padding: .55em 2.2em .55em .9em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7792' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .7em center / 16px; appearance: none; font-weight: 600; color: var(--ink); }
.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.page-title h1 { margin: 0; }
.page-title.center { flex-direction: column; align-items: center; text-align: center; }

.empty-state { text-align: center; padding: 3rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.empty-state h3 { margin: .6rem 0 0; font-size: 1.3rem; }
.empty-state p { color: var(--ink-3); margin: 0 0 .6rem; }
.empty-state .btn { margin-top: .2rem; }
.empty-icon { width: 76px; height: 76px; border-radius: 26px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); animation: floaty 4s ease-in-out infinite; }
.empty-icon .icon { width: 34px; height: 34px; }

/* ------------------------------------------------------------------ Fiche produit */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.product-gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.product-stage { position: relative; aspect-ratio: 1; background: #fff; border-radius: var(--radius-xl); border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.product-stage img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .2s ease-out, opacity .25s; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.product-stage.is-zoom img { transform: scale(1.9); }
.product-stage img.is-swap { opacity: 0; }
.thumbs { display: flex; gap: .6rem; margin-top: .9rem; overflow-x: auto; padding-bottom: 4px; }
.thumb { width: 76px; height: 76px; border-radius: 14px; border: 2px solid var(--line); padding: 4px; background: #fff; flex-shrink: 0; transition: all .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.thumb:hover { border-color: var(--brand-300); }
.thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .3rem 0 .8rem; }
.product-price { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.product-price-note { color: var(--ink-3); font-size: .88rem; }
.product-facts { list-style: none; padding: 0; margin: 0 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.product-facts li { display: inline-flex; align-items: center; gap: .45em; padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .88rem; }
.product-facts .icon { color: var(--brand); }
.product-facts .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-50); animation: blink 2s infinite; }
.product-facts .is-low .dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-50); }
@keyframes blink { 50% { opacity: .45; } }
.login-teaser { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; padding: 1.3rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-50), #fff); border: 1.5px dashed var(--brand-300); }
.login-teaser p { margin: 0; color: var(--ink-3); font-size: .92rem; }
.login-teaser .btn { grid-column: span 1; }
.login-teaser-icon { width: 48px; height: 48px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; grid-row: span 1; }
.login-teaser > .btn-primary { grid-column: 1 / 2; }
@media (min-width: 560px) { .login-teaser > .btn-primary { grid-column: auto; } }

.buy-box { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: 1.1rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.buy-box .btn { flex: 1; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; height: 46px; }
.stepper input { width: 64px; border: 0; text-align: center; font-weight: 700; font-size: 1rem; -moz-appearance: textfield; background: transparent; height: 100%; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.stepper:focus-within { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(44,107,214,.12); }
.stepper-btn { width: 42px; height: 100%; border: 0; background: var(--bg); color: var(--ink-2); display: grid; place-items: center; transition: all .15s; }
.stepper-btn:hover { background: var(--brand-50); color: var(--brand); }
.stepper-btn:active { transform: scale(.9); }

.variant-grid { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.variant-head, .variant-row { display: grid; grid-template-columns: 1fr 70px 160px; gap: .8rem; align-items: center; padding: .7rem 1.1rem; }
.variant-head { background: var(--bg); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.variant-row { border-top: 1px solid var(--line-2); transition: background .2s; }
.variant-row:hover { background: var(--brand-50); }
.variant-row.has-qty { background: #f3f8ff; box-shadow: inset 4px 0 0 var(--brand); }
.variant-name { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.variant-name small { color: var(--ink-3); font-weight: 500; font-size: .75rem; margin-left: .2rem; }
.variant-name .swatch { width: 22px; height: 22px; }
.variant-stock { color: var(--ink-3); font-size: .9rem; }
.variant-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-top: 1px solid var(--line); background: var(--bg); flex-wrap: wrap; }
.variant-total { font-weight: 700; color: var(--ink-2); }
.variant-grid .link-btn { padding: .8rem 1.1rem; font-size: .88rem; }
@media (max-width: 560px) { .variant-head, .variant-row { grid-template-columns: 1fr 140px; } .variant-stock, .variant-head span:nth-child(2) { display: none; } }
.product-desc { margin-top: 2rem; }
.product-desc h2 { font-size: 1.2rem; }
.prose { color: var(--ink-2); }
.prose p { margin-bottom: .8em; }
.product-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: 1.8rem; }
.product-perks div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; padding: 1rem .5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.product-perks .icon { color: var(--brand); width: 24px; height: 24px; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; } .product-gallery { position: static; } }

/* ------------------------------------------------------------------ Panier & commande */
.card-surface { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 2.5vw, 1.6rem); }
.card-surface > h2 { font-size: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
.cart-lines { display: grid; gap: .8rem; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto 110px auto; gap: 1.1rem; align-items: center; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: .8rem 1.1rem .8rem .8rem; transition: all .3s var(--ease); }
.cart-line:hover { box-shadow: var(--shadow); }
.cart-line.is-removing { opacity: 0; transform: translateX(40px); }
.cart-line-img img { width: 96px; height: 96px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line-2); }
.cart-line-title { font-weight: 600; color: var(--ink); display: block; line-height: 1.35; }
.cart-line-total { font-family: var(--font-display); font-size: 1.15rem; text-align: right; color: var(--brand); }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1rem; }
.cart-summary h2 { margin: 0; }
.summary-rows { display: grid; gap: .55rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.summary-row.is-muted { color: var(--ink-3); font-size: .88rem; }
.summary-row.is-promo { color: var(--success); }
.summary-row.is-total { border-top: 1px dashed var(--line); padding-top: .8rem; margin-top: .3rem; font-size: 1.1rem; align-items: baseline; }
.summary-row.is-total strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--brand); }
.summary-hint { text-align: center; font-size: .83rem; color: var(--ink-3); margin: 0; }
.promo-form { display: flex; gap: .5rem; align-items: center; }
.promo-form input { flex: 1; min-width: 0; padding: .7em 1em; border-radius: 999px; border: 1.5px dashed var(--brand-300); text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.promo-form input:focus { outline: none; border-style: solid; border-color: var(--brand-500); }
.promo-applied { flex: 1; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--success); }
.form-error { color: var(--danger); font-size: .88rem; margin: 0; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); font-size: .9rem; display: flex; gap: .5rem; align-items: center; margin: 0; }
.alert-warning { background: var(--warning-50); color: #8a5a00; }
@media (max-width: 1000px) { .cart-layout { grid-template-columns: 1fr; } .cart-summary { position: static; } }
@media (max-width: 680px) {
	.cart-line { grid-template-columns: 72px 1fr auto; grid-template-areas: "img info del" "img qty total"; row-gap: .6rem; }
	.cart-line-img { grid-area: img; } .cart-line-img img { width: 72px; height: 72px; }
	.cart-line-info { grid-area: info; } .cart-line > form:nth-of-type(1) { grid-area: qty; } .cart-line-total { grid-area: total; } .cart-line > form:nth-of-type(2) { grid-area: del; }
}

.progress-steps { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.progress-steps li { display: inline-flex; align-items: center; gap: .4em; padding: .5em 1.1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: .88rem; }
.progress-steps li.is-done { color: var(--success); border-color: #bfe8cf; background: var(--success-50); }
.progress-steps li.is-current { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 1.5rem; align-items: start; }
.checkout-main { display: grid; gap: 1.2rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: flex; flex-direction: column; gap: .2rem; padding: 1.1rem; border-radius: var(--radius); border: 2px solid var(--line); background: #fff; transition: all .25s var(--ease); height: 100%; }
.choice-body .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: .3rem; }
.choice-body small { color: var(--ink-3); }
.choice:hover .choice-body { border-color: var(--brand-300); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px var(--brand-100); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--brand-300); }
.choice.is-disabled { opacity: .5; cursor: not-allowed; }
.address-card { display: flex; gap: .8rem; padding: 1rem; border-radius: var(--radius); background: var(--bg); font-size: .92rem; }
.address-card .icon { color: var(--brand); margin-top: .2rem; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; max-height: 280px; overflow-y: auto; }
.mini-lines li { display: grid; grid-template-columns: 44px 1fr auto; gap: .7rem; align-items: center; font-size: .86rem; }
.mini-lines img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; border: 1px solid var(--line-2); }
.mini-lines small { display: block; color: var(--ink-3); }
textarea, .field input, .field select, .field textarea { width: 100%; padding: .75em 1em; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; transition: all .2s; }
textarea:focus, .field input:focus, .field select:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(44,107,214,.12); }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: .15rem; flex-shrink: 0; }
@media (max-width: 1000px) { .checkout-layout { grid-template-columns: 1fr; } }

/* Confirmation */
.confirm-inner { max-width: 860px; text-align: center; }
.confirm .lead, .confirm-inner .lead { font-size: 1.15rem; color: var(--ink-2); }
.confirm-check { width: 96px; height: 96px; margin: 0 auto 1.5rem; }
.confirm-check svg { width: 100%; height: 100%; }
.confirm-check circle { fill: var(--success-50); stroke: var(--success); stroke-width: 2.5; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .8s var(--ease) forwards; }
.confirm-check path { fill: none; stroke: var(--success); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 2rem 0; text-align: left; }
.confirm-grid h3 { display: flex; gap: .5rem; align-items: center; }
.confirm-grid .icon { color: var(--brand); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ------------------------------------------------------------------ Authentification & formulaires */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 200px); }
.auth-aside { position: relative; overflow: hidden; background: var(--brand-900); color: #fff; display: flex; align-items: center; padding: 3rem; isolation: isolate; }
.auth-aside-inner { max-width: 440px; margin: 0 auto; }
.auth-aside h2 { color: #fff; font-size: 2rem; }
.auth-logo { filter: brightness(0) invert(1); height: 44px; width: auto; margin-bottom: 2rem; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.auth-form { width: 100%; max-width: 420px; display: grid; gap: 1rem; }
.auth-form h1 { margin: 0; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--ink-3); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--success-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a150' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.checklist.light li::before { background-color: rgba(255,255,255,.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc93c' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E"); }
.checklist.light { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.demo-inline { margin-top: .6rem; padding: 1rem; border-radius: var(--radius); background: var(--brand-50); border: 1px dashed var(--brand-300); display: grid; gap: .6rem; font-size: .88rem; font-weight: 600; color: var(--brand); }
.demo-inline div { display: flex; flex-wrap: wrap; gap: .4rem; }
.demo-inline .chip { background: #fff; color: var(--brand); border-color: var(--brand-100); font-size: .82rem; }
.demo-inline .chip:hover { background: var(--brand); color: #fff; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-aside { padding: 2rem 1.2rem; } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid h2 { margin: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.input-action { display: flex; gap: .5rem; }
.input-action input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; letter-spacing: .08em; }
.siret-box { padding: 1.1rem; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.siret-status { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; min-height: 1.3em; }
.siret-status.is-ok { color: var(--success); }
.siret-status.is-ko { color: var(--danger); }
.is-filled { animation: filled 1.2s var(--ease); }
@keyframes filled { 0% { background: #fff8d6; box-shadow: 0 0 0 4px rgba(255,201,60,.4); } 100% { background: #fff; } }

/* ------------------------------------------------------------------ Espace client */
.account-hero { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.account-kpis { display: flex; gap: 1rem; flex-wrap: wrap; }
.account-kpis div { padding: .9rem 1.2rem; border-radius: var(--radius); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px); min-width: 140px; }
.account-kpis strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.account-kpis span { font-size: .8rem; color: rgba(255,255,255,.7); }
.tabs { display: flex; gap: .4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.tab { display: inline-flex; align-items: center; gap: .45em; padding: .8rem 1.1rem; font-weight: 600; color: var(--ink-3); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--brand); }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.orders-list { display: grid; gap: .7rem; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 1.2rem; align-items: center; color: var(--ink); padding: 1rem 1.3rem; transition: all .3s var(--ease); }
.order-row:hover { transform: translateX(6px); border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink); }
.order-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.order-main strong { display: block; }
.order-main small { color: var(--ink-3); }
.order-total { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
@media (max-width: 640px) { .order-row { grid-template-columns: 1fr auto; } .order-icon, .order-row > .icon { display: none; } }
.status { display: inline-flex; align-items: center; gap: .35em; padding: .3em .8em; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-success { background: var(--success-50); color: var(--success); }
.status-warning { background: var(--warning-50); color: var(--warning); }
.status-info { background: var(--brand-50); color: var(--brand-600); }
.status-danger { background: var(--danger-50); color: var(--danger); }
.status-muted { background: var(--line-2); color: var(--ink-3); }
a.status:hover { filter: brightness(.95); }
.tracker { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ink-3); position: relative; text-align: center; }
.tracker li::before { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: -1; }
.tracker li:first-child::before { display: none; }
.tracker li span { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); font-weight: 800; }
.tracker li.is-done, .tracker li.is-current { color: var(--ink); }
.tracker li.is-done span { background: var(--success); border-color: var(--success); color: #fff; }
.tracker li.is-done::before, .tracker li.is-current::before { background: var(--success); }
.tracker li.is-current span { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 6px var(--brand-100); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 50% { box-shadow: 0 0 0 10px rgba(221,232,251,.4); } }

.table-wrap { overflow-x: auto; padding: 0; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--brand-50); }
.table .num { text-align: right; white-space: nowrap; }
.table tr.is-highlight { background: #fffaf0; }
.table-product { display: flex; align-items: center; gap: .7rem; }
.table-product img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line-2); }
.table-product small { display: block; color: var(--ink-3); }
.card-surface .table th { background: transparent; }

/* Commande rapide */
.quick-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.quick-layout form { display: grid; gap: 1rem; }
.quick-layout textarea { font-family: ui-monospace, Consolas, monospace; font-size: 1rem; line-height: 1.7; background: repeating-linear-gradient(#fff, #fff 1.65em, var(--line-2) 1.65em, var(--line-2) calc(1.7em)); }
.quick-grid { display: grid; gap: .6rem; }
.quick-row { display: grid; grid-template-columns: 150px 1fr 90px; gap: .6rem; align-items: center; animation: pop .3s var(--ease); }
.quick-row input { padding: .65em .8em; border-radius: 12px; border: 1.5px solid var(--line); width: 100%; }
.quick-row input:focus { outline: none; border-color: var(--brand-500); }
.quick-info { display: flex; align-items: center; gap: .5rem; font-size: .84rem; min-height: 44px; line-height: 1.25; }
.quick-info img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; border: 1px solid var(--line-2); }
.quick-info.is-ok strong { color: var(--brand); }
.quick-info.is-ko { color: var(--danger); }
.quick-results { display: grid; gap: .4rem; margin-bottom: 1.5rem; }
.quick-result { display: flex; gap: .6rem; align-items: center; padding: .5rem .8rem; border-radius: 10px; font-size: .9rem; }
.quick-result.is-ok { background: var(--success-50); } .quick-result.is-ok .icon { color: var(--success); }
.quick-result.is-ko { background: var(--danger-50); } .quick-result.is-ko .icon { color: var(--danger); }
.quick-results .btn { justify-self: start; margin-top: .5rem; }
@media (max-width: 900px) { .quick-layout { grid-template-columns: 1fr; } .quick-row { grid-template-columns: 110px 1fr 70px; } }

/* Commercial */
.search-hero { margin-top: 1.5rem; max-width: 560px; }
.search-hero input { background: #fff; color: var(--ink); }
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.client-card { display: grid; grid-template-columns: auto 1fr auto; gap: .5rem 1rem; align-items: center; transition: all .3s var(--ease); }
.client-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.client-card.is-current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.client-card .btn { grid-column: 1 / -1; }
.client-avatar { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-500), var(--brand)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; flex-shrink: 0; }
.client-body strong { display: block; }
.client-body small { display: block; color: var(--ink-3); font-size: .82rem; }

/* Pages de contenu */
.page-content h2 { margin-top: 1.8rem; font-size: 1.35rem; }
.page-content .lead { font-size: 1.2rem; color: var(--ink); }
.page-content details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; transition: all .25s; }
.page-content details[open] { box-shadow: var(--shadow); border-color: var(--brand-100); }
.page-content summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.page-content summary::-webkit-details-marker { display: none; }
.page-content summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform .3s var(--ease); }
.page-content details[open] summary::after { transform: rotate(45deg); }
.page-content details p { padding: 0 1.3rem 1.1rem; margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.contact-grid > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; }
.contact-grid h2 { margin-top: 0 !important; font-size: 1.1rem !important; }

/* ------------------------------------------------------------------ Animations d'apparition */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.card.reveal.is-visible:hover, .universe.reveal.is-visible:hover { transform: translateY(-6px); }
.fly-img { position: fixed; z-index: 300; border-radius: 16px; pointer-events: none; box-shadow: var(--shadow-lg); object-fit: contain; background: #fff; transition: all .8s cubic-bezier(.6, -.2, .7, 1); }

/* ------------------------------------------------------------------ Backoffice */
.admin-body { background: #f3f6fb; }
.admin { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-side { background: var(--brand-950); color: rgba(255,255,255,.75); display: flex; flex-direction: column; padding: 1.4rem 1rem; position: sticky; top: 0; height: 100vh; }
.admin-brand { display: flex; align-items: center; gap: .7rem; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: 0 .5rem 1.5rem; }
.admin-brand img { border-radius: 10px; background: #fff; padding: 3px; }
.admin-brand small { display: block; font-family: var(--font); font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.55); }
.admin-brand:hover { color: #fff; }
.admin-nav { display: grid; gap: .2rem; }
.admin-nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem .8rem; border-radius: 12px; color: rgba(255,255,255,.72); font-weight: 500; font-size: .93rem; transition: all .2s; }
.admin-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.admin-nav a.is-active { background: linear-gradient(135deg, var(--brand-600), var(--brand)); color: #fff; box-shadow: var(--shadow-brand); }
.admin-nav em { margin-left: auto; font-style: normal; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; }
.admin-side-foot { margin-top: auto; display: grid; gap: .2rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1rem; }
.admin-erp { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .8rem; border-radius: 10px; background: none; border: 0; color: rgba(255,255,255,.65); font-size: .88rem; text-align: left; }
.admin-erp:hover { color: #fff; background: rgba(255,255,255,.07); }
.admin-main { min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 2rem; background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.admin-top h1 { font-size: 1.5rem; margin: 0; }
.admin-content { padding: 1.8rem 2rem 3rem; display: grid; gap: 1.5rem; }
.admin-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.admin-grid-wide { grid-template-columns: 1.7fr 1fr; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.kpi { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem; color: var(--ink); transition: all .3s var(--ease); box-shadow: var(--shadow-sm); }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.kpi small { color: var(--ink-3); font-size: .8rem; display: block; }
.kpi strong { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; }
.kpi-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.kpi.is-alert .kpi-icon { background: var(--accent-100); color: var(--accent-600); animation: pulse-hot 2s infinite; }
.chart { width: 100%; height: 180px; display: block; }
.chart-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 2s var(--ease) forwards; }
.chart-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); margin-top: .4rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.card-head h2 { margin: 0; font-size: 1.2rem; }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; counter-reset: t; }
.top-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-radius: 12px; background: var(--bg); counter-increment: t; align-items: center; }
.top-list li::before { content: counter(t); width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; flex-shrink: 0; }
.top-list span { flex: 1; font-weight: 600; font-size: .9rem; }
.top-list small { display: block; color: var(--ink-3); font-weight: 500; }
.pending-row { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 14px; color: var(--ink); transition: background .2s; }
.pending-row:hover, .pending-row.is-active { background: var(--brand-50); color: var(--ink); }
.pending-row span:not(.client-avatar) { flex: 1; }
.pending-row small { display: block; color: var(--ink-3); font-size: .8rem; }
.pending-row .client-avatar { width: 40px; height: 40px; font-size: 1rem; border-radius: 12px; }
.pending-row > .icon:first-child { color: var(--brand); }
.dl { display: grid; grid-template-columns: 120px 1fr; gap: .6rem 1rem; margin: 0; font-size: .92rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 500; }
.toggle { width: 46px; height: 26px; border-radius: 999px; border: 0; background: var(--line); position: relative; transition: background .25s; padding: 0; }
.toggle span { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.toggle.is-on { background: var(--success); }
.toggle.is-on span { transform: translateX(20px); }
.admin-login { min-height: 100vh; display: grid; place-items: center; background: var(--brand-900); position: relative; overflow: hidden; padding: 1rem; }
.admin-login .auth-form { position: relative; z-index: 1; text-align: left; }
.admin-login .auth-form img { margin-bottom: .5rem; }
@media (max-width: 1100px) { .admin-grid, .admin-grid-wide { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
	.admin { grid-template-columns: 1fr; }
	.admin-side { position: static; height: auto; }
	.admin-nav { grid-template-columns: repeat(3, 1fr); }
	.admin-nav a span { font-size: .8rem; }
	.admin-top, .admin-content { padding-left: 1rem; padding-right: 1rem; }
}

/* ------------------------------------------------------------------ Indicateurs de stock */
.badge-out { background: var(--ink-2); color: #fff; }
.badge-low { background: var(--warning-50); color: var(--warning); border: 1px solid #f5d9a3; }
.card.is-out .card-media img { filter: grayscale(.85); opacity: .6; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--success); flex-shrink: 0; }
.stock-low .dot, .is-low .dot { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-50); }
.stock-out .dot, .is-out .dot { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-50); animation: none; }
.stock-backorder .dot, .is-backorder .dot { background: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.product-facts .is-out .dot, .product-facts .is-backorder .dot { animation: none; }
.variant-stock { display: inline-flex; align-items: center; gap: .4rem; }
.variant-row.is-out { opacity: .55; }
.variant-row.is-out:hover { background: transparent; }
.variant-unavailable { font-size: .82rem; font-weight: 600; color: var(--ink-3); text-align: center; }
.line-stock { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }
.line-stock.stock-low { color: var(--warning); }
.line-stock.stock-backorder { color: var(--brand-600); }
.order-statuses { display: inline-flex; gap: .3rem; flex-wrap: wrap; }

/* Expéditions (espace client) */
.shipments { display: grid; gap: .8rem; margin-bottom: 1.5rem; }
.shipment { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; border-left: 4px solid var(--success); }
.shipment-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--success-50); color: var(--success); flex-shrink: 0; }
.shipment-body { flex: 1; min-width: 200px; }
.shipment-body strong { display: block; }
.shipment-body small { color: var(--ink-3); }

/* ------------------------------------------------------------------ Réglages (backoffice) */
.settings { display: grid; gap: 1.2rem; }
.settings-section { display: grid; gap: .2rem; }
.settings-section h2 { margin-bottom: .6rem; }
.setting-toggle { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .85rem 0; border-top: 1px solid var(--line-2); cursor: pointer; }
.setting-toggle strong { display: block; font-weight: 600; }
.setting-toggle small { display: block; color: var(--ink-3); font-size: .84rem; margin-top: .1rem; }
.setting-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .25s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.setting-toggle input:checked + .switch { background: var(--success); }
.setting-toggle input:checked + .switch::after { transform: translateX(20px); }
.setting-toggle input:focus-visible + .switch { outline: 3px solid var(--brand-300); outline-offset: 2px; }
.setting-field { padding: .7rem 0; border-top: 1px solid var(--line-2); }
.setting-field small { color: var(--ink-3); font-size: .84rem; }
.settings-save { position: sticky; bottom: 1rem; display: flex; justify-content: flex-end; }
.settings-save .btn { box-shadow: var(--shadow-lg); }

/* ------------------------------------------------------------------ Page de paiement */
.pay-body { background: #fff; min-height: 100vh; }
.pay-demo { background: repeating-linear-gradient(-45deg, var(--sun), var(--sun) 14px, #ffd766 14px, #ffd766 28px); color: var(--brand-950); text-align: center; font-weight: 700; font-size: .85rem; padding: .5rem 1rem; display: flex; justify-content: center; gap: .5rem; align-items: center; }
.pay { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 36px); }
.pay-side { position: relative; overflow: hidden; isolation: isolate; background: var(--brand-900); color: #fff; padding: clamp(1.5rem, 5vw, 4rem); display: flex; flex-direction: column; gap: .8rem; }
.pay-side > * { max-width: 440px; width: 100%; margin-left: auto; }
.pay-back { color: rgba(255,255,255,.7); display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; }
.pay-back:hover { color: #fff; }
.pay-logo { filter: brightness(0) invert(1); height: 36px; width: auto; margin-top: 1rem; }
.pay-label { color: rgba(255,255,255,.65); margin: 1.2rem 0 0; }
.pay-amount { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; line-height: 1; margin: 0 0 1rem; }
.pay-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; max-height: 40vh; overflow-y: auto; }
.pay-lines li { display: grid; grid-template-columns: 40px 1fr auto; gap: .8rem; align-items: center; font-size: .88rem; }
.pay-lines img { width: 40px; height: 40px; border-radius: 10px; background: #fff; object-fit: contain; }
.pay-lines small { display: block; color: rgba(255,255,255,.6); }
.pay-totals { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1rem; display: grid; gap: .4rem; font-size: .92rem; color: rgba(255,255,255,.75); }
.pay-totals div { display: flex; justify-content: space-between; }
.pay-totals .is-total { color: #fff; font-size: 1.05rem; }
.pay-main { display: flex; align-items: center; padding: clamp(1.5rem, 5vw, 4rem); }
.pay-form { width: 100%; max-width: 440px; display: grid; gap: 1.1rem; }
.pay-form h1 { font-size: 1.6rem; margin: 0; }
.pay-form input[readonly] { background: var(--bg); color: var(--ink-2); }
.card-input { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.card-input input { border: 0 !important; border-radius: 0 !important; padding: .8em 1em; font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.card-input > input:last-child { border-left: 1.5px solid var(--line) !important; }
.card-input-number { grid-column: 1 / -1; display: flex; align-items: center; border-bottom: 1.5px solid var(--line); background: var(--bg); }
.card-input-number input { flex: 1; min-width: 0; font-size: 1.05rem; }
.card-brands { display: flex; gap: .3rem; padding-right: .7rem; }
.card-brands i { font-style: normal; font-size: .62rem; font-weight: 900; border-radius: 4px; height: 20px; min-width: 32px; display: grid; place-items: center; padding: 0 4px; }
.cb-visa { background: #1a1f71; color: #fff; letter-spacing: .05em; }
.cb-cb { background: linear-gradient(135deg, #1e7d3a, #1b4aa8); color: #fff; }
.cb-mc { background: #fff; border: 1px solid var(--line); position: relative; }
.cb-mc b { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 3px; }
.cb-mc b:first-child { background: #eb001b; left: 6px; }
.cb-mc b:last-child { background: #f79e1b; left: 13px; mix-blend-mode: multiply; }
.pay-btn { font-size: 1.05rem; }
.pay-btn.is-success { background: var(--success); box-shadow: 0 12px 28px -8px rgba(18,161,80,.55); }
.pay-secure { text-align: center; color: var(--ink-3); font-size: .84rem; margin: 0; display: flex; gap: .4rem; justify-content: center; align-items: center; }
.tds { position: fixed; inset: 0; z-index: 200; background: rgba(7,21,47,.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 1rem; animation: fade-in .3s; }
.tds[hidden] { display: none; }
.tds-card { width: min(400px, 100%); background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; text-align: center; box-shadow: var(--shadow-lg); animation: pop .4s var(--ease); }
.tds-head { display: flex; align-items: center; justify-content: center; gap: .4rem; font-weight: 700; color: var(--brand); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.2rem; }
.tds-phone { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 24px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); animation: ring 1.2s ease-in-out infinite; }
.tds-phone .icon { width: 34px; height: 34px; }
.tds.is-ok .tds-phone { background: var(--success-50); color: var(--success); animation: none; }
.tds-card h2 { font-size: 1.15rem; }
.tds-bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-top: 1.2rem; }
.tds-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-500), var(--success)); border-radius: inherit; }
.tds.is-running .tds-bar span { width: 100%; transition: width 2.4s linear; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(10deg); } 50% { transform: rotate(0); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 860px) { .pay { grid-template-columns: 1fr; } .pay-side > * { margin: 0 auto; } .pay-lines { max-height: 160px; } }

/* Surcharges mobiles déclarées en dernier (priorité sur les règles générales) */
@media (max-width: 960px) {
	.flashes { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; }
	.toast { font-size: .88rem; padding: .75rem .9rem; }
	.demo-bar { bottom: calc(92px + env(safe-area-inset-bottom)); left: auto; right: 14px; }
	.demo-panel { left: auto; right: 0; transform-origin: bottom right; }
	.demo-toggle span { display: none; }
	.demo-toggle { padding: .8rem; }
	.footer-bottom { padding-bottom: 7.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}
