:root {
  --blue: #3b6fd8;      /* bleu 3DQueb */
  --blue-d: #2752b0;
  --blue-l: #eaf0fc;
  --ink: #0e1320;       /* noir du logo */
  --ink2: #1a2133;
  --text: #141824;
  --muted: #6b7286;
  --line: #e6e8ee;
  --bg: #ffffff;
  --soft: #f4f5f8;
  --danger: #d93838;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Kaushan Script", cursive;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
h2.sec { font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.sec-sub { color: var(--muted); margin: 0 0 24px; }

.announce { background: var(--ink); color: #fff; text-align: center; padding: 8px 16px; font-size: 13px; font-weight: 500; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 10px rgba(59,111,216,.35); }
.brand b { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.menu { display: flex; gap: 28px; margin: 0 auto; }
.menu a { text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--blue); }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn { background: none; border: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 22px; height: 22px; }
.lang { font-size: 13px; font-weight: 700; }
.count { position: absolute; top: 3px; right: 1px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.count:empty, .count[data-n="0"] { display: none; }
.burger { display: none; }

/* Bannière */
.hero { position: relative; background: #f3f3f3; }
.hero img { width: 100%; aspect-ratio: 1853 / 340; min-height: 230px; object-fit: cover; }
.hero .cta { position: absolute; left: 49.8%; top: 78.5%; transform: translate(-50%, -50%); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 13px 28px; font-weight: 600; font-size: 16px; text-decoration: none; box-shadow: 0 6px 18px rgba(39,82,176,.35); transition: background .15s, transform .15s; }
.btn:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn:disabled { background: #b9c0d0; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.full { width: 100%; justify-content: center; }

/* Catégories */
.cats { padding: 48px 0 16px; }
.cat-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; padding: 4px 24px 18px; margin: 0 -24px; scrollbar-width: thin; }
.cat { flex: 0 0 230px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; }
.cat .tile { width: 230px; height: 153px; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 120% at 50% 0%, #252c3f, var(--ink)); display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.cat .tile img { width: 100%; height: 100%; object-fit: cover; }
.cat .tile span { font: 34px/1 var(--script); color: #fff; text-shadow: 0 2px 0 var(--blue), 0 0 14px rgba(59,111,216,.8); padding: 0 12px; text-align: center; }
.cat:hover .tile { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(14,19,32,.25); }
.cat .lbl { display: block; font-weight: 700; margin-top: 12px; }
.cat.on .lbl { color: var(--blue); }
.cat.on .tile { box-shadow: 0 0 0 3px var(--blue); }

/* Produits */
.shop { padding: 32px 0 64px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; margin-bottom: 20px; }
.shop-head > div { flex: 1; min-width: 220px; }
.search { border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 11px 18px; min-width: 260px; font: inherit; }
.search:focus { outline: 2px solid var(--blue); background: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.card { cursor: pointer; display: flex; flex-direction: column; }
.card .ph { aspect-ratio: 1; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; font-size: 64px; position: relative; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .ph img { transform: scale(1.04); }
.card .ph .emo { transition: transform .3s; }
.card:hover .ph .emo { transform: scale(1.12) rotate(-4deg); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 9px; }
.tag.out { background: var(--ink2); }
.tag.low { background: #f2b705; color: #2a2000; }
.card h3 { margin: 14px 0 2px; font-size: 16px; font-weight: 600; }
.card .cat-name { color: var(--muted); font-size: 13px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 700; font-size: 17px; }
.add { background: var(--blue-l); color: var(--blue-d); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.add:hover { background: var(--blue); color: #fff; }
.add:disabled { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.empty { color: var(--muted); text-align: center; padding: 60px 0; grid-column: 1 / -1; }

/* Bande bleue */
.values { background: var(--blue); color: #fff; padding: 56px 0; }
.values .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.values .ico { width: 80px; height: 80px; border-radius: 12px; background: #fff; display: grid; place-items: center; margin: 0 auto 18px; font-size: 42px; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.values h3 { margin: 0 0 6px; font-size: 21px; font-weight: 800; }
.values p { margin: 0 auto; max-width: 300px; opacity: .9; font-size: 15px; }

/* Témoignages */
.reviews { padding: 72px 0; background: var(--soft); }
.reviews h2 { text-align: center; }
.reviews .sec-sub { text-align: center; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.rev { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.rev .stars { color: #f2b705; letter-spacing: 2px; }
.rev blockquote { margin: 0; font-size: 16px; font-weight: 500; flex: 1; }
.rev .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.rev .av { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); display: grid; place-items: center; font-weight: 800; }

/* À propos */
.about { padding: 72px 0; }
.about .wrap { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.about .logo-big { width: 100%; max-width: 300px; border-radius: 50%; box-shadow: 0 20px 50px rgba(59,111,216,.35); }
.about p { color: #3a4152; font-size: 17px; }
.about .script { font: 30px var(--script); color: var(--blue); margin: 0 0 4px; }

/* Pied de page */
.foot { background: var(--ink); color: #c9cfdd; padding: 56px 0 28px; font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot .brand b { color: #fff; }
.foot h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; color: #c9cfdd; }
.foot a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: var(--ink2); display: grid; place-items: center; }
.social a:hover { background: var(--blue); }
.social svg { width: 18px; height: 18px; fill: #fff; }
.foot .bottom { border-top: 1px solid #252c3f; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8a92a6; }

/* Modale et tiroir */
.overlay { position: fixed; inset: 0; background: rgba(14,19,32,.55); z-index: 40; display: none; }
.overlay.open { display: block; }
.modal { position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(900px, 94vw); max-height: 90vh; overflow: auto; background: #fff; border-radius: 18px; display: none; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal.open { display: grid; grid-template-columns: 1fr 1fr; }
.modal .ph { background: var(--soft); min-height: 360px; display: grid; place-items: center; font-size: 110px; }
.modal .ph img { width: 100%; height: 100%; object-fit: cover; }
.modal .info { padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.modal .price { font-size: 22px; }
.modal .desc { color: #3a4152; white-space: pre-line; }
.close { position: absolute; top: 14px; right: 14px; background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; z-index: 2; font-size: 16px; }
.close:hover { background: var(--soft); }
label.opt { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
select { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; align-self: flex-start; }
.qty button { background: none; border: 0; width: 36px; height: 36px; font-size: 18px; }
.qty button:hover { background: var(--soft); }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.note { color: var(--muted); font-size: 13px; }

.drawer { position: fixed; z-index: 50; top: 0; right: 0; height: 100%; width: min(440px, 100vw); background: #fff; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.open { transform: none; box-shadow: -20px 0 60px rgba(0,0,0,.15); }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer header h2 { margin: 0; font-size: 20px; font-weight: 800; }
.drawer .items { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .th { width: 68px; height: 68px; border-radius: 10px; background: var(--soft); overflow: hidden; display: grid; place-items: center; font-size: 30px; }
.line .th img { width: 100%; height: 100%; object-fit: cover; }
.line .nm { font-weight: 600; }
.line .op { color: var(--muted); font-size: 13px; }
.line .rm { background: none; border: 0; color: var(--muted); font-size: 13px; padding: 0; text-decoration: underline; margin-top: 4px; }
.drawer footer { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; background: #fbfbfd; }
.ship { display: flex; flex-direction: column; gap: 8px; }
.ship label { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; cursor: pointer; font-size: 14px; }
.ship label:has(input:checked) { border-color: var(--blue); background: var(--blue-l); }
.ship input { accent-color: var(--blue); }
.ship .c { margin-left: auto; font-weight: 600; white-space: nowrap; }
.tot { display: flex; justify-content: space-between; }
.tot.grand { font-weight: 800; font-size: 19px; }
.err { color: var(--danger); font-size: 14px; }
.err.info { color: var(--blue-d); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 10px; font-weight: 600; z-index: 60; transition: transform .25s; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { transform: translateX(-50%); }

/* Choix de variantes et options */
.opt { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.vars { display: flex; flex-wrap: wrap; gap: 8px; }
.var { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.var:hover { border-color: var(--blue); }
.var.on { border-color: var(--blue); background: var(--blue-l); color: var(--blue-d); font-weight: 700; }
.var:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.checks { display: flex; flex-direction: column; gap: 6px; }
.checks label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.checks input { accent-color: var(--blue); width: 16px; height: 16px; }
input.txt { border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font: inherit; font-weight: 500; }
input.txt:focus, select:focus { outline: 2px solid var(--blue); }
.modal .ph { position: relative; }
.thumbs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 12px; overflow-x: auto; }
.thumbs img { width: 56px !important; height: 56px !important; flex: 0 0 56px; border-radius: 8px; object-fit: cover; border: 2px solid #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.thumbs img.on { border-color: var(--blue); }
.ph-logo { width: 38% !important; height: auto !important; border-radius: 50%; opacity: .18; filter: grayscale(1); }
.from { font-size: 13px; color: var(--muted); font-weight: 500; }
.announce.ok { background: #1f9d55; font-size: 15px; padding: 12px 16px; }

@media (max-width: 900px) {
  .menu { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.06); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: grid; }
  .tools { margin-left: auto; }
  .values .wrap, .rev-grid { grid-template-columns: 1fr; }
  .about .wrap { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .about .logo-big { max-width: 200px; margin: 0 auto; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .cat-row { padding: 4px 16px 18px; margin: 0 -16px; gap: 14px; scroll-padding-inline: 16px; }
  .cat { flex-basis: 170px; }
  .cat .tile { width: 170px; height: 113px; }
  .cat .tile span { font-size: 26px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card h3 { font-size: 14px; }
  .card .row { flex-direction: column; align-items: stretch; gap: 8px; }
  .search { min-width: 0; width: 100%; }
  .modal.open { grid-template-columns: 1fr; }
  .modal .ph { min-height: 240px; }
  .btn { padding: 11px 22px; font-size: 15px; }
}

/* Pages légales */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.legal .crumb { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.legal .crumb a { color: var(--blue); text-decoration: none; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 40px 0 10px; padding-top: 8px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: #2f3546; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--blue-d); }
.legal .toc { background: var(--soft); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 8px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin: 4px 0; break-inside: avoid; }
.legal .toc a { text-decoration: none; }
.legal .box { border-left: 4px solid var(--blue); background: var(--blue-l); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0; }
.legal .warn { border-left-color: #f2b705; background: #fff8e1; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--soft); font-weight: 700; }
@media (max-width: 640px) { .legal .toc ol { columns: 1; } .legal { padding: 36px 16px 60px; } }
