/* ═══════════════════════════════════════════════════════════════
   MEGAPOS LANDING — Pricing cards redesign + Plan details modal
   Overrides de frontend.css scopés sous #pricing (spécificité ID)
   pour garantir la priorité sans !important.
═══════════════════════════════════════════════════════════════ */

/* ── Grille centrée (Flexbox → justify-content:center garanti) ───── */
#pricing .pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 22px;
    margin: 36px auto 0;
    max-width: 1280px;
    padding: 0 8px;
    box-sizing: border-box;
}
#pricing .pricing-card {
    flex: 0 0 286px;         /* largeur fixe → centrage symétrique */
    max-width: 286px;
    min-width: 0;
    box-sizing: border-box;
}
@media (max-width: 640px) {
    #pricing .pricing-card { flex: 1 1 100%; max-width: 100%; }
}

/* ── Carte plan ────────────────────────────────────────────────── */
#pricing .pricing-card {
    background: #fff;
    border: 1.5px solid #e2e9ff;
    border-radius: 22px;
    padding: 26px 22px 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow .22s, transform .22s, border-color .22s;
    overflow: visible;
    /* NB : flex-basis / max-width définis dans le bloc grille ci-dessus */
}
#pricing .pricing-card:hover {
    box-shadow: 0 12px 40px rgba(26,77,224,.12);
    border-color: #c7d8ff;
    transform: translateY(-4px);
}

/* Featured : gradient profond, suppression du scale */
#pricing .pricing-card.featured {
    background: linear-gradient(155deg, #06185a 0%, #1a3fa0 55%, #1a4de0 100%);
    border: none;
    box-shadow: 0 20px 64px rgba(26,77,224,.38), 0 0 0 1.5px rgba(255,255,255,.06) inset;
    transform: none;
}
#pricing .pricing-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 80px rgba(26,77,224,.48), 0 0 0 1.5px rgba(255,255,255,.1) inset;
}

/* Badge "most popular" */
#pricing .feat-badge {
    position: absolute;
    top: -13px; left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #1c0a00;
    font-size: .62rem; font-weight: 800;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 16px; border-radius: 30px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245,158,11,.4);
}

/* ── En-tête carte (icône + label plan) ────────────────────────── */
.pc-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pc-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* Override font plan : Space Mono → Plus Jakarta Sans */
#pricing .pricing-plan {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.2px;
    text-transform: none;
    margin-bottom: 0;
}
#pricing .pricing-card.featured .pricing-plan { color: #fff; }

/* ── Pill essai gratuit ─────────────────────────────────────────── */
.pricing-trial-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(16,185,129,.1);
    color: #059669;
    border: 1px solid rgba(16,185,129,.25);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: .64rem; font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 8px;
    width: fit-content;
}
.pricing-trial-pill i { font-size: .58rem; }
#pricing .pricing-card.featured .pricing-trial-pill {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.22);
}

/* ── Bloc prix ──────────────────────────────────────────────────── */
.pc-price-wrap { margin-bottom: 6px; }

/* Ligne : prix actuel + badge discount côte à côte */
.pc-now-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

/* Prix barré (visible quand promo active) */
.pc-was-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 4px;
    line-height: 1;
}
.lp-price-was {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    letter-spacing: -.8px;
}
.pc-was-period { font-size: .7rem; color: #94a3b8; }
#pricing .pricing-card.featured .lp-price-was { color: rgba(255,255,255,.45); }
#pricing .pricing-card.featured .pc-was-period { color: rgba(255,255,255,.35); }

/* Badge discount -X% */
.pc-disco-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .6rem; font-weight: 800;
    letter-spacing: .5px; text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    border-radius: 7px;
    padding: 4px 9px;
    align-self: flex-end;
    margin-bottom: 5px;
    box-shadow: 0 3px 10px rgba(239,68,68,.38);
    animation: pulseDisco 2.4s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes pulseDisco {
    0%,100% { transform: scale(1); box-shadow: 0 3px 10px rgba(239,68,68,.38); }
    50%      { transform: scale(1.08); box-shadow: 0 5px 18px rgba(239,68,68,.55); }
}

/* ── Prix principal : gradient text ultra attractif ─────────────── */
#pricing .pricing-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 0;
    color: #1a4de0; /* fallback navigateurs sans gradient text */
}
#pricing .pricing-price .lp-price-amount {
    display: inline-block;
    background: linear-gradient(135deg, #1a4de0 0%, #2563eb 45%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: inherit;
    font-weight: 900;
    letter-spacing: inherit;
    line-height: 1;
}
/* Featured : gradient blanc lumineux */
#pricing .pricing-card.featured .pricing-price { color: #fff; }
#pricing .pricing-card.featured .pricing-price .lp-price-amount {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.88) 60%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255,255,255,.15));
}

/* ── Période / devise ──────────────────────────────────────────── */
/* frontend.css : `.pricing-price span` = (0,1,1) → on monte à (0,2,0) */
.pricing-price .pc-period {
    font-family: 'DM Sans', sans-serif;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: 0;
    color: #64748b;
    margin-left: 1px;
    /* reset gradient text hérité du parent */
    background: none;
    -webkit-text-fill-color: #64748b;
}
#pricing .pricing-card.featured .pricing-price .pc-period {
    color: rgba(255,255,255,.5);
    -webkit-text-fill-color: rgba(255,255,255,.5);
}

/* ── Contact price Enterprise (sans prix défini) ────────────────── */
/* #pricing .pricing-price = (1,1,0) → on monte à (1,2,0) */
#pricing .pricing-price.pc-contact-price {
    font-size: .82rem; font-weight: 600;
    letter-spacing: 0; line-height: 1.3;
    color: #7c3aed;
    /* reset gradient text */
    background: none;
    -webkit-text-fill-color: initial;
    display: inline-flex; align-items: center; gap: 7px;
    background-color: rgba(124,58,237,.08);
    border: 1px solid rgba(124,58,237,.2);
    border-radius: 10px;
    padding: 7px 14px; width: fit-content; margin-top: 2px;
}
#pricing .pricing-price.pc-contact-price i {
    font-size: .78rem; color: #a855f7;
    -webkit-text-fill-color: #a855f7;
}
#pricing .pricing-card.featured .pricing-price.pc-contact-price {
    color: #e9d5ff; -webkit-text-fill-color: #e9d5ff;
    background-color: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25);
}
#pricing .pricing-card.featured .pricing-price.pc-contact-price i {
    color: #d8b4fe; -webkit-text-fill-color: #d8b4fe;
}

/* ── Description ────────────────────────────────────────────────── */
#pricing .pricing-desc {
    font-size: .79rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 12px;
    margin-top: 5px;
}
#pricing .pricing-card.featured .pricing-desc { color: rgba(255,255,255,.65); }

/* ── Séparateur ─────────────────────────────────────────────────── */
#pricing .pricing-hr {
    height: 1px;
    background: #e2e9ff;
    margin-bottom: 10px;
    flex-shrink: 0;
}
#pricing .pricing-card.featured .pricing-hr { background: rgba(255,255,255,.1); }

/* ── Liste features (flex:1 = remplit l'espace → cartes même hauteur) */
#pricing .pricing-feats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    margin-bottom: 12px;
}
#pricing .pf {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .79rem;
    color: #334155;
    line-height: 1.35;
}
#pricing .pf i {
    width: 15px; height: 15px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .58rem; flex-shrink: 0;
    background: rgba(16,185,129,.12);
    color: #10b981;
}
#pricing .pf.off { opacity: .4; }
#pricing .pf.off i { background: #f1f5f9; color: #94a3b8; }
#pricing .pf strong {
    margin-left: auto;
    font-size: .76rem; font-weight: 700;
    color: #1a4de0;
    white-space: nowrap;
    flex-shrink: 0;
}
#pricing .pricing-card.featured .pf { color: rgba(255,255,255,.85); }
#pricing .pricing-card.featured .pf i { background: rgba(255,255,255,.12); color: rgba(255,255,255,.8); }
#pricing .pricing-card.featured .pf.off { opacity: .3; }
#pricing .pricing-card.featured .pf strong { color: #fbbf24; }

/* ── Bouton "Voir tous les détails" ─────────────────────────────── */
.pc-details-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 12px;
    margin-bottom: 8px;
    background: #f5f7ff;
    border: 1.5px solid #dde5ff;
    border-radius: 11px;
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: #1a4de0;
    cursor: pointer;
    transition: background .18s, border-color .18s, color .18s;
    text-align: left;
    flex-shrink: 0;
}
.pc-details-btn .pc-btn-arrow {
    margin-left: auto;
    font-size: .62rem;
    opacity: .5;
    transition: transform .18s, opacity .18s;
}
.pc-details-btn:hover { background: #eaf0ff; border-color: #a5b4fc; }
.pc-details-btn:hover .pc-btn-arrow { transform: translateX(3px); opacity: 1; }

#pricing .pricing-card.featured .pc-details-btn {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
}
#pricing .pricing-card.featured .pc-details-btn:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.35);
    color: #fff;
}

/* ── CTA ────────────────────────────────────────────────────────── */
.pricing-cta-area { flex-shrink: 0; }

/* Base .btn-p : défini globalement pour couvrir aussi la modal */
.btn-p {
    display: block;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem; font-weight: 700;
    padding: 11px;
    border-radius: 11px;
    transition: transform .18s, box-shadow .18s, opacity .18s;
    text-decoration: none;
}
.btn-p-outline {
    border: 1.5px solid #dde5ff;
    color: #1a4de0;
    background: #fff;
}
.btn-p-outline:hover { border-color: #6b93ff; background: #f0f5ff; color: #1338b0; }
.btn-p-filled {
    background: linear-gradient(135deg, #1a4de0, #0c35b5);
    color: #fff;
    border: none;
    box-shadow: 0 6px 20px rgba(26,77,224,.3);
}
.btn-p-filled:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,77,224,.42); color: #fff; }
.btn-p-enterprise {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff; border: none;
    box-shadow: 0 6px 20px rgba(124,58,237,.3);
}
.btn-p-enterprise:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,58,237,.45); color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   CODE PROMO — section entre toggles et grille
═══════════════════════════════════════════════════════════════ */
.lp-promo-wrap {
    text-align: center;
    margin: 0 0 28px;
}
.lp-promo-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
    margin: 0 0 10px;
}
.lp-promo-form {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: #f8f9ff;
    border: 1.5px solid #dde5ff;
    border-radius: 14px;
    padding: 4px 4px 4px 14px;
    max-width: 400px;
    width: 100%;
    transition: border-color .18s, box-shadow .18s;
}
.lp-promo-form:focus-within {
    border-color: #1a4de0;
    box-shadow: 0 0 0 3px rgba(26,77,224,.1);
}
.lp-promo-form > i {
    color: #64748b; font-size: .85rem;
    margin-right: 8px; flex-shrink: 0;
}
.lp-promo-input {
    flex: 1; border: none; background: none; outline: none;
    font-family: 'Space Mono', monospace;
    font-size: .82rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: #0f172a;
    padding: 7px 0; min-width: 0;
}
.lp-promo-input::placeholder {
    font-family: 'DM Sans', sans-serif;
    letter-spacing: normal; text-transform: none;
    font-weight: 400; font-size: .82rem; color: #94a3b8;
}
.lp-promo-input.is-error { animation: promoShake .35s ease; }
@keyframes promoShake {
    0%,100% { transform: translateX(0); }
    20%     { transform: translateX(-6px); }
    40%     { transform: translateX(6px); }
    60%     { transform: translateX(-4px); }
    80%     { transform: translateX(4px); }
}
.lp-promo-btn {
    background: linear-gradient(135deg, #1a4de0, #0c35b5);
    color: #fff; border: none;
    border-radius: 10px; padding: 9px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem; font-weight: 700;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: transform .15s, box-shadow .15s;
}
.lp-promo-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,77,224,.35);
}
.lp-promo-feedback {
    margin-top: 8px;
    display: inline-block;
    font-size: .76rem; font-weight: 600;
    padding: 5px 14px; border-radius: 8px;
    background: #fef2f2; color: #dc2626;
    border: 1px solid #fecaca;
}
/* Bandeau "promo active" */
.lp-promo-active {
    display: inline-flex;
    align-items: center; gap: 10px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    padding: 9px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: .82rem; font-weight: 700;
    color: #15803d;
}
.lp-promo-active i { color: #22c55e; }
.lp-promo-remove {
    background: none; border: none;
    color: #6b7280; cursor: pointer; font-size: .78rem;
    padding: 2px 5px; border-radius: 5px;
    transition: color .15s, background .15s;
}
.lp-promo-remove:hover { color: #dc2626; background: rgba(220,38,38,.08); }

/* ═══════════════════════════════════════════════════════════════
   PLAN DETAILS MODAL — redesign complet
═══════════════════════════════════════════════════════════════ */
.pmodal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,10,25,.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pmodal.is-open {
    display: flex;
    animation: pmFadeIn .22s ease;
}
@keyframes pmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.pmodal-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(10,20,60,.35), 0 0 0 1px rgba(255,255,255,.06);
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: pmSlideUp .28s cubic-bezier(.16,1,.3,1);
}
@keyframes pmSlideUp {
    from { opacity: 0; transform: translateY(28px) scale(.96); }
    to   { opacity: 1; transform: none; }
}

/* ── Header modal ───────────────────────────────────────── */
.pmodal-head {
    padding: 0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}
.pmodal-head-bg {
    background: linear-gradient(135deg, #06185a 0%, #1a3fa0 55%, #1a4de0 100%);
    padding: 22px 24px 18px;
    position: relative;
}
.pmodal-head-bg::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.pmodal-head-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}
.pmodal-head-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    background: rgba(255,255,255,.15);
}
.pmodal-head-text { flex: 1; padding-right: 32px; }
.pmodal-head-plan {
    font-family: 'Space Mono', monospace;
    font-size: .58rem; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 3px;
}
.pmodal-head-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem; font-weight: 800;
    color: #fff; letter-spacing: -.3px;
    margin: 0 0 6px;
}
.pmodal-head-price {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.65rem; font-weight: 800;
    color: #fbbf24;
    letter-spacing: -1.5px; line-height: 1;
}
.pmodal-head-price span {
    font-size: .82rem; font-weight: 500;
    letter-spacing: 0; color: rgba(255,255,255,.5);
}

/* Limites en bas du header */
.pmodal-head-limits {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pmodal-limit-chip {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 8px;
    padding: 4px 10px;
    font-size: .71rem; font-weight: 700;
    color: rgba(255,255,255,.85);
}
.pmodal-limit-chip i { font-size: .7rem; opacity: .7; }
.pmodal-limit-chip strong { font-weight: 800; color: #fbbf24; margin-left: 2px; }

/* Bouton fermer */
.pmodal-close {
    position: absolute;
    top: 14px; right: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.8);
    font-size: .78rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .18s, color .18s;
    z-index: 2;
}
.pmodal-close:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ── Corps modal ────────────────────────────────────────── */
.pmodal-body {
    overflow-y: auto;
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
    scrollbar-color: #d0daff transparent;
}
.pmodal-body::-webkit-scrollbar { width: 5px; }
.pmodal-body::-webkit-scrollbar-thumb { background: #d0daff; border-radius: 4px; }

/* Groupes de features */
.pmodal-group-title {
    font-size: .62rem; font-weight: 800;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #1a4de0;
    padding-bottom: 7px;
    border-bottom: 1.5px solid #e8eeff;
    margin-bottom: 10px;
    display: flex; align-items: center; gap: 6px;
}
.pmodal-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
    font-size: .83rem;
    color: #1e2a45;
    line-height: 1.4;
    border-bottom: 1px solid #f5f7ff;
}
.pmodal-feat:last-child { border-bottom: none; }
.pmodal-feat.excluded { color: #94a3b8; }
.pmodal-feat-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .58rem; flex-shrink: 0;
}
.pmodal-feat.included .pmodal-feat-icon { background: rgba(16,185,129,.1); color: #10b981; }
.pmodal-feat.excluded .pmodal-feat-icon { background: #f1f5f9; color: #cbd5e1; }
.pmodal-feat strong {
    margin-left: auto;
    font-size: .74rem; font-weight: 700;
    color: #1a4de0;
    white-space: nowrap; flex-shrink: 0;
}
.pmodal-feat.excluded strong { color: #cbd5e1; }

/* Badges type établissement */
.pmodal-tag {
    display: inline-flex; align-items: center;
    font-size: .57rem; font-weight: 700;
    letter-spacing: .5px; text-transform: uppercase;
    background: #fff8e6;
    color: #b45309;
    border: 1px solid #fde68a;
    border-radius: 5px;
    padding: 1px 6px;
    margin-left: 5px;
    vertical-align: middle;
    white-space: nowrap;
}

/* ── Pied modal ─────────────────────────────────────────── */
.pmodal-foot {
    padding: 14px 22px;
    border-top: 1px solid #eef0ff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    background: #f8f9ff;
}

/* ── Responsive modal ────────────────────────────────────── */
@media (max-width: 640px) {
    .pmodal {
        align-items: flex-end;
        padding: 0;
        background: rgba(5,10,25,.6);
    }
    .pmodal-box {
        border-radius: 22px 22px 0 0;
        max-height: 93vh;
        animation: pmSlideUpMobile .28s cubic-bezier(.16,1,.3,1);
    }
    @keyframes pmSlideUpMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .pmodal-head-bg { padding: 18px 18px 14px; }
    .pmodal-body { padding: 18px; }
    .pmodal-foot { padding: 12px 18px; }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORIES CAROUSEL — redesign ultra compact
═══════════════════════════════════════════════════════════════ */

/* Wrapper principal */
.lp-cat-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
}

/* Track : overflow caché + fade edges via mask */
.lp-cat-scroll {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    /* Fade doux sur les bords pour signaler le scroll */
    mask-image: linear-gradient(
        to right,
        transparent 0px,
        #000 28px,
        #000 calc(100% - 28px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0px,
        #000 28px,
        #000 calc(100% - 28px),
        transparent 100%
    );
}
/* Pas de fade à gauche quand on est au début */
.lp-cat-scroll.at-start {
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent 100%);
}
/* Pas de fade à droite quand on est à la fin */
.lp-cat-scroll.at-end {
    mask-image: linear-gradient(to right, transparent 0px, #000 28px, #000 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0px, #000 28px, #000 100%);
}
/* Aucun fade si tout rentre */
.lp-cat-scroll.at-start.at-end {
    mask-image: none;
    -webkit-mask-image: none;
}

/* Track interne */
.lp-cat-scroll .lp-type-chips {
    flex-wrap: nowrap;
    justify-content: flex-start;
    transition: transform .36s cubic-bezier(.16,1,.3,1);
    will-change: transform;
    padding: 3px 2px;
}

/* ── Boutons de navigation ── */
.lp-cat-nav {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: .62rem;
    flex-shrink: 0;
    transition: border-color .16s, color .16s, background .16s,
                box-shadow .16s, opacity .2s, transform .16s;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
}
.lp-cat-nav:hover:not(:disabled) {
    border-color: #1a4de0;
    color: #1a4de0;
    background: #eff6ff;
    box-shadow: 0 3px 10px rgba(26,77,224,.18);
    transform: scale(1.1);
}
.lp-cat-nav:active:not(:disabled) { transform: scale(.94); }

/* Disabled = dimmed mais visible (encore au bord d'un overflow) */
.lp-cat-nav:disabled {
    opacity: .32;
    cursor: default;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}
/* Pas d'overflow = cacher les deux boutons complètement */
.lp-cat-carousel:not(.lp-has-overflow) .lp-cat-nav {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .lp-cat-carousel { gap: 4px; max-width: 100%; }
    .lp-cat-nav { width: 24px; height: 24px; font-size: .58rem; }
    .lp-type-chip { padding: 4px 10px 4px 7px; font-size: .72rem; gap: 5px; }
    .lp-type-chip i { font-size: .66rem; }
    .lp-type-chip span { font-size: .72rem; }
}
@media (max-width: 400px) {
    .lp-type-chip { padding: 4px 9px 4px 6px; gap: 4px; }
    .lp-type-chip span { font-size: .68rem; }
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS (promo feedback)
═══════════════════════════════════════════════════════════════ */
@keyframes lpToastIn {
    from { opacity: 0; transform: translateY(-16px) scale(.93); }
    to   { opacity: 1; transform: none; }
}
@keyframes lpToastOut {
    to { opacity: 0; transform: translateY(-10px) scale(.96); pointer-events: none; }
}
