/* Siroter v0.63 — pages croisées catégorie × ingrédient */
.cross-page {
    padding-bottom: 72px;
}

.cross-page .breadcrumbs {
    margin-bottom: 24px;
}

.cross-hero {
    max-width: 980px;
    margin: 18px 0 32px;
}

.cross-hero .eyebrow {
    margin-bottom: 10px;
}

.cross-hero h1 {
    max-width: 980px;
    margin: 0 0 16px;
    font-family: "DM Serif Display", serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.025em;
    color: #171714;
}

.cross-hero > p:last-child {
    max-width: 800px;
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
    color: #595650;
}

.cross-ingredient {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    margin: 0 0 38px;
    padding: 24px;
    border: 1px solid rgba(80, 67, 48, .08);
    border-radius: 20px;
    background: #eee3d5;
    overflow: hidden;
}

.cross-ingredient__media {
    display: block;
    width: 190px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 16px;
    background: #f7f4ee;
}

.cross-ingredient__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f7f4ee;
}

.cross-ingredient__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: "DM Serif Display", serif;
    font-size: 52px;
    color: #de5b28;
}

.cross-ingredient__content .eyebrow {
    margin-bottom: 4px;
}

.cross-ingredient__content h2 {
    margin: 0 0 9px;
    font-family: "DM Serif Display", serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 400;
    line-height: 1.05;
}

.cross-ingredient__content h2 a {
    color: inherit;
    text-decoration: none;
}

.cross-ingredient__content p:not(.eyebrow) {
    max-width: 720px;
    margin: 0 0 13px;
    color: #595650;
    line-height: 1.6;
}

.cross-ingredient__link,
.cross-back-link {
    color: #de5b28;
    font-weight: 700;
    text-decoration: none;
}

.cross-ingredient__link:hover,
.cross-ingredient__link:focus-visible,
.cross-back-link:hover,
.cross-back-link:focus-visible {
    text-decoration: underline;
}

.cross-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.cross-links {
    margin: 22px 0 34px;
}

.cross-links .eyebrow {
    margin-bottom: 10px;
}

.cross-links__track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cross-links__track a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(23, 23, 20, .12);
    border-radius: 999px;
    background: #fff;
    color: #171714;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.cross-links__track a span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #efe8dc;
    font-size: 12px;
}

.cross-links__track a:hover,
.cross-links__track a:focus-visible {
    background: #fff4ec;
    border-color: #de5b28;
    transform: translateY(-1px);
}

/* Fiche ingrédient — accès aux croisements */
.ingredient-cross {
    margin: 28px 0 48px;
    padding: 30px;
    border: 1px solid rgba(80, 67, 48, .08);
    border-radius: 20px;
    background: #f7f4ee;
}

.ingredient-cross__heading {
    margin-bottom: 20px;
}

.ingredient-cross__heading .eyebrow {
    margin-bottom: 6px;
}

.ingredient-cross__heading h2 {
    max-width: 820px;
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.06;
}

.ingredient-cross__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.ingredient-cross-card {
    position: relative;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 48px 20px 20px;
    overflow: hidden;
    border: 1px solid rgba(80, 67, 48, .08);
    border-radius: 14px;
    color: #171714;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(43, 36, 27, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ingredient-cross-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -34px;
    top: -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
}

.ingredient-cross-card--1 { background: #eee3d5; }
.ingredient-cross-card--2 { background: #e6ebdc; }
.ingredient-cross-card--3 { background: #efe1dd; }
.ingredient-cross-card--4 { background: #e2e7e8; }

.ingredient-cross-card:hover,
.ingredient-cross-card:focus-visible {
    color: #171714;
    text-decoration: none;
    transform: translateY(-3px);
    border-color: rgba(222, 91, 40, .38);
    box-shadow: 0 10px 24px rgba(43, 36, 27, .08);
}

.ingredient-cross-card__count {
    position: relative;
    z-index: 1;
    margin-bottom: 6px;
    color: #625c54;
    font-size: 12px;
    line-height: 1.2;
}

.ingredient-cross-card strong {
    position: relative;
    z-index: 1;
    font-family: "DM Serif Display", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.14;
}

.ingredient-cross-card i {
    position: absolute;
    z-index: 1;
    right: 18px;
    bottom: 18px;
    color: #de5b28;
    font-style: normal;
    font-size: 20px;
}

@media (max-width: 900px) {
    .ingredient-cross__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .cross-hero h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .cross-ingredient {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .cross-ingredient__media {
        width: 92px;
    }

    .cross-ingredient__content p:not(.eyebrow) {
        display: none;
    }

    .cross-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .ingredient-cross {
        margin-bottom: 36px;
        padding: 20px 16px;
    }

    .ingredient-cross__grid {
        grid-template-columns: 1fr;
    }

    .ingredient-cross-card {
        min-height: 112px;
    }
}
