:root {
    --navy: #0a1c38;
    --navy-2: #123059;
    --amber: #f7ad1d;
    --amber-2: #ffd45e;
    --sun: #ff8a00;
    --bg: #f3f6fb;
    --card: #ffffff;
    --text: #1a2534;
    --muted: #66788c;
    --green: #17a06c;
    --red: #e0524d;
    --blue: #2f7fe0;
    --border: #e2e8f1;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(10, 28, 56, .10);
    --grad-sun: linear-gradient(135deg, var(--sun), var(--amber-2));
    --grad-navy: linear-gradient(160deg, var(--navy), var(--navy-2));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.2' fill='%23e3e8ef'/%3E%3C/svg%3E"); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.topbar { background: var(--navy); color: #cfd9e6; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; padding: 6px 20px; }
.topbar span { margin-right: 18px; }
.navbar { background: rgba(16,41,77,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 18px rgba(0,0,0,.3); border-bottom: 1px solid rgba(255,255,255,.08); }
.navbar::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--sun), var(--amber-2), var(--sun)); }
.navbar .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.brand .logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--sun), var(--amber-2)); display: flex; align-items: center; justify-content: center; color: var(--navy); font-weight: 900; }
.brand .logo-img { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: #fff; padding: 2px; }
.brand small { display: block; font-size: .62rem; font-weight: 500; color: var(--amber); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 5px; }
.nav-links a { color: #d5dfea; padding: 8px 15px; border-radius: 999px; font-weight: 500; font-size: .9rem; position: relative; transition: color .2s, background .25s, transform .15s; white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-1px); }
.nav-links a.active { color: var(--navy); background: linear-gradient(135deg, var(--amber-2), var(--sun)); font-weight: 700; box-shadow: 0 4px 14px rgba(245,166,35,.45); overflow: hidden; }
.nav-links a.active::after { content: ''; position: absolute; top: 0; left: -80%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 2.8s ease-in-out infinite; }
@keyframes shine { 0% { left: -80%; } 60%, 100% { left: 130%; } }
.nav-links .cart-badge { background: rgba(245,166,35,.18); border: 1px solid rgba(245,166,35,.5); color: var(--amber-2); font-weight: 700; }
.nav-links .cart-badge:hover { background: rgba(245,166,35,.3); }
.nav-links .wish-badge { background: rgba(224,82,77,.16); border: 1px solid rgba(255,122,92,.5); color: #ff9d8f; font-weight: 700; position: relative; }
.nav-links .wish-badge:hover, .nav-links .wish-badge.active { background: rgba(224,82,77,.3); color: #ffc4bb; }
.wish-btn { position: absolute; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #c9d2dd; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); transition: transform .2s, color .2s; }
.wish-btn:hover { transform: scale(1.15); color: #e0524d; }
.wish-btn.active { color: #e0524d; }
.wish-btn.active svg { fill: currentColor; }
.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--amber-2); border-radius: 2px; transition: transform .2s, opacity .2s; }
.navbar { position: sticky; }
.cart-badge { position: relative; }
.cart-badge .count { position: absolute; top: -2px; right: 0; background: var(--sun); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.wish-badge .count { position: absolute; top: -2px; right: 0; background: #e0524d; color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: 1px 6px; }
.nav-count { float: right; background: #e0524d; color: #fff; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; font-size: 1.55rem; }
.rating-input input { display: none; }
.rating-input label { color: #dde4ec; cursor: pointer; transition: color .15s; padding: 0 2px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f7ad1d; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; font-weight: 600; border-radius: 10px; padding: 11px 22px; font-size: .95rem; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad-sun); color: #3a2800; box-shadow: 0 6px 18px rgba(245,166,35,.4); text-shadow: none; }
.btn-outline { background: transparent; border: 2px solid var(--navy); color: var(--navy); transition: all .2s; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }

/* ===== Hero ===== */
.hero { background: linear-gradient(110deg, rgba(11,31,58,.82) 0%, rgba(11,31,58,.55) 45%, rgba(20,59,110,.30) 75%, rgba(20,59,110,.25)), url('../images/hero.jpg') center/cover no-repeat; color: #fff; padding: 100px 0 120px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(60% 80% at 50% 100%, rgba(255,207,92,.22), transparent); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .badge { display: inline-block; background: rgba(245,166,35,.18); border: 1px solid rgba(245,166,35,.5); color: var(--amber-2); padding: 7px 18px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 22px; backdrop-filter: blur(6px); animation: fadeUp .7s ease both, badgeGlow 3s ease-in-out 1s infinite; }
@keyframes badgeGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(245,166,35,.35); } 50% { box-shadow: 0 0 22px 4px rgba(245,166,35,.35); } }
.hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); line-height: 1.12; font-weight: 800; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--amber-2), var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: #b9c8db; font-size: 1.08rem; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card { background: rgba(11,31,58,.45); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); border-radius: 20px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.hero-card h3 { color: var(--amber-2); margin-bottom: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.12); color: #d5dfea; display: flex; gap: 10px; }
.hero-card li::before { content: '☀'; color: var(--amber); }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head .kicker { color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; }
.section-head h2 { font-size: 2rem; color: var(--navy); margin: 8px 0 10px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; position: relative; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sun), var(--amber-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 2; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(11,31,58,.18); }
.card:hover::before { transform: scaleX(1); }
.product-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eef7, #f7faff); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .product-img img { transform: scale(1.06); }
.product-img .icon { font-size: 3rem; width: 96px; height: 96px; border-radius: 50%; background: var(--grad-navy); color: var(--amber-2); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(10,28,56,.25); }
.product-body { padding: 18px 20px 22px; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--sun); font-weight: 700; }
.product-body h3 { font-size: 1.05rem; margin: 6px 0 8px; color: var(--navy); }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.product-price small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.product-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.stock-ok { color: var(--green); font-size: .8rem; font-weight: 600; }
.stock-low { color: var(--red); font-size: .8rem; font-weight: 600; }

.cat-card { padding: 26px 24px; display: block; }
.cat-card .icon { font-size: 2rem; }
.cat-card h3 { margin: 12px 0 6px; color: var(--navy); }
.cat-card p { color: var(--muted); font-size: .9rem; }

.feature { padding: 28px 26px; }
.feature .icon { width: 58px; height: 58px; border-radius: 18px; background: var(--grad-sun); border: none; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(245,166,35,.28); transition: transform .3s, box-shadow .3s; }
.card:hover .feature .icon, .feature:hover .icon { transform: rotate(-8deg) scale(1.1); box-shadow: 0 12px 26px rgba(245,166,35,.45); }
.feature h3 { color: var(--navy); margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ===== Bandeau partenaire ===== */
.partner { background: linear-gradient(120deg, rgba(11,31,58,.88), rgba(16,41,77,.75)), url('../images/sunset.jpg') center/cover; color: #fff; border-radius: 20px; padding: 48px; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; box-shadow: var(--shadow); }
.partner .sun { font-size: 3.4rem; }
.partner h2 { margin-bottom: 8px; }
.partner p { color: #b9c8db; max-width: 640px; }

/* ===== Footer ===== */
footer { position: relative; color: #dce6f2; margin-top: 60px; isolation: isolate; }
footer::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('../images/footer.jpg') center/cover; }
footer::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,31,58,.78), rgba(11,31,58,.88)); transition: background .4s ease; }
footer:hover::after { background: linear-gradient(180deg, rgba(11,31,58,.62), rgba(11,31,58,.75)); }
footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 0 36px; }
footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; position: relative; padding-bottom: 10px; }
footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--sun), var(--amber-2)); }
footer a { display: block; padding: 4px 0; font-size: .92rem; color: #dce6f2; }
footer a:hover { color: var(--amber-2); text-shadow: 0 0 12px rgba(255,207,92,.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); padding: 18px 0; font-size: .85rem; display: flex; justify-content: space-between; color: #eaf1f9; }

/* ===== Pages intérieures ===== */
.page-head { background: linear-gradient(150deg, rgba(11,31,58,.85), rgba(16,41,77,.65)), url('../images/panels.jpg') center/cover; color: #fff; padding: 64px 0; }
.page-head h1 { text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.page-head h1 { font-size: 2.2rem; }
.page-head p { color: #b9c8db; margin-top: 6px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }
.filters a, .filters .chip { padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .88rem; font-weight: 500; color: var(--text); }
.filters a.active, .filters a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.filters input[type=search] { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); min-width: 220px; }

/* ===== Formulaires ===== */
form.inline { display: inline; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: .95rem; font-family: inherit; background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(245,166,35,.5); border-color: var(--amber); }
.form-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.error { color: var(--red); font-size: .8rem; margin-top: 4px; }

/* ===== Tables admin ===== */
.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th { background: #f7f9fc; text-align: left; padding: 12px 16px; font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 13px 16px; border-bottom: 1px solid #f0f3f7; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill-pending { background: #fdf0d5; color: #9a6a00; }
.pill-confirmed { background: #daeafe; color: var(--blue); }
.pill-delivered, .pill-paid, .pill-completed { background: #d9f2e6; color: var(--green); }
.pill-cancelled, .pill-failed { background: #fadbd8; color: var(--red); }
.pill-unpaid { background: #f3e8ff; color: #7c3aed; }
.pill-partial { background: #fff3cd; color: #8a6100; }
.pill-recette { background: #d9f2e6; color: var(--green); }
.pill-depense { background: #fadbd8; color: var(--red); }

/* ===== Layout admin ===== */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #c4d2e2; padding: 24px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 18px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; margin-bottom: 2px; }
.sidebar a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar a.active { background: linear-gradient(135deg, var(--sun), var(--amber)); color: #fff; font-weight: 600; }
.sidebar .section-label { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: #6f839c; padding: 18px 12px 6px; }
.admin-main { padding: 30px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 1.6rem; color: var(--navy); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.stat-card .value { font-size: 1.7rem; font-weight: 800; color: var(--navy); margin-top: 6px; }
.stat-card .sub { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.stat-card.accent { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.stat-card.accent .label, .stat-card.accent .sub { color: #9db2ca; }
.stat-card.accent .value { color: var(--amber-2); }

/* ===== Alertes ===== */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.alert-success { background: #d9f2e6; color: #14694a; border: 1px solid #b2e2cd; }
.alert-error { background: #fadbd8; color: #a52a24; border: 1px solid #f0b9b4; }

/* ===== Panier / checkout ===== */
.cart-row { display: grid; grid-template-columns: 80px 1fr auto auto auto; gap: 16px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.cart-row img, .cart-row .thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; background: #eef2f8; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.qty-input { width: 70px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; text-align: center; }
.summary { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary .total { border-top: 2px solid var(--border); margin-top: 12px; padding-top: 14px; font-size: 1.25rem; font-weight: 800; color: var(--navy); }

.specs { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.specs table td { padding: 9px 16px; }
.specs td:first-child { color: var(--muted); width: 40%; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: .88rem; }
.pagination .active span { background: var(--navy); color: #fff; }

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-wrap { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; border-radius: 0; border: none; border-top: 1px solid rgba(255,255,255,.1); background: rgba(10,28,56,.98); backdrop-filter: blur(12px); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; gap: 4px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
    .nav-links form { margin: 6px 12px 0; }
}
@media (max-width: 560px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 60px 1fr; }
}

/* ===== Animations & raffinements ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero .badge, .hero h1, .hero p, .hero-actions, .hero-card { animation: fadeUp .7s ease both; }
.hero h1 { animation-delay: .1s; }
.hero p { animation-delay: .2s; }
.hero-actions { animation-delay: .3s; }
.hero-card { animation-delay: .4s; }

.section-head h2::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sun), var(--amber-2)); margin: 12px auto 0; }

.cart-badge .count { box-shadow: 0 0 0 2px var(--navy-2); }

.stat-band { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; }
.stat-band > div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-band > div:last-child { border-right: none; }
.stat-band > div { transition: background .25s; }
.stat-band > div:hover { background: linear-gradient(180deg, rgba(245,166,35,.08), transparent); }
.stat-band .num { font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.stat-band .num em { font-style: normal; color: var(--sun); }
.stat-band .lbl { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }

.btn-primary { letter-spacing: .3px; }
.btn { transition: transform .15s, box-shadow .2s, filter .2s; }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(245,166,35,.45); }

footer a { transition: color .15s, padding-left .2s, text-shadow .2s; }
footer a:hover { padding-left: 6px; }

img { user-select: none; }
::selection { background: var(--amber); color: var(--navy); }

/* ===== Raffinements v2 ===== */
.topbar { background: linear-gradient(90deg, #071222 0%, #0d2a52 35%, #16417c 50%, #0d2a52 65%, #071222 100%); border-bottom: 1px solid rgba(255,212,94,.35); box-shadow: inset 0 -1px 0 rgba(255,212,94,.12); }
.topbar a { color: var(--amber-2); font-weight: 600; }
.topbar .container { flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; color: #dbe6f2; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s; }
a.tb-item:hover { background: rgba(255,212,94,.16); color: var(--amber-2); box-shadow: 0 0 0 1px rgba(255,212,94,.3) inset; }
.tb-partner { display: inline-flex; align-items: center; gap: 6px; background: var(--grad-sun); color: #3a2800; font-weight: 800; padding: 3px 16px; border-radius: 999px; font-size: .78rem; letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 3px 10px rgba(245,166,35,.35); }
.tb-wa { color: #8ff0bb; }
a.tb-wa:hover { background: rgba(37,211,102,.2); color: #c8f8dd; box-shadow: 0 0 0 1px rgba(37,211,102,.35) inset; }
.tb-fb { width: 24px; height: 24px; justify-content: center; padding: 0; background: #1877f2; color: #fff !important; font-weight: 800; border-radius: 7px; box-shadow: 0 3px 8px rgba(24,119,242,.4); }
.tb-fb:hover { background: #0e5fce; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(24,119,242,.55); }

.table-wrap table tbody tr { transition: background .15s; }
.table-wrap table tbody tr:hover { background: #f8fafd; }

.pill { letter-spacing: .3px; }

.field input, .field select, .field textarea { transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245,166,35,.18); }

.form-card { transition: box-shadow .25s; }
.form-card:hover { box-shadow: 0 14px 40px rgba(11,31,58,.14); }

.summary { position: sticky; top: 92px; }

.filters a { transition: all .2s; }
.filters a:hover { transform: translateY(-1px); }

.qty-input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,.18); }

section { scroll-margin-top: 80px; }

/* ===== Menu v3 ===== */
.brand { transition: transform .2s; }
.brand:hover { transform: scale(1.03); }
.brand .logo-img { transition: box-shadow .3s, transform .3s; }
.brand:hover .logo-img { box-shadow: 0 0 0 3px rgba(245,166,35,.6), 0 6px 18px rgba(0,0,0,.35); transform: rotate(-4deg); }

.nav-links form { display: inline; }
.nav-links .btn-ghost { border-radius: 999px; }

/* ===== Raffinements v3 ===== */
.cat-card .icon { font-size: 1.6rem; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--grad-sun); box-shadow: 0 8px 20px rgba(245,166,35,.3); transition: transform .3s; }
.cat-card:hover .icon { transform: scale(1.2) rotate(-8deg); }
.cat-card .cat-link { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 700; color: var(--sun); opacity: 0; transform: translateX(-6px); transition: all .25s; }
.cat-card:hover .cat-link { opacity: 1; transform: none; }

.breadcrumb { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb a:hover { color: var(--sun); }
.breadcrumb span { color: var(--muted); }

.auth-hero { background: radial-gradient(700px 300px at 50% -80px, rgba(245,166,35,.15), transparent), var(--bg); }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand img { width: 84px; height: 84px; border-radius: 20px; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 10px 28px rgba(11,31,58,.18); }
.auth-brand p { color: var(--muted); margin-top: 10px; font-size: .92rem; }

.product-price { transition: color .2s; }
.card:hover .product-price { color: var(--sun); }

.admin-main .table-wrap { transition: box-shadow .2s; }
.sidebar a { transition: background .2s, padding-left .2s; }
.sidebar a:hover { padding-left: 16px; }

/* ===== TopBar icones ===== */
.tb-ico { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: .72rem; flex-shrink: 0; }
.tb-ico-tel { background: var(--grad-sun); box-shadow: 0 2px 8px rgba(245,166,35,.4); }
.tb-ico-wa { background: #25d366; box-shadow: 0 2px 8px rgba(37,211,102,.4); }
.tb-ico-loc { background: linear-gradient(135deg, #e0524d, #ff7a5c); box-shadow: 0 2px 8px rgba(224,82,77,.4); }
.tb-item:hover .tb-ico { transform: scale(1.15); transition: transform .2s; }
.tb-ico { transition: transform .2s; }
.tb-fb { font-size: .95rem; }

/* ===== TopBar une ligne ===== */
.topbar .container { flex-wrap: nowrap; align-items: center; font-size: .8rem; white-space: nowrap; overflow: hidden; }
.tb-item { padding: 1px 8px; }
.tb-partner { padding: 2px 12px; font-size: .72rem; }
.tb-auth { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; }
.tb-auth a { color: #dbe6f2; }
.tb-signup { background: rgba(255,212,94,.14); border: 1px solid rgba(255,212,94,.35); color: var(--amber-2) !important; font-weight: 600; }
a.tb-signup:hover { background: rgba(255,212,94,.28); }
@media (max-width: 1100px) { .tb-partner { display: none; } }
@media (max-width: 820px) { .tb-item.tb-wa, .tb-item .tb-ico-loc, .tb-item:has(.tb-ico-loc) { display: none; } }

/* ===== TopBar icones couleurs v2 ===== */
.tb-ico { font-size: .68rem; color: #fff; }
.tb-ico-tel { background: linear-gradient(135deg, #2f7fe0, #57a8ff); box-shadow: 0 2px 8px rgba(47,127,224,.45); }
.tb-ico-wa { background: linear-gradient(135deg, #1eb85a, #3fe07f); box-shadow: 0 2px 8px rgba(30,184,90,.45); }
.tb-ico-loc { background: linear-gradient(135deg, #e0524d, #ff8a4d); box-shadow: 0 2px 8px rgba(224,82,77,.45); }
.tb-partner .tb-ico { background: rgba(58,40,0,.18); color: #3a2800; font-size: .7rem; }

/* ===== TopBar icones sobres ===== */
.tb-ico { font-size: .66rem; color: #eaf1f9; box-shadow: none; border: 1px solid rgba(255,255,255,.22); }
.tb-ico-tel { background: rgba(47,127,224,.28); }
.tb-ico-wa { background: rgba(30,184,90,.28); }
.tb-ico-loc { background: rgba(224,82,77,.28); }
.tb-partner .tb-ico { background: rgba(58,40,0,.18); color: #3a2800; border: none; }
.tb-item:hover .tb-ico { transform: none; }

/* ===== Icones categories colorees ===== */
.cat-card .icon { width: 64px; height: 64px; font-size: 1.9rem; background: #eef3fa; box-shadow: inset 0 0 0 1px rgba(10,28,56,.06); border-radius: 18px; }
.cat-card:nth-child(1) .icon { background: linear-gradient(135deg, #fff3d6, #ffe1a3); }
.cat-card:nth-child(2) .icon { background: linear-gradient(135deg, #daeafe, #b9d8fb); }
.cat-card:nth-child(3) .icon { background: linear-gradient(135deg, #d8f3e5, #aee8cb); }
.cat-card:nth-child(4) .icon { background: linear-gradient(135deg, #ffe3da, #ffc4b0); }
.cat-card:nth-child(5) .icon { background: linear-gradient(135deg, #efe4fb, #dcc9f5); }
.cat-card:nth-child(6) .icon { background: linear-gradient(135deg, #ddf3f6, #b3e5ec); }
.cat-card:hover .icon { transform: scale(1.12) rotate(-6deg); box-shadow: 0 8px 20px rgba(10,28,56,.14); }

/* ===== Icones features colorees ===== */
.feature .icon { width: 62px; height: 62px; font-size: 1.8rem; border-radius: 18px; background: #eef3fa; box-shadow: inset 0 0 0 1px rgba(10,28,56,.06); }
.feature:nth-child(6n+1) .icon { background: linear-gradient(135deg, #fff3d6, #ffe1a3); }
.feature:nth-child(6n+2) .icon { background: linear-gradient(135deg, #daeafe, #b9d8fb); }
.feature:nth-child(6n+3) .icon { background: linear-gradient(135deg, #d8f3e5, #aee8cb); }
.feature:nth-child(6n+4) .icon { background: linear-gradient(135deg, #ffe3da, #ffc4b0); }
.feature:nth-child(6n+5) .icon { background: linear-gradient(135deg, #efe4fb, #dcc9f5); }
.feature:nth-child(6n+6) .icon { background: linear-gradient(135deg, #ddf3f6, #b3e5ec); }
.feature:hover .icon { transform: scale(1.1) rotate(-6deg); box-shadow: 0 8px 20px rgba(10,28,56,.14); }

.product-img .icon { background: #eef3fa; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(10,28,56,.06); }

/* ===== Dashboard chart ===== */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 10px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-val { font-size: .72rem; font-weight: 700; color: var(--navy); }
.chart-bar { width: 70%; max-width: 52px; border-radius: 8px 8px 4px 4px; background: var(--grad-sun); box-shadow: 0 -2px 12px rgba(245,166,35,.3); transition: height .5s ease; }
.chart-col:hover .chart-bar { filter: brightness(1.1); }
.chart-lbl { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }

/* ===== Timeline commande ===== */
.timeline { display: flex; justify-content: space-between; margin: 28px 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 17px; left: 8%; right: 8%; height: 3px; background: var(--border); z-index: 0; }
.tl-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.tl-dot { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 8px; }
.tl-step.done .tl-dot { background: var(--green); border-color: var(--green); color: #fff; }
.tl-step.current .tl-dot { background: var(--grad-sun); border-color: var(--amber); box-shadow: 0 0 0 5px rgba(245,166,35,.2); }
.tl-step .tl-lbl { font-size: .8rem; font-weight: 600; color: var(--muted); }
.tl-step.done .tl-lbl, .tl-step.current .tl-lbl { color: var(--navy); }

/* ===== Facture ===== */
.invoice { background: #fff; max-width: 800px; margin: 30px auto; padding: 44px; border-radius: var(--radius); box-shadow: var(--shadow); }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--amber); padding-bottom: 22px; margin-bottom: 26px; }
.invoice-head .brand-block img { height: 54px; }
.invoice-meta { text-align: right; font-size: .9rem; color: var(--muted); }
@media print { .navbar, .topbar, footer, .admin-wrap > .sidebar, .no-print { display: none !important; } .admin-main { padding: 0; } body { background: #fff; } .invoice { box-shadow: none; margin: 0; } }

/* ===== Promos & badges ===== */
.badge-sale { position: absolute; top: 12px; left: 12px; z-index: 3; background: linear-gradient(135deg, #e0524d, #ff7a5c); color: #fff; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(224,82,77,.4); }
.badge-featured { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(10,28,56,.75); backdrop-filter: blur(4px); color: var(--amber-2); font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .85rem; font-weight: 500; margin-right: 6px; }
.product-img { position: relative; }

/* ===== Tri boutique ===== */
.sort-select { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: .88rem; background: #fff; cursor: pointer; }

/* ===== Stepper quantite ===== */
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-stepper button { width: 38px; height: 40px; border: none; background: #f4f6fa; font-size: 1.1rem; font-weight: 700; color: var(--navy); cursor: pointer; transition: background .15s; }
.qty-stepper button:hover { background: var(--amber-2); }
.qty-stepper input { width: 60px; text-align: center; border: none; font-size: 1rem; font-weight: 600; padding: 9px 0; }
.qty-stepper input:focus { outline: none; }

/* ===== Newsletter footer ===== */
.nl-form { display: flex; gap: 8px; margin-top: 14px; }
.nl-form input { flex: 1; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font-size: .9rem; }
.nl-form input::placeholder { color: #8fa3ba; }
.nl-form input:focus { outline: none; border-color: var(--amber); }
.nl-form button { border-radius: 10px; }

/* ===== Chatbox ===== */
#chatbox-btn { position: fixed; bottom: 26px; right: 24px; z-index: 900; width: 58px; height: 58px; border: none; border-radius: 50% 50% 50% 8px; background: linear-gradient(140deg,#ffe08a 0%,#ffc94d 45%,#f0960f 100%); font-size: 1.5rem; cursor: pointer; box-shadow: 0 8px 20px rgba(240,150,15,.4), inset 0 1px 0 rgba(255,255,255,.55); transition: transform .2s, box-shadow .2s; }
#chatbox-btn::after { content: ''; position: absolute; bottom: -5px; left: 12px; width: 14px; height: 14px; background: #f0960f; clip-path: polygon(0 0, 100% 20%, 15% 100%); border-radius: 2px; }
#chatbox-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 28px rgba(240,150,15,.5), inset 0 1px 0 rgba(255,255,255,.55); }
#chatbox-panel { position: fixed; bottom: 94px; right: 24px; z-index: 901; width: 350px; max-width: calc(100vw - 40px); height: 480px; max-height: 70vh; background: #fff; border-radius: 18px; box-shadow: 0 16px 50px rgba(10,28,56,.25); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); }
.cb-head { display: flex; justify-content: space-between; align-items: center; background: var(--grad-navy, linear-gradient(135deg,#0a1c38,#16305c)); color: #fff; padding: 14px 16px; }
.cb-head small { display: block; font-size: .72rem; opacity: .8; }
.cb-head button { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; opacity: .8; }
.cb-head button:hover { opacity: 1; }
.cb-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fc; }
.cb-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .9rem; line-height: 1.4; }
.cb-msg small { display: block; font-size: .68rem; opacity: .7; margin-bottom: 2px; }
.cb-visitor { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.cb-bot { align-self: flex-start; background: #fff3df; color: var(--navy); border: 1px solid #ffe3ae; border-bottom-left-radius: 4px; }
.cb-admin { align-self: flex-start; background: #e8f7ee; color: var(--navy); border: 1px solid #c8ecd6; border-bottom-left-radius: 4px; }
.cb-chips { display: flex; gap: 6px; padding: 8px 12px; flex-wrap: wrap; border-top: 1px solid var(--border); background: #fff; }
.cb-chips button { border: 1px solid var(--amber); background: #fffdf6; color: var(--navy); font-size: .75rem; padding: 5px 12px; border-radius: 999px; cursor: pointer; transition: background .15s; }
.cb-chips button:hover { background: var(--amber-2, #ffd166); }
.cb-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: #fff; }
.cb-foot input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px; font-size: .9rem; }
.cb-foot input:focus { outline: none; border-color: var(--amber); }
.cb-foot button { border: none; background: linear-gradient(140deg,#ffc94d,#f0960f); color: #0a1c38; width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; cursor: pointer; transition: transform .15s; box-shadow: 0 3px 10px rgba(240,150,15,.35); }
.cb-foot button:hover { transform: scale(1.08); }
@media (max-width: 480px) { #chatbox-panel { right: 12px; bottom: 88px; } #chatbox-btn { right: 16px; bottom: 18px; } }

/* ===== Grille promos centree ===== */
.promo-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.promo-grid > .card { flex: 0 1 300px; min-width: 250px; }

/* ===== Pagination personnalisee ===== */
.pager-nav { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pager-nav a, .pager-nav > span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font-size: .88rem; color: var(--navy); }
.pager-nav a:hover { border-color: var(--amber); background: #fffdf4; }
.pager-nav .active span { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-nav .disabled { opacity: .4; cursor: default; }
.pager-info { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 10px; }

/* ===== Menu utilisateur (connecte) ===== */
.brand { white-space: nowrap; flex-shrink: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.navbar .container { gap: 16px; }
.nav-user { position: relative; }
.nav-user-btn { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s; white-space: nowrap; }
.nav-user-btn:hover { background: rgba(255,255,255,.18); border-color: var(--amber-2); }
.nav-user-btn .caret { font-size: .65rem; opacity: .7; }
.nav-user.open .nav-user-btn { border-color: var(--amber-2); background: rgba(245,166,35,.18); }
.nav-user-menu { display: none; position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; background: #10294d; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.4); padding: 8px; z-index: 60; }
.nav-user.open .nav-user-menu { display: block; }
.nav-user-menu a, .nav-user-menu button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 14px; border-radius: 9px; color: #d5dfea; font-size: .9rem; background: none; border: none; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.nav-user-menu a:hover, .nav-user-menu button:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-user-menu form { margin: 0; }
@media (max-width: 900px) {
    .nav-user { width: 100%; }
    .nav-user-btn { display: none; }
    .nav-user-menu { display: block; position: static; background: none; border: none; box-shadow: none; padding: 0; }
    .nav-user-menu a, .nav-user-menu button { padding: 12px 16px; }
}
@media (min-width: 901px) and (max-width: 1250px) { .nav-links a { padding: 8px 11px; font-size: .85rem; } }

/* ===== Chatbox : icone pro ===== */
#chatbox-btn { display: flex; align-items: center; justify-content: center; }
#chatbox-btn svg { display: block; }
.cb-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; background: #e0524d; border: 2.5px solid #fff; border-radius: 50%; animation: cb-pulse 2.4s ease-in-out infinite; }
@keyframes cb-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ===== Espace Client ===== */
.client-area { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.client-side { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: sticky; top: 96px; }
.client-user { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.client-user small { color: var(--muted); font-size: .78rem; }
.client-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-sun); color: #3a2800; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.client-nav { display: flex; flex-direction: column; gap: 2px; }
.client-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--navy); font-size: .92rem; font-weight: 500; transition: background .15s, color .15s, transform .15s; }
.client-nav a:hover { background: #f4f6fa; transform: translateX(3px); }
.client-nav a.active { background: var(--grad-navy); color: #fff; font-weight: 600; }
.client-support { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: .88rem; }
.client-support strong { color: var(--navy); font-size: .9rem; }
.client-support a:not(.btn) { color: var(--muted); font-size: .85rem; }
.client-main { min-width: 0; }
@media (max-width: 900px) {
    .client-area { grid-template-columns: 1fr; }
    .client-side { position: static; }
    .client-nav { flex-direction: row; flex-wrap: wrap; }
    .client-nav a { border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; font-size: .85rem; }
}

/* ===== Sidebar admin : icones ===== */
.sidebar a svg { flex-shrink: 0; opacity: .85; }
.sidebar a:hover svg { opacity: 1; }
.sidebar a.active svg { opacity: 1; }
