/* ===========================================================
   QLII — WAVE : theme autonome (Common + Wave uniquement).
   Base: composants Light, sans texte ou HTML additionnel.
   =========================================================== */

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


/* Les langues sont sur le blanc, sans se superposer au logo. */
.theme-wave .business-languages {
    display: flex;
    justify-content: center;
    margin: 12px auto 0;
}

    .theme-wave .business-languages .language-switcher {
        position: static;
        inset: auto;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: auto;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

        .theme-wave .business-languages .language-switcher a {
            color: #292521;
            background: color-mix(in srgb, var(--theme-accent) 8%, white);
            border: 1px solid color-mix(in srgb, var(--theme-accent) 15%, #e4dfd9);
            text-shadow: none;
            backdrop-filter: none;
        }

            .theme-wave .business-languages .language-switcher a.active {
                border-color: var(--theme-accent);
            }



.business-page.theme-wave h1,
.business-page.theme-wave h2,
.business-page.theme-wave p {
    text-shadow: none;
}

.theme-wave .business-subscription-warning {
    margin: 0 auto 16px;
}

/* Liens non officiels : carre clair + pictogramme accent categorie.
   Les logos officiels sont dans .business-famous-links et ne sont pas modifies. */
.theme-wave .business-content .business-links {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    justify-content: safe center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 20px auto 22px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

    .theme-wave .business-content .business-links::-webkit-scrollbar {
        display: none;
    }

    .theme-wave .business-content .business-links .business-link {
        position: relative;
        display: grid;
        flex: 0 0 84px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 58px auto;
        justify-items: center;
        align-items: center;
        gap: 6px;
        width: 84px;
        min-width: 84px;
        max-width: 84px;
        height: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #292521;
        text-align: center;
        text-decoration: none;
        scroll-snap-align: start;
        opacity: 1;
    }

        /* Fond du bouton, independant du SVG. */
        .theme-wave .business-content .business-links .business-link::before {
            content: "";
            position: absolute;
            z-index: 0;
            top: 0;
            left: 50%;
            width: 64px;
            height: 58px;
            transform: translateX(-50%);
            border-radius: 20px;
            background: var(--light-icon-bg);
        }

        .theme-wave .business-content .business-links .business-link .business-link-icon {
            position: absolute;
            z-index: 1;
            top: 15.5px;
            left: 50%;
            display: block;
            flex: none;
            width: 27px;
            height: 27px;
            margin: 0;
            transform: translateX(-50%);
            object-fit: contain;
            /* Filtre couleur deja defini selon chaque categorie dans Common. */
            filter: var(--compact-link-icon-filter);
        }

        .theme-wave .business-content .business-links .business-link > span {
            position: relative;
            z-index: 1;
            display: -webkit-box;
            grid-column: 1;
            grid-row: 2;
            justify-self: stretch;
            align-self: start;
            width: 100%;
            max-width: 100%;
            height: auto;
            min-height: 0;
            margin: 0;
            padding: 0 2px;
            overflow: hidden;
            border: 0;
            border-radius: 0;
            background: transparent;
            color: #292521;
            font-size: 12px;
            font-weight: 600;
            line-height: 1.3;
            text-align: center;
            white-space: normal;
            overflow-wrap: anywhere;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            transform: none;
        }

    .theme-wave .business-content .business-links a.business-link:hover::before {
        background: color-mix(in srgb, var(--theme-accent) 16%, white);
    }

    .theme-wave .business-content .business-links a.business-link:focus-visible {
        outline: 2px solid var(--theme-accent);
        outline-offset: 3px;
    }

.theme-wave .business-content .business-link.business-link-disabled {
    opacity: .43;
    cursor: default;
}

/* Photo de vitrine sous les pictogrammes principaux. */
.theme-wave .business-feature {
    width: 100%;
    margin: 8px auto 18px;
    overflow: hidden;
    border-radius: 22px;
    background: color-mix(in srgb, var(--theme-accent) 9%, white);
}

    .theme-wave .business-feature img {
        display: block;
        width: 100%;
        aspect-ratio: 2 / 1;
        object-fit: cover;
        object-position: center;
    }

/* 6. Description et localisation */
.theme-wave .business-description {
    max-width: 520px;
    margin: 24px auto 16px;
    padding: 0 4px;
    color: #38322d;
    text-align: left;
    white-space: pre-line;
}

.theme-wave .business-location {
    color: #777069;
    text-align: center;
}

/* 7. Liens officiels et reseaux sociaux */
.theme-wave .business-famous-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px auto;
}

.theme-wave .business-famous-link {
    border-radius: 19px;
    background: var(--light-icon-bg);
    border-color: color-mix(in srgb, var(--theme-accent) 13%, white);
}

    .theme-wave .business-famous-link img {
        filter: brightness(0);
    }

    .theme-wave .business-famous-link:focus-visible {
        outline-color: var(--theme-accent);
    }

/* 8. Formulaire de contact : memes interactions, palette claire */
.business-page.theme-wave .business-stay-informed-details {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.business-page.theme-wave .business-stay-informed {
    color: #292521;
    background: color-mix(in srgb, var(--theme-accent) 11%, white);
    border: 1px solid color-mix(in srgb, var(--theme-accent) 36%, white);
    backdrop-filter: none;
}


.business-page.theme-wave .business-stay-informed-panel {
    background: #faf9f7;
    border: 1px solid #e6e0da;
    color: #292521;
    backdrop-filter: none;
}

    .business-page.theme-wave .business-stay-informed-panel label {
        color: #292521;
    }

    .business-page.theme-wave .business-stay-informed-panel input[type="text"] {
        background: #fff;
        border: 1px solid #d8d1c9;
        color: #292521;
    }

        .business-page.theme-wave .business-stay-informed-panel input[type="text"]:focus {
            border-color: var(--theme-accent);
        }

    .business-page.theme-wave .business-stay-informed-panel small {
        color: #716860;
    }

    .business-page.theme-wave .business-stay-informed-panel button {
        background: #171717;
        color: #fff;
    }

.business-page.theme-wave .business-contact-success {
    background: #f7f5f2;
    color: #292521;
}

/* Les erreurs restent rouges, comme dans le theme Dark. */
.theme-wave .business-powered-by {
    margin-top: 22px;
    color: #827970;
}

/* Mobile : les bords laissent entrevoir la video (12 px par cote). */
@media (max-width: 640px) {












    .theme-wave .business-feature {
        border-radius: 18px;
    }

    .theme-wave .business-content .business-links {
        justify-content: safe center;
        gap: 4px;
    }
}

@media (max-width: 359px) {
    .theme-wave .business-content .business-links .business-link {
        flex-basis: 76px;
        width: 76px;
        min-width: 76px;
        max-width: 76px;
    }

        .theme-wave .business-content .business-links .business-link::before {
            width: 60px;
            height: 58px;
            border-radius: 18px;
        }
}




/* ===========================================================
   WAVE — STRUCTURE ET VAGUES
   Autonome: charger storefront-common.css puis ce fichier.
   Les deux carrousels de liens et les composants Light restent inchanges.
   =========================================================== */

.business-page.theme-wave {
    --wave-hero-height: clamp(380px, 53svh, 620px);
    --wave-height: clamp(90px, 13vw, 128px);
    --wave-stripe: 18px;
    --wave-content-max: 620px;
    --light-width: var(--wave-content-max);
    --light-panel: #fff;
    --accent: var(--theme-accent);
    --light-icon-bg: color-mix(in srgb, var(--theme-accent) 12%, #fff);
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: 0;
    color: #292521;
    background: #fff;
    overflow-x: clip;
}

    /* Photo de fond limitee au haut de la page. */
    .business-page.theme-wave::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        z-index: 0;
        height: var(--wave-hero-height);
        background: #34444a var(--business-bg-image) center / cover no-repeat;
        pointer-events: none;
    }

    /* Ne pas modifier les classes ou le script de fondu existants. */
    .business-page.theme-wave .business-video {
        position: absolute;
        inset: 0 0 auto;
        z-index: 1;
        width: 100%;
        height: var(--wave-hero-height);
        object-fit: cover;
        pointer-events: none;
    }

    .business-page.theme-wave .business-shell {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .business-page.theme-wave .business-hero {
        position: relative;
        z-index: 1;
        isolation: isolate;
        width: 100%;
        max-width: none;
        height: var(--wave-hero-height);
        margin: 0;
        background: transparent;
    }

        /* Voile sur photo pour garantir la lisibilite du titre. */
        .business-page.theme-wave .business-hero::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: -1;
            background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.04) 36%, rgba(0,0,0,.38) 86%);
            pointer-events: none;
        }

        /* Une seule courbe: un creux puis une bosse. */
        .business-page.theme-wave .business-hero::after,
        .business-page.theme-wave .business-brand::before {
            content: "";
            position: absolute;
            left: 0;
            width: 100%;
            height: var(--wave-height);
            pointer-events: none;
            -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 56 C260 126 510 122 765 93 C1020 61 1160 20 1285 38 C1360 47 1408 64 1440 70 L1440 160 L0 160 Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 160' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 56 C260 126 510 122 765 93 C1020 61 1160 20 1285 38 C1360 47 1408 64 1440 70 L1440 160 L0 160 Z'/%3E%3C/svg%3E");
            -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
            -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
        }

        /* Vague principale, couleur categorie. */
        .business-page.theme-wave .business-hero::after {
            bottom: -1px;
            z-index: 2;
            background: var(--theme-accent, var(--qlii-category-default));
        }

    /* Deuxieme vague blanche decalee: fin lisere de couleur, contenu blanc continu. */
    .business-page.theme-wave .business-brand::before {
        z-index: 0;
        top: calc(0px - var(--wave-height) + var(--wave-stripe));
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        background: #fff;
    }

    .business-page.theme-wave .business-topbar {
        position: relative;
        z-index: 5;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        width: min(100%, var(--wave-content-max));
        margin: 0 auto;
        padding: 16px;
    }

    .business-page.theme-wave .business-topbar-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        min-width: 0;
        margin-left: auto;
    }

    .business-page.theme-wave .business-topbar  {
        position: static;
        inset: auto;
        transform: none;
        margin: 0;
        flex-shrink: 0;
    }

    /* Structure blanche en-dessous de la vague, sans panneau qui la recouvre. */
    .business-page.theme-wave .business-brand,
    .business-page.theme-wave .business-content {
        position: relative;
        z-index: 5;
        width: min(100%, var(--wave-content-max));
        max-width: var(--wave-content-max);
        margin: 0 auto;
        background: #fff;
        color: #292521;
        box-shadow: none;
        border: 0;
        border-radius: 0;
    }

    .business-page.theme-wave .business-brand {
        padding: 18px 20px 6px;
        text-align: center;
    }

    /* L'identite se positionne sur la PHOTO sans changer le DOM commun. */
    .business-page.theme-wave .business-identity {
        position: absolute;
        z-index: 6;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
        width: 100vw;
        height: var(--wave-hero-height);
        top: calc(0px - var(--wave-hero-height));
        left: 50%;
        transform: translateX(-50%);
        padding: 24px clamp(22px, 5vw, 54px) calc(var(--wave-height) + 18px);
        color: #fff;
        text-align: left;
        pointer-events: none;
    }

        .business-page.theme-wave .business-identity h1,
        .business-page.theme-wave .business-identity .business-subtitle {
            position: relative;
            z-index: 1;
            margin: 0;
            max-width: min(100%, 900px);
            color: #fff;
            text-align: left;
            text-shadow: 0 2px 14px rgba(0,0,0,.55);
        }

        .business-page.theme-wave .business-identity h1 {
            font-size: clamp(1.9rem, 5.7vw, 3.5rem);
            font-weight: 750;
            line-height: 1.12;
            letter-spacing: -.025em;
        }

        .business-page.theme-wave .business-identity .business-subtitle {
            margin-top: 8px;
            font-size: clamp(.95rem, 2.5vw, 1.2rem);
            line-height: 1.35;
            opacity: .95;
        }

            .business-page.theme-wave .business-identity .business-subtitle::after {
                content: none;
            }

        /* Logo en haut a gauche, directement sur la photo, sans disque ni bordure. */
        .business-page.theme-wave .business-identity .business-logo {
            position: absolute;
            z-index: 2;
            top: 22px;
            left: clamp(20px, 5vw, 54px);
            width: clamp(84px, 14vw, 112px);
            height: clamp(84px, 14vw, 112px);
            max-width: none;
            margin: 0;
            padding: 0;
            transform: none;
            border: 0;
            border-radius: 0;
            background: transparent;
            box-shadow: none;
            filter: none;
            object-fit: contain;
        }

    .business-page.theme-wave .business-content {
        padding: 8px 20px 28px;
        text-align: center;
    }


    /* Langues en haut à droite, sur la photo */
    .business-page.theme-wave .business-languages {
        position: absolute;
        z-index: 10;
        top: calc(18px - var(--wave-hero-height));
        right: calc(50% - 50vw + 18px);
        display: flex;
        justify-content: flex-end;
        width: auto;
        max-width: calc(100vw - 145px);
        margin: 0;
    }

        .business-page.theme-wave .business-languages .language-switcher {
            justify-content: flex-end;
        }

    /* Pas de deuxieme photo: la photo remplit deja le hero. */
    .business-page.theme-wave .business-feature {
        display: none;
    }

    /* L'ordre des details et reseaux reste identique a Light. */
    .business-page.theme-wave .business-extras {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100%;
    }

        .business-page.theme-wave .business-extras > .business-social,
        .business-page.theme-wave .business-extras > .business-details {
            display: block;
            width: 100%;
            min-width: 0;
        }

        .business-page.theme-wave .business-extras > .business-details {
            order: 1;
        }

        .business-page.theme-wave .business-extras > .business-social {
            order: 2;
        }

    /* Apercu : eviter le chevauchement entre badge et logo. */
    .business-page.theme-wave:has(.business-preview-badge) .business-identity .business-logo {
        top: 74px;
    }

    /* Les liens officiels conservent leur carrousel horizontal comme dans Light. */
    .business-page.theme-wave .business-famous-links {
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
        justify-content: safe center;
        gap: 12px;
        width: 100%;
        min-width: 0;
        margin: 24px auto;
        padding: 3px 2px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .business-page.theme-wave .business-famous-links::-webkit-scrollbar {
            display: none;
        }

        .business-page.theme-wave .business-famous-links .business-famous-link {
            flex: 0 0 48px;
            scroll-snap-align: center;
        }

    /* ===========================================================
   VITRINES ASSOCIEES — carrousel independant du theme Light.
   Conserver les classes et le JS actuels (scroll et pastilles).
   =========================================================== */
    .business-page.theme-wave .business-storefronts {
        width: 100%;
        min-width: 0;
        margin: 24px auto;
        padding: 0;
        color: #292521;
    }

    .business-page.theme-wave .business-storefronts-track {
        gap: 10px;
        width: 100%;
        min-width: 0;
    }

    .business-page.theme-wave .business-storefronts-scroll {
        display: flex;
        flex-flow: row nowrap;
        justify-content: flex-start;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding: 0 0 10px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .business-page.theme-wave .business-storefronts-scroll::-webkit-scrollbar {
            display: none;
        }

        .business-page.theme-wave .business-storefronts-scroll .business-storefronts-card {
            box-sizing: border-box;
            display: flex;
            flex: 0 0 clamp(180px, 72%, 270px);
            flex-direction: column;
            width: clamp(180px, 72%, 270px);
            height: auto;
            min-width: 0;
            max-width: none;
            align-self: stretch;
            scroll-snap-align: start;
        }

    .business-page.theme-wave .business-storefronts-card {
        background: #fff;
        border: 1px solid color-mix(in srgb, var(--theme-accent) 16%, #e7e1db);
        border-radius: 14px;
        box-shadow: 0 2px 12px rgba(0,0,0,.065);
        color: #292521;
        text-align: left;
        text-decoration: none;
        overflow: hidden;
    }

        .business-page.theme-wave .business-storefronts-card > img {
            display: block;
            width: 100%;
            height: auto;
            aspect-ratio: 4/3;
            object-fit: cover;
        }

    .business-page.theme-wave .business-storefronts-card-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 11px;
        color: #292521;
    }

        .business-page.theme-wave .business-storefronts-card-info strong,
        .business-page.theme-wave .business-storefronts-card-info span {
            display: block;
            color: inherit;
        }

    .business-page.theme-wave .business-storefronts-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 9px;
        margin: 10px 0 0;
        padding: 0;
    }

        .business-page.theme-wave .business-storefronts-dots[hidden] {
            display: none;
        }

    .business-page.theme-wave .business-storefronts-dot {
        background: rgba(0,0,0,.22);
    }

        .business-page.theme-wave .business-storefronts-dot.is-active {
            background: var(--theme-accent);
        }



@media (max-width: 640px) {
    .business-page.theme-wave {
        --wave-hero-height: clamp(360px, 52svh, 520px);
        --wave-height: 94px;
        --wave-stripe: 14px;
    }

    .business-page.theme-wave .business-brand {
        padding: 12px 16px 4px;
    }

    .business-page.theme-wave .business-content {
        padding: 8px 14px 26px;
    }

    .business-page.theme-wave .business-identity {
        padding-right: 20px;
        padding-left: 20px;
        padding-bottom: calc(var(--wave-height) + 12px);
    }

        .business-page.theme-wave .business-identity .business-logo {
            top: 24px;
            left: 18px;
        }

        .business-page.theme-wave .business-identity h1 {
            font-size: clamp(1.7rem, 7vw, 2.5rem);
        }
}
.business-page.theme-wave .business-contact-icon {
    filter: brightness(0);
}