/* =================================================================
   MARAVELE APP — Feuille de style (mobile-first)
   Propriétés logiques (inline-start/end) → prêt pour l'arabe (RTL)
   ================================================================= */

:root {
    --bg: #0B0A09;
    --surface: #171614;
    --surface-2: #1A1916;
    --line: #2A2824;
    --line-2: #3A3732;
    --text: #F3EEE4;
    --muted: #A8A193;
    --gold: #D9B26A;
    --gold-dark: #B88A3E;
    --promo-bg: #E8CDBB;
    --promo-text: #1E1A16;
    --navy: #101820;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius: 18px;
    --gutter: 16px;
    --nav-h: 66px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Conteneur : plein écran sur mobile, centré façon « téléphone » sur grand écran */
.app {
    max-width: 480px;
    margin-inline: auto;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px);
    position: relative;
}

/* ---------------- En-tête ---------------- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 8px 6px;
}
.topbar__actions { display: flex; }

.icon-btn {
    position: relative;
    width: 44px; height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent;
    color: var(--gold);
}

.badge {
    position: absolute;
    inset-block-start: 3px; inset-inline-end: 2px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 9px;
    background: var(--gold); color: var(--bg);
    font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}

.logo { display: flex; flex-direction: column; align-items: center; color: var(--gold); }
.logo__name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; color: var(--text); }
.logo__tag { font-size: 8.5px; letter-spacing: 3px; margin-top: 3px; }

/* ---------------- Contenu ---------------- */
.content { padding-inline: var(--gutter); }

.flash {
    margin: 4px 0 10px; padding: 10px 14px;
    border-radius: 12px; font-size: 13px;
    background: var(--surface-2); border: 1px solid var(--line-2);
}
.flash--success { border-color: var(--gold); }
.flash--error { border-color: #C0504D; }

/* Recherche */
.search {
    display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 16px; margin-top: 4px;
    border-radius: 23px;
    background: var(--surface-2); border: 1px solid var(--line);
    color: #C9C2B5;
}
.search:focus-within { border-color: var(--gold); }
.search input {
    flex: 1; min-width: 0;
    background: transparent; border: 0; outline: none;
    color: var(--text); font: 300 14px var(--sans);
}
.search input::placeholder { color: #8E877B; }
.search input::-webkit-search-cancel-button { filter: invert(1); }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 40px; padding: 0 18px;
    border-radius: 999px; font-size: 13px; font-weight: 500;
    border: 0; align-self: flex-start;
    white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold:active { background: var(--gold-dark); }
.btn--dark { background: var(--navy); color: var(--text); font-size: 12.5px; min-height: 38px; }

.eyebrow { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: #D7D0C3; }
.eyebrow--dark { color: #4A3F35; }

/* ---------------- Hero (carrousel) ---------------- */
.hero { position: relative; margin-top: 16px; }

.hero__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 20px;
    border: 1px solid #332C22;
}
.hero__track::-webkit-scrollbar { display: none; }

.hero__slide {
    position: relative;
    flex: 0 0 100%;
    min-height: 200px;
    scroll-snap-align: start;
    background: #1C1813;
    overflow: hidden;
}
.hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: right center;
}
/* Voile sombre côté texte pour garder la lisibilité quelle que soit la photo */
.hero__slide::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(11,10,9,.85) 0%, rgba(11,10,9,.55) 50%, rgba(11,10,9,0) 75%);
}
[dir="rtl"] .hero__slide::after { transform: scaleX(-1); }

.hero__text {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 8px;
    padding-block: 22px 34px;
    padding-inline: 20px 0;
    max-width: 62%;
}
.hero__title { margin: 0; font: 600 27px/1.02 var(--serif); }
.hero__desc { margin: 0; font-size: 11.5px; color: #D7D0C3; }
.hero__text .btn { margin-top: 4px; }

.hero__dots {
    position: absolute; inset-inline: 0; bottom: 6px;
    display: flex; justify-content: center; gap: 2px;
}
.dot {
    width: 22px; height: 22px; padding: 0;
    border: 0; background: transparent;
    display: inline-flex; align-items: center; justify-content: center;
}
.dot::before {
    content: ""; width: 5px; height: 5px; border-radius: 3px;
    background: #6B655A; transition: width .25s, background .25s;
}
.dot.is-active::before { width: 14px; background: var(--gold); }

/* ---------------- Catégories ---------------- */
.cats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}
.cat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cat__ring {
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #161513; border: 1.5px solid var(--line-2);
    color: var(--gold);
    transition: border-color .2s, transform .2s;
}
.cat:active .cat__ring, .cat:hover .cat__ring { border-color: var(--gold); transform: scale(1.04); }
.cat__label { font-size: 14px; }
.cat__label::after {
    content: ""; display: block;
    width: 48px; height: 3px; margin: 7px auto 0;
    border-radius: 2px; background: var(--cat-color, var(--gold));
}

/* ---------------- Blocs ---------------- */
.block { margin-top: 22px; }
.block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.block__title { margin: 0; font: 600 25px var(--serif); }
.link-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; color: #E9E3D8; }

.empty { color: var(--muted); font-size: 14px; }

/* Défilement horizontal (déborde jusqu'aux bords de l'écran) */
.hscroll {
    display: flex; gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }

/* ---------------- Carte produit ---------------- */
.pcard {
    position: relative;
    flex: 0 0 140px;
    scroll-snap-align: start;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
}
.pcard__img { display: block; position: relative; aspect-ratio: 1; background: #1E1C19; }
.pcard__img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.pcard__tag {
    position: absolute; inset-block-start: 8px; inset-inline-start: 8px;
    padding: 2px 8px; border-radius: 10px;
    background: var(--gold); color: var(--bg);
    font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.fav-form { position: absolute; inset-block-start: 0; inset-inline-end: 0; margin: 0; }
.pcard__fav {
    width: 44px; height: 44px; border: 0; background: transparent;
    display: flex; align-items: center; justify-content: center;
    color: #E9E3D8;
}
.pcard__fav.is-fav { color: var(--gold); }
.pcard__fav.is-fav svg { fill: currentColor; }
.pcard__fav.is-busy { opacity: .5; pointer-events: none; }

.pcard__body { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 12px; }
.pcard__name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__brand { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.pcard__price { margin-top: 6px; font-size: 14px; font-weight: 500; }
.pcard__price del { color: var(--muted); font-size: 11px; font-weight: 400; margin-inline-start: 4px; }
.pcard__rating { display: flex; align-items: center; gap: 2px; margin-top: 4px; color: var(--gold); }
.pcard__rating .star.is-on { fill: currentColor; }
.pcard__rating span { font-size: 11px; color: var(--muted); margin-inline-start: 3px; }

/* ---------------- Offre spéciale ---------------- */
.promo {
    position: relative;
    display: flex; align-items: stretch;
    min-height: 150px; margin-top: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--promo-bg); color: var(--promo-text);
}
.promo__text {
    position: relative; z-index: 1;
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
    padding: 20px;
}
.promo__title { margin: 0; font: 600 30px/1 var(--serif); }
.promo__desc { margin: 0; font-size: 13px; color: #3A3129; }
.promo .btn { margin-top: 10px; }
.promo__img { width: 42%; object-fit: cover; flex: none; }

/* ---------------- Barre de navigation ---------------- */
.bottom-nav {
    position: fixed; z-index: 50;
    inset-inline: 0; bottom: 0;
    max-width: 480px; margin-inline: auto;
    height: calc(var(--nav-h) + var(--safe-bottom));
    padding: 4px 6px var(--safe-bottom);
    display: flex; justify-content: space-around; align-items: center;
    background: rgba(18, 17, 16, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.bottom-nav__item {
    flex: 1; min-height: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-size: 11.5px; color: #B3AC9F;
}
.bottom-nav__item.is-active { color: var(--gold); }
.bottom-nav__item.is-active[href$="/"] svg { fill: currentColor; }
.bottom-nav__icon { position: relative; display: inline-flex; }
.bottom-nav__icon .badge { inset-block-start: -6px; inset-inline-end: -10px; }

/* ---------------- Toast (retours AJAX) ---------------- */
.toast {
    position: fixed; z-index: 60;
    inset-inline: 16px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px);
    max-width: 448px; margin-inline: auto;
    padding: 12px 16px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--gold);
    font-size: 13px; text-align: center;
    opacity: 0; transform: translateY(10px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: none; }

/* ---------------- Écrans plus larges ---------------- */
@media (min-width: 400px) {
    .pcard { flex-basis: 150px; }
}
@media (min-width: 481px) {
    body { background: #050505; }
    .app { background: var(--bg); border-inline: 1px solid #1A1916; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* =================================================================
   PAGES INTÉRIEURES
   ================================================================= */

/* En-tête intérieur */
.topbar--inner { padding-bottom: 10px; }
.topbar__title {
    flex: 1; margin: 0; text-align: center;
    font: 600 22px var(--serif);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn--muted { color: var(--muted); }

/* Textes utilitaires */
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; margin-top: 16px; }
.link-gold { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.link-muted { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; min-height: 44px; }
.notice { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.results-title { font: 500 15px var(--sans); color: var(--muted); margin: 18px 0 4px; }
.prose { color: #D7D0C3; font-size: 14px; line-height: 1.6; }

/* Boutons supplémentaires */
.btn--outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn--block { display: flex; width: 100%; justify-content: center; align-self: stretch; }
.btn--lg { min-height: 52px; font-size: 15px; margin-top: 14px; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }

/* Pastilles de filtre */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
}
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
    flex: none; display: inline-flex; align-items: center; gap: 6px;
    min-height: 40px; padding: 0 16px; border-radius: 20px;
    border: 1px solid var(--line-2); font-size: 14px; white-space: nowrap;
}
.chip span { color: var(--muted); font-size: 12px; }
.chip.is-active { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 500; }

/* Liste catégories */
.catlist { display: flex; flex-direction: column; gap: 10px; }
.catlist__item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    color: var(--muted);
}
.catlist__item .cat__ring { width: 56px; height: 56px; border-color: var(--cat-color); }
.catlist__text { flex: 1; display: flex; flex-direction: column; }
.catlist__label { font: 600 21px var(--serif); color: var(--text); }
.catlist__count { font-size: 12px; }

/* Barre liste (compteur + tri) */
.listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 12px; }
.listbar__count { color: var(--muted); font-size: 13px; }
.sortform { display: flex; gap: 6px; }
.sortform select {
    min-height: 40px; padding: 0 12px; border-radius: 20px;
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--line-2); font: 14px var(--sans);
}

/* Grille produits (2 colonnes mobile, 3 au-delà) */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pgrid .pcard { flex: none; }
@media (min-width: 440px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 4px; }
.pager__btn { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-2); font-size: 14px; }
.pager__info { color: var(--muted); font-size: 13px; }

/* États vides */
.emptybox {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; padding: 48px 12px; color: var(--muted);
}
.emptybox p { margin: 0; line-height: 1.5; }
.emptybox .btn { align-self: center; }
.emptybox__icon {
    width: 76px; height: 76px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--gold);
}

/* Cartes génériques */
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 600 20px var(--serif); }
.card__title svg { color: var(--gold); }

/* Formulaires */
.form { display: flex; flex-direction: column; }
.form label { font-size: 13px; color: #D7D0C3; margin: 12px 0 6px; }
.form label:first-of-type { margin-top: 0; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="password"], .form textarea {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border-radius: 12px; border: 1px solid var(--line-2);
    background: var(--surface-2); color: var(--text);
    font: 16px var(--sans);              /* 16px : pas de zoom auto sur iOS */
}
.form textarea { resize: vertical; min-height: 80px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input[disabled] { opacity: .6; }
.form input[aria-invalid="true"], .form textarea[aria-invalid="true"] { border-color: #E06C6A; }
.form > .btn, .form .btn { margin-top: 16px; }
.field-error { color: #F08A88; font-size: 12.5px; margin: 6px 0 0; }

.radio-card {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px; border-radius: 12px; border: 1px solid var(--line-2);
}
.radio-card.is-checked { border-color: var(--gold); }
.radio-card input { accent-color: var(--gold); margin-top: 3px; }
.radio-card small { color: var(--muted); }

/* Notation (étoiles cliquables, de droite à gauche en CSS) */
.rating-input { border: 0; padding: 0; margin: 0 0 4px; min-width: 0; }
.rating-input legend { font-size: 13px; color: #D7D0C3; margin-bottom: 6px; padding: 0; }
.rating-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { margin: 0 !important; color: var(--line-2); cursor: pointer; padding: 4px; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:checked ~ label svg, .rating-input label:hover svg, .rating-input label:hover ~ label svg { fill: currentColor; }
.rating-input input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 6px; }

/* ---------------- Fiche produit ---------------- */
.product__media {
    position: relative; aspect-ratio: 1;
    border-radius: 22px; overflow: hidden;
    background: #1E1C19; border: 1px solid var(--line);
}
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product__fav { inset-block-start: 6px; inset-inline-end: 6px; }
.product__fav .pcard__fav { background: rgba(11, 10, 9, .6); border-radius: 50%; }
.product__info { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.product__name { margin: 0; font: 600 30px/1.05 var(--serif); }
.product__meta { color: var(--muted); font-size: 13px; }
.product__info .pcard__rating span { font-size: 12.5px; }
.product__price { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.product__price strong { font-size: 24px; font-weight: 500; color: var(--gold); }
.product__price del { color: var(--muted); }
.stock { margin: 6px 0 0; font-size: 13px; }
.stock--ok { color: #8CC48A; }
.stock--ko { color: #F08A88; }

.buybox { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.buybox__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.buybox__actions .btn { min-height: 50px; font-size: 14px; }

.qty {
    display: inline-flex; align-items: center; align-self: flex-start;
    border: 1px solid var(--line-2); border-radius: 26px; overflow: hidden;
}
.qty form { margin: 0; }
.qty__btn {
    width: 44px; height: 44px; border: 0; background: transparent; color: var(--gold);
    display: flex; align-items: center; justify-content: center;
}
.qty input {
    width: 44px; height: 44px; border: 0; background: transparent; color: var(--text);
    text-align: center; font: 500 16px var(--sans); -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty__val { min-width: 28px; text-align: center; font-weight: 500; }
.qty--sm .qty__btn { width: 38px; height: 38px; }

.perks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #D7D0C3; }
.perks li { display: flex; align-items: center; gap: 10px; }
.perks svg { color: var(--gold); flex: none; }

.reviews { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.review { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.review__head .pcard__rating { margin: 0; }
.review__head time { margin-inline-start: auto; color: var(--muted); font-size: 12px; }
.review p { margin: 8px 0 0; font-size: 14px; color: #D7D0C3; }

/* ---------------- Panier ---------------- */
.shipbar { margin-bottom: 14px; font-size: 13px; }
.shipbar p { margin: 0 0 8px; }
.shipbar strong { color: var(--gold); }
.shipbar__track { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.shipbar__track span { display: block; height: 100%; background: var(--gold); border-radius: 3px; transition: width .4s; }

.cart { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.cart__item {
    display: flex; gap: 12px; padding: 10px;
    border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.cart__img { flex: none; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #1E1C19; }
.cart__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart__price { color: var(--gold); font-size: 14px; }
.cart__row { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.cart__row > form { margin: 0; }

.totals { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.totals > div { display: flex; justify-content: space-between; }
.totals__grand { padding-top: 10px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.totals__grand span:last-child { color: var(--gold); }

/* ---------------- Commande ---------------- */
.recap { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.recap li { display: flex; justify-content: space-between; gap: 10px; }
.recap li span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap--img li { align-items: center; }
.recap--img img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #1E1C19; flex: none; }
.recap--img li span:nth-child(2) { flex: 1; }

.success { text-align: center; padding: 18px 0 20px; }
.success__icon {
    width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--bg);
}
.success h2 { margin: 0 0 6px; font: 600 28px var(--serif); }
.success p { margin: 0; color: #D7D0C3; font-size: 14px; }

.order-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-head > div { display: flex; flex-direction: column; }
.order-ref { font-size: 15px; letter-spacing: .5px; }
.address { margin: 0; font-size: 14px; line-height: 1.6; color: #D7D0C3; }
.status { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.status--wait { background: #3A2F1A; color: #F0C978; }
.status--ok   { background: #1D2F3F; color: #8DBAF0; }
.status--done { background: #1E3322; color: #8CC48A; }
.status--ko   { background: #3A1F1F; color: #F08A88; }
.content > .btn--block { margin-top: 10px; }

.orders { list-style: none; padding: 0; margin: 0; }
.order { display: block; }
.order__meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }

/* ---------------- Compte ---------------- */
.auth__head { text-align: center; margin: 8px 0 18px; }
.auth__head h2 { margin: 0 0 4px; font: 600 30px var(--serif); }
.profile { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.profile > div { display: flex; flex-direction: column; min-width: 0; }
.profile__avatar {
    width: 56px; height: 56px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold); color: var(--bg); font: 600 26px var(--serif);
}
.profile__name { font: 600 22px var(--serif); }
.menu { padding: 4px 0; }
.menu a {
    display: flex; align-items: center; gap: 12px;
    min-height: 54px; padding: 0 16px; color: var(--muted);
}
.menu a + a { border-top: 1px solid var(--line); }
.menu a > svg:first-child { color: var(--gold); }
.menu span { flex: 1; color: var(--text); }
.menu em { font-style: normal; font-size: 12px; background: var(--line); color: var(--text); padding: 2px 8px; border-radius: 10px; }

/* =================================================================
   V3 — adaptation à la base Maravele
   ================================================================= */
.logo__img { display: block; height: 50px; width: auto; max-width: 170px; object-fit: contain; }

.hero__slide--produit .hero__img { object-fit: contain; object-position: right center; padding: 14px 10px 14px 45%; }
.hero__slide--produit::after { background: none; }

.pcard__tag--ko { background: #3A1F1F; color: #F08A88; }
.pcard__price small { font-size: 11px; color: var(--muted); font-weight: 400; }

/* Galerie produit (défilement horizontal) */
.gallery { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; padding: 18px; scroll-snap-align: start; }
.gallery__dots { position: absolute; bottom: 10px; inset-inline: 0; display: flex; justify-content: center; gap: 5px; }
.gallery__dots span { width: 6px; height: 6px; border-radius: 3px; background: #6B655A; transition: width .2s, background .2s; }
.gallery__dots span.is-active { width: 16px; background: var(--gold); }

.inspi { margin: 8px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: #D7D0C3; }
.inspi strong { color: var(--text); }
.inspi__pct { margin-inline-start: 6px; padding: 2px 8px; border-radius: 10px; background: var(--gold); color: var(--bg); font-size: 11px; font-weight: 600; }

/* Choix de la contenance */
.variants { border: 0; padding: 0; margin: 0; min-width: 0; }
.variants legend { font-size: 13px; color: #D7D0C3; margin-bottom: 8px; padding: 0; }
.variants__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.variant {
    position: relative; display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px; border-radius: 14px; cursor: pointer;
    background: var(--surface); border: 1.5px solid var(--line-2);
}
.variant input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.variant:has(input:checked) { border-color: var(--gold); background: #1F1B14; }
.variant:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.variant.is-off { opacity: .45; cursor: not-allowed; }
.variant__vol { font-weight: 600; font-size: 15px; }
.variant__prix { color: var(--gold); font-size: 14px; }
.variant__prix del { color: var(--muted); font-size: 11px; margin-inline-start: 4px; }
.variant__stock { font-size: 11px; color: var(--muted); }

/* Notes olfactives */
.notes { margin: 0; display: grid; gap: 8px; }
.notes > div { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.notes dt { color: var(--gold); font-size: 13px; font-weight: 500; }
.notes dd { margin: 0; font-size: 14px; color: #D7D0C3; }

/* Formulaires */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.grid-2 label { margin-top: 12px !important; }
.grid-2 > div:first-child label, .grid-2 > div:nth-child(2) label { margin-top: 0 !important; }
.form .select, select.select {
    width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 16px var(--sans);
}
.form .select:focus { outline: none; border-color: var(--gold); }
.form .select[aria-invalid="true"] { border-color: #E06C6A; }
.form label + .select { margin-bottom: 0; }

.cart__compo { list-style: none; padding: 0; margin: 2px 0; font-size: 12px; color: var(--muted); }
.cart__compo li::before { content: "· "; }
.recap small { font-size: 11.5px; }

/* ---------------- Menu latéral ---------------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .25s; }
.drawer__panel {
    position: absolute; inset-block: 0; inset-inline-start: 0;
    width: min(84vw, 320px); display: flex; flex-direction: column;
    background: #121110; border-inline-end: 1px solid var(--line);
    transform: translateX(-100%); transition: transform .28s ease;
    padding-top: env(safe-area-inset-top, 0px);
}
[dir="rtl"] .drawer__panel { transform: translateX(100%); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__logo { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.drawer__list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
.drawer__link {
    display: flex; align-items: center; gap: 16px;
    min-height: 54px; padding: 0 20px;
    font-size: 16px; color: var(--text);
    border-inline-start: 3px solid transparent;
}
.drawer__link svg { color: var(--gold); flex: none; }
.drawer__link span { flex: 1; }
.drawer__link:hover, .drawer__link:focus-visible { background: var(--surface); }
.drawer__link.is-active { background: var(--surface); border-inline-start-color: var(--gold); color: var(--gold); }
.drawer__link--club span { color: var(--gold); font-weight: 500; }
.drawer__new, .drawer__badge { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--gold); color: var(--bg); }
.drawer__sep { height: 1px; margin: 10px 20px; background: var(--line-2); }
.drawer__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.drawer__foot .drawer__link { padding: 0; border: 0; }
.drawer__foot .btn { margin: 0; }
body.drawer-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__overlay { transition: none; } }

/* ---------------- Slideshow photos (16:9, texte intégré à l'image) ---------------- */
.hero--photos .hero__track { border-radius: 18px; border: 0; }
.hero--photos .hero__slide { min-height: 0; aspect-ratio: 16 / 9; background: #1C1813; }
.hero--photos .hero__slide::after { display: none; }
.hero--photos .hero__slide a, .hero--photos .hero__slide img { display: block; width: 100%; height: 100%; }
.hero--photos .hero__slide img { object-fit: cover; }
.hero--photos .hero__dots { position: static; margin-top: 8px; }
.hero--photos .dot::before { background: #4A453D; }
.hero--photos .dot.is-active::before { background: var(--gold); }

/* ---------------- Club fidélité ---------------- */
.club-intro { text-align: center; padding: 14px 0 6px; }
.club-intro__icon { width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--bg); }
.club-intro h2 { margin: 0 0 6px; font: 600 30px var(--serif); }
.club-intro p { margin: 0; color: #D7D0C3; font-size: 14px; }
.club-steps { list-style: none; padding: 0; margin: 20px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.club-steps li { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.club-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gold); color: var(--gold); font-weight: 600; }
.club-steps small { color: var(--muted); }

.club-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 4px;
    padding: 20px; margin-bottom: 14px; border-radius: 20px;
    background: #17140F; border: 1px solid var(--gold-dark);
    box-shadow: inset 0 0 0 1px rgba(217, 178, 106, .08);
}
.club-card::before { content: ""; position: absolute; inset-inline-end: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(217, 178, 106, .25); }
.club-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--gold); }
.club-card__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.club-card__points { font: 600 44px/1.1 var(--serif); color: var(--text); margin: 8px 0 4px; }
.club-card__points small { font: 400 14px var(--sans); color: var(--muted); }
.club-card__name { font-size: 15px; font-weight: 500; }
.club-card__id { font-size: 12px; color: var(--muted); letter-spacing: 1px; }
.club-next { margin: 0 0 10px; font-size: 14px; }
.club-next strong { color: var(--gold); }
.notice svg { vertical-align: -3px; color: var(--gold); }

.rewards { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.reward { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.reward__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); }
.reward.is-ok { border-color: var(--gold-dark); }
.reward.is-ok .reward__icon { background: var(--gold); color: var(--bg); }
.reward__txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.reward__txt small { color: var(--muted); font-size: 12px; }
.reward__pts { font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; }

.histo { list-style: none; margin: 0; padding: 4px 16px; }
.histo li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.histo li + li { border-top: 1px solid var(--line); }
.histo li > div { display: flex; flex-direction: column; font-size: 14px; }
.histo .plus { color: #8CC48A; }
.histo .moins { color: #F08A88; }
.club-card__code { color: var(--gold); letter-spacing: 2px; font-weight: 600; }
.club-join p { margin: 0 0 12px; font-size: 14px; }
.club-join small { display: block; text-align: center; margin-top: 8px; }
.club-infos { list-style: none; padding: 0; margin: 4px 0 6px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #D7D0C3; }
.club-infos svg { vertical-align: -3px; color: var(--gold); margin-inline-end: 4px; }
.bon-code { font-family: ui-monospace, Consolas, monospace; color: var(--gold); letter-spacing: 1px; }
.content > .btn--outline.btn--block { margin: 0 0 12px; }

/* ---------------- V5 : points estimés ---------------- */
.variant__pts { font-size: 11px; color: var(--gold); }
.totals__pts { color: var(--gold); font-size: 13px; }
.totals__pts svg { vertical-align: -3px; }
.totals small.muted { display: block; font-size: 11.5px; margin-top: -2px; }

/* ---------------- Suivi de commande ---------------- */
.track { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 0 4px; padding: 0; position: relative; }
.track li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.track li::before { content: ""; position: absolute; top: 10px; inset-inline-end: 50%; width: 100%; height: 2px; background: var(--line-2); z-index: 0; }
.track li:first-child::before { display: none; }
.track li.is-done::before, .track li.is-current::before { background: var(--gold); }
.track__dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 2px solid var(--line-2); color: var(--bg); }
.track li.is-done .track__dot { background: var(--gold); border-color: var(--gold); }
.track li.is-current .track__dot { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217, 178, 106, .2); }
.track__lib { font-size: 10.5px; color: var(--muted); }
.track li.is-done .track__lib, .track li.is-current .track__lib { color: var(--text); }
.track li.is-current .track__lib { color: var(--gold); font-weight: 600; }
.suivi { margin: 12px 0 0; font-size: 13px; color: #D7D0C3; }
.suivi svg { vertical-align: -3px; color: var(--gold); }
.content > form > .btn--block { margin-top: 10px; }

/* ---------------- Partage / installation / mot de passe ---------------- */
.product__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.share-btn { flex: none; border: 1px solid var(--line-2); border-radius: 50%; margin-top: 2px; }
.link-forgot { align-self: flex-end; margin-top: 8px; font-size: 13px; color: var(--gold); min-height: 32px; display: inline-flex; align-items: center; }
.install {
    display: flex; align-items: center; gap: 10px;
    margin: 12px 0 0; padding: 10px 6px 10px 12px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--gold-dark);
}
.install[hidden] { display: none; }
.install__icon img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.install__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.install__txt small { color: var(--muted); font-size: 11.5px; }
.install .btn { min-height: 36px; padding: 0 14px; font-size: 12.5px; align-self: center; }

/* L’attribut hidden gagne toujours sur les display des composants */
[hidden] { display: none !important; }

/* =================================================================
   ARABE (RTL)
   ================================================================= */
.lang-btn span {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--gold); color: var(--gold);
    font: 700 14px/1 'Tajawal', var(--sans);
}
.drawer__lang { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 20px 0; }
.drawer__lang-btn {
    min-height: 44px; display: flex; align-items: center; justify-content: center;
    border-radius: 22px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text);
}
.drawer__lang-btn[lang="ar"] { font-family: 'Tajawal', var(--sans); font-size: 15px; }
.drawer__lang-btn.is-active { border-color: var(--gold); color: var(--gold); background: var(--surface); }

/* Polices arabes : Tajawal (texte) + Amiri (titres) */
html[lang="ar"] {
    --sans: 'Tajawal', 'Jost', system-ui, sans-serif;
    --serif: 'Amiri', 'Cormorant Garamond', serif;
}
html[lang="ar"] body { font-size: 15.5px; line-height: 1.55; }
html[lang="ar"] .eyebrow, html[lang="ar"] .logo__tag, html[lang="ar"] .club-card__label,
html[lang="ar"] .pcard__brand { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .hero__title, html[lang="ar"] .block__title, html[lang="ar"] .product__name,
html[lang="ar"] .promo__title, html[lang="ar"] .topbar__title { line-height: 1.35; }

/* Sens des éléments directionnels */
[dir="rtl"] .hero__slide::after { transform: scaleX(-1); }
[dir="rtl"] .hero__slide--produit .hero__img { padding: 14px 45% 14px 10px; object-position: left center; }
/* Seules les flèches/chevrons sont retournés (classe ico-dir ajoutée par icon()) */
[dir="rtl"] svg { transform: none; }
[dir="rtl"] svg.ico-dir { transform: scaleX(-1); }
[dir="rtl"] .track li::before { inset-inline-end: 50%; }
/* Numéros, codes et prix restent de gauche à droite */
[dir="rtl"] .order-ref, [dir="rtl"] .bon-code, [dir="rtl"] .club-card__code,
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }

/* =================================================================
   FENÊTRE DE CONFIRMATION (dialog) — bas d'écran sur mobile, centrée au-delà
   ================================================================= */
.modal {
    width: 100%; max-width: 480px; margin: auto auto 0; padding: 0;
    border: 0; background: transparent; color: var(--text);
    max-height: none; overflow: visible;
}
.modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.modal__box {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
    padding: 26px 22px calc(22px + env(safe-area-inset-bottom, 0px));
    background: #161513; border: 1px solid var(--line-2); border-bottom: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .5);
}
.modal__box::before {     /* poignée */
    content: ""; width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -12px 0 10px;
}
.modal__icone {
    width: 60px; height: 60px; border-radius: 50%; margin-bottom: 6px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(217, 178, 106, .12); color: var(--gold); border: 1px solid rgba(217, 178, 106, .35);
}
.modal--danger .modal__icone { background: rgba(224, 108, 106, .12); color: #F08A88; border-color: rgba(224, 108, 106, .35); }
.modal__titre { margin: 0; font: 600 24px/1.2 var(--serif); }
.modal__msg { margin: 0 0 8px; color: #C9C2B5; font-size: 14px; line-height: 1.5; max-width: 320px; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.modal__actions .btn { justify-content: center; min-height: 50px; font-size: 15px; margin: 0; align-self: stretch; }
.btn--danger { background: #C9504D; color: #fff; }
.btn--danger:active { background: #A8403D; }

/* Animation d'ouverture */
.modal[open] .modal__box { animation: modal-monte .28s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: modal-fond .25s ease; }
@keyframes modal-monte { from { transform: translateY(100%); } to { transform: none; } }
@keyframes modal-fond { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 560px) {
    .modal { margin: auto; max-width: 400px; }
    .modal__box { border-radius: 24px; border-bottom: 1px solid var(--line-2); padding-bottom: 22px; }
    .modal__box::before { display: none; }
    .modal[open] .modal__box { animation-name: modal-zoom; }
    @keyframes modal-zoom { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .modal[open] .modal__box, .modal[open]::backdrop { animation: none; } }

/* Toast (messages AJAX) : même style que la fenêtre */
.toast { border-radius: 14px; background: #161513; border-color: var(--gold-dark); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); font-size: 14px; }

/* =================================================================
   SUGGESTIONS DE RECHERCHE
   ================================================================= */
.search { position: relative; z-index: 30; }
.suggest {
    position: absolute; inset-inline: -1px; top: calc(100% + 6px);
    max-height: min(70vh, 460px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 0; border-radius: 18px;
    background: #161513; border: 1px solid var(--line-2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
    text-align: start;
}
.suggest[hidden] { display: none; }
.suggest__titre {
    padding: 10px 16px 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
}
html[lang="ar"] .suggest__titre { letter-spacing: 0; font-size: 12.5px; }
.suggest__item {
    display: flex; align-items: center; gap: 12px;
    min-height: 56px; padding: 6px 16px; color: var(--text);
}
.suggest__item img, .suggest__ico {
    flex: none; width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #1E1C19;
}
.suggest__ico { display: flex; align-items: center; justify-content: center; color: var(--gold); font: 600 18px var(--serif); border: 1px solid var(--line-2); }
.suggest__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.suggest__txt strong { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest mark { background: none; color: var(--gold); font-weight: 600; }
.suggest__prix { flex: none; font-size: 13px; color: var(--gold); }
.suggest__item:hover, .suggest__item.is-active, .suggest__tout:hover, .suggest__tout.is-active { background: var(--surface-2); }
.suggest__vide { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.suggest__tout {
    display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px;
    border-top: 1px solid var(--line); color: var(--gold); font-size: 13.5px; font-weight: 500;
}

/* =================================================================
   PHOTOS DE PARFUMS : coins arrondis (modifier --radius-photo pour ajuster)
   ================================================================= */
:root { --radius-photo: 12px; }
.pcard__img { padding: 8px; }
.pcard__img img { padding: 0; border-radius: var(--radius-photo); }
.product__media .gallery img,
.product__media > img { padding: 14px; border-radius: calc(var(--radius-photo) + 14px); }
.product__media .gallery img { border-radius: var(--radius-photo); padding: 0; margin: 14px; flex-basis: calc(100% - 28px); width: calc(100% - 28px); height: calc(100% - 28px); }
.product__media > img { padding: 0; margin: 14px; width: calc(100% - 28px); height: calc(100% - 28px); border-radius: var(--radius-photo); }
.cart__img { padding: 4px; }
.cart__img img { padding: 0; border-radius: calc(var(--radius-photo) - 4px); }
.recap--img img, .suggest__item img { border-radius: calc(var(--radius-photo) - 4px); }
.hero__slide--produit .hero__img { border-radius: var(--radius-photo); }

/* =================================================================
   BANDEAU PUBLICITAIRE ANIMÉ
   ================================================================= */
.ticker {
    position: relative; overflow: hidden;
    margin: 14px calc(var(--gutter) * -1) 0;
    background: linear-gradient(90deg, #1A150C, #2A2112 50%, #1A150C);
    border-block: 1px solid rgba(217, 178, 106, .35);
}
/* Fondu sur les bords */
.ticker::before, .ticker::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 28px; z-index: 1; pointer-events: none;
}
.ticker::before { inset-inline-start: 0; background: linear-gradient(to right, #1A150C, transparent); }
.ticker::after  { inset-inline-end: 0;   background: linear-gradient(to left,  #1A150C, transparent); }
[dir="rtl"] .ticker::before { background: linear-gradient(to left, #1A150C, transparent); }
[dir="rtl"] .ticker::after  { background: linear-gradient(to right, #1A150C, transparent); }

.ticker__piste {
    display: flex; width: max-content;
    animation: ticker-defile var(--ticker-duree, 40s) linear infinite;
}
.ticker:hover .ticker__piste, .ticker:active .ticker__piste, .ticker:focus-within .ticker__piste { animation-play-state: paused; }
.ticker__groupe { display: flex; list-style: none; margin: 0; padding: 0; flex: none; }
.ticker__item { display: flex; align-items: center; white-space: nowrap; }
.ticker__item > a, .ticker__item > svg, .ticker__item > span:not(.ticker__sep) { color: var(--text); }
.ticker__item a, .ticker__item { gap: 8px; }
.ticker__item a { display: flex; align-items: center; min-height: 40px; }
.ticker__item svg { color: var(--gold); flex: none; }
.ticker__item span { font-size: 13px; font-weight: 500; letter-spacing: .3px; line-height: 40px; }
.ticker__item a span { text-decoration: underline; text-decoration-color: rgba(217, 178, 106, .5); text-underline-offset: 4px; }
.ticker__sep { color: var(--gold); opacity: .7; font-size: 10px; margin: 0 18px; }

@keyframes ticker-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ticker-defile-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
[dir="rtl"] .ticker__piste { animation-name: ticker-defile-rtl; }

/* Mouvement réduit : pas d'animation, défilement manuel au doigt */
@media (prefers-reduced-motion: reduce) {
    .ticker__piste { animation: none; }
    .ticker { overflow-x: auto; scrollbar-width: none; }
    .ticker__groupe[aria-hidden] { display: none; }
}

/* Bannière par défaut (sans photos de slideshow) : photo du parfum dans un cadre à droite, sans chevaucher le texte */
.hero__slide--produit .hero__img,
[dir="rtl"] .hero__slide--produit .hero__img {
    inset: 14px auto 14px auto; inset-inline-end: 14px;
    width: 38%; height: calc(100% - 28px); padding: 0;
    object-fit: cover; object-position: center; border-radius: var(--radius-photo);
}
.hero__slide--produit .hero__text { max-width: 58%; }

/* =================================================================
   VITRINE ANIMÉE — Parfums d'ambiance (entre « Meilleures ventes » et « Nos coffrets »)
   Photo plein cadre côté fin de ligne, fondue vers le texte. Miroir automatique en arabe.
   ================================================================= */
.vitrine__scene {
    position: relative; height: 250px; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(217, 178, 106, .2);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    isolation: isolate;
}
.vitrine__slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    color: var(--text); overflow: hidden;
    opacity: 0; visibility: hidden; transform: scale(1.02);
    transition: opacity .8s ease, transform .9s ease, visibility 0s .8s;
}
.vitrine__slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; z-index: 1; }

/* Couleurs reprises des étiquettes des flacons */
.vitrine--vanille { --amb-1: #24170D; --amb-2: #5A3C22; --amb-accent: #E9C68F; }
.vitrine--oud     { --amb-1: #070E1C; --amb-2: #1B2F55; --amb-accent: #D9B26A; }
.vitrine--fraise  { --amb-1: #1E0507; --amb-2: #6A1119; --amb-accent: #F2C9A0; }
.vitrine--rose    { --amb-1: #2A1219; --amb-2: #7C4459; --amb-accent: #F6CFDB; }
.vitrine__slide { background: linear-gradient(100deg, var(--amb-1, #1D160C) 0%, var(--amb-2, #4A3818) 100%); }
[dir="rtl"] .vitrine__slide { background: linear-gradient(-100deg, var(--amb-1, #1D160C) 0%, var(--amb-2, #4A3818) 100%); }

/* Photo : zoom lent (effet « Ken Burns ») + fondu vers le texte */
.vitrine__photo {
    position: absolute; inset-block: 0; inset-inline-end: 0; width: 58%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
            mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}
[dir="rtl"] .vitrine__photo {
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 34%);
            mask-image: linear-gradient(to left, transparent 0%, #000 34%);
}
.vitrine__photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
    transform: scale(1.14); transform-origin: 50% 40%;
    transition: transform 7s cubic-bezier(.2, .6, .3, 1);
}
.vitrine__slide.is-active .vitrine__photo img { transform: scale(1); }
.vitrine__voile {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, transparent 35%);
}

/* Reflet doré qui balaie la carte à chaque changement */
.vitrine__brillance {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 236, 190, .16) 50%, transparent 65%);
    transform: translateX(-120%);
}
.vitrine__slide.is-active .vitrine__brillance { animation: vitrine-brillance 1.6s .5s ease-out; }
@keyframes vitrine-brillance { to { transform: translateX(120%); } }
[dir="rtl"] .vitrine__slide.is-active .vitrine__brillance { animation-name: vitrine-brillance-rtl; transform: translateX(120%); }
@keyframes vitrine-brillance-rtl { to { transform: translateX(-120%); } }

/* Volutes parfumées qui montent */
.vitrine__volutes { position: absolute; inset-inline-end: 26%; bottom: 12%; z-index: 2; pointer-events: none; }
.vitrine__volutes i {
    position: absolute; width: 46px; height: 46px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .32) 0%, transparent 70%);
    filter: blur(5px); opacity: 0;
}
.vitrine__slide.is-active .vitrine__volutes i { animation: vitrine-volute 4.5s ease-out infinite; }
.vitrine__slide.is-active .vitrine__volutes i:nth-child(2) { animation-delay: 1.5s; inset-inline-start: 18px; }
.vitrine__slide.is-active .vitrine__volutes i:nth-child(3) { animation-delay: 3s; inset-inline-start: -14px; }
@keyframes vitrine-volute {
    0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
    25%  { opacity: .9; }
    100% { opacity: 0; transform: translate(14px, -150px) scale(2.4); }
}

/* Texte : apparition en cascade */
.vitrine__texte {
    position: relative; z-index: 4; width: 56%; padding: 18px 0 18px 18px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
[dir="rtl"] .vitrine__texte { padding: 18px 18px 18px 0; }
.vitrine__texte > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.vitrine__slide.is-active .vitrine__texte > * { opacity: 1; transform: none; }
.vitrine__slide.is-active .vitrine__texte > :nth-child(1) { transition-delay: .2s; }
.vitrine__slide.is-active .vitrine__texte > :nth-child(2) { transition-delay: .32s; }
.vitrine__slide.is-active .vitrine__texte > :nth-child(3) { transition-delay: .44s; }
.vitrine__slide.is-active .vitrine__texte > :nth-child(4) { transition-delay: .56s; }
.vitrine__slide.is-active .vitrine__texte > :nth-child(5) { transition-delay: .68s; }

.vitrine__surtitre { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--amb-accent, var(--gold)); }
html[lang="ar"] .vitrine__surtitre { letter-spacing: 0; font-size: 12px; }
.vitrine__titre {
    font: 700 38px/1 var(--serif); color: #FFF6E6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vitrine__titre--long { font-size: 28px; }
html[lang="ar"] .vitrine__titre { font-size: 32px; line-height: 1.25; }
.vitrine__desc {
    font-size: 12px; line-height: 1.4; color: rgba(255, 246, 230, .82);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.vitrine__infos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vitrine__volume, .vitrine__bientot, .vitrine__prix {
    display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 11px;
    font-size: 11px; font-weight: 500;
}
.vitrine__volume { border: 1px solid rgba(255, 246, 230, .35); color: #FFF6E6; }
.vitrine__bientot { background: var(--amb-accent, var(--gold)); color: #1A140C; animation: vitrine-pouls 2.2s ease-in-out infinite; }
.vitrine__prix { background: #FFF6E6; color: #1A140C; font-weight: 600; font-size: 12.5px; }
@keyframes vitrine-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 236, 190, .45); } 50% { box-shadow: 0 0 0 6px rgba(255, 236, 190, 0); } }
.vitrine__cta {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; white-space: nowrap;
    min-height: 36px; padding: 0 16px; border-radius: 18px;
    background: var(--gold); color: var(--bg); font-size: 12.5px; font-weight: 600;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

/* Points de progression */
.vitrine__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.vitrine__dot { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.vitrine__dot span { position: relative; width: 8px; height: 5px; border-radius: 3px; background: #4A453D; overflow: hidden; transition: width .3s; }
.vitrine__dot.is-active span { width: 26px; }
.vitrine__dot.is-active span::after {
    content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left;
    animation: vitrine-progres var(--vitrine-duree, 5s) linear forwards;
}
[dir="rtl"] .vitrine__dot.is-active span::after { transform-origin: right; }
.vitrine.is-pause .vitrine__dot.is-active span::after { animation-play-state: paused; }
@keyframes vitrine-progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 420px) { .vitrine__scene { height: 270px; } .vitrine__titre { font-size: 42px; } }
@media (prefers-reduced-motion: reduce) {
    .vitrine__brillance, .vitrine__volutes, .vitrine__bientot { animation: none !important; display: none; }
    .vitrine__slide, .vitrine__texte > *, .vitrine__photo img { transition: none; }
}

/* =================================================================
   BOUTON « PLUS » + PANNEAU QUI MONTE DU BAS — noir & or
   ================================================================= */
button.bottom-nav__item { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; }
.bottom-nav__item[aria-expanded="true"] { color: var(--gold); }
.bottom-nav__item[aria-expanded="true"] svg { transform: rotate(45deg); }
.bottom-nav__item svg { transition: transform .25s; }

.sheet { position: fixed; inset: 0; z-index: 120; --or: linear-gradient(135deg, #F3D99B 0%, #D9B26A 45%, #A87A32 100%); }
.sheet[hidden] { display: none; }
.sheet__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); opacity: 0; transition: opacity .28s; backdrop-filter: blur(3px); }
.sheet__panel {
    position: absolute; inset-inline: 0; bottom: 0; max-width: 480px; margin-inline: auto;
    max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px 18px calc(18px + var(--safe-bottom));
    background:
        radial-gradient(90% 60% at 100% 0%, rgba(217, 178, 106, .14) 0%, transparent 60%),
        radial-gradient(70% 50% at 0% 100%, rgba(217, 178, 106, .08) 0%, transparent 60%),
        #080706;
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -1px 0 rgba(217, 178, 106, .55), 0 -20px 50px rgba(0, 0, 0, .6);
    transform: translateY(105%); transition: transform .38s cubic-bezier(.2, .85, .25, 1);
}
/* Liseré doré en haut du panneau */
.sheet__panel::before {
    content: ""; position: absolute; inset-inline: 22%; top: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, #D9B26A, transparent);
}
.sheet.is-open .sheet__overlay { opacity: 1; }
.sheet.is-open .sheet__panel { transform: translateY(var(--sheet-drag, 0px)); }
.sheet.is-dragging .sheet__panel { transition: none; }
.sheet__poignee { display: block; width: 44px; height: 4px; margin: 4px auto 12px; border-radius: 2px; background: rgba(217, 178, 106, .45); }

.sheet__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.sheet__eyebrow { display: block; font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); opacity: .8; }
.sheet__title {
    margin: 2px 0 0; font: 600 30px/1.05 var(--serif);
    background: var(--or); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .sheet__title { font-size: 25px; line-height: 1.3; }
.sheet__close {
    flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(217, 178, 106, .45); background: transparent; color: var(--gold); cursor: pointer;
}
.sheet__filet { display: block; height: 1px; margin: 14px 0 6px; background: linear-gradient(90deg, rgba(217, 178, 106, .6), rgba(217, 178, 106, .05)); }
[dir="rtl"] .sheet__filet { background: linear-gradient(-90deg, rgba(217, 178, 106, .6), rgba(217, 178, 106, .05)); }

/* Liste des univers : médaillon doré, titre, numéro, flèche */
.sheet__list { list-style: none; margin: 0; padding: 0; }
.sheet__list li + li { border-top: 1px solid rgba(217, 178, 106, .14); }
.sheet__item {
    position: relative; display: flex; align-items: center; gap: 14px;
    min-height: 74px; padding: 10px 4px; color: var(--text);
    opacity: 0; transform: translateY(14px);
    transition: opacity .4s ease, transform .5s cubic-bezier(.2, .85, .25, 1);
}
.sheet.is-open .sheet__item { opacity: 1; transform: none; }
.sheet.is-open li:nth-child(1) .sheet__item { transition-delay: .08s; }
.sheet.is-open li:nth-child(2) .sheet__item { transition-delay: .14s; }
.sheet.is-open li:nth-child(3) .sheet__item { transition-delay: .2s; }
.sheet__medaille {
    flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    background: var(--or); color: #120E08;
    box-shadow: 0 0 0 4px rgba(217, 178, 106, .12), 0 6px 16px rgba(217, 178, 106, .22);
}
.sheet__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sheet__txt strong { font: 600 21px/1.1 var(--serif); color: #FFF6E6; }
html[lang="ar"] .sheet__txt strong { font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.4; }
.sheet__txt small { font-size: 12px; color: #BFA676; }
.sheet__num { font: italic 600 15px/1 var(--serif); color: rgba(217, 178, 106, .45); direction: ltr; }
.sheet__fleche { color: var(--gold); display: inline-flex; transition: transform .2s; }
.sheet__item:active .sheet__fleche { transform: translateX(4px); }
[dir="rtl"] .sheet__item:active .sheet__fleche { transform: translateX(-4px); }
.sheet__item.is-active .sheet__txt strong { color: var(--gold); }
.sheet__item.is-active::before {
    content: ""; position: absolute; inset-inline-start: -18px; top: 18px; bottom: 18px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--gold);
}
[dir="rtl"] .sheet__item.is-active::before { border-radius: 3px 0 0 3px; }

/* Carte vedette : Parfums d'ambiance */
.sheet__vedette {
    position: relative; display: flex; align-items: stretch; overflow: hidden; isolation: isolate;
    margin-top: 10px; min-height: 150px; border-radius: 20px;
    background: linear-gradient(120deg, #15110B 0%, #0A0907 60%);
    border: 1px solid transparent;
    background-clip: padding-box;
    opacity: 0; transform: translateY(16px);
    transition: opacity .45s ease .26s, transform .55s cubic-bezier(.2, .85, .25, 1) .26s;
}
/* Bordure dégradée or */
.sheet__vedette::before {
    content: ""; position: absolute; inset: -1px; z-index: -2; border-radius: 21px;
    background: linear-gradient(135deg, #F3D99B, rgba(217, 178, 106, .15) 40%, rgba(217, 178, 106, .15) 60%, #A87A32);
}
.sheet__vedette::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 20px; background: linear-gradient(120deg, #17120B 0%, #0A0907 65%); }
.sheet.is-open .sheet__vedette { opacity: 1; transform: none; }
.sheet__vedette-photo {
    flex: none; width: 38%; position: relative; overflow: hidden;
    -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 35%); mask-image: linear-gradient(to left, transparent 0%, #000 35%);
}
[dir="rtl"] .sheet__vedette-photo { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%); mask-image: linear-gradient(to right, transparent 0%, #000 35%); }
.sheet__vedette-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transition: transform 6s ease-out; }
.sheet.is-open .sheet__vedette-photo img { transform: scale(1.08); }
.sheet__vedette-txt { flex: 1; min-width: 0; padding: 16px 16px 16px 6px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
[dir="rtl"] .sheet__vedette-txt { padding: 16px 6px 16px 16px; }
.sheet__vedette-txt strong {
    font: 700 24px/1.05 var(--serif);
    background: var(--or); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang="ar"] .sheet__vedette-txt strong { font-size: 21px; line-height: 1.35; }
.sheet__vedette-txt small { font-size: 12px; color: #CFC4AE; }
.sheet__vedette-lien { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--gold); }
.sheet__pastille {
    display: inline-flex; padding: 3px 10px; border-radius: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
    background: var(--or); color: #120E08; text-transform: uppercase;
}
html[lang="ar"] .sheet__pastille { text-transform: none; letter-spacing: 0; }

.sheet__liens { display: flex; gap: 10px; margin-top: 14px; }
.sheet__liens a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; border-radius: 23px; font-size: 13.5px; color: var(--gold);
    border: 1px solid rgba(217, 178, 106, .45); background: rgba(217, 178, 106, .05);
}
.sheet__liens a:active { background: var(--gold); color: #120E08; }
body.sheet-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .sheet__panel, .sheet__item, .sheet__vedette, .sheet__overlay { transition: none; }
}

/* =================================================================
   PAGE PARFUMS D'AMBIANCE (en préparation)
   ================================================================= */
.amb-hero { position: relative; margin-top: 8px; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: #2A1B10; }
.amb-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.amb-hero img.is-active { opacity: 1; animation: amb-zoom 9s ease-out forwards; }
@keyframes amb-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.amb-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 4, .9) 0%, rgba(8, 6, 4, .2) 55%, transparent 100%); }
.amb-hero__texte { position: absolute; inset-inline: 18px; bottom: 16px; z-index: 1; }
.amb-hero__titre { margin: 6px 0 4px; font: 700 32px/1.05 var(--serif); }
html[lang="ar"] .amb-hero__titre { font-size: 27px; line-height: 1.3; }
.amb-hero__texte p { margin: 0; font-size: 13px; color: #E2DACB; }
.amb-statut {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 12px;
    background: var(--gold); color: var(--bg); font-size: 11.5px; font-weight: 600;
}
.amb-statut::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: amb-clignote 1.4s ease-in-out infinite; }
@keyframes amb-clignote { 50% { opacity: .25; } }

.amb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amb-card {
    position: relative; border-radius: 18px; overflow: hidden; scroll-margin-top: 80px;
    background: linear-gradient(180deg, var(--amb-2, #4A3818) 0%, var(--amb-1, #1D160C) 100%);
    border: 1px solid rgba(217, 178, 106, .16);
}
.amb-card:target { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(217, 178, 106, .35); }
.amb-card__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.amb-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; border-radius: 0; }
.amb-card__corps { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.amb-card__corps strong { font: 700 21px/1.1 var(--serif); color: #FFF6E6; }
html[lang="ar"] .amb-card__corps strong { font-size: 18px; }
.amb-card__corps p { margin: 0; font-size: 11.5px; line-height: 1.35; color: rgba(255, 246, 230, .78); }
.amb-card__pied { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.amb-card .vitrine__volume { font-size: 10.5px; }
.amb-card .vitrine__bientot { animation: none; font-size: 10.5px; }
.amb-note { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.amb-note p { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; }
.amb-note .btn + .btn { margin-top: 8px; }

/* Ajustements : volume « 100 ml » toujours lisible en arabe, texte contenu dans sa colonne */
.vitrine__volume { direction: ltr; unicode-bidi: isolate; }
.vitrine__texte > * { max-width: 100%; }
.vitrine__desc { overflow-wrap: anywhere; }
.vitrine__texte { width: 52%; }
.vitrine__photo { width: 55%; }
.vitrine__titre--long { font-size: 24px; }

/* Pages légales (confidentialité, suppression du compte) */
.legal { line-height: 1.65; color: #E2DACB; font-size: 15px; padding-bottom: 32px; }
.legal h2 { margin: 26px 0 8px; font: 600 22px/1.2 var(--serif); color: var(--gold); }
html[lang="ar"] .legal h2 { font-family: inherit; font-weight: 700; font-size: 19px; }
.legal ul, .legal ol { padding-inline-start: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal p a, .legal li a { color: var(--gold); }
.legal__maj { color: var(--muted); font-size: 13px; }
.legal__actions { display: grid; gap: 10px; margin: 26px 0 14px; }

/* Fidélité (visiteur) : boutons Se connecter / Créer mon compte espacés */
.club-actions { display: flex; flex-direction: column; gap: 12px; margin: 16px 0 8px; }
.club-actions > .btn--block { margin: 0; }

/* Carte membre QR (panneau de la page Fidélité) */
.qr-carte { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px auto 8px; padding: 22px 18px 18px;
    max-width: 320px; border-radius: 22px; background: #fff; color: #111; text-align: center;
    box-shadow: 0 0 0 1px rgba(217, 178, 106, .55), 0 18px 40px rgba(0, 0, 0, .45); }
.qr-carte__code { width: min(64vw, 240px); aspect-ratio: 1; }
.qr-carte__code svg { display: block; width: 100%; height: 100%; }
.qr-carte__nom { margin-top: 10px; font: 600 20px/1.2 var(--serif); color: #111; }
.qr-carte__num { font-size: 13px; color: #555; letter-spacing: .5px; }
.qr-carte__num b { color: #111; letter-spacing: 2px; font-size: 15px; }
.qr-carte__pts { margin-top: 6px; padding: 4px 14px; border-radius: 999px; background: #111; color: var(--gold); font-size: 13px; font-weight: 700; }
.qr-carte__aide { margin: 12px auto 4px; max-width: 320px; text-align: center; font-size: 13px; color: var(--muted); }

/* Échange de points dans l'app (page Fidélité) */
.reward { flex-wrap: wrap; }
.reward__form { flex: 1 0 100%; margin: 0; }
.reward__btn { width: 100%; min-height: 42px; display: flex; justify-content: center; align-items: center; }

/* =================================================================
   COFFRET — sélecteur visuel des parfums (pack.php + assets/js/pack.js)
   ================================================================= */
.has-pk { padding-bottom: 170px; }                     /* place pour le plateau collant */
.pk { margin-top: 18px; }
.pk-tete { text-align: center; margin-bottom: 14px; }
.pk-tete__eyebrow { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold); }
.pk-tete__titre { margin: 4px 0 4px; font: 600 28px/1.1 var(--serif); }
.pk-tete__sous { margin: 0; font-size: 13.5px; color: var(--muted); }

/* Recherche + filtres collants */
.pk-outils {
    position: sticky; top: 0; z-index: 20;
    margin-inline: calc(var(--gutter) * -1); padding: calc(env(safe-area-inset-top, 0px) + 8px) var(--gutter) 10px;
    background: var(--bg); box-shadow: 0 10px 14px -10px rgba(0, 0, 0, .8);
}
.pk-recherche {
    display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px;
    border-radius: 25px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
    transition: border-color .2s, box-shadow .2s;
}
.pk-recherche:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 178, 106, .15); color: var(--gold); }
.pk-recherche input {
    flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
    color: var(--text); font: 400 16px var(--sans);                 /* 16px : pas de zoom auto sur iPhone */
}
.pk-recherche input::placeholder { color: #8E877B; }
.pk-recherche input::-webkit-search-cancel-button { display: none; }
.pk-recherche__effacer {
    flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0;
    display: grid; place-items: center; background: var(--line); color: var(--text);
}
.pk-filtres { margin-top: 10px; }
.pk-filtres .chip { min-height: 36px; padding: 0 14px; }
.pk-filtres .chip:not(.is-active) { background: transparent; }
.pk-filtres .chip svg { vertical-align: -2px; }
.pk-filtres .chip.is-active span { color: var(--bg); opacity: .7; }
.pk-compte { margin: 2px 0 10px; font-size: 12.5px; color: var(--muted); }

/* Grille de vignettes */
.pk-grille { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 420px) { .pk-grille { gap: 14px; } }
.pk-item { position: relative; animation: pk-entree .35s ease both; }
.pk-item[hidden] { display: none; }
@keyframes pk-entree { from { opacity: 0; transform: translateY(6px); } }
.pk-carte {
    position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 8px 8px 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface);
    text-align: start; transition: transform .15s ease, border-color .2s, background .2s;
}
.pk-carte:active { transform: scale(.97); }
.pk-photo {
    display: block; width: 100%; aspect-ratio: 1 / .92; margin-bottom: 6px; border-radius: 12px; overflow: hidden;
    background: radial-gradient(70% 60% at 50% 40%, #FFFFFF 0%, #EFE8DA 70%, #E2D7C3 100%);
}
.pk-photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s ease; }
.pk-code { font-size: 10.5px; font-weight: 600; letter-spacing: 1.5px; color: var(--gold); text-transform: uppercase; }
.pk-nom { font: 600 18px/1.1 var(--serif); color: var(--text); overflow-wrap: anywhere; }
.pk-inspi { font-size: 11.5px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pk-inspi b { color: #E9D3A6; font-weight: 500; }
.pk-plus {
    position: absolute; top: 14px; inset-inline-end: 14px; width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center; background: var(--bg); color: var(--gold); border: 1px solid rgba(217, 178, 106, .5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25); transition: transform .2s, opacity .2s;
}
.pk-rupture {
    position: absolute; top: 14px; inset-inline-start: 14px; padding: 3px 9px; border-radius: 999px;
    background: rgba(0, 0, 0, .75); color: #F08A88; font-size: 11px; font-weight: 600;
}
.pk-item.is-rupture .pk-carte { opacity: .45; }
.pk-item.is-rupture .pk-plus { display: none; }

/* Parfum choisi : contour or + compteur */
.pk-item.is-choisi .pk-carte { border-color: var(--gold); background: linear-gradient(180deg, #1F1B14, var(--surface) 60%); }
.pk-item.is-choisi .pk-plus { opacity: 0; transform: scale(.4); }
.pk-compteur {
    position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
    display: flex; align-items: center; height: 38px; padding: 2px; border-radius: 19px;
    background: var(--gold); color: var(--bg); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
    animation: pk-pop .25s ease;
}
.pk-compteur[hidden] { display: none; }
.pk-compteur button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; display: grid; place-items: center; }
.pk-compteur button:active { background: rgba(0, 0, 0, .12); }
.pk-compteur output { min-width: 16px; text-align: center; font-weight: 700; font-size: 15px; }
.pk.is-complet .pk-item:not(.is-choisi) .pk-plus { opacity: .35; }
.pk.is-complet .pk-compteur [data-pk-ajouter] { opacity: .35; }
@keyframes pk-pop { 0% { transform: scale(.6); } 70% { transform: scale(1.08); } 100% { transform: none; } }

.pk-vide { text-align: center; padding: 30px 10px; color: var(--muted); }
.pk-vide svg { color: var(--gold); }
.pk-vide[hidden] { display: none; }

/* Plateau du coffret : collant au-dessus de la barre de navigation */
.pk-plateau {
    position: fixed; z-index: 45; inset-inline: 0; bottom: calc(var(--nav-h) + var(--safe-bottom));
    max-width: 480px; margin-inline: auto; padding: 8px var(--gutter) 10px;
    background: rgba(14, 13, 11, .97); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(217, 178, 106, .35); border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
}
.pk-plateau[hidden] { display: none; }
.pk-plateau__haut { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 28px; }
.pk-etat { font-size: 13px; color: var(--muted); }
.pk-plateau.is-complet .pk-etat { color: var(--gold); font-weight: 600; }
.pk-hasard {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    border: 1px solid var(--line-2); background: transparent; color: var(--gold); font-size: 12.5px;
}
.pk-hasard[hidden] { display: none; }
.pk-slots { list-style: none; margin: 6px 0 8px; padding: 2px 0 0; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.pk-slots::-webkit-scrollbar { display: none; }
.pk-slot {
    position: relative; flex: none; width: 50px; height: 50px; border-radius: 14px;
    border: 1.5px dashed var(--line-2); display: grid; place-items: center;
}
.pk-slot__vide { color: #6F695F; font: 600 18px var(--serif); }
.pk-slot.is-plein { border: 1.5px solid var(--gold); background: radial-gradient(70% 60% at 50% 40%, #FFFFFF 0%, #EADFCB 100%); }
.pk-slot.is-plein .pk-slot__vide { display: none; }
.pk-slot__plein { position: absolute; inset: 0; border: 0; padding: 4px; background: transparent; border-radius: 14px; }
.pk-slot__plein img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pk-slot__x {
    position: absolute; top: -7px; inset-inline-end: -7px; width: 22px; height: 22px; border-radius: 50%;
    display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 15px; line-height: 1; font-weight: 700;
}
.pk-slot.is-pop { animation: pk-pop .35s ease; }
.pk-plateau__actions { display: flex; gap: 8px; }
.pk-plateau__actions .btn { min-height: 48px; }
.pk-plateau__actions .btn--outline { flex: none; width: 54px; padding: 0; justify-content: center; }
.pk-plateau__actions .btn--gold { flex: 1; justify-content: center; }
.pk-plateau__actions .btn:disabled { opacity: .4; }
.pk-plateau.is-complet .btn--gold:not(:disabled) { animation: pk-brille 1.6s ease 1; }
@keyframes pk-brille { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 178, 106, 0); } 40% { box-shadow: 0 0 0 6px rgba(217, 178, 106, .25); } }
.pk-plateau.is-secoue { animation: pk-secoue .4s ease; }
@keyframes pk-secoue { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Photo qui « s'envole » vers le plateau */
.pk-vol { position: fixed; z-index: 70; object-fit: contain; pointer-events: none; border-radius: 12px; mix-blend-mode: normal; }

/* Le toast passe au-dessus du plateau */
body.pk-actif .toast { bottom: calc(var(--nav-h) + var(--safe-bottom) + 170px); }
@media (prefers-reduced-motion: reduce) {
    .pk-item, .pk-compteur, .pk-slot.is-pop, .pk-plateau.is-secoue, .pk-plateau.is-complet .btn--gold { animation: none !important; }
}

/* Retrait en boutique : liens Itinéraire / Téléphone */
.retrait-liens { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.retrait-liens .chip { min-height: 36px; text-decoration: none; }

/* =================================================================
   COMMANDE — mode de livraison, boutiques, recherche de ville
   ================================================================= */
.co-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.co-mode {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 !important;
    padding: 14px 12px; border-radius: 16px; border: 1.5px solid var(--line-2); background: var(--bg); cursor: pointer;
    transition: border-color .2s, background .2s;
}
.co-mode input { position: absolute; opacity: 0; pointer-events: none; }
.co-mode__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--gold); }
.co-mode__txt strong { display: block; font-size: 14.5px; line-height: 1.2; color: var(--text); }
.co-mode__txt small { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.co-mode:has(input:checked) { border-color: var(--gold); background: linear-gradient(180deg, #1F1B14, var(--bg)); }
.co-mode:has(input:checked) .co-mode__ico { background: var(--gold); color: var(--bg); }
.co-mode:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

.co-bloc { margin-top: 14px; }
.co-bloc[hidden] { display: none; }
.co-bloc__titre { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.co-bloc__note { margin: 10px 0 0; font-size: 12.5px; }
.co-boutiques { display: grid; gap: 8px; }
.co-boutique {
    position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 12px 14px;
    border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .2s, background .2s;
}
.co-boutique input { position: absolute; opacity: 0; pointer-events: none; }
.co-boutique__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); }
.co-boutique__corps strong { font-size: 15px; color: var(--text); }
.co-boutique__coche {
    flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2);
    display: grid; place-items: center; color: transparent; transition: all .2s;
}
.co-boutique:has(input:checked) { border-color: var(--gold); background: rgba(217, 178, 106, .07); }
.co-boutique:has(input:checked) .co-boutique__coche { background: var(--gold); border-color: var(--gold); color: var(--bg); }
.co-boutique:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.co-boutique__liens { margin: -2px 0 4px; padding-inline-start: 14px; }
.co-boutique__liens[hidden] { display: none; }

/* Recherche de ville (assets/js/ville-recherche.js) */
.vr-cache { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; }
.vr { position: relative; margin-top: 6px; }
.vr-loupe { position: absolute; top: 0; bottom: 0; inset-inline-start: 14px; display: flex; align-items: center; color: var(--muted); pointer-events: none; }
.vr .vr-champ, .form .vr .vr-champ { width: 100%; margin: 0; padding-inline-start: 44px; padding-inline-end: 44px; font-size: 16px; }
.vr.is-ouvert .vr-champ { border-color: var(--gold); }
.vr-effacer {
    position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%;
    background: var(--line); color: var(--text); font-size: 18px; line-height: 1;
}
.vr-effacer[hidden] { display: none; }
.vr-liste {
    position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; max-height: min(320px, 46vh); overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 6px; list-style: none; border-radius: 16px; border: 1px solid var(--line-2);
    background: var(--surface); box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
.vr-liste[hidden] { display: none; }
.vr-titre { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
.vr-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 10px; cursor: pointer; color: var(--text); }
.vr-option b { color: var(--gold); font-weight: 700; }
.vr-option.is-actif, .vr-option:hover { background: var(--line); }
.vr-option[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .vr-option[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--gold); }
.vr-frais { flex: none; font-size: 12.5px; color: var(--muted); }
.vr-vide { padding: 16px 12px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- Connexion : e-mail OU membre du Club (sans JavaScript) ---------- */
.auth-modes { margin-bottom: 14px; }
.auth:has(.auth-modes input[value="email"]:checked) .auth-form--club,
.auth:has(.auth-modes input[value="club"]:checked) .auth-form--email { display: none; }
.auth-aide { font-size: 12.5px; line-height: 1.45; margin: -2px 0 14px; }

/* ---------- Club : progression vers le bon d'achat (comme l'accueil du Club) ---------- */
.club-goal .club-next.is-ok { color: var(--text); display: flex; gap: 8px; align-items: flex-start; }
.club-goal .club-next.is-ok svg { color: var(--gold); flex: none; margin-top: 1px; }
.club-goal__echelle { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.flash--warning { border-color: #D9A441; }
.club-expire { margin-top: 0; }
.club-infos li { display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.club-infos li svg { flex: none; margin-top: 2px; }
.club-infos strong { color: var(--text); }
