/* =========================================================================
   FRONT-PAGE.CSS — uniquement ce qu'UIkit ne fait pas (identité de marque).
   Structure & layout = classes UIkit dans front-page.php.
   ========================================================================= */

/* =============================== HERO =================================== */

/* Logo masqué tant que le header n'est PAS collé */
.tx-header .uk-logo img {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
    height: 0;
    width: auto;
}


.tx-hero {
    background: var(--tx-ink);
    margin-top: -8rem;
    position: relative;
}

.tx-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0095CA;
    background: -webkit-linear-gradient(135deg, rgba(0, 149, 202, 0) 0%, rgba(0, 149, 202, 0) 70%, rgba(0, 149, 202, 0.9) 100%);
    background: -moz-linear-gradient(135deg, rgba(0, 149, 202, 0) 0%, rgba(0, 149, 202, 0) 70%, rgba(0, 149, 202, 0.9) 100%);
    background: linear-gradient(135deg, rgba(0, 149, 202, 0) 0%, rgba(0, 149, 202, 0) 70%, rgba(0, 149, 202, 0.9) 100%);
    z-index: 1;
}

.tx-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, .84); */
    background: #000000;
    background: radial-gradient(circle, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0.95) 100%);
    z-index: 1;
}

.tx-hero .height-col {
    height: calc(100% + 4rem);
    min-height: clamp(560px, 90vh, 820px);
    z-index: 2;
    position: relative;
    padding-top: 4rem;
}

.tx-hero .uk-container {
    z-index: 3;
}

.tx-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(14, 23, 38, .55) 0%, rgba(14, 23, 38, .30) 40%, rgba(14, 23, 38, .80) 100%),
        linear-gradient(90deg, rgba(0, 149, 202, .35) 0%, rgba(14, 23, 38, 0) 55%);
}

.tx-hero__lead {
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 300;
}

h1 {
    color: var(--white);
}

.tx-hero .uk-button-secondary {
    background: var(--white);
    color: var(--slate-900);
    font-family: var(--font-primary);
    font-weight: 600;
    border-radius: 0.75rem
}

.tx-hero .tx-hero_contenu {
    margin-bottom: 6rem
}


.tx-hero .item-notification {
    position: absolute;
    background: #FFFFFF;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, .4) 100%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, .4) 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, .4) 100%);
    z-index: 2;
    border: solid 1px rgba(255, 255, 255, .2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--slate-900);
    padding: .75rem 1rem;
    border-radius: 1rem;
    gap: .75rem;
}

.tx-hero .item-notification:first-of-type {
    bottom: 15rem;
    right: 7.5rem;
}

.tx-hero .item-notification:nth-of-type(2) {
    bottom: 9rem;
    right: 11rem;
}

.tx-hero .item-notification:last-of-type {
    bottom: 3rem;
    right: 8.5rem;
}


.tx-hero .item-notification img {
    width: 2.5rem;
    height: 2.5rem;
}

.tx-hero .item-notification span {
    line-height: 1.1;
}

.tx-hero .item-notification .tx-availcard__label {
    font-weight: 600;
    font-size: 1rem;
}


.tx-hero .item-notification .tx-availcard__sub {
    font-weight: 400;
    color: var(--slate-800);
    font-size: .75rem;
}

.tx-hero .item-notification .tx-avatar {
    filter: none;
    box-shadow: none;
    background: var(--color-primary);
    border: 1px solid var(--white);
}

.tx-damier {
    background-image: url(https://taxis-blois.com/wp-content/uploads/2026/06/motif-damier.svg);
    background-size: 72px;
    background-repeat: repeat-x;
    background-position: top left;
    position: relative;
    height: 4.5rem;
    background-color: transparent;
    margin-top: -2.25rem;
    z-index: 12;
}




/* Cartes de disponibilité « glass » */
.tx-availcard {
    background: #FFFFFF80;
    z-index: 2;
    border: solid 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    color: var(--slate-900);
    padding: .75rem 1rem;
    border-radius: 1rem;
    gap: .75rem;
    border: solid 1px #ffffff50;
    margin-bottom: 1rem;
}

.tx-availcard__label {
    font-weight: 600;
    font-size: 1rem;
}

.tx-availcard__sub {
    color: var(--slate-600);
    font-size: .875rem;
}

.tx-hero .taxi img {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 2;
    height: 518px;
    width: 439px;
}

/* ============================= ESTIMATE ================================= */

#tx-estimate {
    background: url(https://taxis-blois.com/wp-content/uploads/2026/06/fond-estimation.webp) no-repeat;
    background-position: bottom left;
    background-size: contain;
    overflow: hidden;

}

.tx-eyebrow {
    background: #FDFDFF;
    background: -webkit-linear-gradient(90deg, rgba(253, 253, 255, 1) 0%, rgba(244, 244, 250, 1) 100%);
    background: -moz-linear-gradient(90deg, rgba(253, 253, 255, 1) 0%, rgba(244, 244, 250, 1) 100%);
    background: linear-gradient(90deg, rgba(253, 253, 255, 1) 0%, rgba(244, 244, 250, 1) 100%);
    padding: .25rem .5rem;
    text-transform: initial;
    font-weight: 400;
    border-radius: 999px;
    margin-bottom: 0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .03);
}

#tx-estimate .img-taxi {
    bottom: -5rem;
    left: 0;
}

#tx-estimate .img-taxi img {
    height: auto;
    width: calc(50vw - 2rem);
    max-width: 800px;
}

.taxi-booking-wrap {
    width: 100%;
    min-height: 900px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.taxi-booking-wrap iframe,
.taxi-booking-wrap>div {
    width: 100% !important;
    max-width: 100% !important;
}

#tx-estimate .tx-eyebrow::before {
    background: #34C759;

}

.tx-estimate__illus {
    aspect-ratio: 4 / 3;
    box-shadow: 0 10px 30px rgba(14, 23, 38, .10);
}

.tx-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    background: rgba(255, 255, 255, .95);
    color: var(--tx-ink);
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(14, 23, 38, .12);
}

/* Conteneur IFRAME (estimateur tiers à intégrer) */
.tx-estimate__widget {
    position: relative;
    background: #fff;
    border: 1px solid var(--tx-line);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(14, 23, 38, .16);
    overflow: hidden;
    min-height: 580px;
    /* ajuste selon ton widget */
}

.tx-estimate__widget iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}


/* =============================== APP ==================================== */
.tx-app {
    background-image: url(https://taxis-blois.com/wp-content/uploads/2026/06/fond-app-1-scaled.webp);
    background-position: bottom;
    background-size: cover;
    padding-bottom: 0;
    padding-top: 10rem;
}

.tx-app .tx-app-title {
    margin-bottom: 2rem;
}

@media screen and (max-width:980px) {
    .tx-app .tx-app-title {
        margin-bottom: 1rem;
    }
}


.tx-app .tx-app__brand {
    text-transform: uppercase;
    font-size: 2.25rem;
    font-weight: 300;
    margin-top: 0;
}

.tx-app .gap-icon {
    gap: .5rem;
}

.tx-app .tx-app__phone img {
    filter: drop-shadow(0 30px 50px rgba(14, 23, 38, .12));
}

.tx-app .item-notification {
    position: absolute;
    background: #FFFFFF;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
    border: solid 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--slate-900);
    padding: .75rem 1rem;
    border-radius: 1rem;
    gap: .75rem;
}

.tx-app .item-notification:first-of-type {
    top: 1.5rem;
    left: 2.5rem;
}

.tx-app .item-notification:nth-of-type(2) {
    top: 8rem;
    left: 0;
}

.tx-app .item-notification:last-of-type {
    bottom: 5rem;
    right: 1.5rem;
}


.tx-app .item-notification img {
    width: 2.5rem;
    height: 2.5rem;
}

.tx-app .item-notification span {
    line-height: 1.1;
}

.tx-app .item-notification .tx-availcard__label {
    font-weight: 600;
    font-size: 1rem;
}


.tx-app .item-notification .tx-availcard__sub {
    font-weight: 400;
    color: var(--slate-600);
    font-size: .75rem;
}

.tx-app .item-notification .tx-avatar {
    filter: none;
    box-shadow: none;
    background: var(--color-primary);
    border: 1px solid var(--white);
}

/* ============================= SERVICES ================================= */

.tx-service__tag {
    display: inline-block;
    margin-bottom: .5rem;
    padding: .25rem .7rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--green);
    color: var(--tx-ink);
    border-radius: 999px;
}

/* ============================== WHY ==================================== */

.tx-why__media {
    margin-right: -40px;
    object-fit: cover;
    aspect-ratio: 3/2;
}


.tx-why__media img {
    border-radius: 1rem 0 0 1rem;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    width: 100%;
    object-position: left;
}

.tx-why .tx-intro {
    color: var(--slate-800);
    font-weight: 400;
    padding-left: 1rem;
    border-left: solid 1px var(--slate-900);
}

.tx-why .tx-avatar {
    border: none;
}


.tx-feat__txt {
    font-size: .95rem;
    font-weight: 500;
    color: var(--tx-ink);
    line-height: 1.35;
}

.tx-why .position-reassurance {
    margin-top: -2rem;
}

.tx-why .position-reassurance .background {
    background-color: var(--white);
    z-index: 12;
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.tx-why .position-reassurance svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tx-why .position-reassurance p strong {
    font-weight: 400;
}

.tx-why .avatars img {
    margin-left: -0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}


.tx-why .avatars img:first-child {
    margin-left: 0;
}

.tx-why a {
    color: var(--slate-900);
    text-decoration: underline;
}

/* ============================= REVIEWS ================================= */
.tx-avis {
    position: relative;
    padding-top: 2rem;
}

.tx-avis::before {
    content: '';
    background-image: url(https://taxis-blois.com/wp-content/uploads/2026/06/background-avis-left.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    width: 15vw;
    z-index: 0;
}

.tx-avis::after {
    content: '';
    background-image: url(https://taxis-blois.com/wp-content/uploads/2026/06/background-avis-right.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 15vw;
    z-index: 0;
}

.tx-avis .avis {
    z-index: 12;
    position: relative;
}

.ti-widget.ti-goog .ti-review-item>.ti-inner,
.ti-widget.ti-goog .ti-load-more-reviews-container .ti-load-more-reviews-button {
    background: var(--slate-800) !important;
}

/* ============================== FAQ =================================== */
#tx-faq-title {
    margin-top: 0.5rem;
}

.tx-faq__list {
    border-top: 1px solid var(--tx-line);
}

.tx-faq__item {
    background-color: var(--slate-100);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.tx-faq__item .uk-accordion-title {
    font-weight: 600;
    color: var(--slate-900);
    position: relative;
    padding-right: 2rem;
}

.tx-faq__item .uk-accordion-title::after {
    display: none;
}

.tx-faq__item .uk-accordion-title::before {
    content: "";
    position: absolute;
    right: .25rem;
    top: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    -webkit-mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    mask: center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
    transition: transform .3s ease;
    background-color: var(--slate-800);
}

.tx-faq__item.uk-open .uk-accordion-title::before {
    transform: rotate(180deg);
}

.tx-faq__item .uk-accordion-content {
    margin-top: 0;

}

/* ============================== CTA =================================== */

.tx-cta-final {
    background-image: url(https://taxis-blois.com/wp-content/uploads/2026/06/fond-app-1-scaled.webp);
    background-position: bottom;
    background-size: cover;
    padding-bottom: 0;
    padding-top: 8rem;
}

.tx-cta-final h2 {
    font-size: 3rem;
}

.tx-cta__media .invitation-img {
    filter: drop-shadow(0 30px 50px rgba(14, 23, 38, .12));
    width: 100%;
}

.tx-cta-final .item-notification {
    position: absolute;
    background: #FFFFFF;
    background: -webkit-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
    border: solid 1px rgba(255, 255, 255, 1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--slate-900);
    padding: .75rem 1rem;
    border-radius: 1rem;
    gap: .75rem;
}

.tx-cta-final .item-notification:first-of-type {
    top: 1.5rem;
    left: 2.5rem;
}

.tx-cta-final .item-notification:nth-of-type(2) {
    top: 12rem;
    left: 0;
    transform: scale(1.2);
}

.tx-cta-final .item-notification:last-of-type {
    bottom: 10rem;
    right: 10rem;
}

html.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

@media screen and (max-width:960px) {
    .tx-hero {
        margin-top: 0;
    }

    .tx-hero img.logo {
        height: 5rem;
        width: auto;
    }

    .tx-hero::before {
        display: none;
    }


    .tx-hero::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, .72);
        z-index: 1;
    }


    .tx-hero .height-col {
        height: initial;
        min-height: initial;
        z-index: 2;
        position: relative;
        padding-top: 2rem;
        padding-bottom: 4rem;
    }

    .tx-hero .tx-hero__lead {
        font-size: .875rem;
    }

    .tx-hero h1 {
        font-size: 2rem;
    }

    .tx-hero .tx-hero_contenu {
        margin-bottom: 0;
        margin-top: 3rem;
        max-width: 300px;
    }

    .tx-hero .item-notification img {
        width: 1.5rem;
        height: 1.5rem;
    }

    .tx-hero .item-notification .tx-availcard__label {
        font-size: .875rem;
    }

    .tx-hero .taxi img {
        width: 320px;
    }

    .tx-hero .item-notification {
        padding: .5rem .75rem;
    }

    .tx-hero .item-notification:first-of-type {
        bottom: 13rem;
        right: 7.5rem;
    }

    .tx-hero .item-notification:nth-of-type(2) {
        bottom: 8.5rem;
        right: 10.5rem;
    }

    .tx-hero .item-notification:last-of-type {
        bottom: 4rem;
        right: 8.5rem;
    }


    .tx-app {
        padding-top: 2rem;
    }

    .tx-app .tx-app__brand {
        font-size: 1.5rem;
    }

    .tx-why__media {
        margin-right: initial;
    }

    .tx-why__media img {
        border-radius: 1rem;
        aspect-ratio: 16 / 9;
    }

    .tx-damier {
        background-size: 3rem;
        margin-top: -1.5rem;
        height: 3rem;
    }

    .tx-estimate__widget {
        min-height: 900px;
        background: transparent;
        box-shadow: none;
        border-radius: none;
    }

    #tx-estimate .img-taxi img {
        display: none;
    }

    .tx-cta-final {
        padding-top: 3rem;
    }


    .tx-cta-final .item-notification:first-of-type {
        top: 1.5rem;
        left: 2.5rem;
    }

    .tx-cta-final .item-notification:nth-of-type(2) {
        top: 8rem;
        left: 0;
        transform: scale(1);
    }

    .tx-cta-final .item-notification:last-of-type {
        bottom: initial;
        left: 1rem;
        top: 15rem;
        right: initial;
    }

    .tx-cta-final h2 {
        font-size: 1.5rem;
    }

}

/* --- Reveal au scroll --- */
[data-reveal]:not(:has(.item-notification)):not(:has(.tx-estimate__widget)):not(.uk-slider-items) {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}