/* licenceoff — styles communs du site client */
:root {
  --bleu: #1F5FBF; --bleu-f: #174a96; --nuit: #102A43; --orange: #F59E0B; --creme: #F4EFE6;
  --vert: #15803d; --rouge: #b91c1c; --gris: #64748b; --ligne: #e5e7eb; --fond: #f7f7f5; --blanc: #fff;
  --r: 14px; --ombre: 0 4px 18px rgba(16, 42, 67, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--fond); color: var(--nuit); line-height: 1.5; }
a { color: var(--bleu); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }

/* ---------- en-tête ---------- */
.top { background: var(--nuit); color: #cbd5e1; font-size: 13px; text-align: center; padding: 6px 16px; }
header.site { background: var(--blanc); border-bottom: 1px solid var(--ligne); position: sticky; top: 0; z-index: 20; }
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.5px; white-space: nowrap; }
.logo .a { color: var(--bleu); } .logo .b { color: var(--orange); }
nav.main { display: flex; gap: 4px; margin-left: 8px; }
nav.main a { color: var(--nuit); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
nav.main a:hover, nav.main a.on { background: #eef3fb; color: var(--bleu); }
.search { flex: 1; max-width: 380px; margin-left: auto; position: relative; }
.search input { width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--ligne); border-radius: 99px; font-size: 15px; background: #f8fafc; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .5; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 6px; background: var(--bleu); color: #fff; padding: 9px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-btn .n { background: var(--orange); border-radius: 99px; min-width: 20px; height: 20px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
@media (max-width: 820px) {
  header.site .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .burger { display: block; order: 0; }
  .logo { order: 1; flex: 1; }
  .cart-btn { order: 2; }
  .search { order: 3; max-width: none; flex-basis: 100%; margin: 0; }
  nav.main { order: 4; display: none; flex-basis: 100%; flex-direction: column; margin: 0; }
  nav.main.open { display: flex; }
  .cart-btn .t { display: none; }
}

/* ---------- boutons, formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; font-size: 15px; font-weight: 700; cursor: pointer; background: var(--bleu); color: #fff; font-family: inherit; }
.btn:hover { background: var(--bleu-f); }
.btn.orange { background: var(--orange); } .btn.orange:hover { background: #d98a06; }
.btn.light { background: #eef2f7; color: var(--nuit); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
input, select, textarea { font-family: inherit; font-size: 16px; }
.field { width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
.hp { position: absolute; left: -9999px; }

/* ---------- sections ---------- */
.hero { background: linear-gradient(135deg, var(--nuit), #1d4f9a); color: #fff; padding: 48px 0; }
.hero h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; max-width: 640px; }
.hero p { font-size: 17px; opacity: .9; margin: 0 0 22px; max-width: 560px; }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: -26px auto 0; position: relative; }
.trust div { background: #fff; border-radius: var(--r); box-shadow: var(--ombre); padding: 14px 16px; font-size: 14px; }
.trust b { display: block; font-size: 15px; }
section.block { padding: 32px 0; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-title h2 { font-size: 22px; margin: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; border: 1px solid var(--ligne); background: #fff; color: var(--nuit); padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--nuit); color: #fff; border-color: var(--nuit); }

/* ---------- cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--ombre); transform: translateY(-2px); }
.card .img { aspect-ratio: 4 / 3; background: #eef2f7; display: flex; align-items: center; justify-content: center; position: relative; }
.card .img img { width: 100%; height: 100%; object-fit: cover; }
.card .img .ph { font-size: 34px; font-weight: 800; color: #94a3b8; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.badge.out { background: var(--gris); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { font-size: 12px; color: var(--gris); font-weight: 600; }
.card .name { font-weight: 700; color: var(--nuit); line-height: 1.3; }
.price { font-weight: 800; color: var(--bleu); font-size: 18px; }
.price s { color: var(--gris); font-weight: 500; font-size: 14px; margin-left: 6px; }
.card .btn { margin-top: auto; padding: 10px; font-size: 14px; }
@media (max-width: 520px) { .card .body { padding: 10px; } .price { font-size: 16px; } .card .name { font-size: 14px; } }

/* ---------- fiche produit ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px 0; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; gap: 18px; padding: 16px 0; } }
.product .img { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product .img img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: clamp(22px, 3vw, 30px); margin: 4px 0 10px; line-height: 1.2; }
.product .price { font-size: 26px; }
.qty { display: inline-flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 10px; overflow: hidden; }
.qty button { width: 42px; height: 44px; border: 0; background: #f1f5f9; font-size: 20px; cursor: pointer; }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 14px; }
.perks li::before { content: "✓ "; color: var(--vert); font-weight: 800; }
.desc { white-space: pre-line; line-height: 1.65; }

/* ---------- panier / commande ---------- */
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; padding: 24px 0; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ligne); }
.line:last-child { border-bottom: 0; }
.line .th { width: 64px; height: 64px; border-radius: 10px; background: #eef2f7; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #94a3b8; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .nm { font-weight: 700; }
.line .rm { background: none; border: 0; color: var(--rouge); font-size: 13px; cursor: pointer; padding: 0; }
.tot { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin: 12px 0; }
.empty { text-align: center; padding: 40px 16px; color: var(--gris); }
.key { font-family: ui-monospace, Consolas, monospace; font-weight: 700; background: #eff5ff; border: 2px dashed var(--bleu); border-radius: 10px; padding: 10px 12px; word-break: break-all; margin: 6px 0; white-space: pre-wrap; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; color: #fff; }
.t-ok { background: var(--vert); } .t-wait { background: #a16207; } .t-ko { background: var(--gris); } .t-info { background: var(--bleu); }
.note { font-size: 13px; color: var(--gris); }
.msg { margin-top: 10px; font-weight: 600; color: var(--rouge); }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.post-card { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r); overflow: hidden; color: var(--nuit); display: flex; flex-direction: column; }
.post-card .cv { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dbe7fb, #fde7c2); }
.post-card .cv img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 14px 16px 18px; }
.post-card h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.3; }
article.post { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
article.post h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 6px 0 12px; }
article.post .cv { border-radius: var(--r); overflow: hidden; margin: 18px 0; }
article.post .content { font-size: 17px; line-height: 1.75; }
article.post .content h2 { font-size: 22px; margin: 28px 0 8px; }
article.post .content h3 { font-size: 19px; margin: 22px 0 6px; }

/* ---------- pied de page ---------- */
footer.site { background: var(--nuit); color: #cbd5e1; margin-top: 40px; padding: 32px 0 20px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
footer.site a { color: #cbd5e1; display: block; padding: 2px 0; }
footer.site .logo .a { color: #8fb7ff; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 22px; padding-top: 14px; font-size: 13px; opacity: .8; }
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 30; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--nuit); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 600; z-index: 40; max-width: 90vw; display: none; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--r); min-height: 260px; }
@keyframes sk { to { background-position: -200% 0; } }
