.breadcrumb {display: none;}

/* PHOTOS : remplacer chaque « none » par url("URL_DE_LA_PHOTO").
   Exemple : --eretic-photo: url("https://ton-site.fr/img/photo.webp");
   Sans photo, un dégradé sombre permet déjà de tester la disposition. */
.eretic-footer-cards .footer-photo-1 {--eretic-photo: url("/img/Eretic/backfoot.jpg");}
.eretic-footer-cards .footer-photo-2 {--eretic-photo: url("/img/Eretic/backfoot.jpg");}
.eretic-footer-cards .footer-photo-3 {--eretic-photo: url("/img/Eretic/backfoot.jpg");}
.eretic-footer-cards .footer-photo-4 {--eretic-photo: url("/img/Eretic/backfoot.jpg");}

.eretic-footer-cards,
.eretic-footer-cards > .elementor-widget-container {
    min-width: 0;
    width: 100%;
}

.eretic-footer-cards .pk-nav {
    display: block !important;
    width: 100%;
}

.eretic-footer-cards .pk-nav > .pk-menu-icon,
.eretic-footer-cards .pk-dropdown-toggler {
    display: none !important;
}

.eretic-footer-cards .pk-nav > .pk-nav-ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.eretic-footer-cards .pk-nav-ul > .pk-nav-li {
    min-width: 0;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.eretic-footer-cards .pk-nav-li > div:first-child {
    display: block;
    height: 100%;
}

.eretic-footer-cards .pk-nav-link {
    position: relative;
    isolation: isolate;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 240px;
    padding: 26px !important;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #26333b !important;
    color: #fff !important;
    text-decoration: none !important;
    text-align: left;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 6px #0008;
}

.eretic-footer-cards .pk-nav-link::before {
    content: "";
    position: absolute;
    inset: -18px;
    z-index: -1;
    width: auto;
    height: auto;
    border: 0;
    opacity: 1;
    background-image: linear-gradient(180deg, #0000 25%, #000b 100%),
                      var(--eretic-photo, none);
    background-size: cover;
    background-position: var(--eretic-position, 50% 50%);
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translate3d(var(--eretic-x, 0px), var(--eretic-y, 0px), 0);
    transition: transform 240ms ease-out;
}

.eretic-footer-cards .pk-nav-link::after {
    content: none !important;
}

.eretic-footer-cards .pk-nav-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -6px;
}

.eretic-footer-cards .eretic-tilt-button {
    display: block;
    margin: 12px 0 0 auto;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: 3px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.eretic-footer-cards .eretic-tilt-button[hidden] {
    display: none !important;
}

@media (max-width: 1024px) {
    .eretic-footer-cards .pk-nav > .pk-nav-ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .eretic-footer-cards .pk-nav > .pk-nav-ul {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .eretic-footer-cards .pk-nav-link {
        min-height: 210px;
        padding: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eretic-footer-cards .pk-nav-link::before {
        transform: none !important;
        transition: none !important;
    }
    .eretic-footer-cards .eretic-tilt-button {
        display: none !important;
    }
}

/* Place pour laisser les cartes basculer */
.eretic-footer-cards .pk-nav > .pk-nav-ul {
    padding: 20px !important;
    box-sizing: border-box;
}

.eretic-footer-cards .pk-nav-li {
    position: relative;
}

.eretic-footer-cards .pk-nav-li:hover {
    z-index: 2;
}

.eretic-footer-cards .pk-nav-li > div:first-child {
    perspective: 1000px;
}

/* Mouvement de la carte entière */
.eretic-footer-cards .pk-nav-link {
    transform:
        rotateX(var(--eretic-rx, 0deg))
        rotateY(var(--eretic-ry, 0deg));
    transform-origin: center;
    transition: transform 240ms ease-out, box-shadow 240ms ease-out;
}

.eretic-footer-cards .pk-nav-li:hover .pk-nav-link {
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.3);
}

/* L’image reste fixe à l’intérieur de la carte */
.eretic-footer-cards .pk-nav-link::before {
    inset: 0;
    transform: none !important;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .eretic-footer-cards .pk-nav-link {
        transform: none !important;
        transition: none !important;
    }
}

.eretic-footer-cards .pk-nav-link {
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .eretic-footer-cards .pk-nav > .pk-nav-ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
    }

    .eretic-footer-cards .pk-nav-li > div:first-child {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .eretic-footer-cards .pk-nav-link {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        padding: 8px !important;
        font-size: clamp(14px, 3.8vw, 18px) !important;
        line-height: 1.15;
    }
}

@media (min-width: 1025px) {
    .eretic-footer-cards .pk-nav > .pk-nav-ul {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px !important;
    }

    .eretic-footer-cards .pk-nav-ul > .pk-nav-li {
        flex: 0 0 calc((100% - 70px) / 6);
    }

    .eretic-footer-cards .pk-nav-li > div:first-child {
        position: relative;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .eretic-footer-cards .pk-nav-link {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 0 !important;
        padding: 10px !important;
    }
}