/* =========================================================================
   Structure : barre d'annonce, en-tête, navigation, pied de page,
   barre de navigation mobile, bouton WhatsApp flottant.
   ========================================================================= */

/* ---------- Barre d'annonce ---------- */
.announce { background: var(--deep-900); color: #fff; font-size: 12.5px; font-weight: 600; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: 10px; height: 36px; }
.announce__track { position: relative; height: 36px; flex: 1; max-width: 640px; overflow: hidden; text-align: center; }
.announce__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: translateY(100%); transition: all .5s var(--ease); white-space: nowrap; }
.announce__item.is-active { opacity: 1; transform: none; }
.announce__item svg { width: 16px; height: 16px; color: var(--brand-500); }
.announce__item a { text-decoration: underline; text-underline-offset: 3px; }
.announce__side { display: none; color: rgba(255,255,255,.75); }
@media (min-width: 1024px) { .announce .container { justify-content: space-between; } .announce__side { display: flex; gap: 18px; } .announce__side a:hover { color: #fff; } }

/* ---------- En-tête ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(249, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 38px; height: auto; }
.brand__word { display: flex; flex-direction: column; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1; color: var(--ink); letter-spacing: -.01em; }
.brand__word small { font-family: var(--font-body); font-size: 9.5px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: var(--brand-700); margin-top: 3px; }
.header__burger { display: inline-grid; }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.header__search { display: none; }
.header .brand { justify-self: center; }
.header__action-label { display: none; }
.header__track, .header__wa { display: none; }
@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .header__bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; }
  .header__burger { display: none; }
  .header .brand { justify-self: start; }
  .brand__mark { width: 46px; } .brand__word { font-size: 25px; } .brand__word small { font-size: 10.5px; }
  .header__search { display: block; max-width: 560px; width: 100%; justify-self: center; }
  .header__track, .header__wa { display: inline-flex; }
  .header__actions { gap: 6px; }
}

/* Barre de recherche */
.search { position: relative; }
.search input { width: 100%; height: 48px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--white); padding: 0 120px 0 46px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--focus); }
.search > svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search .btn { position: absolute; right: 4px; top: 4px; min-height: 40px; box-shadow: none; }
.search--compact input { height: 44px; padding-right: 16px; }
.search-mobile { padding: 0 0 12px; }
@media (min-width: 1024px) { .search-mobile { display: none; } }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-3); border: 1px solid var(--line); overflow: hidden; z-index: 60; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: var(--fs-sm); }
.suggest a:hover, .suggest a.is-hl { background: var(--cream); }
.suggest .pvisual { width: 42px; flex: none; border-radius: var(--r-sm); }
.suggest__name { flex: 1; font-weight: 600; }
.suggest__all { justify-content: center; font-weight: 700; color: var(--brand-700); border-top: 1px solid var(--line); }

/* Navigation principale (ordinateur) */
.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: block; border-top: 1px solid var(--line); }
  .nav ul { display: flex; align-items: center; gap: 4px; height: 50px; }
  .nav a { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 14px; font-weight: 600; font-size: var(--fs-sm); color: var(--ink-2); border-bottom: 2.5px solid transparent; }
  .nav a:hover { color: var(--ink); }
  .nav a.is-active { color: var(--ink); border-color: var(--brand-500); }
  .nav a.nav__promo { color: var(--accent-600); }
  .nav svg { width: 17px; height: 17px; }
  .nav__right { margin-left: auto; }
}

/* Bandeau « démonstration » */
.demo-strip { background: var(--saffron-50); border-bottom: 1px solid var(--saffron-100); font-size: 12.5px; color: #7A2457; }
.demo-strip .container { display: flex; align-items: center; gap: 10px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.demo-strip svg { width: 16px; height: 16px; flex: none; color: var(--saffron-500); }
.demo-strip p { flex: 1; }
.demo-strip button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; }
.demo-strip button:hover { background: var(--saffron-100); }

/* Menu mobile (tiroir) */
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__nav { padding: 10px; overflow: auto; flex: 1; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--r-md); font-weight: 600; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--cream); }
.drawer__nav a svg { width: 21px; height: 21px; color: var(--ink-3); }
.drawer__nav .drawer__sep { margin: 10px 12px; height: 1px; background: var(--line); }
.drawer__nav .drawer__label { padding: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); }

/* ---------- Contenu ---------- */
main { min-height: 60vh; }
.page { padding-bottom: 56px; }
.section { padding: 40px 0; }
@media (min-width: 1024px) { .section { padding: 64px 0; } }
.section--alt { background: var(--cream-2); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: var(--fs-2xl); margin-top: 6px; }
.section-head p { color: var(--ink-2); margin-top: 6px; font-size: var(--fs-sm); }
.section-head .link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: var(--fs-sm); color: var(--brand-700); white-space: nowrap; }
.section-head .link-more svg { width: 18px; height: 18px; transition: transform .2s; }
.section-head .link-more:hover svg { transform: translateX(3px); }
@media (min-width: 1024px) { .section-head h2 { font-size: var(--fs-3xl); } }
.page-title { font-size: var(--fs-2xl); }
@media (min-width: 1024px) { .page-title { font-size: var(--fs-3xl); } }

/* ---------- Pied de page ---------- */
.footer { background: var(--deep-900); color: rgba(255,255,255,.78); font-size: var(--fs-sm); }
.footer__cta { background: var(--grad-brand); color: #fff; }
.footer__cta .container { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.footer__cta h3 { color: #fff; font-family: var(--font-display); font-size: var(--fs-xl); }
.footer__cta p { color: rgba(255,255,255,.9); }
@media (min-width: 768px) { .footer__cta .container { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer__grid { display: grid; gap: 30px; padding: 44px 0 28px; grid-template-columns: 1fr 1fr; }
.footer__about { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; padding-top: 60px; } .footer__about { grid-column: auto; } }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer__brand img { width: 46px; }
.footer__brand strong { font-family: var(--font-display); font-size: var(--fs-xl); color: #fff; letter-spacing: .02em; }
.footer h4 { color: #fff; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer a:hover { color: #fff; }
.footer__contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer__contact svg { width: 17px; height: 17px; color: var(--brand-500); }
.footer__pay { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid rgba(194, 154, 91, .5); color: var(--saffron-100); font-weight: 700; }
.footer__pay svg { width: 17px; height: 17px; color: var(--saffron-500); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 24px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: rgba(255,255,255,.55); }
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; font-size: 13px; }
.social svg { width: 18px; height: 18px; }
.social:hover { background: rgba(255,255,255,.08); }
.social.is-pending { opacity: .55; cursor: help; }

/* ---------- Navigation basse (mobile) ---------- */
.bottom-nav { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--ink-3); }
.bottom-nav a svg { width: 23px; height: 23px; }
.bottom-nav a.is-active { color: var(--brand-700); }
.bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand-500); }
.bottom-nav .count-bubble { top: 6px; right: calc(50% - 22px); }
body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
body.has-sticky-bar { padding-bottom: calc(var(--bottom-nav-h) + 84px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .bottom-nav { display: none; } body, body.has-sticky-bar { padding-bottom: 0; } }

/* Barre d'action collante (fiche produit, panier, commande — mobile) */
.sticky-bar { position: fixed; z-index: 54; left: 0; right: 0; bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -14px rgba(46, 26, 71,.25); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.sticky-bar__info { flex: none; line-height: 1.2; }
.sticky-bar__info small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.sticky-bar__info strong { font-size: var(--fs-lg); }
.sticky-bar .btn { flex: 1; }
@media (min-width: 1024px) { .sticky-bar { display: none; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float { position: fixed; z-index: 56; right: 14px; bottom: calc(var(--bottom-nav-h) + 14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31, 168, 85, .6); transition: transform .2s, bottom .3s var(--ease); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); }
.wa-float__label { position: absolute; right: 62px; white-space: nowrap; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: var(--r-pill); box-shadow: var(--sh-2); opacity: 0; transform: translateX(6px); transition: all .25s; pointer-events: none; }
.wa-float:hover .wa-float__label { opacity: 1; transform: none; }
body.has-sticky-bar .wa-float { bottom: calc(var(--bottom-nav-h) + 98px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .wa-float, body.has-sticky-bar .wa-float { bottom: 24px; right: 24px; width: 58px; height: 58px; } }
/* Recherche mobile : la touche « Entrée » du clavier suffit, on garde toute la place pour le texte */
@media (max-width: 1023px) { .search .btn { display: none; } .search input { padding-right: 16px; } }
