/* ===== Boutique — style public ===== */
:root {
  --ground: #FFFBF5;
  --surface: #FFFFFF;
  --sand: #F6E7D2;
  --line: #EFE6DA;
  --line-strong: #E2D6C6;
  --ink: #1F1A17;
  --ink-soft: #5C5048;
  --muted: #6A5D54;
  --accent: #8E1838;      /* rouge bissap */
  --accent-dark: #6F1029;
  --ochre: #E9A23B;
  --green: #2F4A3A;
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 64px; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; justify-content: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

/* Typo */
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.045em; margin: 0; }
.h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 12px; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; margin: 0 0 24px; line-height: 1.1; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--ink-soft); margin: 0 0 20px; }
.eyebrow { display: inline-block; padding: 7px 13px; border-radius: 999px; background: var(--sand); color: #7A4A0B; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow-light { background: transparent; padding: 0; color: var(--ochre); }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { background: none; border: 0; padding: 8px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

/* Alertes */
.flash-wrap { padding-top: 20px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 12px; font-weight: 500; }
.alert-success { background: #E3F0E7; color: #1D4A2E; }
.alert-error { background: #FBE3E6; color: #7A1024; }
.alert-info { background: #F6E7D2; color: #5A3A0A; }

/* En-tête */
.topbar { background: var(--accent); color: #fff; font-size: 14px; font-weight: 500; }
.topbar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.045em; text-decoration: none; color: var(--ink); display: inline-flex; align-items: baseline; gap: 5px; }
.logo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ochre); display: inline-block; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-weight: 500; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 6px 0; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); padding-left: 16px; }
.search input { border: 0; background: transparent; width: 150px; height: 44px; outline: none; }
.search button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.cart-btn { height: 46px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--ground); display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 15px; }
.cart-btn:hover { color: #fff; background: #000; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ochre); color: var(--ink); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-text .lead { max-width: 480px; margin: 0; }
/* Vitrine de l'accueil */
.hero-mosaic { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 210px 210px; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 22px; text-decoration: none; isolation: isolate; }
.tile strong { font-family: var(--font-display); font-size: 21px; line-height: 1.1; letter-spacing: -0.02em; }
.tile > span:not([class]) { font-size: 14px; opacity: .85; }
.tile-icon { position: absolute; top: 18px; left: 18px; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .22); }

.tile-main { grid-row: span 2; background: var(--accent); color: #fff; padding: 14px; }
.tile-main:hover { color: #fff; }
/* Motif géométrique (losanges et points) en CSS pur */
.tile-pattern { position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(circle at 50% 50%, rgba(233, 162, 59, .55) 0 3px, transparent 4px) 0 0 / 36px 36px,
    linear-gradient(135deg, rgba(255, 255, 255, .07) 25%, transparent 25%) 0 0 / 36px 36px,
    linear-gradient(225deg, rgba(255, 255, 255, .07) 25%, transparent 25%) 0 0 / 36px 36px,
    linear-gradient(315deg, rgba(255, 255, 255, .07) 25%, transparent 25%) 0 0 / 36px 36px,
    linear-gradient(45deg, rgba(255, 255, 255, .07) 25%, transparent 25%) 0 0 / 36px 36px; }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s; }
.tile-main:hover .tile-img { transform: scale(1.05); }
.tile-letter { position: absolute; inset: 0 0 70px; display: flex; align-items: center; justify-content: center; z-index: -1;
  font-family: var(--font-display); font-weight: 800; font-size: 170px; color: rgba(255, 251, 245, .9); letter-spacing: -0.05em; }
.tile-chip { position: absolute; top: 16px; left: 16px; padding: 7px 12px; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.tile-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 20px; background: rgba(255, 251, 245, .96); color: var(--ink); box-shadow: 0 10px 30px rgba(31, 26, 23, .18); }
.tile-card-text { display: flex; flex-direction: column; min-width: 0; }
.tile-card-text strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-card-text span { font-size: 15px; color: var(--accent); font-weight: 700; }
.tile-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.tile-main:hover .tile-arrow { transform: translateX(3px); }

.tile-ochre { background: var(--ochre); color: #2B1A04; }
.tile-ochre::after { content: ''; position: absolute; z-index: -1; right: -40px; top: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.tile-ochre .tile-icon { background: rgba(255, 255, 255, .45); }

.tile-green { background: var(--green); color: #EAF2EC; }
.tile-rings { position: absolute; z-index: -1; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(255, 255, 255, .12) 0 2px, transparent 3px 16px); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-bottom: 24px; }
.section-head .h2, .section-head .h1 { margin-bottom: 0; }
.section-head > a { font-weight: 700; }

.universe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.universe { display: flex; flex-direction: column; justify-content: space-between; gap: 36px; padding: 22px; min-height: 165px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s, border-color .15s; }
.universe:hover { transform: translateY(-3px); border-color: var(--line-strong); color: var(--ink); }
.universe-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.universe-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }

.band { border-radius: 36px; background: var(--ink); color: #C9BDB1; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.band > div { flex: 1 1 360px; min-width: 0; }
.band .h2.light { color: #fff; margin: 10px 0 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.02; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.pillars div { padding: 22px; border-radius: 22px; background: #2C2522; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pillars strong { font-family: var(--font-display); font-size: 20px; color: #fff; }

/* Produits */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.card-media { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder { font-family: var(--font-display); font-weight: 800; font-size: 64px; color: rgba(31, 26, 23, .25); }
.card-placeholder.big { font-size: 140px; }
.tag { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--ground); font-size: 12px; font-weight: 700; }
.tag-accent { background: var(--accent); color: #fff; }
.card-visual { position: relative; }
.card-add { position: absolute; right: 14px; bottom: 14px; margin: 0; }
.card-add button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(31, 26, 23, .18); transition: transform .15s, background .15s; }
.card-add button:hover { background: var(--accent-dark); transform: scale(1.06); }
.card-body { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 0 4px; }
.card-body h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.card-body h3 a { text-decoration: none; }
.card-price { flex: none; text-align: right; display: flex; flex-direction: column; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-decoration: none; font-weight: 700; font-size: 14px; }
.chip.active, .chip:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.chip-light { min-height: 38px; font-weight: 500; background: var(--surface); }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.sort-form select { height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.empty { padding: 48px; border-radius: var(--radius); background: var(--surface); border: 1px dashed var(--line-strong); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1.5px solid var(--line-strong); }
.pagination .current { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* Fiche produit */
.product-page { display: flex; flex-wrap: wrap; gap: 48px; }
.gallery { flex: 1 1 420px; min-width: 0; }
.gallery-main { aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); padding: 0; cursor: pointer; background: var(--surface); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.price-line { display: flex; align-items: baseline; gap: 12px; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.stock { margin: 0; font-weight: 700; color: var(--green); }
.stock-low { color: #9A4A06; }
.stock-out { color: var(--accent); }
.add-form { display: flex; gap: 10px; margin: 8px 0; flex-wrap: wrap; }
.add-form input { width: 86px; height: 50px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-align: center; background: var(--surface); }
.description { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); width: 100%; }

/* Panier / commande */
.cart-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.cart-layout > :first-child { flex: 999 1 520px; min-width: 0; }
.summary { flex: 1 1 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.summary dl { margin: 0 0 18px; }
.summary dl div { display: flex; justify-content: space-between; padding: 8px 0; }
.summary dt, .summary dd { margin: 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px !important; font-weight: 800; font-size: 19px; }
.summary-items { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; }
.cart-lines { display: flex; flex-direction: column; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) 80px 110px auto; gap: 16px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.cart-thumb { width: 76px; height: 76px; border-radius: 14px; overflow: hidden; display: block; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { display: flex; flex-direction: column; }
.cart-name a { font-weight: 700; text-decoration: none; }
.qty { width: 80px; height: 44px; border-radius: 999px; border: 1.5px solid var(--line-strong); text-align: center; background: var(--ground); }
.cart-total { text-align: right; }

/* Formulaires */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 400; font-size: 16px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--ink); outline: none; }
.form .check, .form .radio { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.form .check input, .form .radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.radio-list { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.radio-list .radio { padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.field-error { color: var(--accent); font-weight: 500; font-size: 13px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; align-items: start; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table tr:last-child td { border-bottom: 0; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge-pending { background: #FDF0D5; color: #7A4A0B; }
.badge-paid { background: #DCEBFA; color: #123E6B; }
.badge-shipped { background: #E7E1F6; color: #3E2A7A; }
.badge-delivered { background: #E3F0E7; color: #1D4A2E; }
.badge-cancelled { background: #F0E8E4; color: #6A5D54; }

.confirm { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 0; }
.confirm-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Newsletter / pied de page */
.newsletter { border-radius: 36px; background: var(--sand); padding: clamp(28px, 5vw, 48px); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.newsletter > div { flex: 1 1 340px; }
.newsletter .h2 { margin-bottom: 6px; }
.newsletter .muted { margin: 0; }
.newsletter-form { flex: 1 1 340px; display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter-form input { flex: 1 1 200px; min-width: 0; height: 54px; padding: 0 22px; border-radius: 999px; border: 1.5px solid #D9C6AC; background: #fff; }
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-grid h3 { font-size: 14px; margin: 0 0 10px; }
.footer-grid a { display: block; padding: 4px 0; text-decoration: none; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { padding-bottom: 32px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.footer-bottom a { color: var(--ink-soft); font-weight: 700; }
.footer-bottom a:hover { color: var(--accent); }

/* Éléments propres à l'appli mobile : masqués sur ordinateur */
.tabbar, .app-back, .app-title, .checkout-bar { display: none; }
.buy-box { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); height: 50px; }
.stepper input { width: 44px !important; height: 46px; border: 0 !important; background: transparent; text-align: center; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step { width: 44px; height: 46px; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.btn-disabled { background: var(--line-strong); border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.btn-disabled:hover { background: var(--line-strong); border-color: var(--line-strong); color: var(--muted); }
.alert { transition: opacity .3s, transform .3s; }
.alert-hide { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ===== Version mobile : expérience d'application ===== */
@media (max-width: 760px) {
  :root { --tabbar-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); }
  html { -webkit-tap-highlight-color: transparent; }
  body { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); overscroll-behavior-y: none; }
  a, button { touch-action: manipulation; }
  .container { padding: 0 16px; }
  .section { padding-top: 32px; }
  .h2 { font-size: 24px; margin-bottom: 16px; }
  .h1 { font-size: 28px; }
  .lead { font-size: 16px; }
  .desk-only, .topbar, .main-nav { display: none !important; }
  .btn { white-space: nowrap; font-size: 15px; }
  .price-big, .card-price strong, .cart-total { white-space: nowrap; }

  /* En-tête compact, fixé en haut */
  .site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 251, 245, .92); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); padding-top: env(safe-area-inset-top, 0px); }
  .header-inner { gap: 10px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; justify-content: flex-start; }
  .logo { font-size: 26px; }
  .app-back { display: inline-flex; width: 40px; height: 40px; margin-left: -8px; border-radius: 50%; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); }
  .app-back:active { background: var(--sand); }
  .app-back + .logo { display: none; }
  .app-title { display: block; flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { width: 100%; order: 3; }
  .search { width: 100%; background: #F3ECE2; border-color: transparent; }
  .search input { width: 100%; flex: 1; height: 42px; }
  .search button { height: 42px; }
  /* Recherche visible seulement sur l'accueil et le catalogue */
  body:not(.page-index):not(.page-boutique) .header-actions { display: none; }

  /* Notifications en haut de l'écran */
  .flash-wrap { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); left: 12px; right: 12px; z-index: 40; padding: 0; max-width: none; }
  .flash-wrap .alert { box-shadow: 0 10px 30px rgba(31, 26, 23, .18); margin-bottom: 8px; }

  /* Barre d'onglets */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: #8A7D73; font-size: 11px; font-weight: 700; }
  .tabbar a.active { color: var(--accent); }
  .tabbar a:active .tab-icon { transform: scale(.9); }
  .tab-icon { position: relative; display: flex; transition: transform .12s; }
  .tabbar a.active svg { stroke-width: 2.4; }
  .tab-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

  /* Accueil */
  .hero { padding-top: 16px; gap: 18px; }
  .hero-text { gap: 14px; flex-basis: 100%; }
  .hero-text .eyebrow { font-size: 11px; }
  .display { font-size: 38px; }
  .hero .btn-row { width: 100%; }
  .hero .btn-row { flex-wrap: nowrap; gap: 8px; }
  .hero .btn-row .btn { flex: 1 1 auto; min-height: 48px; padding: 0 14px; }
  .hero .btn-row .btn-outline { flex: 0 1 auto; }
  .hero-mosaic { flex-basis: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: 260px 136px; gap: 10px; }
  .tile { border-radius: 22px; padding: 14px; }
  .tile-main { grid-row: auto; grid-column: span 2; padding: 10px; }
  .tile-letter { font-size: 120px; inset: 0 0 60px; }
  .tile-card { padding: 10px 10px 10px 14px; border-radius: 16px; }
  .tile-card-text strong { font-size: 15px; }
  .tile-arrow { width: 38px; height: 38px; }
  .tile strong { font-size: 16px; }
  .tile > span:not([class]) { font-size: 12px; }
  .tile-icon { top: 12px; left: 12px; width: 36px; height: 36px; }
  .tile-icon svg { width: 18px; height: 18px; }

  /* Carrousels qui défilent au doigt */
  .universe-grid, .chips { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
  .universe-grid::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
  .universe { flex: 0 0 42%; min-height: 128px; gap: 20px; padding: 16px; scroll-snap-align: start; border-radius: 20px; }
  .universe-name { font-size: 18px; }
  .universe .small { display: none; }
  .chip { flex: none; scroll-snap-align: start; min-height: 40px; padding: 0 16px; }
  .chips { margin-bottom: 12px; }

  .band { border-radius: 24px; padding: 24px; gap: 20px; }
  .band .h2.light { font-size: 26px; }
  .pillars { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .pillars::-webkit-scrollbar { display: none; }
  .pillars div { flex: 0 0 70%; scroll-snap-align: start; padding: 16px; }

  /* Grille produits 2 colonnes */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .card { gap: 8px; }
  .card-media { border-radius: 18px; }
  .card-placeholder { font-size: 44px; }
  .card-body { flex-direction: column; gap: 2px; padding: 0 2px; }
  .card-body h3 { font-size: 14px; }
  .card-body .small { font-size: 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
  .card-price { text-align: left; flex-direction: row; gap: 6px; align-items: baseline; font-size: 15px; }
  .card-add { right: 8px; bottom: 8px; }
  .card-add button { width: 40px; height: 40px; }
  .tag { top: 8px; left: 8px; font-size: 11px; padding: 4px 9px; }

  .section-head { margin-bottom: 14px; }
  .sort-form label { display: none; }
  .sort-form select { height: 40px; }
  .breadcrumb { display: none; }
  .pagination a, .pagination span { min-width: 40px; height: 40px; }
  .empty { padding: 32px 20px; }

  /* Fiche produit : photo bord à bord + barre d'achat fixe */
  .page-produit .section:first-of-type { padding-top: 0; }
  .product-page { gap: 18px; }
  .gallery { margin: 0 -16px; flex-basis: calc(100% + 32px); }
  .gallery-main { border-radius: 0 0 28px 28px; }
  .thumbs { padding: 0 16px; flex-wrap: nowrap; overflow-x: auto; }
  .thumb { flex: none; width: 60px; height: 60px; }
  .product-info .h1 { font-size: 26px; margin-bottom: 4px; }
  .buy-box { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 25; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31, 26, 23, .06); }
  .buy-box .price-line { flex-direction: column; gap: 0; }
  .buy-box .price-big { font-size: 22px; }
  .buy-box .price-line s { font-size: 13px; }
  .buy-box .add-form { margin: 0; flex-wrap: nowrap; gap: 8px; }
  .buy-box .stepper { height: 46px; }
  .buy-box .step { width: 34px; height: 42px; }
  .buy-box .stepper input { width: 30px !important; height: 42px; }
  .buy-box .btn { min-height: 46px; padding: 0 16px; }
  .buy-box .price-line { flex: none; }
  .page-produit main { padding-bottom: 80px; }
  .description { margin-top: 8px; }

  /* Panier : lignes façon appli + barre de validation fixe */
  .cart-layout { gap: 16px; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 6px 12px; padding: 10px; border-radius: 18px; }
  .cart-thumb { width: 72px; height: 72px; grid-row: span 2; }
  .cart-name a { font-size: 15px; }
  .cart-total { grid-column: 3; grid-row: 1; font-size: 15px; }
  .cart-line .qty { grid-column: 2; grid-row: 2; width: 74px; height: 38px; }
  .cart-line .link-btn { grid-column: 3; grid-row: 2; justify-self: end; font-size: 13px; }
  .cart-lines .btn-row .btn { flex: 1; min-height: 46px; }
  .page-panier .summary .btn-block { display: none; }
  .summary { position: static; padding: 18px; border-radius: 20px; flex-basis: 100%; }
  .checkout-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + var(--safe-b)); z-index: 25; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(31, 26, 23, .06); }
  .checkout-bar div { display: flex; flex-direction: column; line-height: 1.2; }
  .checkout-bar strong { font-family: var(--font-display); font-size: 22px; }
  .checkout-bar .btn { min-height: 48px; padding: 0 28px; }
  .page-panier main { padding-bottom: 80px; }

  /* Commande : récapitulatif d'abord, gros champs */
  .page-commande .summary { order: -1; }
  .page-commande .checkout .btn-block { position: sticky; bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); box-shadow: 0 8px 24px rgba(142, 24, 56, .3); }
  .form-grid, .form-grid.three { grid-template-columns: 1fr 1fr; gap: 12px; }
  .form-grid.three label:last-child { grid-column: span 2; }
  .form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select { min-height: 48px; border-radius: 12px; }
  .panel { border-radius: 20px; padding: 18px; }

  /* Compte */
  .account-grid { margin-top: 24px; gap: 16px; }
  .table th, .table td { padding: 12px; }

  /* Pas de pied de page de site web dans l'appli */
  .site-footer { display: none; }
  .newsletter-section { display: none; }
  .page-index .newsletter-section { display: block; padding-bottom: 24px; }
  .newsletter { border-radius: 24px; padding: 22px; }
  .newsletter-form input { height: 48px; }
}