/* ============================================================
   FLEXTURBO - PHASE 6C.4 - FOOTER MOBILE PREMIUM
   Perimetre strict : <= 1023 px (breakpoint mobile du theme).
   Le footer desktop (>= 1024 px) n'est pas cible par les regles
   de mise en page de ce fichier.
   Aucune ressource externe, aucun nouveau script.
   ============================================================ */

/* Eléments ajoutés pour la variante mobile uniquement.
   L'attribut hidden garantit l'absence de rendu desktop même si
   cette feuille n'était pas chargée. */
.ftx-footer__m-only,
.ftx-nl-icon,
.ftx-nl-title-mobile,
.ftx-nl-desc,
.ftx-nl-btn-arrow {
    display: none;
}

@media (max-width: 1023px) {
    .ftx-footer,
    .ftx-footer *,
    .ftx-footer *::before,
    .ftx-footer *::after {
        box-sizing: border-box;
    }

    .page-footer:has(.ftx-footer) {
        background: #050506;
    }

    .ftx-footer {
        --ft6c4-bg: #050506;
        --ft6c4-card: #1b1e24;
        --ft6c4-card-2: #171a1f;
        --ft6c4-line: #30343c;
        --ft6c4-line-soft: #262a31;
        --ft6c4-text: #c7cbd2;
        --ft6c4-muted: #a1a7b0;
        --ft6c4-white: #fff;
        --ft6c4-red: #e60012;
        --ft6c4-yellow: #ffd200;
        --ft6c4-green: #0b7a5f;
        --ft6c4-ink: #101116;
        --ft6c4-cond: var(--font-cond, "Barlow Condensed", "Arial Narrow", Arial, sans-serif);
        width: 100%;
        padding: 0 0 6px;
        background: var(--ft6c4-bg);
        color: var(--ft6c4-text);
        font-family: Inter, ui-sans-serif, system-ui, sans-serif;
        font-size: 14px;
        line-height: 1.5;
    }

    .ftx-footer a {
        color: inherit;
        text-decoration: none;
    }

    /* ---------------- Réassurance : 2 x 2 + carte large ---------------- */
    .ftx-footer .ftx-footer__trust {
        padding: 12px 16px 16px;
        border-top: 3px solid var(--ft6c4-red);
        border-bottom: 2px solid var(--ft6c4-red);
        background: var(--ft6c4-bg);
    }

    .ftx-footer .ftx-footer__trust-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .ftx-footer .ftx-footer__trust-item,
    .ftx-footer .ftx-footer__trust-item + .ftx-footer__trust-item,
    .ftx-footer .ftx-footer__trust-item:nth-child(2n),
    .ftx-footer .ftx-footer__trust-item:nth-child(4) {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        min-width: 0;
        min-height: 92px;
        margin: 0;
        padding: 12px 10px;
        grid-column: auto;
        border: 1px solid var(--ft6c4-line);
        border-radius: 10px;
        background: linear-gradient(180deg, #1e2127 0%, var(--ft6c4-card-2) 100%);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 7px 16px rgb(0 0 0 / 26%);
    }

    .ftx-footer .ftx-footer__trust-item:nth-child(n + 3) {
        border-top: 1px solid var(--ft6c4-line);
    }

    .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item {
        grid-column: auto;
    }

    .ftx-footer .ftx-footer__trust-item svg {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
        margin-top: 1px;
        color: var(--ft6c4-red);
        stroke-width: 1.8;
    }

    .ftx-footer .ftx-footer__trust-item span {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .ftx-footer .ftx-footer__trust-item strong {
        color: var(--ft6c4-white);
        font-family: var(--ft6c4-cond);
        font-size: 16.5px;
        font-style: italic;
        font-weight: 800;
        line-height: 1.02;
        letter-spacing: 0.015em;
        text-transform: uppercase;
    }

    .ftx-footer .ftx-footer__trust-item small {
        margin-top: 4px;
        color: var(--ft6c4-muted);
        font-size: 12px;
        line-height: 1.32;
    }

    .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item--card {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: center;
        grid-column: 1 / -1;
        min-height: 0;
    }

    .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item--card > span {
        display: block;
    }

    .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item--card strong {
        display: block;
    }

    .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item--card small {
        display: block;
    }

        .ftx-footer .ftx-footer__m-pay {
        display: flex;
        flex-wrap: wrap;
        grid-column: 1 / -1;
        align-items: center;
        gap: 8px 14px;
        margin: 11px 0 0;
        padding: 10px 0 0;
        border-top: 1px solid rgb(255 255 255 / 8%);
        list-style: none;
    }

    .ftx-footer .ftx-footer__m-pay li.ftx-mark {
        display: flex;
        align-items: center;
        height: 22px;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .ftx-footer .ftx-footer__m-pay .ftx-mark--cb .ftx-mark__logo {
        height: 17px;
    }

    .ftx-footer .ftx-footer__m-pay .ftx-mark--visa .ftx-mark__logo {
        height: 14px;
    }

    .ftx-footer .ftx-footer__m-pay .ftx-mark--mastercard .ftx-mark__logo {
        height: 18px;
    }

    .ftx-footer .ftx-footer__m-pay .ftx-mark--paypal .ftx-mark__logo {
        height: 16px;
    }

    /* ---------------- Identité FLEXTURBO ---------------- */
    .ftx-footer .ftx-footer__main {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 22px 16px 4px;
        background: var(--ft6c4-bg);
    }

    .ftx-footer .ftx-footer__main > :not(.ftx-footer__brand) {
        display: none;
    }

    .ftx-footer .ftx-footer__brand {
        grid-column: auto;
        min-width: 0;
        padding: 0;
        text-align: center;
    }

    .ftx-footer .ftx-footer__logo {
        display: inline-block;
        width: min(320px, 82vw);
        padding: 0;
    }

    .ftx-footer .ftx-footer__logo picture {
        display: block;
    }

    .ftx-footer .ftx-footer__logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    .ftx-footer .ftx-footer__brand p {
        max-width: 430px;
        margin: 14px auto 0;
        color: var(--ft6c4-text);
        font-size: 14.5px;
        line-height: 1.55;
    }

    .ftx-footer .ftx-footer__brand .ftx-footer__origin {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin-top: 12px;
        color: var(--ft6c4-white);
        font-size: 14px;
        font-weight: 700;
        line-height: 1.3;
    }

    .ftx-footer .ftx-footer__flag {
        flex: 0 0 20px;
        width: 20px;
        height: 14px;
        border: 1px solid rgb(255 255 255 / 18%);
    }

        .ftx-footer .ftx-footer__m-dept {
        display: inline;
    }

    /* ---------------- Contacts rapides ---------------- */
        .ftx-footer .ftx-footer__m-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        margin: 0;
        padding: 18px 16px 6px;
    }

    .ftx-footer .ftx-footer__m-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-width: 0;
        min-height: 56px;
        padding: 10px 12px;
        border-radius: 12px;
        font-family: var(--ft6c4-cond);
        font-size: 18px;
        font-style: italic;
        font-weight: 800;
        line-height: 1;
        letter-spacing: 0.02em;
        text-align: center;
        text-transform: uppercase;
        box-shadow: 0 8px 18px rgb(0 0 0 / 30%);
        transition: filter 0.15s ease, transform 0.15s ease;
    }

    .ftx-footer .ftx-footer__m-btn svg {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
    }

    .ftx-footer .ftx-footer__m-btn--phone {
        grid-column: 1 / -1;
        background: var(--ft6c4-yellow);
        color: var(--ft6c4-ink);
        font-size: 29px;
        letter-spacing: 0.01em;
    }

    .ftx-footer .ftx-footer__m-btn--wa {
        background: var(--ft6c4-green);
        color: #fff;
    }

    .ftx-footer .ftx-footer__m-btn--mail {
        background: var(--ft6c4-red);
        color: #fff;
    }

    .ftx-footer .ftx-footer__m-btn:hover {
        filter: brightness(1.06);
    }

    .ftx-footer .ftx-footer__m-btn:active {
        transform: translateY(1px);
    }

    .ftx-footer .ftx-footer__m-btn:focus-visible,
    .ftx-footer .ftx-footer__m-acc summary:focus-visible,
    .ftx-footer .ftx-footer__m-nav a:focus-visible,
    .ftx-footer .ftx-footer__bottom a:focus-visible {
        outline: 2px solid var(--ft6c4-yellow);
        outline-offset: 3px;
        border-radius: 5px;
    }

    /* ---------------- Accordéons natifs ---------------- */
        .ftx-footer .ftx-footer__m-nav {
        display: block;
        width: 100%;
        margin: 10px 0 0;
        padding: 0 16px;
        border-top: 1px solid var(--ft6c4-line);
    }

    .ftx-footer .ftx-footer__m-acc {
        border-bottom: 1px solid var(--ft6c4-line-soft);
    }

    .ftx-footer .ftx-footer__m-acc summary {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 56px;
        padding: 11px 2px;
        color: var(--ft6c4-white);
        cursor: pointer;
        list-style: none;
        touch-action: manipulation;
    }

    .ftx-footer .ftx-footer__m-acc summary::-webkit-details-marker {
        display: none;
    }

    .ftx-footer .ftx-footer__m-acc summary::marker {
        content: "";
    }

    .ftx-footer .ftx-footer__m-acc-icon {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        color: var(--ft6c4-white);
    }

    .ftx-footer .ftx-footer__m-acc-icon svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .ftx-footer .ftx-footer__m-acc-title {
        flex: 1 1 auto;
        min-width: 0;
        color: var(--ft6c4-white);
        font-family: var(--ft6c4-cond);
        font-size: 19px;
        font-style: italic;
        font-weight: 800;
        line-height: 1.1;
        letter-spacing: 0.025em;
        text-transform: uppercase;
    }

    .ftx-footer .ftx-footer__m-acc-chevron {
        flex: 0 0 24px;
        width: 24px;
        height: 24px;
        color: var(--ft6c4-red);
        transition: transform 0.2s ease;
    }

    .ftx-footer .ftx-footer__m-acc-chevron svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .ftx-footer .ftx-footer__m-acc[open] .ftx-footer__m-acc-chevron {
        transform: rotate(180deg);
    }

    .ftx-footer .ftx-footer__m-acc ul {
        margin: 0;
        padding: 0 0 10px 38px;
        list-style: none;
    }

    .ftx-footer .ftx-footer__m-acc li {
        margin: 0;
        padding: 0;
    }

    .ftx-footer .ftx-footer__m-acc li a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 7px 0;
        color: var(--ft6c4-text);
        font-size: 14.5px;
        line-height: 1.35;
    }

    .ftx-footer .ftx-footer__m-acc li a:active {
        color: var(--ft6c4-white);
    }

    /* ---------------- Newsletter : carte anthracite ---------------- */
    .ftx-footer .ftx-footer__band {
        display: block;
        width: calc(100% - 32px);
        max-width: none;
        margin: 16px auto 0;
        padding: 16px 14px 14px;
        border: 1px solid var(--ft6c4-line);
        border-radius: 14px;
        background: linear-gradient(180deg, #1d2026 0%, var(--ft6c4-card-2) 100%);
        box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%), 0 8px 20px rgb(0 0 0 / 24%);
    }

    .ftx-footer .ftx-footer__methods {
        display: none;
    }

    .ftx-footer .ftx-footer__newsletter,
    .ftx-footer .ftx-footer__newsletter > div {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .ftx-footer .ftx-footer__newsletter form {
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: center;
        column-gap: 12px;
        width: 100%;
        margin: 0;
    }

        .ftx-footer .ftx-footer__newsletter .ftx-nl-icon {
        display: block;
        grid-column: 1;
        grid-row: 1 / 3;
        width: 40px;
        height: 40px;
        padding-right: 10px;
        border-right: 2px solid var(--ft6c4-red);
        color: var(--ft6c4-white);
        box-sizing: content-box;
    }

    .ftx-footer .ftx-footer__newsletter form h2 {
        grid-column: 2;
        grid-row: 1;
        margin: 0 !important;
        color: var(--ft6c4-white);
        font-family: var(--ft6c4-cond);
        font-size: 22px;
        font-style: italic;
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: 0.015em;
        text-transform: uppercase;
    }

    .ftx-footer .ftx-footer__newsletter .ftx-nl-title-desktop {
        display: none;
    }

        .ftx-footer .ftx-footer__newsletter .ftx-nl-title-mobile {
        display: inline;
    }

        .ftx-footer .ftx-footer__newsletter .ftx-nl-desc {
        display: block;
        grid-column: 2;
        grid-row: 2;
        margin: 3px 0 0;
        color: var(--ft6c4-muted);
        font-size: 13px;
        line-height: 1.4;
    }

    .ftx-footer .ftx-footer__newsletter form > div:nth-of-type(2) {
        grid-column: 1 / -1;
    }

    .ftx-footer .ftx-footer__newsletter form > div:first-of-type > .control {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        border: 0;
    }

    .ftx-footer .ftx-footer__newsletter form > div:first-of-type {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 3;
        grid-template-columns: minmax(0, 1fr) 52px;
        gap: 8px;
        width: 100%;
        max-width: none;
        margin-top: 14px;
    }

    .ftx-footer .ftx-footer__newsletter input[type="email"] {
        width: 100%;
        height: 52px;
        min-width: 0;
        padding: 0 14px;
        border: 1px solid #4a4f59;
        border-radius: 10px;
        background: #2a2d34;
        color: var(--ft6c4-white);
        font-size: 16px;
        line-height: 1;
        box-shadow: none;
    }

    .ftx-footer .ftx-footer__newsletter input[type="email"]::placeholder {
        color: #aeb4bd;
    }

    .ftx-footer .ftx-footer__newsletter input[type="email"]:focus {
        border-color: var(--ft6c4-yellow);
        outline: 2px solid var(--ft6c4-yellow);
        outline-offset: 1px;
    }

    .ftx-footer .ftx-footer__newsletter button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 52px;
        height: 52px;
        min-width: 52px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: var(--ft6c4-yellow);
        color: var(--ft6c4-ink);
        box-shadow: none;
    }

    .ftx-footer .ftx-footer__newsletter button:hover {
        background: #ffdd33;
    }

    .ftx-footer .ftx-footer__newsletter .ftx-nl-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

        .ftx-footer .ftx-footer__newsletter .ftx-nl-btn-arrow {
        display: block;
        width: 26px;
        height: 26px;
    }

    .ftx-footer .ftx-footer__newsletter :is(p, .prose, small),
    .ftx-footer .ftx-footer__newsletter .prose * {
        max-width: none;
        margin-top: 11px;
        color: #969ca5;
        font-size: 10.5px;
        font-style: normal;
        line-height: 1.45;
    }

    .ftx-footer .ftx-footer__newsletter .prose a,
    .ftx-footer .ftx-footer__newsletter p a {
        color: #c7cbd2;
        font-size: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .ftx-footer .ftx-footer__newsletter [role="alert"] {
        margin-top: 10px;
        color: #ff7d84;
        font-size: 12px;
        line-height: 1.4;
    }

    /* ---------------- Transporteurs + paiement sécurisé ---------------- */
        .ftx-footer .ftx-footer__m-carriers {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 10px 14px;
        width: calc(100% - 32px);
        margin: 0 auto;
        padding: 16px 0 12px;
        border-top: 1px solid var(--ft6c4-line-soft);
    }

    .ftx-footer .ftx-footer__m-carriers-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 12px;
        min-width: 0;
    }

    .ftx-footer .ftx-footer__m-carriers-label {
        color: var(--ft6c4-muted);
        font-size: 13px;
        line-height: 1.2;
    }

    .ftx-footer .ftx-footer__m-carriers ul {
        display: flex;
        align-items: center;
        gap: 14px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .ftx-footer .ftx-footer__m-carriers li.ftx-mark {
        display: flex;
        align-items: center;
        height: 26px;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .ftx-footer .ftx-footer__m-carriers .ftx-mark--chronopost .ftx-mark__logo {
        height: 18px;
    }

    .ftx-footer .ftx-footer__m-carriers .ftx-mark--ups .ftx-mark__logo {
        height: 27px;
    }

    .ftx-footer .ftx-footer__m-secure {
        display: flex;
        align-items: center;
        gap: 7px;
        padding-left: 14px;
        border-left: 1px solid #3b3f47;
        color: #d9dde2;
        font-size: 12.5px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .ftx-footer .ftx-footer__m-secure svg {
        flex: 0 0 17px;
        width: 17px;
        height: 17px;
        color: var(--ft6c4-white);
    }

    /* ---------------- Barre légale ---------------- */
    .ftx-footer .ftx-footer__bottom {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px 18px;
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
        padding: 12px 0 22px;
        border-top: 0;
        color: var(--ft6c4-muted);
        font-size: 12.5px;
        line-height: 1.4;
    }

    .ftx-footer .ftx-footer__bottom > p {
        flex: 1 1 100%;
        order: 1;
        margin: 0;
    }

    .ftx-footer .ftx-footer__legal {
        display: flex;
        flex-wrap: wrap;
        order: 2;
        gap: 0 18px;
        margin-right: auto;
    }

    .ftx-footer .ftx-footer__legal a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0;
        color: var(--ft6c4-text);
    }

    .ftx-footer .ftx-footer__store {
        order: 3;
        width: 100%;
        margin: 2px 0 0;
    }

    .ftx-footer .ftx-footer__store > div {
        width: 100% !important;
    }

    .ftx-footer .ftx-footer__store [x-data="initLanguageSwitcher"] {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .ftx-footer .ftx-footer__store [x-data="initLanguageSwitcher"] > div:first-child {
        margin: 0;
        color: var(--ft6c4-muted);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.08em;
    }

    .ftx-footer .ftx-footer__store button {
        min-height: 44px;
        min-width: 128px;
        padding: 0 34px 0 12px;
        border: 1px solid #3b3f47;
        border-radius: 8px;
        background-color: #1b1e24;
        color: var(--ft6c4-white);
        font-size: 14px;
        text-align: left;
    }

    /* ---------------- Adaptations ---------------- */
    @media (min-width: 600px) {
        .ftx-footer .ftx-footer__m-actions {
            grid-template-columns: 1.35fr 1fr 1fr;
        }

        .ftx-footer .ftx-footer__m-btn--phone {
            grid-column: auto;
            font-size: 24px;
        }

        .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item {
            min-height: 84px;
        }

        .ftx-footer .ftx-footer__trust-item strong {
            font-size: 18px;
        }

        .ftx-footer .ftx-footer__brand p {
            font-size: 15px;
        }

        .ftx-footer .ftx-footer__newsletter .ftx-nl-icon {
            width: 48px;
            height: 48px;
        }

        .ftx-footer .ftx-footer__newsletter form h2 {
            font-size: 25px;
        }
    }

    @media (max-width: 479px) {
        .ftx-footer .ftx-footer__m-secure {
            width: 100%;
            padding: 9px 0 0;
            border-top: 1px solid var(--ft6c4-line-soft);
            border-left: 0;
        }
    }

    @media (max-width: 359px) {
        .ftx-footer .ftx-footer__trust-list .ftx-footer__trust-item {
            padding: 10px 8px;
            gap: 8px;
        }

        .ftx-footer .ftx-footer__brand .ftx-footer__origin {
            gap: 6px;
            font-size: 12.5px;
        }

        .ftx-footer .ftx-footer__trust-item svg {
            flex-basis: 28px;
            width: 28px;
            height: 28px;
        }

        .ftx-footer .ftx-footer__trust-item strong {
            font-size: 15px;
        }

        .ftx-footer .ftx-footer__trust-item small {
            font-size: 11.5px;
        }

        .ftx-footer .ftx-footer__m-btn {
            gap: 7px;
            padding: 9px 8px;
            font-size: 16px;
        }

        .ftx-footer .ftx-footer__m-btn--phone {
            font-size: 26px;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .ftx-footer .ftx-footer__m-acc-chevron,
        .ftx-footer .ftx-footer__m-btn {
            transition: none;
        }
    }
}@media (max-width: 1023px) {
    body.cms-index-index .ftx-footer .ftx-footer__store .form-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' stroke='%23ffffff'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    }

    body.cms-index-index .ftx-footer .ftx-footer__m-pay li.ftx-mark--visa {
        box-sizing: border-box;
        height: 22px;
        padding: 4px;
        border-radius: 3px;
        background: #fff;
    }
}