/*
 * Name: App landing
 * Version: 1.3.0
 */

 :root {
    --cs-light-site-background: #1f1f42;
    --cs-light-header-topbar-background: #2d2d5d;
    --cs-light-header-background: #1f1f42;
    --cs-light-secondary-color: #fff;
}

.cs-wrapper {
    background-color: #1f1f42;
}

.cs-header__logo.cs-logo-default {
    display: none;
}

.cs-header__logo.cs-logo-dark {
    display: block;
}

.cs-main-content {
    grid-template-columns: 1fr;
}


.entry-content b, .entry-content strong {
    color: #fff;
}

.entry-content a:not([class], .wp-block-post-terms > a, .wp-block-latest-posts a, .wp-block-categories a, .wp-block-archives-list a, .wp-block-cover a, .wp-block-calendar a, .wp-block-comment-reply-link a, .wp-block-comment-author-name a, .wp-block-comment-date a, .cs-posts-area-elementor a, .woocommerce-MyAccount-navigation-link a, .has-link-color a, .wp-block-post-navigation-link.has-text-color a, *[style*=text-decoration] a), .entry-content a.wp-block-pages-list__item__link:not([style*=text-decoration] a) {
    color: rgba(138, 161,89, 1);
    font-weight: 600;
}

.cs-main-content:not(:has(.woocommerce-area)) .entry-content ul:not(:has(.woocommerce-MyAccount-navigation-link), .wp-block-post, .wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-social-links, .wp-block-post-template, .blocks-gallery-grid, .wc-block-grid__products, .wp-block-navigation, .wp-block-navigation .wp-block-page-list):not(.has-text-color) li::marker, .cs-main-content:not(:has(.woocommerce-area)) .entry-summary ul:not(:has(.woocommerce-MyAccount-navigation-link), .wp-block-post, .wp-block-archives, .wp-block-categories, .wp-block-latest-posts, .wp-block-social-links, .wp-block-post-template, .blocks-gallery-grid, .wc-block-grid__products, .wp-block-navigation, .wp-block-navigation .wp-block-page-list):not(.has-text-color) li::marker {
    color: rgba(138, 161,89, 1);
}

/* =========================================================================
 * Landing /app/ — Module Carte
 * .bal-categories : chips listant les catégories de lieux référencés
 * .bal-soon       : pavé "Bientôt" pour annoncer la réservation in-app
 * Variables --bal-* héritées de l'inline <style> sur .bcn-app-landing,
 * fallbacks fournis pour rester sûr si l'inline change.
 * ========================================================================= */

.bcn-app-landing .bal-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 1.5rem 0 0;
}

.bcn-app-landing .bal-categories span {
    display: inline-block;
    padding: .35rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--bal-ink, rgba(255, 255, 255, .96));
    background: var(--bal-surface-2, rgba(255, 255, 255, .07));
    border: 1px solid var(--bal-border-strong, rgba(255, 255, 255, .22));
    border-radius: 999px;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.bcn-app-landing .bal-categories span:hover {
    background: var(--bal-accent-soft, rgba(255, 90, 31, .14));
    border-color: var(--bal-accent, #ff5a1f);
    transform: translateY(-1px);
}

.bcn-app-landing .bal-soon {
    margin-top: 1.5rem;
    padding: .85rem 1rem;
    font-size: .9rem;
    color: var(--bal-ink, rgba(255, 255, 255, .96));
    background: var(--bal-accent-soft, rgba(255, 90, 31, .14));
    border-left: 3px solid var(--bal-accent, #ff5a1f);
    border-radius: 10px;
}

.bcn-app-landing .bal-soon strong {
    display: inline-block;
    margin-right: .5rem;
    padding: .15rem .6rem;
    background: var(--bal-accent, #ff5a1f);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 999px;
    vertical-align: middle;
}

/* ---------- Landing /app/ — .bal-phone : support <img> en plus de <video> ---------- */
.bcn-app-landing .bal-phone img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    background: #000;
}

/* Variant hero : un peu plus large que le bal-phone par défaut (320 → 360 px),
 * pour matcher visuellement la taille de l'ancien mockup hero. */
.bcn-app-landing .bal-phone--hero {
    max-width: 360px;
}
@media (max-width: 960px) {
    .bcn-app-landing .bal-phone--hero {
        max-width: 280px;
    }
}

/* =========================================================================
 * Landing /app/ — un seul H1 sur la page
 * Masque le titre par défaut du thème (« Application mobile »), pour que le
 * H1 du hero reste seul. La règle n'est pas bornée à un identifiant de page :
 * cette feuille n'est chargée que sur /app/, et l'ID y diffère d'une ville
 * à l'autre.
 * ========================================================================= */

body.page .cs-entry__title,
body.page .cs-entry__header-standard {
    display: none;
}

/* =========================================================================
 * Landing /app/ — carrousel « L'app à l'écran » et l'enveloppe <picture>
 *
 * ShortPixel enveloppe chaque <img> dans un <picture> quand la livraison WebP
 * se fait par balises (spio_settings.deliverWebp = 2, le cas de Nantes ; Angers
 * est à 0 et n'a donc pas l'enveloppe). Le <picture> devient alors l'élément
 * flex du carrousel, et il hérite du flex-shrink par défaut : le width: 240px
 * et le flex-shrink: 0 du <style> inline visent l'<img>, qui n'est plus
 * l'élément flex. Les huit visuels se compriment donc pour tenir dans la
 * largeur au lieu de défiler — sur Nantes ils tombaient à 137 px et le
 * carrousel ne défilait plus (scrollWidth == clientWidth).
 *
 * On redonne au <picture> la taille et le comportement prévus pour l'<img>.
 * Sur une ville sans enveloppe, ces règles ne s'apparient simplement pas.
 * ========================================================================= */

.bcn-app-landing .bal-showcase__track > picture {
    width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Plus spécifique que l'inline `.bcn-app-landing .bal-showcase__track img`,
 * qui imposerait 240px à l'image DANS un <picture> déjà à cette largeur. */
.bcn-app-landing .bal-showcase__track > picture > img {
    width: 100%;
}

@media (max-width: 960px) {
    .bcn-app-landing .bal-showcase__track > picture {
        width: 200px;
    }
}

@media (max-width: 560px) {
    .bcn-app-landing .bal-showcase__track > picture {
        width: 170px;
    }
}
