/* DTSFrance V79 — bannière sponsor mobile/PWA entièrement visible. */
.hero-home .hero-sponsor-label {
    display: inline-flex !important;
    align-self: center !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0 auto 18px !important;
    z-index: 6 !important;
}

.hero-home .hero-sponsor {
    position: relative !important;
    width: min(100%, 1280px) !important;
    height: 176px !important;
    min-height: 176px !important;
    max-height: 176px !important;
    margin: 0 auto 18px !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    background: rgba(0,0,0,.35) !important;
}
.hero-home .hero-sponsor-track,
.hero-home .hero-sponsor-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
}
.hero-home .hero-sponsor-slide,
.hero-home .hero-sponsor-slide.site-owned-banner {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}
.hero-home .hero-sponsor-slide.is-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.hero-home .hero-sponsor-slide.site-owned-banner.is-active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}
.hero-home .hero-sponsor-slide.site-owned-banner > span {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 18px 26px 20px !important;
    box-sizing: border-box !important;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    gap: 4px !important;
    overflow: visible !important;
    text-align: center !important;
}
.hero-home .site-owned-banner small { font-size: .68rem !important; line-height: 1.15 !important; }
.hero-home .site-owned-banner strong {
    display: block !important;
    font-size: 1.28rem !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    overflow: visible !important;
}
.hero-home .site-owned-banner em {
    display: block !important;
    font-size: .78rem !important;
    line-height: 1.2 !important;
    white-space: normal !important;
}
.hero-home .site-owned-banner b { margin-top: 5px !important; }
.hero-home .hero-sponsor-slide > img:not(.ad-impression-pixel):not(.site-owned-banner-image) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}
.hero-home .site-owned-banner-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.hero-home .hero-sponsor-dots {
    position: absolute !important;
    z-index: 5 !important;
    left: 50% !important;
    bottom: 7px !important;
    transform: translateX(-50%) !important;
}

/* Restaure les couleurs des bannières internes sans modifier leur cadrage. */
.hero-home .hero-sponsor-slide.site-owned-banner {
    background: var(--banner-bg, #252d4a) !important;
    color: var(--banner-text, #fff) !important;
    text-decoration: none !important;
}
.hero-home .site-owned-banner-image {
    opacity: .28 !important;
}
.hero-home .site-owned-banner b {
    display: inline-block !important;
    padding: 8px 15px !important;
    border-radius: 999px !important;
    background: var(--banner-button, #e30613) !important;
    color: #fff !important;
    font-size: .78rem !important;
}

@media (max-width: 720px) {
    .hero-home .hero-sponsor-label { margin-bottom: 18px !important; }
    .hero-home .hero-sponsor {
        width: calc(100% - 20px) !important;
        max-width: calc(100vw - 20px) !important;
        height: 188px !important;
        min-height: 188px !important;
        max-height: 188px !important;
    }
    .hero-home .hero-sponsor-slide.site-owned-banner > span {
        padding: 22px 24px 24px !important;
    }
    .hero-home .site-owned-banner strong {
        font-size: 1.35rem !important;
        line-height: 1.1 !important;
    }
    body { padding-bottom: 90px !important; }
}

/* V99 — finition de la page d’accueil en production. */
@media (min-width: 901px) {
    .hero-home .hero-content {
        position: relative !important;
    }

    /* Macaron davantage à droite, sans recouvrir le titre. */
    .hero-home .promo-badge-site {
        position: absolute !important;
        top: 24px !important;
        right: 44px !important;
        left: auto !important;
        transform: none !important;
        width: 145px !important;
        height: 145px !important;
        z-index: 8 !important;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .34), inset 0 0 0 3px rgba(255,255,255,.4) !important;
    }

    .hero-home .hero-copy {
        padding-right: 215px !important;
    }

    /* Le moteur de recherche passe avant le bandeau d’installation. */
    .hero-home .postal-search-form {
        margin-top: 26px !important;
        margin-bottom: 12px !important;
    }

    /* Bandeau application plus fin et moins envahissant. */
    .hero-home .app-home-actions {
        min-height: 58px !important;
        padding: 8px 14px !important;
        margin-top: 0 !important;
        margin-bottom: 18px !important;
        border-radius: 13px !important;
        display: flex !important;
        align-items: center !important;
        gap: 14px !important;
    }

    .hero-home .app-home-actions > div:first-child {
        min-width: 300px !important;
    }

    .hero-home .app-home-actions strong {
        font-size: .92rem !important;
        line-height: 1.15 !important;
    }

    .hero-home .app-home-actions span {
        font-size: .72rem !important;
        line-height: 1.15 !important;
        margin-top: 2px !important;
    }

    .hero-home .app-home-buttons {
        gap: 8px !important;
        margin-left: auto !important;
    }

    .hero-home .app-action-button {
        min-height: 36px !important;
        padding: 7px 13px !important;
        border-radius: 9px !important;
        font-size: .78rem !important;
        white-space: nowrap !important;
    }
}

@media (min-width: 1280px) {
    .hero-home .promo-badge-site {
        right: 70px !important;
    }
}

@media (max-width: 900px) {
    /* Sur mobile, conserver l’ordre et le rendu spécifiques à l’application. */
    .hero-home .promo-badge-site {
        position: static !important;
    }
}

/* V102 — correction de la bannière publicitaire basse du site. */
.home-modern .home-ad-carousel {
    position: relative !important;
    width: 100% !important;
    max-width: 1500px !important;
    height: 120px !important;
    min-height: 120px !important;
    aspect-ratio: auto !important;
    margin: 18px auto 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #fff !important;
}
.home-modern .home-ad-track,
.home-modern .home-ad-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
}
.home-modern .home-ad-slide {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
    text-decoration: none !important;
}
.home-modern .home-ad-slide.is-active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.home-modern .home-ad-slide.site-owned-banner.is-active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--banner-bg, #252d4a) !important;
    color: var(--banner-text, #fff) !important;
}
.home-modern .home-ad-slide.site-owned-banner > span {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    gap: 3px !important;
    padding: 12px 72px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}
.home-modern .home-ad-slide.site-owned-banner small {
    display: block !important;
    font-size: .68rem !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .14em !important;
}
.home-modern .home-ad-slide.site-owned-banner strong {
    display: block !important;
    font-size: 1.15rem !important;
    line-height: 1.08 !important;
}
.home-modern .home-ad-slide.site-owned-banner em {
    display: block !important;
    font-style: normal !important;
    font-size: .78rem !important;
    line-height: 1.2 !important;
}
.home-modern .home-ad-slide.site-owned-banner b {
    display: inline-block !important;
    margin-top: 5px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: var(--banner-button, #e30613) !important;
    color: #fff !important;
    font-size: .76rem !important;
}
.home-modern .home-ad-slide .site-owned-banner-image {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    opacity: .28 !important;
}
.home-modern .home-ad-slide > img:not([width="1"]):not(.site-owned-banner-image) {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.home-modern .home-ad-arrow {
    z-index: 10 !important;
}
@media (max-width: 700px) {
    .home-modern .home-ad-carousel {
        height: 112px !important;
        min-height: 112px !important;
    }
    .home-modern .home-ad-slide.site-owned-banner > span {
        padding: 9px 48px !important;
    }
    .home-modern .home-ad-slide.site-owned-banner strong {
        font-size: 1rem !important;
    }
    .home-modern .home-ad-slide.site-owned-banner em {
        font-size: .68rem !important;
    }
}

/* V104 — logo DTS officiel dans les cartes sans photo */
.home-modern .newcomer-photo .dts-card-placeholder-logo,
.home-modern .professional-showcase-photo .dts-card-placeholder-logo {
    width: 72% !important;
    height: 72% !important;
    object-fit: contain !important;
    transform: none !important;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,.18));
}
.home-modern .professional-showcase-card:hover .professional-showcase-photo .dts-card-placeholder-logo {
    transform: none !important;
}

/* V105 — cartes du site identiques aux cartes de l’application :
   logo DTS officiel centré sur fond gris clair lorsqu’aucune photo n’est disponible. */
.home-modern .newcomer-photo:has(> .dts-card-placeholder-logo),
.home-modern .professional-showcase-photo:has(> .dts-card-placeholder-logo) {
    background: #edf2f5 !important;
}
.home-modern .newcomer-photo .dts-card-placeholder-logo,
.home-modern .professional-showcase-photo .dts-card-placeholder-logo {
    width: 46% !important;
    height: auto !important;
    max-height: 58% !important;
    object-fit: contain !important;
    transform: none !important;
    filter: none !important;
}
.home-modern .professional-showcase-card:hover .professional-showcase-photo .dts-card-placeholder-logo {
    transform: none !important;
}

/* V109 — correction mobile des champs Code postal / Rayon et des titres des cartes. */
@media (max-width: 700px) {
    .hero-home .postal-search-form .search-icon {
        position: relative !important;
        min-width: 0 !important;
    }

    .hero-home .postal-search-form .search-icon::before {
        left: 16px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 22px !important;
        text-align: center !important;
        line-height: 1 !important;
        pointer-events: none !important;
    }

    .hero-home .postal-search-form .location-icon input,
    .hero-home .postal-search-form .radius-icon select {
        box-sizing: border-box !important;
        width: 100% !important;
        padding-left: 50px !important;
        padding-right: 16px !important;
        text-indent: 0 !important;
    }

    .hero-home .postal-search-form .radius-icon select {
        padding-right: 38px !important;
    }

    /* Titres des trois cartes : centrés, lisibles et jamais coupés. */
    .app-activity-card__label {
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        min-height: 68px !important;
        padding: 9px 7px !important;
        gap: 5px !important;
        overflow: visible !important;
        white-space: normal !important;
        text-align: center !important;
        font-size: clamp(.72rem, 2.7vw, .92rem) !important;
        line-height: 1.12 !important;
        word-break: normal !important;
        overflow-wrap: anywhere !important;
    }

    .app-activity-card__label i {
        flex: 0 0 auto !important;
        margin: 0 !important;
        font-size: 1.02em !important;
        line-height: 1 !important;
    }

    .app-activity-card {
        grid-template-rows: minmax(68px, auto) 190px auto !important;
    }
}

@media (max-width: 390px) {
    .app-activity-card__label {
        min-height: 72px !important;
        padding-inline: 5px !important;
        font-size: clamp(.68rem, 3vw, .82rem) !important;
    }
}
