/* ============================================================
   HAPPY MOMENTS — site public
   Crème + chocolat + rouge du bandana de Cookie + jaune du cœur.
   ============================================================ */
:root {
    --hm-cream: #fbf5ec;
    --hm-cream-2: #f5e9d8;
    --hm-pink: #fbe4e0;
    --hm-choco: #4a2e1f;
    --hm-choco-2: #7a4e34;
    --hm-red: #c8463d;
    --hm-red-dark: #a8362f;
    --hm-yellow: #f6c445;
    --hm-text: #3b2a20;
    --hm-muted: #8a7466;
    --hm-white: #fff;
    --hm-radius: 22px;
    --hm-shadow: 0 10px 30px rgba(74, 46, 31, .08);
}

body {
    background: var(--hm-cream);
    color: var(--hm-text);
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}
[dir="rtl"] { font-family: 'Cairo', 'Nunito', sans-serif; text-align: right; }
a { color: var(--hm-red); }
a:hover { color: var(--hm-red-dark); }
h1, h2, h3 { color: var(--hm-choco); font-weight: 800; }
img { max-width: 100%; }

.hm-script { font-family: 'Dancing Script', cursive; font-weight: 700; color: var(--hm-choco); }
.hm-kicker { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--hm-red); margin-bottom: .5rem; }
.hm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- Boutons ---------- */
.hm-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: var(--hm-red); color: #fff; border: 2px solid var(--hm-red);
    padding: .8rem 1.6rem; border-radius: 999px; font-weight: 800; text-decoration: none;
    transition: transform .15s, background .15s, box-shadow .15s; cursor: pointer;
}
.hm-btn:hover { background: var(--hm-red-dark); border-color: var(--hm-red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(200, 70, 61, .25); }
.hm-btn:disabled { opacity: .45; transform: none; box-shadow: none; cursor: not-allowed; }
.hm-btn-ghost { background: transparent; color: var(--hm-choco); border-color: var(--hm-choco); }
.hm-btn-ghost:hover { background: var(--hm-choco); border-color: var(--hm-choco); color: #fff; }
.hm-btn-dark { background: var(--hm-choco); border-color: var(--hm-choco); }
.hm-btn-dark:hover { background: #2f1c12; border-color: #2f1c12; }
.hm-btn-light { background: #fff; color: var(--hm-choco); border-color: #fff; }
.hm-btn-light:hover { background: var(--hm-yellow); border-color: var(--hm-yellow); color: var(--hm-choco); }
.hm-btn-wa { background: #25d366; border-color: #25d366; }
.hm-btn-wa:hover { background: #1da851; border-color: #1da851; }
.hm-btn-sm { padding: .45rem 1rem; font-size: .9rem; }
.hm-btn-icon { width: 40px; height: 40px; padding: 0; }
.hm-link { font-weight: 800; color: var(--hm-red); text-decoration: none; }
.hm-back { color: var(--hm-muted); text-decoration: none; font-weight: 700; }
.hm-back:hover { color: var(--hm-choco); }
.hm-icon-btn { background: none; border: 0; color: var(--hm-muted); font-size: 1.1rem; padding: .4rem; }
.hm-icon-btn:hover { color: var(--hm-red); }

/* ---------- En-tête ---------- */
.hm-topbar { background: var(--hm-choco); color: #f5e9d8; font-size: .85rem; padding: .4rem 0; }
.hm-topbar i { color: var(--hm-yellow); }
.hm-lang a { color: #f5e9d8; text-decoration: none; font-weight: 800; padding: 0 .35rem; opacity: .6; }
.hm-lang a.active { opacity: 1; color: var(--hm-yellow); }
.hm-header { background: rgba(251, 245, 236, .95); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid var(--hm-cream-2); }
.hm-brand img { height: 58px; width: auto; }
.hm-brand .hm-script { font-size: 2rem; }
.hm-header .nav-link { color: var(--hm-choco); font-weight: 700; padding: .5rem .8rem !important; border-radius: 999px; }
.hm-header .nav-link:hover, .hm-header .nav-link.active { color: var(--hm-red); }
.hm-header .nav-link.active { background: var(--hm-pink); }
.hm-header .navbar-toggler { border: 0; font-size: 1.4rem; color: var(--hm-choco); box-shadow: none; }
.hm-cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--hm-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; text-decoration: none; }
.hm-cart-btn:hover { color: #fff; background: var(--hm-red-dark); }
.hm-cart-count { position: absolute; top: -4px; right: -4px; background: var(--hm-yellow); color: var(--hm-choco); font-size: .72rem; font-weight: 800; min-width: 22px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--hm-cream); }
.hm-cart-count.bump { animation: hm-bump .4s; }
@keyframes hm-bump { 50% { transform: scale(1.4); } }

/* ---------- Alertes ---------- */
.hm-alert { padding: .9rem 1.1rem; border-radius: 14px; font-weight: 600; }
.hm-alert-ok { background: #e7f6ea; color: #23633a; }
.hm-alert-err { background: var(--hm-pink); color: var(--hm-red-dark); }

/* ---------- Sections ---------- */
.hm-section { padding: 80px 0; }
.hm-section-cream { background: var(--hm-cream-2); }
.hm-section-pink { background: var(--hm-pink); }
.hm-section-head { text-align: center; max-width: 640px; margin: 0 auto 2.8rem; }
.hm-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hm-section-head p { color: var(--hm-muted); font-size: 1.08rem; margin: 0; }
.hm-h2-left { font-size: 1.6rem; margin-bottom: 1.5rem; }

.hm-page-head { padding: 64px 0 36px; text-align: center; background: radial-gradient(circle at 20% 20%, var(--hm-pink), transparent 55%), radial-gradient(circle at 85% 40%, #fff3d1, transparent 50%); }
.hm-page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.hm-page-head p { color: var(--hm-muted); font-size: 1.1rem; max-width: 640px; margin: .4rem auto 0; }
.hm-page-head-sm { padding: 40px 0 10px; }
.hm-page-head-yellow { background: radial-gradient(circle at 30% 20%, #fff0c4, transparent 60%); }

/* ---------- Accueil ---------- */
.hm-hero { padding: 60px 0 80px; background: radial-gradient(circle at 10% 10%, var(--hm-pink), transparent 45%), radial-gradient(circle at 90% 80%, #fff0c4, transparent 45%); }
.hm-hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.08; margin-bottom: 1.2rem; }
.hm-hero .lead { color: var(--hm-choco-2); font-size: 1.18rem; }
.hm-hero-visual { position: relative; padding: 10px 10px 40px 40px; }
.hm-hero-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; box-shadow: var(--hm-shadow); border: 8px solid #fff; background: var(--hm-cream-2); }
.hm-mascot { position: absolute; left: -10px; bottom: 0; width: 38%; filter: drop-shadow(0 10px 18px rgba(74, 46, 31, .25)); animation: hm-float 4s ease-in-out infinite; }
.hm-bubble { position: absolute; top: 18px; right: 0; background: #fff; padding: .7rem 1.1rem; border-radius: 18px 18px 4px 18px; font-weight: 800; color: var(--hm-choco); box-shadow: var(--hm-shadow); animation: hm-float 4s ease-in-out infinite reverse; }
@keyframes hm-float { 50% { transform: translateY(-10px); } }

.hm-box-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; background: #fff; border-radius: var(--hm-radius); padding: 2rem 1.5rem; text-decoration: none; color: var(--hm-choco); box-shadow: var(--hm-shadow); transition: transform .2s; text-align: center; }
.hm-box-tile:hover { transform: translateY(-6px); color: var(--hm-choco); }
.hm-box-n { width: 74px; height: 74px; border-radius: 50%; background: var(--hm-red); color: #fff; font-size: 2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.hm-box-tile strong { font-size: 1.2rem; }
.hm-box-tile em { font-style: normal; color: var(--hm-red); font-weight: 800; margin-top: .4rem; }

.hm-step { background: #fff; border-radius: var(--hm-radius); padding: 2.2rem 1.5rem; box-shadow: var(--hm-shadow); position: relative; height: 100%; }
.hm-step > i { font-size: 2.2rem; color: var(--hm-red); margin-bottom: 1rem; }
.hm-step h3 { font-size: 1.25rem; }
.hm-step p { color: var(--hm-muted); margin: 0; }
.hm-step-n { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--hm-yellow); color: var(--hm-choco); font-weight: 800; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.hm-event-banner { background: var(--hm-choco); color: #f5e9d8; border-radius: var(--hm-radius); padding: 2.2rem 2.4rem; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.hm-event-banner h2 { color: #fff; margin: .2rem 0 .5rem; }
.hm-event-banner .hm-kicker { color: var(--hm-yellow); }

.hm-review { background: #fff; border-radius: var(--hm-radius); padding: 1.8rem; box-shadow: var(--hm-shadow); height: 100%; }
.hm-review p { font-size: 1.05rem; font-style: italic; }
.hm-review span { color: var(--hm-muted); }
.hm-stars { color: var(--hm-yellow); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: .5rem; }

.hm-cta-card { background: var(--hm-pink); border-radius: var(--hm-radius); padding: 2.4rem; height: 100%; }
.hm-cta-card > i { font-size: 2rem; color: var(--hm-red); margin-bottom: 1rem; }
.hm-cta-card p { color: var(--hm-choco-2); }
.hm-cta-yellow { background: #fff0c4; }
.hm-cta-yellow > i { color: var(--hm-choco); }

/* ---------- Cartes produits ---------- */
.hm-card { background: #fff; border-radius: var(--hm-radius); overflow: hidden; box-shadow: var(--hm-shadow); height: 100%; display: flex; flex-direction: column; transition: transform .2s; }
.hm-card:hover { transform: translateY(-5px); }
.hm-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--hm-cream-2); overflow: hidden; }
.hm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hm-card:hover .hm-card-img img { transform: scale(1.06); }
.hm-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex-grow: 1; }
.hm-card-body h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.hm-card-body h3 a { color: var(--hm-choco); text-decoration: none; }
.hm-card-body p { font-size: .88rem; color: var(--hm-muted); margin-bottom: .6rem; }
.hm-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.is-soldout .hm-card-img img { filter: grayscale(.8); opacity: .7; }
.hm-badge { position: absolute; top: 12px; left: 12px; background: var(--hm-yellow); color: var(--hm-choco); font-weight: 800; font-size: .75rem; padding: .3rem .7rem; border-radius: 999px; }
.hm-badge-dark { background: var(--hm-choco); color: #fff; }
.hm-badge-live { position: static; display: inline-block; background: var(--hm-red); color: #fff; margin-bottom: .5rem; }
.hm-price { font-weight: 800; color: var(--hm-red); font-size: 1.08rem; line-height: 1.2; }
.hm-price s { color: var(--hm-muted); font-weight: 600; font-size: .85em; margin-left: .3rem; }
.hm-price small { display: block; color: var(--hm-muted); font-weight: 600; font-size: .75rem; }
.hm-price-lg { font-size: 1.8rem; }
.hm-price-lg small { font-size: .9rem; }

.hm-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.4rem; }
.hm-filters a { padding: .55rem 1.2rem; border-radius: 999px; background: #fff; color: var(--hm-choco); font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(74, 46, 31, .06); }
.hm-filters a.active, .hm-filters a:hover { background: var(--hm-choco); color: #fff; }

/* ---------- Fiche produit + coffret ---------- */
.hm-product-photo { position: relative; border-radius: var(--hm-radius); overflow: hidden; box-shadow: var(--hm-shadow); background: #fff; }
.hm-product-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hm-product-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.hm-text { font-size: 1.05rem; line-height: 1.75; color: var(--hm-text); }
.hm-qty { display: inline-flex; align-items: center; background: #fff; border-radius: 999px; padding: .25rem; box-shadow: 0 2px 8px rgba(74, 46, 31, .08); }
.hm-qty input, .hm-box-item input { width: 46px; text-align: center; border: 0; background: transparent; font-weight: 800; color: var(--hm-choco); -moz-appearance: textfield; }
.hm-qty input::-webkit-inner-spin-button, .hm-box-item input::-webkit-inner-spin-button { -webkit-appearance: none; }
.hm-qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--hm-cream-2); color: var(--hm-choco); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.hm-qty-btn:hover { background: var(--hm-red); color: #fff; }
.hm-qty-sm .hm-qty-btn { width: 30px; height: 30px; }
.hm-qty-sm input { width: 36px; }

.hm-box-builder { background: #fff; border-radius: var(--hm-radius); padding: 1.4rem; box-shadow: var(--hm-shadow); }
.hm-box-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.hm-box-progress { font-weight: 800; color: var(--hm-red); }
.hm-box-bar { height: 8px; background: var(--hm-cream-2); border-radius: 999px; overflow: hidden; }
.hm-box-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--hm-yellow), var(--hm-red)); transition: width .25s; }
.hm-box-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0; }
.hm-slot { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed #e4cfb6; background-size: cover; background-position: center; transition: transform .2s; }
.hm-slot.filled { border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transform: scale(1.05); }
.hm-box-list { display: flex; flex-direction: column; gap: .5rem; max-height: 380px; overflow-y: auto; }
.hm-box-item { display: flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: 14px; }
.hm-box-item:hover { background: var(--hm-cream); }
.hm-box-item img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.hm-box-item.selected { background: var(--hm-pink); }
.hm-box-full { color: #23633a; font-weight: 800; margin: .8rem 0 0; }
.hm-reassure { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: .6rem; color: var(--hm-choco-2); }
.hm-reassure i { color: var(--hm-red); width: 22px; }

/* ---------- Panier / commande ---------- */
.hm-panel { background: #fff; border-radius: var(--hm-radius); padding: 1.8rem; box-shadow: var(--hm-shadow); }
.hm-panel h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.hm-cart-line { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--hm-cream-2); flex-wrap: wrap; }
.hm-cart-line:last-child { border-bottom: 0; }
.hm-cart-line > img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.hm-cart-name { font-weight: 800; color: var(--hm-choco); text-decoration: none; }
.hm-cart-compo { font-size: .85rem; color: var(--hm-choco-2); }
.hm-cart-total { min-width: 80px; text-align: right; color: var(--hm-choco); }
.hm-summary { position: sticky; top: 100px; }
.hm-sum-row, .hm-sum-item { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; }
.hm-sum-item { border-bottom: 1px dashed var(--hm-cream-2); font-size: .95rem; }
.hm-sum-total { border-top: 2px solid var(--hm-cream-2); margin-top: .5rem; padding-top: .8rem; font-size: 1.2rem; }
.hm-sum-total strong { color: var(--hm-red); }
.hm-pay { background: var(--hm-cream); border-radius: 14px; padding: .9rem 1rem; margin-top: 1rem; font-size: .92rem; }
.hm-mode { display: flex; gap: .8rem; flex-wrap: wrap; }
.hm-mode label { flex: 1; min-width: 140px; cursor: pointer; }
.hm-mode input { position: absolute; opacity: 0; }
.hm-mode span { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; border-radius: 16px; border: 2px solid var(--hm-cream-2); font-weight: 800; color: var(--hm-choco); }
.hm-mode input:checked + span { border-color: var(--hm-red); background: var(--hm-pink); color: var(--hm-red-dark); }
.form-control, .form-select { border-radius: 12px; border-color: #ead9c4; padding: .7rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--hm-red); box-shadow: 0 0 0 .2rem rgba(200, 70, 61, .15); }
.form-label { font-weight: 700; color: var(--hm-choco); font-size: .92rem; }
.form-check-input:checked { background-color: var(--hm-red); border-color: var(--hm-red); }

.hm-empty { text-align: center; padding: 3rem 1rem; }
.hm-empty > i { font-size: 3.4rem; color: var(--hm-red); margin-bottom: 1rem; }
.hm-empty p { color: var(--hm-muted); font-size: 1.1rem; }
.hm-thanks-icon { font-size: 4rem; animation: hm-float 3s ease-in-out infinite; }
.hm-thanks-recap { background: var(--hm-cream); border-radius: 16px; padding: 1.2rem; }

/* ---------- Recettes ---------- */
.hm-recipe-card { display: block; background: #fff; border-radius: var(--hm-radius); overflow: hidden; box-shadow: var(--hm-shadow); text-decoration: none; height: 100%; transition: transform .2s; }
.hm-recipe-card:hover { transform: translateY(-5px); }
.hm-recipe-img { position: relative; aspect-ratio: 4 / 3; background: var(--hm-cream-2); }
.hm-recipe-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-recipe-body { padding: 1.2rem 1.3rem 1.4rem; }
.hm-recipe-body h3 { font-size: 1.15rem; }
.hm-recipe-body p { color: var(--hm-muted); font-size: .95rem; }
.hm-article-title { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.hm-article-img { width: 100%; border-radius: var(--hm-radius); margin: 1.5rem 0; box-shadow: var(--hm-shadow); }
.hm-article { margin-top: 1rem; }
.hm-pagination { display: flex; gap: .4rem; }
.hm-pagination a, .hm-pagination span { min-width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--hm-choco); font-weight: 800; text-decoration: none; }
.hm-pagination .active { background: var(--hm-red); color: #fff; }
.hm-pagination .disabled { opacity: .4; }

/* ---------- Évènements ---------- */
.hm-event { display: flex; gap: 1.5rem; background: #fff; border-radius: var(--hm-radius); overflow: hidden; box-shadow: var(--hm-shadow); margin-bottom: 1.5rem; }
.hm-event > img { width: 280px; object-fit: cover; }
.hm-event-body { padding: 1.6rem; }
.hm-event-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--hm-choco-2); font-weight: 700; }
.hm-event-meta i { color: var(--hm-red); }
.hm-event-past { opacity: .75; margin-bottom: 0; }
.hm-event-past h3 { font-size: 1.1rem; }

/* ---------- Pages diverses ---------- */
.hm-about-img { width: 100%; border-radius: var(--hm-radius); box-shadow: var(--hm-shadow); aspect-ratio: 4 / 5; object-fit: cover; background: var(--hm-cream-2); }
.hm-signature { font-size: 2.6rem; color: var(--hm-red); }
.hm-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; font-size: 1.1rem; font-weight: 700; color: var(--hm-choco); }
.hm-checklist i { color: var(--hm-red); margin-right: .5rem; }
.hm-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .9rem; font-weight: 700; }
.hm-contact-list i { color: var(--hm-red); width: 24px; }
.hm-contact-list a { color: var(--hm-choco); text-decoration: none; }

/* ---------- Pied de page ---------- */
.hm-footer { background: var(--hm-choco); color: #e9d9c6; padding: 70px 0 24px; margin-top: 40px; position: relative; }
.hm-footer-wave { position: absolute; top: -28px; left: 0; right: 0; height: 30px; background: radial-gradient(circle at 15px 0, transparent 15px, var(--hm-choco) 16px) repeat-x; background-size: 30px 30px; transform: rotate(180deg); }
.hm-footer-logo { color: #fff; font-size: 2.3rem; }
.hm-footer h6 { color: var(--hm-yellow); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 1rem; }
.hm-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.hm-footer a { color: #e9d9c6; text-decoration: none; }
.hm-footer a:hover { color: #fff; }
.hm-footer-contact i { color: var(--hm-yellow); width: 22px; }
.hm-socials { display: flex; gap: .6rem; margin-top: 1rem; }
.hm-socials a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.hm-socials a:hover { background: var(--hm-red); color: #fff; }
.hm-socials-dark a { background: var(--hm-cream-2); color: var(--hm-choco); }
.hm-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; text-align: center; opacity: .8; }

.hm-wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; font-size: 1.9rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); z-index: 999; text-decoration: none; }
.hm-wa-float:hover { color: #fff; transform: scale(1.08); }

/* ---------- Téléphone ---------- */
@media (max-width: 991px) {
    .hm-header .navbar-collapse { padding: .8rem 0 1rem; }
    .hm-summary { position: static; }
}
@media (max-width: 767px) {
    .hm-section { padding: 56px 0; }
    .hm-hero { padding: 36px 0 56px; }
    .hm-hero-visual { padding: 0 0 30px 20px; }
    .hm-brand img { height: 46px; }
    .hm-event { flex-direction: column; gap: 0; }
    .hm-event > img { width: 100%; max-height: 220px; }
    .hm-panel { padding: 1.3rem; }
    .hm-cart-line > img { width: 56px; height: 56px; }
    .hm-cart-total { min-width: 0; }
    .hm-card-body { padding: .8rem; }
    .hm-card-body p { display: none; }
    .hm-price { font-size: .98rem; }
    .hm-btn-icon { width: 36px; height: 36px; }
    .hm-event-banner { padding: 1.6rem; }
}

/* ============================================================
   3D, 360° ET ANIMATIONS
   ============================================================ */
.hm-hero { position: relative; overflow: hidden; }
.hm-hero .container { position: relative; z-index: 1; }
.hm-floaters { position: absolute; inset: 0; pointer-events: none; }
.hm-chip { position: absolute; width: 22px; height: 16px; border-radius: 45% 55% 40% 60% / 55% 45% 60% 40%; opacity: .55; will-change: transform; }
.hm-chip-choco { background: var(--hm-choco); }
.hm-chip-gold { background: #d9a066; width: 30px; height: 26px; border-radius: 50%; box-shadow: inset -4px -4px 0 rgba(0,0,0,.08); }
.hm-chip-pink { background: #e48aa0; width: 14px; height: 12px; }

/* Accueil : le cookie 3D remplace la photo dès qu'il est prêt */
.hm-hero-visual { min-height: 420px; }
.hm-hero-3d { display: none; position: absolute; inset: 0; cursor: grab; }
.hm-hero-3d.is-dragging { cursor: grabbing; }
.hm-hero-visual.has-3d .hm-hero-photo { visibility: hidden; }
.hm-hero-visual.has-3d .hm-hero-3d { display: block; }
.hm3d-canvas { width: 100% !important; height: 100% !important; display: block; }
.hm-mascot-bubble { display: none; position: absolute; left: 0; bottom: 6px; width: 120px; height: 120px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; border: 5px solid #fff; box-shadow: var(--hm-shadow); }
.hm-hero-visual.has-3d .hm-mascot-bubble { display: block; }
@media (prefers-reduced-motion: no-preference) {
    .hm-hero-visual.has-3d .hm-mascot-bubble { animation: hm-wave 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
}
@keyframes hm-wave { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg) translateY(-6px); } }
.hm-drag-hint { display: none; position: absolute; right: 8px; bottom: 10px; background: rgba(255,255,255,.85); color: var(--hm-choco); font-weight: 800; font-size: .82rem; padding: .35rem .8rem; border-radius: 999px; pointer-events: none; }
.hm-hero-visual.has-3d .hm-drag-hint { display: inline-block; }
.hm-bubble { z-index: 2; transition: transform .2s; }

/* Fiche produit : onglets 3D / photo */
.hm-product-media { position: relative; }
.hm-view-tabs { display: none; gap: .4rem; margin-bottom: .8rem; }
.hm-product-media.has-3d .hm-view-tabs { display: flex; }
.hm-view-tabs button { border: 0; background: #fff; color: var(--hm-choco); font-weight: 800; padding: .5rem 1rem; border-radius: 999px; box-shadow: 0 2px 8px rgba(74,46,31,.08); }
.hm-view-tabs button.active { background: var(--hm-choco); color: #fff; }
.hm-product-3d { display: none; position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--hm-radius); background: radial-gradient(circle at 50% 40%, #fff 0%, var(--hm-cream-2) 70%); box-shadow: var(--hm-shadow); cursor: grab; overflow: hidden; }
.hm-product-3d.is-dragging { cursor: grabbing; }
.hm-product-media.has-3d .hm-product-3d { display: block; }
.hm-product-media.has-3d [data-view-pane="photo"] { display: none; }
.hm-product-media.has-3d.show-photo [data-view-pane="photo"] { display: block; }
.hm-product-media.has-3d.show-photo .hm-product-3d { display: none; }
.hm-3d-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(255,255,255,.9); color: var(--hm-choco); font-weight: 800; font-size: .85rem; padding: .4rem .9rem; border-radius: 999px; pointer-events: none; white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; z-index: 1; }
.hm-box-3d.is-full::after { content: "🎀"; position: absolute; top: 14px; right: 16px; font-size: 2rem; animation: hm-bump .6s; }

/* Miettes */
.hm-crumb { position: fixed; z-index: 2000; pointer-events: none; border-radius: 40% 60% 50% 50%; }

/* Apparitions au défilement (posées par site.js seulement si on peut animer) */
.hm-anim { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.hm-anim.is-in { opacity: 1; transform: none; }
.hm-card.hm-anim.is-in:hover { transform: translateY(-5px); }

/* Vague entre les sections roses */
.hm-section-pink { position: relative; }
.hm-section-pink::before, .hm-section-pink::after { content: ""; position: absolute; left: 0; right: 0; height: 24px; background: radial-gradient(circle at 12px 0, transparent 12px, var(--hm-pink) 13px) repeat-x; background-size: 24px 24px; }
.hm-section-pink::before { top: -23px; transform: rotate(180deg); }
.hm-section-pink::after { bottom: -23px; }

@media (max-width: 767px) {
    .hm-hero-visual { min-height: 340px; }
    .hm-mascot-bubble { width: 86px; height: 86px; }
}

/* ============================================================
   TÉLÉPHONE : barre du bas, bouton collé, glisser, étapes
   ============================================================ */
.hm-tabbar, .hm-sticky-buy, .hm-stepper, .hm-step-nav { display: none; }

@media (max-width: 991px) {
    body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
    .hm-tabbar {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px);
        border-top: 1px solid var(--hm-cream-2); box-shadow: 0 -6px 20px rgba(74,46,31,.08);
        padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    }
    .hm-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--hm-muted); text-decoration: none; font-size: .68rem; font-weight: 800; padding: 4px 0; }
    .hm-tabbar a i { font-size: 1.15rem; }
    .hm-tabbar a.active { color: var(--hm-red); }
    .hm-tabbar-main i { width: 46px; height: 46px; margin-top: -22px; border-radius: 50%; background: var(--hm-red); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 14px rgba(200,70,61,.35); border: 3px solid #fff; }
    .hm-tabbar-main { color: var(--hm-choco) !important; }
    .hm-tabbar-icon { position: relative; }
    .hm-tabbar-icon b { position: absolute; top: -6px; right: -12px; background: var(--hm-red); color: #fff; font-size: .62rem; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; }
    .hm-cart-btn { display: none; }
    .hm-wa-float { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); width: 50px; height: 50px; font-size: 1.6rem; }

    /* Fiche produit : prix + bouton collés au-dessus de la barre du bas */
    .hm-sticky-buy {
        display: flex; align-items: center; gap: .8rem; position: fixed; left: 0; right: 0; z-index: 1025;
        bottom: calc(64px + env(safe-area-inset-bottom, 0px));
        padding: .6rem max(16px, env(safe-area-inset-right, 0px)) .6rem max(16px, env(safe-area-inset-left, 0px));
        background: rgba(251, 245, 236, .97); backdrop-filter: blur(8px); border-top: 1px solid var(--hm-cream-2);
    }
    .hm-sticky-buy .hm-price { flex: 1; min-width: 0; }
    .hm-sticky-buy .hm-price small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .hm-sticky-buy .hm-btn { padding: .7rem 1.2rem; }
    body:has(.hm-sticky-buy) { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
    body:has(.hm-sticky-buy) .hm-wa-float { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); }

    /* Rangées qui défilent en glissant */
    .hm-swipe { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-right: calc(-1 * max(12px, env(safe-area-inset-right, 0px))); padding-bottom: 8px; }
    .hm-swipe::-webkit-scrollbar { display: none; }
    .hm-swipe > [class*="col-"] { flex: 0 0 72%; max-width: 72%; scroll-snap-align: start; }
    .hm-swipe > .col-md-4 { flex-basis: 84%; max-width: 84%; }

    /* Commande en 3 étapes */
    .hm-stepper { display: flex; list-style: none; padding: 0; margin: 0 0 1.2rem; gap: .4rem; }
    .hm-stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78rem; font-weight: 800; color: var(--hm-muted); position: relative; }
    .hm-stepper li span { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--hm-cream-2); display: flex; align-items: center; justify-content: center; }
    .hm-stepper li.is-current { color: var(--hm-red); }
    .hm-stepper li.is-current span { border-color: var(--hm-red); background: var(--hm-red); color: #fff; }
    .hm-stepper li.is-done span { background: var(--hm-choco); border-color: var(--hm-choco); color: #fff; }
    #hmCheckout.is-stepped [data-step] { display: none; }
    #hmCheckout.is-stepped [data-step].is-current { display: block; animation: hm-step-in .3s ease; }
    #hmCheckout.is-stepped .hm-step-nav { display: flex; gap: .6rem; margin-top: 1.4rem; }
    @keyframes hm-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

    /* Plus d'air pour les doigts */
    .hm-qty-btn { width: 40px; height: 40px; }
    .hm-box-item { padding: .55rem .4rem; }
    .form-control, .form-select { font-size: 16px; } /* évite le zoom automatique sur iPhone */
}
@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    #hmCheckout.is-stepped [data-step].is-current { animation: none; }
}

/* Bouton « Installer l'appli » (pied de page) */
.hm-install { margin-top: 1rem; background: var(--hm-yellow); color: var(--hm-choco); border: 0; border-radius: 999px; padding: .6rem 1.1rem; font-weight: 800; }
.hm-install-ios { margin-top: 1rem; opacity: .85; }

/* ============================================================
   SUIVI DE COMMANDE + MOT CADEAU
   ============================================================ */
.hm-timeline { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; gap: 0; }
.hm-timeline li { display: flex; align-items: center; gap: 1rem; position: relative; padding-bottom: 1.4rem; color: var(--hm-muted); font-weight: 700; }
.hm-timeline li:last-child { padding-bottom: 0; }
.hm-timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 3px; background: var(--hm-cream-2); }
.hm-timeline li:last-child::before { display: none; }
.hm-timeline li.is-done::before { background: var(--hm-choco); }
.hm-timeline-dot { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; border: 3px solid var(--hm-cream-2); position: relative; z-index: 1; }
.hm-timeline li.is-done { color: var(--hm-choco); }
.hm-timeline li.is-done .hm-timeline-dot { background: var(--hm-choco); border-color: var(--hm-choco); color: #fff; }
.hm-timeline li.is-current { color: var(--hm-red); font-size: 1.1rem; }
.hm-timeline li.is-current .hm-timeline-dot { background: var(--hm-red); border-color: var(--hm-red); color: #fff; box-shadow: 0 0 0 6px rgba(200,70,61,.15); }
@media (prefers-reduced-motion: no-preference) {
    .hm-timeline li.is-current .hm-timeline-dot { animation: hm-pulse 1.8s ease-in-out infinite; }
}
@keyframes hm-pulse { 50% { box-shadow: 0 0 0 12px rgba(200,70,61,.08); } }
.hm-track-oven { margin: 1.2rem 0 0; background: #fff3d6; border-radius: 14px; padding: .8rem 1rem; font-weight: 700; color: var(--hm-choco); }
.hm-gift-note { display: flex; gap: .8rem; align-items: center; text-align: left; background: var(--hm-pink); border-radius: 16px; padding: 1rem 1.2rem; }
.hm-gift-note i { font-size: 1.6rem; color: var(--hm-red); }

.hm-gift-page { min-height: 70vh; background: radial-gradient(circle at 50% 20%, var(--hm-pink), transparent 60%); }
.hm-envelope { position: relative; perspective: 1200px; }
.hm-envelope-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; width: 100%; aspect-ratio: 3 / 2; border: 0; border-radius: 18px; background: linear-gradient(160deg, #f3dcc7, #e7c3a3); box-shadow: var(--hm-shadow); position: relative; overflow: hidden; cursor: pointer; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.hm-envelope-flap { position: absolute; top: 0; left: 0; right: 0; height: 55%; background: linear-gradient(180deg, #e9cbb0, #dcb291); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform .6s; }
.hm-envelope-seal { position: relative; z-index: 1; width: 64px; height: 64px; border-radius: 50%; background: var(--hm-red); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 10px rgba(0,0,0,.2); margin-top: 18%; }
.hm-envelope-to { position: relative; z-index: 1; font-family: 'Dancing Script', cursive; font-size: 2rem; color: var(--hm-choco); }
.hm-envelope-hint { position: relative; z-index: 1; font-weight: 800; color: var(--hm-choco-2); font-size: .9rem; }
@media (prefers-reduced-motion: no-preference) {
    .hm-envelope:not(.is-open) .hm-envelope-front { animation: hm-wiggle 2.6s ease-in-out infinite; }
}
@keyframes hm-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-2deg); } 90% { transform: rotate(2deg); } 95% { transform: rotate(-1deg); } }
.hm-gift-card { display: none; background: #fff; border-radius: 22px; padding: 1.6rem; text-align: center; box-shadow: var(--hm-shadow); }
.hm-envelope.is-open .hm-envelope-flap { transform: rotateX(180deg); }
.hm-envelope.is-open .hm-envelope-front { display: none; }
.hm-envelope.is-open .hm-gift-card { display: block; animation: hm-card-up .7s cubic-bezier(.2,.8,.2,1); }
@keyframes hm-card-up { from { opacity: 0; transform: translateY(40px) scale(.95); } to { opacity: 1; transform: none; } }
.hm-gift-3d { height: 220px; margin: -.5rem auto 0; max-width: 320px; }
.hm-gift-hello { font-size: 2rem; margin: .4rem 0 1rem; color: var(--hm-red); }
.hm-gift-message { font-size: 1.25rem; font-style: italic; color: var(--hm-choco); line-height: 1.6; }
.hm-gift-from { font-weight: 800; color: var(--hm-choco); }

/* ============================================================
   QUIZ « QUEL COOKIE ES-TU ? »
   ============================================================ */
.hm-quiz-page { background: radial-gradient(circle at 20% 10%, var(--hm-pink), transparent 50%), radial-gradient(circle at 90% 80%, #fff0c4, transparent 50%); }
.hm-quiz { text-align: center; padding: 2.4rem 1.8rem; }
.hm-quiz-screen { display: none; }
.hm-quiz-screen.is-current { display: block; animation: hm-step-in .35s ease; }
.hm-quiz-emoji { font-size: 4rem; }
.hm-quiz-progress { height: 8px; background: var(--hm-cream-2); border-radius: 999px; overflow: hidden; margin-bottom: 1.4rem; }
.hm-quiz-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--hm-yellow), var(--hm-red)); }
.hm-quiz-answers { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.hm-quiz-answers button { border: 2px solid var(--hm-cream-2); background: #fff; border-radius: 18px; padding: 1.1rem .8rem; font-weight: 800; color: var(--hm-choco); min-height: 76px; transition: transform .15s, border-color .15s, background .15s; }
.hm-quiz-answers button:hover, .hm-quiz-answers button:focus-visible { border-color: var(--hm-red); background: var(--hm-pink); transform: translateY(-2px); }
.hm-quiz-result-name { font-size: clamp(2.4rem, 7vw, 3.4rem); color: var(--hm-red); margin: .2rem 0 0; }
.hm-quiz-3d { height: 260px; max-width: 360px; margin: 0 auto; cursor: grab; }
.hm-quiz-story { max-width: 180px; border-radius: 14px; box-shadow: var(--hm-shadow); }
@keyframes hm-step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (max-width: 575px) { .hm-quiz-answers { grid-template-columns: 1fr; } .hm-quiz { padding: 1.6rem 1.1rem; } }

/* Carte « quiz » de l'accueil */
.hm-cta-quiz { background: linear-gradient(135deg, var(--hm-choco), #6b3f29); color: #f5e9d8; }
.hm-cta-quiz h3 { color: #fff; }
.hm-cta-quiz p { color: #f0dcc6; }
.hm-cta-quiz > i { color: var(--hm-yellow); }
@media (max-width: 767px) { .hm-floaters { opacity: .35; } .hm-chip { transform: scale(.7); } }

/* Réalité augmentée : le visualiseur reste caché, seul le bouton s'affiche (sur les téléphones compatibles) */
.hm-ar-viewer { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hm-ar-btn { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; width: 100%; justify-content: center; border: 2px dashed var(--hm-red); background: #fff; color: var(--hm-red); font-weight: 800; border-radius: 999px; padding: .75rem 1rem; }
.hm-ar-btn.d-none { display: none !important; }

/* ============================================================
   VAGUE 2 : calendrier, promo, éditions limitées, ingrédients,
   galerie, retours, box du mois, mascotte, arabe
   ============================================================ */

/* Calendrier des jours de commande */
.hm-days { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem .1rem .9rem; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hm-day { position: relative; flex: 0 0 70px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: .55rem .3rem; border: 2px solid var(--hm-cream-2); border-radius: 16px; background: #fff; cursor: pointer; scroll-snap-align: start; transition: border-color .15s, transform .15s; }
.hm-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hm-day-name { font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--hm-muted); }
.hm-day-num { font-size: 1.4rem; font-weight: 800; color: var(--hm-choco); line-height: 1.1; }
.hm-day-month { font-size: .72rem; color: var(--hm-muted); }
.hm-day-tag { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); background: var(--hm-choco); color: #fff; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.hm-day.is-open:hover { border-color: var(--hm-red); transform: translateY(-2px); }
.hm-day:has(input:checked) { border-color: var(--hm-red); background: var(--hm-red); }
.hm-day:has(input:checked) span { color: #fff; }
.hm-day:has(input:focus-visible) { outline: 3px solid var(--hm-yellow); outline-offset: 2px; }
.hm-day.is-full, .hm-day.is-closed { opacity: .45; cursor: not-allowed; background: var(--hm-cream); }
.hm-day.is-closed .hm-day-num { text-decoration: line-through; }

/* Code promo */
.hm-promo-form { display: flex; gap: .5rem; margin: .6rem 0 .4rem; }
.hm-promo-form .form-control { text-transform: uppercase; }
.hm-promo-applied { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #e7f6ea; color: #23633a; border-radius: 12px; padding: .5rem .8rem; margin: .5rem 0; font-size: .92rem; }
.hm-promo-applied.is-off { background: var(--hm-pink); color: var(--hm-red-dark); }
.hm-sum-discount strong { color: #23633a; }

/* Éditions limitées */
.hm-badge-limited { background: var(--hm-red); color: #fff; }
.hm-limited { display: inline-flex; align-items: center; gap: .5rem; margin-top: .8rem; background: #fff3d6; color: var(--hm-choco); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; }
.hm-limited strong { color: var(--hm-red); font-variant-numeric: tabular-nums; }
.hm-limited-banner { display: flex; align-items: center; gap: 1.5rem; background: linear-gradient(120deg, var(--hm-choco), #7a3f2b); color: #f5e9d8; border-radius: var(--hm-radius); padding: 1.2rem; text-decoration: none; box-shadow: var(--hm-shadow); flex-wrap: wrap; }
.hm-limited-banner:hover { color: #fff; }
.hm-limited-banner img { width: 130px; height: 130px; object-fit: cover; border-radius: 18px; border: 4px solid rgba(255,255,255,.2); }
.hm-limited-banner h2 { color: #fff; margin: .1rem 0 .3rem; }
.hm-limited-banner .hm-kicker { color: var(--hm-yellow); }
.hm-limited-clock strong { color: var(--hm-yellow); font-variant-numeric: tabular-nums; font-size: 1.1rem; }

/* Ingrédients et allergènes */
.hm-ingredients { margin-top: 1.4rem; background: #fff; border-radius: 16px; padding: .9rem 1.1rem; box-shadow: 0 2px 10px rgba(74,46,31,.05); }
.hm-ingredients summary { font-weight: 800; color: var(--hm-choco); cursor: pointer; }
.hm-ingredients p { margin: .6rem 0 0; color: var(--hm-choco-2); }
.hm-allergens { list-style: none; padding: 0; margin: .3rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.hm-allergens li { background: var(--hm-pink); color: var(--hm-red-dark); border-radius: 999px; padding: .25rem .7rem; font-size: .85rem; font-weight: 700; }

/* Galerie Instagram */
.hm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.hm-gallery-item { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--hm-cream-2); }
.hm-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hm-gallery-item:hover img { transform: scale(1.07); }
.hm-gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .7rem .6rem; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-weight: 700; font-size: .85rem; opacity: 0; transition: opacity .2s; }
.hm-gallery-item:hover span { opacity: 1; }
@media (max-width: 767px) { .hm-gallery { grid-template-columns: repeat(2, 1fr); } .hm-gallery-item span { opacity: 1; } }

/* Mur des retours */
.hm-reviews-wall { columns: 3 260px; column-gap: 1rem; }
.hm-review-tile { break-inside: avoid; margin: 0 0 1rem; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--hm-shadow); }
.hm-review-tile img { width: 100%; display: block; }
.hm-review-tile figcaption { padding: 1rem 1.1rem; }
.hm-review-tile figcaption p { font-style: italic; margin-bottom: .5rem; }
.hm-review-tile figcaption span { color: var(--hm-muted); }

/* Box du mois */
.hm-sub-banner { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: #fff0c4; border-radius: var(--hm-radius); padding: 1.6rem 2rem; }
.hm-sub-banner h2 { margin: .1rem 0 .3rem; }
.hm-sub-emoji { font-size: 3rem; line-height: 1; }
.hm-sub-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.hm-sub-steps li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; font-weight: 700; color: var(--hm-choco); }
.hm-sub-steps li::before { content: counter(s); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--hm-red); color: #fff; display: flex; align-items: center; justify-content: center; }

/* Cookie, la mascotte compagnon */
.hm-buddy { position: fixed; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 998; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; pointer-events: none; }
.hm-buddy > * { pointer-events: auto; }
.hm-buddy-face { width: 64px; height: 64px; border-radius: 50%; padding: 0; border: 3px solid #fff; background: var(--hm-cream-2); box-shadow: 0 8px 20px rgba(74,46,31,.25); overflow: hidden; cursor: pointer; }
.hm-buddy-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-buddy-bubble { position: relative; max-width: 240px; background: #fff; color: var(--hm-choco); font-weight: 700; font-size: .9rem; padding: .7rem 2rem .7rem .9rem; border-radius: 16px 16px 16px 4px; box-shadow: var(--hm-shadow); animation: hm-card-up .35s ease; }
.hm-buddy-bubble[hidden] { display: none; }
.hm-buddy-close { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--hm-muted); font-size: 1.1rem; line-height: 1; padding: 2px 4px; }
@media (prefers-reduced-motion: no-preference) {
    .hm-buddy-face { animation: hm-float 3.5s ease-in-out infinite; }
    .hm-buddy.is-jump .hm-buddy-face { animation: hm-buddy-jump .7s ease; }
    .hm-buddy.is-dance .hm-buddy-face { animation: hm-buddy-dance 1.2s ease-in-out 3; }
    .hm-buddy.is-wiggle .hm-buddy-face { animation: hm-wiggle 1s ease; }
}
@keyframes hm-buddy-jump { 30% { transform: translateY(-26px) scale(1.08); } 55% { transform: translateY(0) scale(.95, 1.05); } 75% { transform: translateY(-8px); } }
@keyframes hm-buddy-dance { 25% { transform: rotate(-14deg) translateY(-6px); } 50% { transform: rotate(0) translateY(0); } 75% { transform: rotate(14deg) translateY(-6px); } }
@media (max-width: 991px) {
    .hm-buddy { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    body:has(.hm-sticky-buy) .hm-buddy { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
    .hm-buddy-face { width: 52px; height: 52px; }
}

/* ---------- Arabe : lecture de droite à gauche ---------- */
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hm-btn, [dir="rtl"] .form-control { font-family: 'Cairo', 'Nunito', sans-serif; }
[dir="rtl"] .hm-script { font-family: 'Dancing Script', cursive; }
[dir="rtl"] .hm-badge { left: auto; right: 12px; }
[dir="rtl"] .hm-timeline li::before { left: auto; right: 21px; }
[dir="rtl"] .fa-arrow-right, [dir="rtl"] .fa-arrow-left { transform: scaleX(-1); }
[dir="rtl"] .hm-cart-total { text-align: left; }
[dir="rtl"] .hm-checklist i { margin-right: 0; margin-left: .5rem; }
[dir="rtl"] .hm-buddy { left: auto; right: calc(16px + env(safe-area-inset-right, 0px)); align-items: flex-end; }
[dir="rtl"] .hm-buddy-bubble { border-radius: 16px 16px 4px 16px; padding: .7rem .9rem .7rem 2rem; }
[dir="rtl"] .hm-buddy-close { right: auto; left: 6px; }
[dir="rtl"] .hm-wa-float { right: auto; left: 18px; }
[dir="rtl"] .hm-mascot-bubble { left: auto; right: 0; }
[dir="rtl"] .hm-bubble { right: auto; left: 0; border-radius: 18px 18px 18px 4px; }
[dir="rtl"] .hm-drag-hint { right: auto; left: 8px; }
