/* ============================================================================
   Shortcode [liste_contenu] — Grid layout + card styles
   ============================================================================ */

/* === GRID ================================================================= */

.lf-lc {
    --lf-lc-cols: 3;
    --lf-lc-gap: 30px;

    display: grid;
    grid-template-columns: repeat(var(--lf-lc-cols), 1fr);
    gap: var(--lf-lc-gap);
    margin: 0 0 4.75rem;
}

.lf-lc--cols-1 { --lf-lc-cols: 1; }
.lf-lc--cols-2 { --lf-lc-cols: 2; }
.lf-lc--cols-3 { --lf-lc-cols: 3; }
.lf-lc--cols-4 { --lf-lc-cols: 4; }
.lf-lc--cols-5 { --lf-lc-cols: 5; }
.lf-lc--cols-6 { --lf-lc-cols: 6; }

@media (max-width: 1024px) {
    .lf-lc--cols-4,
    .lf-lc--cols-5,
    .lf-lc--cols-6 { --lf-lc-cols: 3; }
}

@media (max-width: 768px) {
    .lf-lc {
        --lf-lc-cols: 2;
        --lf-lc-gap: 20px;
    }
}

@media (max-width: 580px) {
    .lf-lc { --lf-lc-cols: 1; }
}

/* === CARD (base commune) ================================================= */

.lf-lc-card {
    position: relative;
    background-color: var(--light, #f5f5f5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.lf-lc-card:hover {
    transform: translateY(-3px);
}

.lf-lc-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.lf-lc-card__link:hover,
.lf-lc-card__link:focus {
    color: inherit;
    text-decoration: none;
}

.lf-lc-card__visual {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 50.8%;
    overflow: hidden;
    background: #eaeaea;
}

.lf-lc-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.lf-lc-card:hover .lf-lc-card__img {
    transform: scale(1.04);
}

.lf-lc-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    font-family: "DinPro", sans-serif;
    letter-spacing: 0.02em;
    color: #fff;
    background-color: var(--univers-color, rgba(0, 0, 0, 0.75));
    z-index: 2;
}

/* === BODY ================================================================= */

.lf-lc-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 24px 20px;
}

.lf-lc-card__title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    text-transform: none;
    margin: 0 0 14px;
    color: inherit;
}

.lf-lc-card__excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === META (catégorie + temps de lecture blog) ============================ */

.lf-lc-card__meta {
    position: relative;
    margin-top: 14px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: "DinPro", sans-serif;
    text-transform: uppercase;
    line-height: 1.3;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lf-lc-card__meta-category {
    color: var(--univers-color, #222);
}

.lf-lc-card__meta-sep {
    color: #222;
    font-weight: normal;
}

.lf-lc-card__meta-reading {
    color: #222;
}

/* === CTA ================================================================== */

.lf-lc-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: "DinPro", sans-serif;
    text-transform: uppercase;
    color: var(--univers-color, #0073aa);
}

.lf-lc-card__cta::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent var(--univers-color, #0073aa);
    transition: transform 0.2s ease;
}

.lf-lc-card:hover .lf-lc-card__cta::after {
    transform: translateX(4px);
}

/* === RESPONSIVE =========================================== */

@media (min-width: 1030px) {
    .lf-lc-card__title {
        font-size: 2.8rem;
        line-height: 1.214;
    }
}

@media (max-width: 768px) {
    .lf-lc-card__body {
        padding: 20px 16px;
    }
    .lf-lc-card__title {
        font-size: 1.8rem;
    }
}

/* === STATES =============================================================== */

.lf-lc-empty,
.lf-lc-error {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.lf-lc-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    border-radius: 4px;
}


/* ============================================================================
   APPLICATIONS — overrides
   ============================================================================ */
.lf-lc-card--applications {
    background-color: #fff;
}

.lf-lc-card--applications:hover .lf-lc-card__img {
    transform: none;
}

.lf-lc-card--applications .lf-lc-card__visual {
    padding-bottom: 93.29%;
}

.lf-lc-card--applications .lf-lc-card__badge {
    top: 0;
    left: 0;
    padding: 8px 18px 8px 11px;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: "DinPro", sans-serif;
    letter-spacing: 0.3px;
    line-height: 1;
    color: #fff;
    background-color: var(--brown, #6b4a2b);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    border-radius: 0;
}

.lf-lc-card--applications .lf-lc-card__body {
    padding: 0;
    justify-content: space-between;
}

.lf-lc-card--applications .lf-lc-card__title {
    position: relative;
    padding: 40px 26px 10px !important;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.33;
}

.lf-lc-card--applications .lf-lc-card__title::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: -2px;
    right: 20px;
    transform: translateY(-50%);
    display: block;
    width: 58px;
    height: 58px;
    border-radius: 80px;
    background: url("../img/icone-application-fonce.svg") center no-repeat;
    background-size: contain;
}

.lf-lc-card--applications .lf-lc-card__excerpt {
    padding: 0 26px !important;
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #333;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lf-lc-card--applications .lf-lc-card__cta {
    padding: 11px 29px;
    width: 100%;
    border-top: 2px solid var(--light, #f5f5f5);
    font-size: 1.5rem;
    font-family: "DinPro", sans-serif;
    font-weight: 500;
    color: var(--main-color, #0073aa);
    background-color: transparent;
    transition: background-color 0.2s ease, color 0.2s ease;
    height: 6.5rem;
    margin-top: 2.1rem;
}

.lf-lc-card--applications .lf-lc-card__cta::after {
    border-color: transparent transparent transparent var(--main-color, #0073aa);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.lf-lc-card--applications:hover .lf-lc-card__cta {
    background-color: var(--main-color, #0073aa);
    color: #fff;
}

.lf-lc-card--applications:hover .lf-lc-card__cta::after {
    border-color: transparent transparent transparent #fff;
}

.lf-lc-card--applications picture img {
    height: 100%;
    object-fit: cover;
}

/* Responsive applications */
@media (min-width: 1030px) {
    .lf-lc-card--applications .lf-lc-card__title {
        font-size: 1.8rem;
        line-height: 1.33;
        text-transform: uppercase;
    }
}

@media (max-width: 768px) {
    .lf-lc-card--applications .lf-lc-card__title {
        padding: 36px 20px 10px;
        font-size: 1.5rem;
    }
    .lf-lc-card--applications .lf-lc-card__excerpt {
        padding: 0 20px 20px;
    }
    .lf-lc-card--applications .lf-lc-card__cta {
        padding: 11px 20px;
    }
}


/* ============================================================================
   PRODUIT 
   ============================================================================ */

/* --- Card container ------------------------------------------------------- */
.lf-lc-card--produit {
    background-color: #fff;
    transition: none;
}

.lf-lc-card--produit:hover {
    transform: none;
}

.lf-lc-card--produit .lf-lc-card__visual {
    padding-bottom: 83%;
    background: #f0f0f0;
    overflow: hidden;
}

.lf-lc-card--produit .lf-lc-card__img {
    object-fit: cover;
    transition: none;
}

.lf-lc-card--produit .lf-lc-card__img img{
    height: 100%;
    object-fit: cover;
}

.lf-lc-card--produit .lf-lc-card__visual::before {
    content: "";
    position: absolute;
    z-index: 3;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 13px;
    background-color: var(--univers-color, #e07b39);
    opacity: 0.77;
    transition: opacity 0.2s ease;
    clip-path: polygon(
        calc(100% - 83px) calc(100% - 2px),
        calc(100% - 79px) 0%,
        100% 0,
        100% 100%,
        0 100%,
        0% calc(100% - 2px)
    );
    pointer-events: none;
}

.lf-lc-card--produit .lf-lc-card__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background-color: var(--univers-color, #e07b39);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lf-lc-card--produit:hover .lf-lc-card__visual::after {
    opacity: 0.77;
}

.lf-lc-card--produit:hover .lf-lc-card__visual::before {
    opacity: 0;
}

.lf-lc-card--produit::before {
    content: "VOIR PLUS \25B8"; /* ▸ */
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    color: var(--univers-color, #e07b39);
    background-color: #fff;
    padding: 7px 56px;

    position: absolute;
    z-index: 6;
    top: calc(68% / 2);
    left: 50%;
    transform: translate(-50%, -50%);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lf-lc-card--produit:hover::before {
    opacity: 1;
}

/* Traductions */
html[lang="en"] .lf-lc-card--produit::before    { content: "SEE MORE \25B8"; }
html[lang="it"] .lf-lc-card--produit::before,
html[lang="it-IT"] .lf-lc-card--produit::before { content: "VEDI ALTRO \25B8"; }
html[lang="de"] .lf-lc-card--produit::before,
html[lang="de-DE"] .lf-lc-card--produit::before { content: "MEHR ANSEHEN \25B8"; }

.lf-lc-card--produit .lf-lc-card__badge,
.lf-lc-card--produit .lf-lc-card__produit-univers,
.lf-lc-card--produit .lf-lc-card__produit-tags,
.lf-lc-card--produit .lf-lc-card__cta {
    display: none;
}

/* --- Corps ---------------------------------------------------------------- */
.lf-lc-card--produit .lf-lc-card__body {
    padding: 0 18px 9px;
    gap: 0;
}

.lf-lc-card--produit .lf-lc-card__title {
    padding: 12px 0;
    margin: 12px 0 37px 0;
    font-size: 1.8rem;
    font-weight: 500;
    font-family: "DinPro", sans-serif;
    text-transform: uppercase;
    line-height: 1.5;
    color: var(--univers-color, #e07b39);
}

.lf-lc-card--produit .lf-lc-card__excerpt {
    font-size: 1.7rem;
    line-height: 1.25;
    color: #333;
    margin-bottom: 0;
    -webkit-line-clamp: 4;
    text-transform: none;
    font-weight: 500;
}

/* --- Responsive produit --------------------------------------------------- */
@media (min-width: 851px) {
    .lf-lc-card--produit .lf-lc-card__body {
        padding: 0 34px 45px;
    }

    .lf-lc-card--produit .lf-lc-card__title {
        font-size: 2rem;
    }
}

@media (max-width: 580px) {
    .lf-lc-card--produit .lf-lc-card__body {
        padding: 0 18px 12px;
    }

    .lf-lc-card--produit .lf-lc-card__title {
        font-size: 1.6rem;
    }

    .lf-lc-card--produit::before {
        display: none;
    }
}