.services-page .horizontal-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px 16px;
    gap: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.services-page .horizontal-scroll::-webkit-scrollbar {
    display: none;
}
.services-page .horizontal-scroll ion-chip {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 20px;
    padding: 0 14px;
    background: linear-gradient(145deg, #f5f5f5, #e8e8e8);
    color: #452422;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}
.services-page .horizontal-scroll ion-chip::part(native) {
    padding: 8px 14px;
}
.services-page .horizontal-scroll ion-chip[color="secondary"] {
    background: linear-gradient(135deg, #ca9b50, #f5e179);
    color: white;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: scale(1.05);
}
.produit-card {
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.produit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.services-page .produit-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.produit-image-wrapper {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f7f7f7;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.produit-image-wrapper img.produit-image {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.services-page .produit-card h3 {
    font-family: var(--font-title);
    font-size: 16px;
    color: #452422;
    margin: 8px 0 4px;
    min-height: 40px;
}

.services-page .produit-card p {
    font-family: var(--font-body);
    font-size: 14px;
    color: #666;
    min-height: 40px;
}

/*.services-page .produit-card {*/
/*    border-radius: 14px;*/
/*    overflow: hidden;*/
/*    text-align: center;*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    height: 100%;*/
/*    min-height: 290px;*/
/*    margin: 6px;*/
/*}*/
/*.services-page .produit-card img {*/
/*    width: 100%;*/
/*    height: 140px;*/
/*    object-fit: cover;*/
/*}*/
/*.services-page .produit-card h3 {*/
/*    font-size: 16px;*/
/*    font-weight: bold;*/
/*    color: #333;*/
/*    margin: 8px 0 4px;*/
/*    min-height: 40px;*/
/*}*/
/*.services-page .produit-card p {*/
/*    font-size: 13px;*/
/*    color: #666;*/
/*    min-height: 35px;*/
/*}*/

.services-page .custom-title {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--ion-color-tertiary);
    margin-bottom: 10px;
}

.services-page .produit-prix {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 0.5rem;
}

.services-page .produit-prix .prix-membre {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--ion-color-secondary);
}
.services-page .produit-prix .prix-public {
    text-decoration: line-through;
    color: gray;
    font-size: 0.95rem;
    font-weight: normal;
}
.services-page .produit-prix .reduction {
    font-size: 1rem;
    font-weight: bold;
    color: #cc0000;
}

ion-col[size="6"] {
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 8px;
}

.header-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
}

.custom-searchbar {
    border-radius: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    padding: 10px 14px;
    font-size: 15px;
    color: #452422;
    background: #fff;
    transition: border 0.3s ease;
}

.custom-searchbar:focus {
    border-color: #ca9b50;
    outline: none;
}
ion-searchbar.custom-searchbar input {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 15px;
}

.horizontal-scroll:first-of-type {
    background: #2b2b2b;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.horizontal-scroll:first-of-type ion-chip {
    --background: #3a3a3a;
    --color: #e0e0e0;
    --padding-start: 14px;
    --padding-end: 14px;
    --border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}
.horizontal-scroll:first-of-type ion-chip.chip-selected,
.horizontal-scroll:first-of-type ion-chip[color='secondary'] {
    --background: #ca9b50;
    --color: #000;
    font-weight: bold;
}
.horizontal-scroll:first-of-type::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    padding: 10px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: max-height 1.4s ease, opacity 1.4s ease, transform 1.4s ease;
}
.horizontal-scroll.visible {
    max-height: 100px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.static-scroll {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.sticky-menus {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}


.sticky-menus button.btn {
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border: 1px solid #ca9b50;
    color: #452422;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.sticky-menus button.btn:hover {
    background: #ca9b50;
    color: #ffffff;
}

.sticky-menus .btn-warning {
    background: linear-gradient(135deg, #ca9b50, #f5e179);
    color: #000;
    font-weight: bold;
    border: none;
}

.non-connecte {
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 1rem;
    padding: 2rem;
    background-color: #f8f8f8;
}
.non-connecte .icon {
    font-size: 64px;
    color: var(--ion-color-secondary);
    margin-bottom: 16px;
}
.non-connecte h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #333;
}
.non-connecte p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.header-title::before {
    background: unset;
}

.produits {
    margin-bottom: 5%;
}

/* === Slide publicitaire plein écran (version raffinée) === */

.publicite-slide {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.97);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease-in-out;
}

.publicite-slide .image-wrapper {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.publicite-slide img {
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

/* Amélioration mobile */
@media (max-width: 768px) {
    .publicite-slide img {
        max-width: 95vw;
        max-height: 90vh;
        border-radius: 12px;
    }
}


.publicite-slide img:hover {
    transform: scale(1.02);
}

.btn-fermer-slide {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    background: none;
    border: none;
    color: #000;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease;
}

.btn-fermer-slide:hover {
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* conditions d'utilisation */
#conditions-overlay {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.conditions-modal {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
}

.conditions-modal h4 {
    font-size: 1.75rem;
    font-weight: bold;
}

.conditions-modal p {
    font-size: 1.1rem;
}

body.stop-scroll {
    overflow: hidden;
}



.slides-marquee{
    overflow: hidden;
    padding: 16px;
}

.slides-track{
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 35s linear infinite; /* 🔧 augmente pour plus lent */
}

.slides-marquee:hover .slides-track{
    animation-play-state: paused; /* pause au survol */
}

@keyframes marquee{
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* car on a dupliqué */
}


.slide-card {
    flex: 0 0 auto;
    width: 250px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.slide-card img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.slide-card:hover{ transform: scale(1.03); }

.slide-fullscreen-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.slide-fullscreen-modal.d-none {
    display: none;
}

.slide-fullscreen-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.slide-fullscreen-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-fullscreen-content img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.slide-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 6px 12px;
    border-radius: 50%;
    cursor: pointer;
}

.scroll-wrapper {
    position: relative;
}

.scroll-wrapper .horizontal-scroll {
    background: #ffffff;
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.scroll-arrow i {
    color: #000000;
}

.scroll-arrow.left  { left: 0; }
.scroll-arrow.right { right: 0; }

@media (max-width: 991px) {
    /* Si tu veux masquer les flèches sur mobile */
    .scroll-arrow { display: none; }
}

.compact-bannerAlert {
    --min-height: 28px; /* réduit la hauteur globale */
    font-size: 12px;
    ion-icon {
        font-size: 14px;
        margin-right: 4px;
    }
    .msg {
        font-size: 14px;
        line-height: 1.2;
        font-family: var(--font-body);
    }
}

.sticky-menus button.btn.btn-warning {
    background: linear-gradient(135deg, #ca9b50, #e0be73);
    border-color: #ca9b50;
    color: #452422;
    box-shadow: 0 4px 12px rgba(202, 155, 80, 0.35);
}
.sticky-menus button.btn.btn-outline-secondary {
    background: #fff;
    border-color: #ca9b50;
    color: #452422;
}

.heartCategSp {
    display: inline-block;
    font-size: 16px;
    color: #c9184a;
}

.empty-category-alert {
    max-width: 88%;
    margin-left: auto;
    margin-right: auto;

    padding: 22px 30px;
    border-radius: 14px;

    color: #2d1b14;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: center;

    border: 1px solid rgba(191, 137, 45, 0.6);

    box-shadow:
            0 14px 35px rgba(0, 0, 0, 0.07),
            inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
