:root {
  --ink: #283a31;
  --ink-soft: #506056;
  --sage: #687d63;
  --sage-light: #e8ece3;
  --cream: #f6f3ec;
  --paper: #fffdf9;
  --peach: #f0c6ad;
  --peach-pale: #f8e9df;
  --line: #e7e4dc;
  /* Couleurs des grandes bandes de l'accueil, reprises sur les autres pages (0.81). */
  --hero: #f4f0e8;
  --peach-deep: #e9c8b3;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.announcement { display: grid; place-items: center; min-height: 34px; padding: 5px 16px; background: var(--ink); color: #fffdf8; text-align: center; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.ticker[hidden] { display: none; }
.ticker { overflow: hidden; padding: 8px 0; background: var(--peach); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.ticker-track { display: flex; width: max-content; animation: ticker var(--duree, 40s) linear infinite; }
.ticker-track span::after { content: "-"; padding: 0 1.4em; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker { text-align: center; } .ticker-track { width: auto; justify-content: center; animation: none; } .ticker-track span:nth-child(n+2) { display: none; } .ticker-track span::after { content: none; } }
.site-header { position: sticky; z-index: 10; top: 0; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 6.3%; background: rgba(255,253,249,.96); border-bottom: 1px solid rgba(40,58,49,.07); backdrop-filter: blur(14px); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.wordmark-accent { color: var(--sage); }
.wordmark-les { font-style: italic; font-weight: 500; color: var(--ink-soft); }
/* Logo (louve et louveteau) : SVG utilisé comme masque, il prend la couleur du texte. */
.brand-logo, .logo-full { display: block; flex: none; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.brand-logo { --logo: url("images/logo-embleme.svg"); width: 42px; height: 47px; color: var(--ink); }
.logo-full { --logo: url("images/logo-mamabeast.svg"); }
.main-nav { display: flex; align-items: center; gap: 38px; margin-left: 78px; color: #49564d; font-size: 12px; }
.main-nav a, .footer-links a { transition: color .2s ease; }
.main-nav a:hover, .footer-links a:hover { color: #a4664d; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.language-toggle, .icon-button, .bag-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.language-toggle { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 600; }
.icon-button svg, .bag-button svg, .search-box svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bag-button { gap: 8px; font-size: 11px; }
.bag-count { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--sage-light); font-size: 10px; }
.menu-toggle { display: none; }
.hero { display: grid; min-height: 575px; grid-template-columns: 1fr 1.02fr; overflow: hidden; background: var(--hero); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 65px 0 65px max(12.3%, calc((100vw - 1200px)/2)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sage); font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #c98262; }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 21px 0 17px; font-family: var(--serif); font-size: clamp(42px, 5.1vw, 68px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.hero-copy > p { max-width: 390px; margin: 0 0 25px; color: #68736a; font-size: 13px; line-height: 1.9; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 47px; padding: 0 20px; border: 1px solid transparent; cursor: pointer; font-size: 11px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--sage); }
.button-outline { background: transparent; border-color: var(--line); }
.button-outline:hover { border-color: var(--ink); background: #fff; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 30px; color: #7a8279; font-size: 9px; letter-spacing: .03em; }
.note-star { color: #b9785c; font-size: 17px; }
.hero-art { position: relative; min-height: 520px; overflow: hidden; background: #e6dfd2; }
.hero-photo { position: absolute; inset: 0; background: linear-gradient(90deg,rgba(89,92,69,.04),rgba(42,46,33,.03)), url("images/accueil.jpg") center 58%/cover; }
.hero-art::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(239,231,216,.18), transparent 45%), linear-gradient(0deg, rgba(25,33,26,.2), transparent 32%); pointer-events: none; }
.art-caption { position: absolute; z-index: 2; right: 8%; bottom: 33px; color: white; font-family: var(--serif); font-size: 18px; font-style: italic; }
.benefits { display: flex; min-height: 82px; align-items: center; justify-content: center; gap: clamp(28px, 8vw, 125px); padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.benefit { display: flex; align-items: center; gap: 11px; color: #687168; font-size: 10px; }
.benefit-icon { color: #a8755b; font-size: 17px; }
.collections-section, .shop-section { padding: 102px 8.2% 87px; }
.section-heading, .shop-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.muted-eyebrow { color: #91988d; }
h2 { margin: 12px 0 0; font-family: var(--serif); font-size: clamp(30px, 3.35vw, 43px); font-weight: 500; letter-spacing: -.035em; }
.text-link { display: inline-flex; align-items: center; gap: 13px; padding: 0 0 5px; border: 0; border-bottom: 1px solid #bcc4b8; background: transparent; font-size: 10px; cursor: pointer; }
.text-link:hover { color: #a4664d; border-color: #a4664d; }
.collection-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 34px; }
.collection-card { position: relative; display: flex; min-height: 176px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 18px; background: var(--sage-light); cursor: pointer; isolation: isolate; }
.collection-card::before { position: absolute; z-index: -2; inset: 0; background: var(--collection-image) center/cover; content: ""; transition: transform .4s ease; }
.collection-card::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(25,38,30,.74), rgba(25,38,30,0) 78%); content: ""; }
.collection-card:hover::before { transform: scale(1.06); }
.collection-name { max-width: 160px; color: #fff; font-family: var(--serif); font-size: 17px; line-height: 1.2; }
.collection-count { margin-top: 8px; color: rgba(255,255,255,.76); font-size: 9px; letter-spacing: .05em; }
.shop-section { padding-top: 73px; background: #f8f6f1; }
.shop-tools { display: flex; align-items: center; gap: 10px; }
.search-box { display: flex; width: 205px; height: 38px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #e2e0d8; background: #fffdf9; }
.search-box svg { width: 15px; height: 15px; color: #778075; }
.search-box input, .newsletter-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 10px; }
.search-box input::placeholder, .newsletter-form input::placeholder { color: #94988f; }
.filter-button { display: inline-flex; height: 38px; align-items: center; gap: 18px; padding: 0 12px; border: 1px solid #e2e0d8; background: #fffdf9; font-size: 10px; cursor: pointer; }
.filter-icon { font-size: 16px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.filter-chip { flex: 0 0 auto; padding: 9px 14px; border: 1px solid #e1e2db; border-radius: 30px; background: transparent; color: #6d766c; font-size: 9px; cursor: pointer; transition: all .2s ease; }
.filter-chip.active, .filter-chip:hover { border-color: var(--ink); background: var(--ink); color: white; }
.result-count { min-height: 14px; margin: 18px 0 11px; color: #899086; font-size: 9px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 18px; }
.product-card { min-width: 0; }
.product-image-wrap { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: #e8e6db; }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.product-image-button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.detail-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(22,32,24,.25); overflow-x: hidden; overflow-y: auto; }
.detail-dialog::backdrop { background: rgba(26,34,29,.45); }
.detail-dialog[open] { display: grid; }
.detail-close { position: absolute; z-index: 1; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,253,249,.9); font-size: 27px; line-height: 1; }
#detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.detail-image { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.detail-body { padding: 32px 28px; }
.detail-body h2 { margin: 0 0 10px; font-size: 27px; }
.detail-desc { margin: 0 0 18px; color: var(--ink-soft); line-height: 1.6; }
.detail-order { display: grid; gap: 14px; margin: 0 0 20px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.detail-field { display: grid; gap: 6px; }
.detail-field span, .detail-size { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.detail-size { margin: 0; }
.detail-field select { padding: 10px 12px; border: 1px solid var(--line); background: white; color: var(--ink); font: inherit; font-size: 13px; }
.detail-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.detail-buy .quantity-control { margin-top: 0; }
.detail-buy .quantity-control button { width: 38px; height: 38px; font-size: 17px; }
.detail-buy .quantity-control button:disabled { opacity: .35; cursor: default; }
.detail-buy .quantity-control span { min-width: 22px; font-size: 15px; text-align: center; }
.detail-add { flex: 1 1 190px; }
.detail-in-cart { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; font-size: 12px; color: var(--sage); }
.detail-section { padding-top: 14px; border-top: 1px solid var(--line); }
.detail-section + .detail-section { margin-top: 14px; }
.detail-section h3 { margin: 0 0 6px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.detail-section p { margin: 0; font-size: 13px; line-height: 1.6; }
.detail-returns { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--ink-soft); }
.detail-returns a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { #detail-content { grid-template-columns: 1fr; } .detail-image { height: 240px; min-height: 0; } .detail-body { padding: 22px 20px; } }
.product-card:hover .product-image { transform: scale(1.045); }
.product-image-wrap::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(35,43,34,.07), transparent 50%); content: ""; pointer-events: none; }
.product-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 8px; background: rgba(255,253,249,.9); color: var(--sage); font-size: 8px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.quick-add { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: grid; width: 37px; height: 37px; place-items: center; border: 0; border-radius: 50%; background: var(--paper); font-size: 21px; cursor: pointer; transition: background .2s ease,color .2s ease; }
.quick-add:hover { background: var(--ink); color: white; }
.product-in-cart { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: var(--ink); color: white; font-size: 9px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.product-in-cart[hidden] { display: none; }
.product-info { padding: 13px 2px 0; }
.product-category { color: #8a9287; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.product-name-row { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-top: 7px; }
.product-name { margin: 0; font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1.35; }
.product-price { flex: 0 0 auto; font-size: 11px; font-weight: 600; }
.product-desc { margin: 7px 0 0; color: #848a81; font-size: 9px; line-height: 1.6; }
.product-variant { margin-top: 8px; border: 0; border-bottom: 1px solid #d9dcd3; outline: none; background: transparent; color: #656f64; font-size: 9px; cursor: pointer; }
.load-more { display: flex; margin: 44px auto 0; }
.story-section { display: grid; min-height: 415px; grid-template-columns: 1fr 1fr; background: var(--sage-light); }
.story-image { position: relative; display: grid; min-height: 360px; place-items: center; background: url("https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1200&q=85") center 55%/cover, #c9d2c2; }
.story-image::before { position: absolute; inset: 0; content: ""; background: linear-gradient(0deg, rgba(25,33,26,.18), rgba(25,33,26,.05)); }
.story-seal { position: relative; display: grid; width: clamp(190px, 20vw, 260px); aspect-ratio: 1; place-items: center; border-radius: 50%; background: rgba(251,248,241,.94); box-shadow: 0 18px 50px rgba(25,33,26,.22), 0 0 0 10px rgba(251,248,241,.28); }
.story-seal .logo-full { width: 70%; aspect-ratio: 2116 / 2168; color: var(--ink); transform: translateX(3%); }
.story-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 50px 11%; }
.story-copy h2 { margin: 16px 0 15px; font-size: clamp(30px, 3.4vw, 43px); line-height: 1.17; }
.story-copy p { max-width: 420px; margin: 0 0 20px; color: #69746a; font-size: 11px; line-height: 1.9; }
/* Page « Notre histoire » (notre-histoire.html) */
.about-page [hidden], .about-body [hidden] { display: none !important; }
.about-page { background: var(--paper); }
.about-hero { display: flex; align-items: center; justify-content: center; gap: 56px; padding: 0 6.3%; background: var(--hero); } /* SUPPOSITION : même fond crème que le haut de l'accueil (avant : vert sauge) */
.about-photo { position: relative; flex: none; width: 225px; margin: 0; padding: 48px 0; }
.about-photo img { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 22px 55px rgba(25,33,26,.18), 0 0 0 10px rgba(251,248,241,.7); }
.about-photo figcaption { margin-top: 16px; text-align: center; color: var(--ink-soft); font-family: var(--serif); font-size: 14px; font-style: italic; }
.about-intro { padding: 50px 0; }
.about-intro h1 { margin: 16px 0 14px; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.about-lead { max-width: 380px; margin: 0; color: #69746a; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); font-style: italic; line-height: 1.45; }
.about-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 46px; max-width: 1180px; margin: 0 auto; padding: 72px 6.3% 40px; }
.about-story section { padding-top: 22px; border-top: 1px solid var(--line); }
.about-story h2 { margin: 0 0 14px; font-family: var(--serif); font-size: clamp(22px, 2.1vw, 27px); font-weight: 500; line-height: 1.2; }
.about-story p { margin: 0 0 14px; color: #5d6a60; font-size: 14px; line-height: 1.8; }
.about-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; margin: 30px 6.3% 0; padding: 56px 20px 64px; background: var(--peach-deep); text-align: center; } /* SUPPOSITION : même pêche que la bande Infolettre de l'accueil */
.about-cta p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.about-body .site-footer { margin-top: 72px; }
@media (max-width: 900px) {
  .about-hero { flex-direction: column; gap: 0; padding: 0 16px; }
  .about-photo { width: 45%; max-width: 225px; padding: 28px 0 0; }
  .about-intro { align-self: stretch; padding: 30px 0 40px; }
  .about-story { grid-template-columns: 1fr; gap: 28px; padding: 44px 16px 20px; }
  .about-cta { margin: 20px 16px 0; padding: 40px 16px 46px; }
  .about-body .site-header { padding: 0 16px; }
  .about-body .footer-links { flex-wrap: wrap; }
}
@media (max-width: 640px) { .about-back { display: none; } .about-body .site-footer { margin-top: 44px; } }
.newsletter { display: flex; min-height: 200px; align-items: center; justify-content: space-between; gap: 50px; padding: 43px 12%; background: var(--peach-deep); }
.newsletter .eyebrow { color: #795e4c; }
.newsletter h2 { margin-top: 9px; font-size: 31px; }
.newsletter p { margin: 8px 0 0; color: #74695e; font-size: 10px; }
.newsletter-side { width: min(390px, 45%); }
.newsletter-consent { margin: 10px 0 0 !important; color: #74695e; font-size: 10px; line-height: 1.5; }
.newsletter-consent a { text-decoration: underline; text-underline-offset: 2px; }
.newsletter-form { display: flex; width: 100%; height: 47px; padding-left: 13px; border-bottom: 1px solid rgba(40,58,49,.5); }
.newsletter-form input { font-size: 10px; }
.newsletter-form button { display: inline-flex; align-items: center; gap: 16px; padding: 0 7px 0 14px; border: 0; background: transparent; font-size: 10px; cursor: pointer; white-space: nowrap; }
.site-footer { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 25px; padding: 20px 8.2%; background: var(--ink); color: #eaece5; }
.footer-wordmark { font-size: 20px; }
.footer-wordmark .brand-logo { width: 34px; height: 38px; color: #dfe5d8; }
.footer-wordmark .wordmark-les { color: #c3cbbd; }
.footer-wordmark .wordmark-accent { color: #b5c1a9; }
.site-footer > p { margin: 0; color: #bdc4b8; font-size: 9px; }
.footer-links { display: flex; gap: 19px; color: #bdc4b8; font-size: 9px; }
.overlay { position: fixed; z-index: 19; inset: 0; background: rgba(26,34,29,.38); }
.overlay[hidden] { display: none; }
.cart-drawer { position: fixed; z-index: 20; top: 0; right: 0; display: flex; width: min(420px, 100%); height: 100dvh; flex-direction: column; padding: 25px; background: var(--paper); box-shadow: -10px 0 40px rgba(22,32,24,.12); transform: translateX(105%); transition: transform .3s ease; }
.cart-drawer.open { transform: translateX(0); }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { margin: 0; font-size: 27px; }
.close-drawer { font-size: 27px; line-height: 1; }
.cart-items { flex: 1; overflow: auto; }
.cart-line { display: grid; grid-template-columns: 68px 1fr auto; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 68px; height: 77px; object-fit: cover; }
.cart-line-title { margin: 4px 0; font-family: var(--serif); font-size: 13px; }
.cart-line-detail, .cart-line-price { color: #82887e; font-size: 9px; }
.quantity-control { display: flex; align-items: center; gap: 11px; margin-top: 11px; }
.quantity-control button { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.quantity-control button:disabled { opacity: .35; cursor: default; }
.cart-line-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 10px; }
.cart-remove { padding: 0 0 2px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: #a4664d; font-size: 9px; cursor: pointer; }
.cart-remove:hover { color: var(--ink); }
.quantity-control span { font-size: 10px; }
.cart-empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cart-empty[hidden] { display: none; }
.empty-flower { color: #b9785c; font-size: 29px; }
.cart-empty p { max-width: 215px; margin: 13px auto; color: #69746a; font-family: var(--serif); font-size: 20px; line-height: 1.4; }
.cart-summary { padding-top: 17px; border-top: 1px solid var(--line); }
.cart-summary[hidden] { display: none; }
.subtotal { display: flex; justify-content: space-between; font-size: 12px; }
.cart-summary p { margin: 10px 0 16px; color: #82887e; font-size: 9px; }
.checkout-button { width: 100%; }
.cart-summary small { display: block; margin-top: 12px; color: #94988f; font-size: 8px; text-align: center; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: calc(100vw - 48px); padding: 13px 18px; background: var(--ink); color: white; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: all .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) {
  .site-header { padding: 0 4%; }
  .main-nav { gap: 22px; margin-left: 25px; }
  .hero { min-height: 480px; }
  .hero-copy { padding-left: 9%; }
  .hero-art { min-height: 480px; }
  .collections-section, .shop-section { padding-right: 5%; padding-left: 5%; }
  .collection-grid { grid-template-columns: repeat(5, minmax(135px, 1fr)); overflow-x: auto; padding-bottom: 7px; }
  .collection-card { min-height: 155px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter { padding: 40px 7%; }
  .site-footer { padding-right: 5%; padding-left: 5%; }
}
@media (max-width: 640px) {
  .announcement { min-height: 30px; font-size: 8px; }
  .site-header { height: 64px; padding: 0 18px; }
  .wordmark { gap: 9px; font-size: 21px; }
  .brand-logo { width: 35px; height: 39px; }
  .story-seal { width: 170px; }
  .main-nav { position: absolute; top: 63px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 21px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 2px; }
  .header-actions { gap: 15px; }
  .search-trigger, .bag-button > span:not(.bag-count) { display: none; }
  .bag-button { position: relative; }
  .bag-count { position: absolute; top: -9px; right: -9px; width: 16px; height: 16px; font-size: 8px; }
  .menu-toggle { display: inline-flex; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { order: 2; padding: 39px 25px 36px; }
  .hero h1 { margin: 16px 0 12px; font-size: clamp(43px, 12vw, 60px); }
  .hero-copy > p { max-width: 380px; font-size: 12px; }
  .hero-note { margin-top: 22px; font-size: 8px; }
  .hero-art { min-height: 310px; order: 1; }
  .art-caption { bottom: 18px; font-size: 14px; }
  .benefits { display: grid; grid-template-columns: 1fr; gap: 12px; justify-content: start; padding: 19px 29px; }
  .benefit { font-size: 9px; }
  .collections-section, .shop-section { padding: 62px 20px; }
  .section-heading, .shop-heading { align-items: flex-start; }
  .section-heading { flex-direction: column; gap: 17px; }
  h2 { font-size: 32px; }
  .collection-grid { grid-template-columns: repeat(2, minmax(145px, 1fr)); gap: 10px; overflow: visible; }
  .collection-card { min-height: 151px; padding: 13px; }
  .collection-name { font-size: 15px; }
  .shop-heading { flex-direction: column; gap: 17px; }
  .shop-tools { width: 100%; }
  .search-box { flex: 1; }
  .filter-button { flex: 0 0 auto; }
  /* Sur téléphone, les gammes défilent du doigt sur une seule ligne, sans barre visible ; le fondu à droite signale la suite. */
  .filter-row { flex-wrap: nowrap; margin-top: 22px; margin-right: -20px; padding-right: 20px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .filter-row::-webkit-scrollbar { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 11px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 10px; }
  .product-desc { font-size: 8px; }
  .product-badge { top: 8px; left: 8px; padding: 5px 6px; font-size: 7px; }
  .quick-add { right: 8px; bottom: 8px; width: 32px; height: 32px; }
  .product-in-cart { left: 8px; bottom: 8px; padding: 5px 7px; font-size: 8px; }
  .story-section { grid-template-columns: 1fr; }
  .story-image { min-height: 255px; }
  .story-copy { padding: 39px 25px 44px; }
  .story-copy h2 { font-size: 34px; }
  .newsletter { flex-direction: column; align-items: flex-start; gap: 20px; padding: 37px 25px; }
  .newsletter h2 { font-size: 28px; }
  .newsletter-side { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 13px; padding: 25px; }
  .footer-links { flex-wrap: wrap; gap: 12px 17px; }
}

/* ---- Lisibilité (0.83) ----
   Retours de clientes : plusieurs textes étaient trop petits, surtout sur cellulaire.
   Ces règles agrandissent les textes clés sans toucher aux règles d'origine plus haut
   (elles les remplacent parce qu'elles viennent après).
   SUPPOSITION : tailles visées sur cellulaire = 16 px pour les textes à lire et les champs
   (16 px évite aussi que l'iPhone zoome quand on touche un champ), 13-15 px pour les petites
   mentions, jamais moins de 11 px. À ajuster si Olivier trouve le résultat trop gros. */
.text-link { font-size: 12px; }
.story-link { gap: 14px; padding-bottom: 6px; border-bottom: 2px solid currentColor; font-size: 15px; font-weight: 600; }
.story-link-arrow { font-size: 22px; line-height: 1; }
.eyebrow { font-size: 11px; }
.hero-copy > p { font-size: 15px; }
.hero-note { font-size: 12px; }
.benefit { font-size: 13px; }
.collection-count { font-size: 12px; }
.filter-button { font-size: 13px; }
.filter-chip { font-size: 12px; }
.result-count { color: var(--ink-soft); font-size: 12px; }
.product-category { font-size: 10px; }
.product-price { font-size: 13px; }
.product-desc { color: var(--ink-soft); font-size: 12px; }
.product-variant { font-size: 12px; }
.product-badge { font-size: 10px; }
.product-in-cart { font-size: 11px; }
.story-copy p { font-size: 15px; }
.newsletter p { color: #5e5248; font-size: 14px; }
.newsletter-consent { color: #5e5248; font-size: 12px; }
.newsletter-form { height: 54px; }
.newsletter-form input { font-size: 15px; }
.newsletter-form button { gap: 12px; font-size: 15px; font-weight: 700; }
.newsletter-arrow { font-size: 20px; line-height: 1; }
.site-footer > p, .footer-links { font-size: 12px; }
.footer-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
.footer-links a { white-space: nowrap; }
.newsletter-form input::placeholder { color: #6f6a63; }
.cart-line-title { font-size: 15px; }
.cart-line-detail, .cart-line-price, .cart-remove, .cart-summary p { font-size: 12px; }
.quantity-control span { font-size: 13px; }
.cart-summary small { font-size: 11px; }
/* Le bouton « Voir plus de produits » restait affiché même quand tout était déjà visible. */
.load-more[hidden] { display: none; }

@media (max-width: 640px) {
  .announcement { font-size: 11px; }
  .main-nav a { font-size: 17px; }
  .bag-count { width: 18px; height: 18px; font-size: 11px; }
  .eyebrow { font-size: 12px; }
  .button { min-height: 52px; font-size: 16px; }
  .hero-copy > p { font-size: 17px; line-height: 1.7; }
  .hero-note { font-size: 13px; }
  .art-caption { font-size: 17px; }
  .benefit { font-size: 15px; }
  .benefit-icon { font-size: 20px; }
  .collection-name { font-size: 17px; }
  .collection-count { font-size: 13px; }
  .search-box { height: 46px; }
  .search-box input { font-size: 16px; }
  .filter-button { height: 46px; font-size: 15px; }
  .filter-chip { padding: 10px 16px; font-size: 15px; }
  .result-count { font-size: 14px; }
  .product-grid { gap: 30px 12px; }
  .product-category { font-size: 11px; }
  .product-name-row { flex-wrap: wrap; gap: 2px 8px; }
  .product-name { font-size: 17px; }
  .product-price { font-size: 16px; }
  .product-desc { font-size: 14px; line-height: 1.5; }
  .product-variant { font-size: 15px; }
  .product-badge { padding: 6px 8px; font-size: 11px; }
  .quick-add { width: 40px; height: 40px; font-size: 24px; }
  .product-in-cart { padding: 6px 9px; font-size: 12px; }
  .story-copy p { font-size: 17px; line-height: 1.7; }
  .story-link { font-size: 19px; }
  .story-link-arrow { font-size: 26px; }
  .newsletter p { font-size: 16px; line-height: 1.5; }
  .newsletter-consent { font-size: 14px; }
  .newsletter-form { height: 58px; padding-left: 4px; }
  .newsletter-form input { font-size: 17px; }
  .newsletter-form button { font-size: 18px; }
  .newsletter-arrow { font-size: 24px; }
  .site-footer > p { font-size: 15px; }
  .footer-links { gap: 14px 22px; font-size: 15px; }
  .footer-links a { padding: 4px 0; }
  .cart-line-title { font-size: 17px; }
  .cart-line-detail, .cart-line-price, .cart-remove, .cart-summary p { font-size: 14px; }
  .quantity-control button { width: 34px; height: 34px; }
  .quantity-control span { font-size: 16px; }
  .subtotal { font-size: 16px; }
  .cart-summary small { font-size: 12px; }
  .toast { font-size: 15px; }
}

/* ---- Compte, caisse et suivi de commande ---- */
.account-trigger.signed-in { color: var(--sage); }
.account-trigger.signed-in svg { fill: var(--sage-light); }
.shop-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 20px 60px rgba(22,32,24,.25); overflow-x: hidden; overflow-y: auto; }
.shop-dialog::backdrop { background: rgba(26,34,29,.45); }
/* Caisse en fenêtre ordinaire pendant la vérification 3-D Secure : elle reste en place, sous la fenêtre de Square. */
.shop-dialog[open]:not(:modal) { position: fixed; inset: 0; margin: auto; z-index: 50; }
.shop-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; font-size: 27px; line-height: 1; }
.shop-body { padding: 34px 30px 30px; }
.shop-body h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.shop-body h3 { margin: 22px 0 8px; color: var(--sage); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.shop-note { margin: 0 0 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.shop-note.small { font-size: 11px; }
.shop-form { display: grid; gap: 12px; }
.sf { display: grid; gap: 5px; font-size: 11px; font-weight: 600; }
.sf input, .sf select, .sf textarea { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 400; }
.sf textarea { min-height: 140px; padding: 10px 12px; resize: vertical; }
/* Suggestions d'adresses (adresses.js) */
.ac-ancre { position: relative; }
.ac-liste { position: absolute; z-index: 5; top: 100%; right: 0; left: 0; max-height: 260px; margin: 2px 0 0; padding: 4px 0; overflow-y: auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 24px rgba(40,58,49,.12); list-style: none; font-size: 13px; font-weight: 400; }
.ac-liste li { padding: 9px 12px; cursor: pointer; }
.ac-liste li small { color: #6d766c; font-size: 11px; }
.ac-liste [role=option]:hover, .ac-liste [aria-selected=true] { background: var(--cream, #f6f3ec); }
.ac-liste .ac-note { color: #6d766c; cursor: default; }
.sf input:focus, .sf select:focus, .sf textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-check { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.shop-msg { margin: 0; padding: 10px 12px; font-size: 12px; line-height: 1.5; }
.shop-msg[hidden] { display: none; }
.shop-msg-error { background: #fbe9e4; color: #6f2a1d; }
.shop-msg-ok { background: var(--sage-light); color: var(--ink); }
.shop-msg-info { margin-bottom: 12px; background: var(--peach-pale); color: var(--ink); }
.shop-links { margin: 14px 0 0; font-size: 12px; color: var(--ink-soft); }
.shop-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.shop-tab { padding: 8px 0; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; font: inherit; font-size: 12px; color: var(--ink-soft); }
.shop-tab.active { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.shop-logout { margin-left: auto; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; font: inherit; font-size: 13px; color: var(--ink); }
.order-row:hover { background: var(--cream); }
.order-row small { display: block; color: var(--ink-soft); font-size: 11px; }
.order-status { display: inline-block; padding: 3px 9px; border-radius: 99px; background: var(--peach-pale); font-size: 10px; font-weight: 600; white-space: nowrap; }
.order-status.status-expediee, .order-status.status-prete_cueillette, .order-status.status-livree, .order-status.status-en_transit, .order-status.status-livre, .order-status.status-expedie { background: var(--sage-light); color: var(--ink); }
.parcel { display: grid; gap: 5px; margin-bottom: 10px; padding: 12px; background: var(--cream); font-size: 13px; }
.parcel small { color: var(--ink-soft); }
.parcel .text-link { justify-self: start; }
.ship-options { display: grid; gap: 8px; }
.ship-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; cursor: pointer; }
.ship-option:has(input:checked) { border-color: var(--ink); }
.ship-option input { flex: none; margin: 0; }
.ship-option > span:nth-of-type(1) { flex: 1; display: grid; gap: 2px; }
.ship-option small { color: var(--ink-soft); }
.ship-price { font-weight: 600; white-space: nowrap; }
.shop-summary { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.shop-summary > div { display: flex; justify-content: space-between; gap: 14px; }
.shop-summary small { color: var(--ink-soft); }
.shop-summary .sep { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.shop-summary .total { font-weight: 700; font-size: 15px; }
.timeline { margin: 0; padding: 0 0 0 18px; font-size: 12px; line-height: 1.7; }
.timeline small { color: var(--ink-soft); }
#card-container { min-height: 96px; padding: 12px; border: 1px solid var(--line); background: #fff; }
.shop-confirm { display: grid; gap: 4px; margin: 16px 0; padding: 18px; background: var(--sage-light); font-size: 12px; }
.shop-confirm strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.shop-danger { margin-top: 26px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12px; }
.shop-danger summary { cursor: pointer; color: #9a4a35; }
.shop-danger-link { color: #9a4a35; border-color: #9a4a35; font-size: 11px; }
.shop-body > .shop-msg { margin-bottom: 12px; }
.shop-empty { color: var(--ink-soft); font-style: italic; }
.info-list { display: grid; gap: 0; margin: 0; font-size: 13px; }
.info-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--ink-soft); font-size: 12px; }
.info-list dd { margin: 0; overflow-wrap: anywhere; }
.shop-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.shop-warning-list { display: grid; gap: 8px; margin: 0 0 14px; padding-left: 20px; color: var(--ink); font-size: 13px; line-height: 1.5; }
.shop-ack { align-items: flex-start; line-height: 1.5; }
.shop-ack input { flex: none; margin-top: 3px; }
.button-danger { background: #9a4a35; color: white; }
.button-danger:hover { background: #7c3826; }
@media (max-width: 640px) { .shop-body { padding: 30px 18px 24px; } .sf-row { grid-template-columns: 1fr; } .order-row { grid-template-columns: 1fr auto; } .order-row > span:last-child { grid-column: 1 / -1; } .info-list > div { grid-template-columns: 1fr; gap: 2px; } }

/* Mode test : le fond rappelle que le site n’est pas en vente. */
body.mode-test { --paper: #fff4cf; --cream: #ffe9a8; --line: #ecd48c; --peach: #ffb703; --peach-pale: #ffe08a; }
body.mode-test .site-header { background: rgba(255,244,207,.96); }
body.mode-test .hero, body.mode-test .newsletter, body.mode-test .about-hero, body.mode-test .about-cta { background: var(--cream); }
/* Pages autonomes en mode test (mode-test.js) : même bandeau orange que l'accueil. */
.bandeau-test { padding: 8px 16px; background: #ffb703; color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-align: center; text-transform: uppercase; overflow-wrap: anywhere; }
body.mode-test .shop-section { background: var(--paper); }
.test-cards { display: grid; gap: 6px; }
.test-cards > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; }
.test-cards code { font-weight: 700; user-select: all; }

/* Page Politique de confidentialité (confidentialite.html) et case de consentement */
.legal-body .header-actions { display: flex; align-items: center; gap: 22px; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; line-height: 1.65; font-size: 15px; }
.legal-page h1 { margin: 12px 0 6px; font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.legal-page h2 { margin: 38px 0 10px; font-size: clamp(21px, 2.4vw, 26px); }
.legal-page a:not(.text-link) { text-decoration: underline; text-underline-offset: 2px; }
.legal-page ul { padding-left: 22px; }
.legal-date { color: var(--ink-soft); font-size: 13px; }
.legal-table { overflow-x: auto; margin: 0 0 16px; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--cream); font-weight: 600; }
.sf-consent { align-items: flex-start; font-size: 13px; line-height: 1.45; }
.sf-consent input { flex: none; margin-top: 3px; }
.sf-consent a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) { .legal-page { padding: 36px 16px 60px; font-size: 14px; } .legal-body .site-header { padding: 0 16px; } .legal-body .header-actions .text-link { display: none; } }

/* Page des liens de l'infolettre (confirmation, désabonnement) */
.infolettre-page { min-height: 60vh; }
.infolettre-page .button { margin: 10px 0 24px; border: 0; cursor: pointer; }

/* Recherche, filtres et tri de la boutique (0.83) */
.sort-box { position: relative; display: flex; height: 38px; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid #e2e0d8; background: #fffdf9; color: #6d766c; }
.sort-icon { font-size: 14px; }
.sort-box select { max-width: 210px; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; cursor: pointer; }
.sort-box:focus-within, .search-box:focus-within { border-color: var(--ink); }
.filter-button.active { border-color: var(--ink); }
.filter-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: -10px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }
.filter-count[hidden] { display: none; }
.filter-panel { display: grid; gap: 16px; margin-top: 16px; padding: 18px 20px; border: 1px solid #e2e0d8; background: #fffdf9; }
.filter-panel[hidden] { display: none; }
.filter-group { display: grid; gap: 9px; }
.filter-group-title { color: #6d766c; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.filter-options { display: flex; flex-wrap: wrap; gap: 8px; }
.result-bar { display: flex; align-items: baseline; gap: 18px; }
.result-bar .clear-filters { font-size: 12px; }
.result-bar .clear-filters[hidden] { display: none; }
.search-help { margin: 0 0 22px; padding: 16px 20px; border-left: 3px solid #a4664d; background: #fffdf9; color: var(--ink); font-size: 14px; line-height: 1.5; }
.search-help[hidden] { display: none; }
.search-help p { margin: 0; }
.search-help p + p, .search-help p + div, .search-help div + p { margin-top: 10px; }
.search-help-title { font-weight: 600; }
.search-help-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.search-help .text-link { margin-left: 4px; font-size: 13px; }
@media (max-width: 640px) {
  .shop-tools { flex-wrap: wrap; }
  .search-box { flex: 1 1 100%; width: auto; }
  .sort-box { flex: 1 1 0; min-width: 0; height: 44px; }
  .sort-box select { max-width: none; width: 100%; min-width: 0; text-overflow: ellipsis; font-size: 16px; } /* 16 px : évite le zoom automatique sur iPhone */
  .filter-button { height: 44px; }
  .filter-panel { margin-top: 14px; padding: 16px; }
  .filter-group-title { font-size: 13px; }
  .search-help { font-size: 15px; }
  .search-help .text-link, .result-bar .clear-filters { font-size: 14px; }
}

/* ---- Panier (0.84) : badge des cartes avec le format, un format par ligne s'il y en a plusieurs ---- */
.product-in-cart { max-width: calc(100% - 64px); line-height: 1.3; }
.product-in-cart-multi { display: flex; flex-direction: column; gap: 2px; border-radius: 12px; }
.product-in-cart-title { opacity: .75; font-size: .85em; letter-spacing: .08em; text-transform: uppercase; }

/* Mode test : expéditeur et destinataire affichés avant chaque envoi de courriel (compte.js, infolettre.php). */
.note-courriel-test { margin: 10px 0; text-align: left; padding: 8px 12px; border-left: 4px solid #ffb703; border-radius: 6px; background: #fff3cd; color: #3a2c00; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pickup-info { white-space: pre-line; }
