/* Navéa — thème « lagon » : bleu profond, corail, sable */
:root {
  --lagoon: #0b3a42;
  --lagoon-2: #124b54;
  --lagoon-3: #1d6470;
  --coral: #ff6b4a;
  --coral-dark: #e8532f;
  --sand: #f6f1e8;
  --sand-2: #efe7da;
  --ink: #13232a;
  --muted: #5b6b70;
  --line: #e4ddd0;
  --card: #ffffff;
  --ok: #1f8a5b;
  --warn: #b7791f;
  --danger: #c53030;
  --star: #f2a516;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 35, 42, .06), 0 6px 18px rgba(19, 35, 42, .06);
  --display: 'Fraunces', Georgia, serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; letter-spacing: -.01em; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 6px; }

/* ---------- En-tête ---------- */
.demo-banner { background: #fff4d6; color: #6b4e00; text-align: center; font-size: 13px; padding: 6px 12px; }
.site-header { background: var(--lagoon); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-word { font-family: var(--display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; }
.search { flex: 1; display: flex; height: 46px; border-radius: 12px; overflow: hidden; background: #fff; min-width: 0; box-shadow: 0 0 0 2px transparent; transition: box-shadow .15s; }
.search:focus-within { box-shadow: 0 0 0 3px var(--coral); }
.search-cat { border: 0; background: var(--sand-2); padding: 0 10px; max-width: 170px; font-size: 13px; color: var(--ink); border-right: 1px solid var(--line); }
.search input { flex: 1; border: 0; padding: 0 14px; outline: none; min-width: 0; font-size: 15px; color: var(--ink); }
.search-btn { border: 0; background: var(--coral); color: #fff; width: 56px; display: grid; place-items: center; }
.search-btn:hover { background: var(--coral-dark); }
.header-tools { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tool { display: flex; flex-direction: column; padding: 4px 10px; border-radius: 8px; line-height: 1.2; }
.tool:hover, .cart-link:hover { background: rgba(255, 255, 255, .08); }
.tool small { font-size: 12px; opacity: .8; }
.tool strong { font-size: 14px; }
.locale-pick { display: flex; gap: 4px; }
.locale-pick select { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .25); border-radius: 8px; padding: 5px 6px; font-size: 13px; }
.locale-pick option { color: var(--ink); }
.cart-link { position: relative; display: flex; align-items: flex-end; gap: 4px; padding: 6px 10px; border-radius: 8px; }
.cart-count { position: absolute; top: 0; left: 24px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.cat-nav { background: var(--lagoon-2); }
.cat-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 4px; padding-bottom: 4px; }
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; font-size: 14px; padding: 6px 12px; border-radius: 8px; opacity: .92; }
.cat-nav a:hover, .cat-nav a.active { background: rgba(255, 255, 255, .12); opacity: 1; }

/* ---------- Boutons et formulaires ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 600; transition: transform .05s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); }
.btn-dark { background: var(--lagoon); color: #fff; }
.btn-dark:hover { background: var(--lagoon-3); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .field input, .field select, .field textarea { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 11px 12px; outline: none; }
.field input:focus, .input:focus, .field select:focus { border-color: var(--lagoon-3); box-shadow: 0 0 0 3px rgba(29, 100, 112, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--coral); }
.link { color: var(--lagoon-3); text-decoration: underline; text-underline-offset: 2px; }
.muted { color: var(--muted); }
.error-text { color: var(--danger); font-size: 14px; }

/* ---------- Accueil ---------- */
.hero { margin: 22px 0; border-radius: 22px; overflow: hidden; background: radial-gradient(1200px 400px at 85% 0%, #2b7c88 0%, transparent 60%), linear-gradient(120deg, var(--lagoon) 0%, var(--lagoon-3) 100%); color: #fff; display: grid; grid-template-columns: 1.2fr 1fr; min-height: 340px; position: relative; }
.hero-text { padding: 48px 48px; display: flex; flex-direction: column; justify-content: center; gap: 16px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(30px, 4vw, 48px); margin: 0; }
.hero p { font-size: 17px; opacity: .92; margin: 0; max-width: 520px; }
.hero .btn { align-self: flex-start; margin-top: 6px; }
.hero-art { position: relative; }
.hero-art .wave { position: absolute; inset: auto 0 0 0; height: 60%; }
.hero-tiles { position: absolute; inset: 30px 30px 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-tiles a { background: rgba(255, 255, 255, .95); border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); transform: rotate(-1.5deg); }
.hero-tiles a:nth-child(2) { transform: rotate(2deg) translateY(16px); }
.hero-tiles a:nth-child(3) { transform: rotate(1.5deg); }
.hero-tiles a:nth-child(4) { transform: rotate(-2deg) translateY(16px); }
.hero-tiles img { aspect-ratio: 1; object-fit: cover; width: 100%; height: 100%; }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 30px; }
.trust div { background: #fff; border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.trust .ico { width: 38px; height: 38px; border-radius: 10px; background: #fff0eb; color: var(--coral); display: grid; place-items: center; flex-shrink: 0; }

.section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head a { color: var(--lagoon-3); font-weight: 600; font-size: 14px; }

.cat-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.cat-tile { background: #fff; border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.cat-tile:hover { transform: translateY(-3px); }
.cat-tile .emoji { font-size: 34px; display: block; margin-bottom: 6px; }
.cat-tile span { font-size: 13px; font-weight: 600; }

/* ---------- Cartes produit ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(19, 35, 42, .06), 0 14px 30px rgba(19, 35, 42, .1); }
.card-img { aspect-ratio: 1; background: var(--sand-2); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card-title { font-size: 14px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.badge-off { position: absolute; top: 10px; left: 10px; background: var(--coral); color: #fff; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stars { position: relative; display: inline-block; font-size: 13px; letter-spacing: 1px; color: #d8d1c4; line-height: 1; }
.stars::before { content: '★★★★★'; }
.stars span { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--star); white-space: nowrap; }
.stars span::before { content: '★★★★★'; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { font-size: 20px; font-weight: 700; }
.compare { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.ship-free { color: var(--ok); font-size: 12px; font-weight: 600; }

/* ---------- Liste ---------- */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 24px; margin: 24px 0; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 130px; }
.filters h3 { font-family: var(--body); font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.filters a { display: block; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.filters a:hover { background: var(--sand); }
.filters a.active { background: #fff0eb; color: var(--coral-dark); font-weight: 600; }
.price-range { display: flex; gap: 8px; margin: 8px 0 10px; }
.price-range input { width: 100%; }
.listing-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.listing-head h1 { font-size: 24px; margin: 0; }
.pager { display: flex; justify-content: center; gap: 8px; margin: 26px 0; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); }

/* ---------- Fiche produit ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 12px; }
.crumbs a:hover { text-decoration: underline; }
.product { display: grid; grid-template-columns: 1.1fr 1fr 320px; gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 70px 1fr; gap: 12px; position: sticky; top: 130px; }
.thumbs { display: flex; flex-direction: column; gap: 8px; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: #fff; aspect-ratio: 1; }
.thumbs button.active { border-color: var(--coral); }
.main-img { background: #fff; border-radius: 18px; overflow: hidden; aspect-ratio: 1; }
.main-img img { width: 100%; height: 100%; object-fit: contain; }
.p-info h1 { font-size: 28px; margin: 0 0 8px; }
.p-info .rating { font-size: 14px; margin-bottom: 14px; }
.p-price { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.p-price .price { font-size: 32px; }
.p-price .off { background: #fff0eb; color: var(--coral-dark); font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: 14px; }
.options-label { font-weight: 600; font-size: 14px; margin: 0 0 8px; }
.options-label span { font-weight: 400; color: var(--muted); }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.opt img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.opt.active { border-color: var(--lagoon); box-shadow: 0 0 0 2px rgba(11, 58, 66, .15); font-weight: 600; }
.desc { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 6px; overflow-wrap: anywhere; }
.desc img { margin: 10px auto; border-radius: 8px; }
.desc table { border-collapse: collapse; width: 100%; }
.desc td, .desc th { border: 1px solid var(--line); padding: 6px; font-size: 14px; }
.buybox { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 130px; display: flex; flex-direction: column; gap: 12px; }
.buybox .price { font-size: 28px; }
.buybox .delivery { font-size: 14px; }
.buybox .delivery strong { color: var(--ok); }
.stock { color: var(--ok); font-weight: 600; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: transparent; width: 36px; height: 36px; font-size: 18px; }
.qty input { width: 40px; text-align: center; border: 0; outline: none; }
.assure { list-style: none; padding: 0; margin: 4px 0 0; font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.assure li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* ---------- Panier / paiement ---------- */
.cart-page { display: grid; grid-template-columns: 1fr 360px; gap: 24px; margin: 24px 0; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.panel h1, .panel h2 { margin-top: 0; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: var(--sand-2); }
.cart-line .t { font-weight: 600; }
.cart-line .actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { font-size: 19px; font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.pay-logos { display: flex; gap: 8px; justify-content: center; color: var(--muted); font-size: 12px; margin-top: 8px; }
.notice { background: #fff8e6; border: 1px solid #f3dfa7; color: #6b4e00; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.notice.ok { background: #e9f7ef; border-color: #b6e2c8; color: #155d3d; }

/* ---------- Commande ---------- */
.order-page { max-width: 860px; margin: 24px auto; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; position: relative; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 4px; background: var(--line); border-radius: 2px; }
.timeline .bar { position: absolute; top: 15px; left: 12.5%; height: 4px; background: var(--ok); border-radius: 2px; transition: width .4s; }
.step { text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.step .dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 6px; display: grid; place-items: center; font-weight: 700; position: relative; z-index: 1; }
.step.done { color: var(--ink); font-weight: 600; }
.step.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.mini-line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini-line img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--sand-2); }
.mini-line div { flex: 1; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sand-2); }
.status-pill.shipped, .status-pill.delivered { background: #e9f7ef; color: var(--ok); }
.status-pill.refunded, .status-pill.cancelled { background: #fdecec; color: var(--danger); }

.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 30px auto; }
.order-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-row img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--sand-2); }

.legal-page { max-width: 820px; margin: 28px auto; }
.legal-page h3 { font-family: var(--body); font-size: 17px; margin-top: 22px; }

/* ---------- Pied de page ---------- */
.newsletter { background: var(--lagoon-2); color: #fff; }
.newsletter .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; padding-bottom: 28px; flex-wrap: wrap; }
.newsletter h3 { margin: 0 0 4px; font-size: 22px; }
.newsletter p { margin: 0; opacity: .85; }
.newsletter form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter input { flex: 1; border: 0; border-radius: 999px; padding: 12px 18px; color: var(--ink); min-width: 0; }
.site-footer { background: var(--lagoon); color: #d4e3e5; margin-top: 50px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 36px; padding-bottom: 30px; }
.footer-cols h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.footer-cols a { display: block; padding: 3px 0; font-size: 14px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); display: flex; gap: 14px; align-items: center; z-index: 100; font-size: 14px; max-width: calc(100% - 32px); }
.toast a { color: var(--coral); font-weight: 700; }
.cookie-note { position: fixed; bottom: 16px; right: 16px; max-width: 360px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 14px 16px; font-size: 13px; z-index: 90; display: flex; gap: 12px; align-items: center; }
.skeleton { background: linear-gradient(90deg, #ece5d8 25%, #f5efe5 50%, #ece5d8 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.loading-block { height: 320px; margin: 24px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product { grid-template-columns: 1fr 1fr; }
  .buybox { grid-column: 1 / -1; position: static; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .header-main { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .header-tools { margin-left: auto; }
  .hide-sm { display: none !important; }
  .search-cat { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-text { padding: 32px 24px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product { grid-template-columns: 1fr; }
  .gallery { position: static; grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumbs button { width: 64px; flex-shrink: 0; }
  .cart-page { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
  .price { font-size: 17px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .locale-pick select { font-size: 12px; padding: 4px; }
  .tool small { display: none; }
  .cart-line { grid-template-columns: 72px 1fr; }
  .cart-line img { width: 72px; height: 72px; }
  .cart-line > :last-child { grid-column: 2; }
  .timeline { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.country-select { width: 100%; padding: 8px 10px; border: 1px solid var(--line, #ddd); border-radius: 8px; background: #fff; font: inherit; font-size: 14px; color: inherit; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
