/* =====================================================================
   Emballages LM - eframe v3 (visuel 2026-11)
   Couleurs : rouge #cc202d | beige #c6bfb6 | fond #f6f7f2 | brun #3c3936 | footer #333333
   ===================================================================== */

@font-face {
    font-family: 'Kostic-RocGroteskRegular';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/Kostic-RocGroteskRegular.otf) format('opentype');
}

@font-face {
    font-family: 'Kostic-RocGroteskBold';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/Kostic-RocGroteskBold.otf) format('opentype');
}

.lm-page {
    overflow-x: hidden;
    overflow-wrap: break-word;
    --lm-red: #cc202d;
    --lm-red-hover: #a81a25;
    --lm-beige: #c6bfb6;
    --lm-bg: #f6f7f2;
    --lm-brown: #3c3936;
    --lm-footer: #333333;
    --lm-text: #111111;
    --lm-font: 'Kostic-RocGroteskRegular', 'DM Sans', Arial, sans-serif;
    --lm-font-bold: 'Kostic-RocGroteskBold', 'DM Sans', Arial, sans-serif;

    font-family: var(--lm-font);
    color: var(--lm-text);
    background: var(--lm-bg);
    font-size: 16px;
    line-height: 1.6;
}

.lm-page *,
.lm-page *::before,
.lm-page *::after {
    box-sizing: border-box;
}

.lm-page a {
    text-decoration: none;
}

.lm-sheet {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Boutons ---------- */
.lm-page .lm-btn,
.lm-page .lm-btn.btn {
    display: inline-block;
    background: var(--lm-red);
    color: #fff !important;
    border: none;
    border-radius: 0;
    font-family: var(--lm-font);
    font-size: 16px;
    line-height: 1.2;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color .2s ease;
    white-space: nowrap;
    box-shadow: none;
    text-shadow: none;
}

.lm-page .lm-btn:hover,
.lm-page .lm-btn:focus {
    background: var(--lm-red-hover);
    color: #fff !important;
}

.lm-page .lm-btn.disabled {
    background: var(--lm-beige);
    color: var(--lm-text) !important;
    cursor: default;
    opacity: 1;
}

.lm-page .lm-btn .fa {
    display: none;
}

.lm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.lm-tag {
    display: inline-block;
    background: var(--lm-beige);
    color: var(--lm-text);
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.2;
    padding: 5px 16px;
}

.lm-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 15px;
}

.lm-location svg {
    width: 1.05em;
    height: 1.05em;
    flex: 0 0 auto;
    fill: var(--lm-red);
}

/* ---------- En-tête ---------- */
.lm-header {
    background: #fff;
}

.lm-header .lm-sheet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 167px;
    gap: 20px;
}

.lm-header__logo img {
    display: block;
    width: 200px;
    height: auto;
    margin-left: 50px;
}

.lm-header__title {
    margin: 0 28px 0 0;
    font-family: var(--lm-font-bold);
    font-size: 48px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    color: var(--lm-text);
}

/* ---------- Bannière ---------- */
.lm-banner {
    display: block !important;
    position: relative;
    overflow: hidden;
    height: 559px;
    margin: 0;
    padding: 0;
    background: #c6bfb6;
}

.lm-page .lm-banner__img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    margin: 0;
    border: 0;
}

/* ---------- Liste : titre ---------- */
.lm-list-head {
    position: relative;
    background: var(--lm-bg);
}

.lm-list-head .lm-sheet {
    position: relative;
    padding-top: 60px;
    padding-bottom: 50px;
}

.lm-list-head__title {
    margin: 0;
    font-family: var(--lm-font-bold);
    font-size: 60px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--lm-text);
}

.lm-list-head .lm-spontanee {
    position: absolute;
    top: -26px;
    right: 15px;
}

.lm-list-head .lm-spontanee .lm-btn {
    font-size: 20px;
    letter-spacing: 1px;
    padding: 14px 22px 15px;
}

.lm-list-head .lm-spontanee img {
    position: absolute;
    width: 1px;
    height: 1px;
}

/* ---------- Liste : contenu ---------- */
.lm-list-body {
    background: var(--lm-bg);
    padding-bottom: 100px;
}

.lm-list-grid {
    display: grid;
    grid-template-columns: 28% minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.lm-card {
    background: #fff;
    border: 1px solid #ecebe6;
    border-radius: 20px;
    padding: 22px 15px;
}

.lm-intro__kicker {
    margin: 0 0 12px;
    font-family: var(--lm-font-bold);
    font-size: 24px;
    text-transform: uppercase;
    color: var(--lm-red);
    line-height: 1.2;
}

.lm-intro__lead {
    margin: 0 0 30px;
    font-family: var(--lm-font-bold);
    font-size: 18px;
    line-height: 1.8;
}

.lm-intro__list {
    margin: 0 0 24px;
    padding-left: 20px;
    font-size: 16px;
}

.lm-intro__list li {
    margin-bottom: 2px;
}

.lm-intro__cta {
    margin: 0;
    font-size: 16px;
}

.lm-intro__cta strong {
    display: block;
    font-family: var(--lm-font);
    font-weight: 400;
    font-size: 20px;
}

.lm-jobs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 30px 30px;
}

.lm-job-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title btn"
        "tags  tags"
        "loc   loc";
    row-gap: 14px;
    column-gap: 20px;
    border: 1px solid var(--lm-beige);
    border-radius: 15px;
    padding: 10px 20px 18px 30px;
    background: #fff;
}

.lm-job-item__title {
    grid-area: title;
    margin: 6px 0 0;
    font-family: var(--lm-font-bold);
    font-size: 18px;
    line-height: 1.3;
}

.lm-job-item__title a {
    color: var(--lm-text);
}

.lm-job-item__title a:hover {
    color: var(--lm-red);
}

.lm-job-item__btn {
    grid-area: btn;
    align-self: start;
}

.lm-job-item .lm-tags {
    grid-area: tags;
}

.lm-job-item .lm-location {
    grid-area: loc;
    margin-top: 10px;
}

.lm-noresult {
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* ---------- Détail : titre ---------- */
.lm-detail-head {
    background: var(--lm-bg);
    padding: 30px 0 50px;
}

.lm-back {
    text-align: right;
    margin: 0 0 20px;
}

.lm-back a {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--lm-text);
    font-size: 18px;
}

.lm-back a:hover {
    color: var(--lm-red);
}

.lm-back svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.lm-detail-head__title {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--lm-font);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.3;
    color: var(--lm-text);
}

/* ---------- Détail : contenu ---------- */
.lm-detail-body {
    background: var(--lm-bg);
    padding-bottom: 60px;
}

.lm-detail-grid {
    display: grid;
    grid-template-columns: 35% minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.lm-side {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lm-summary {
    border: 1px solid var(--lm-beige);
    padding: 22px 15px 25px;
}

.lm-summary__title {
    margin: 0 0 10px;
    padding: 0 5px;
    font-family: var(--lm-font-bold);
    font-size: 16px;
    text-transform: uppercase;
    line-height: 1.6;
}

.lm-summary .lm-tags,
.lm-summary .lm-location {
    padding: 0 5px;
}

.lm-summary .lm-tag {
    font-size: 12px;
    padding: 3px 6px;
}

.lm-summary .lm-location {
    margin: 10px 0 12px;
    font-size: 13px;
}

.lm-summary__rows {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    border-top: 1px solid var(--lm-beige);
}

.lm-summary__rows li {
    border-bottom: 1px solid var(--lm-beige);
    padding: 11px 10px;
    font-size: 13px;
}

.lm-summary__btn {
    text-align: center;
}

.lm-summary__btn .lm-btn {
    font-family: var(--lm-font-bold);
    text-transform: uppercase;
    font-size: 16px;
    padding: 10px 30px;
    letter-spacing: .5px;
}

.lm-summary__btn .date_job_fin {
    display: block;
    font-family: var(--lm-font);
    text-transform: none;
    font-size: 12px;
    margin-top: 3px;
}

.lm-summary__ref {
    margin: 14px 0 0;
    font-size: 13px;
    text-align: center;
}

.lm-perks {
    background: var(--lm-red);
    color: #fff;
    border-radius: 15px;
    padding: 25px 30px 40px;
}

.lm-perks__title {
    margin: 0 0 18px;
    font-family: var(--lm-font-bold);
    font-size: 18px;
}

.lm-perks__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lm-perks__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    font-size: 16px;
}

.lm-perks__list li::before {
    content: "\2605";
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
}

.lm-others {
    background: var(--lm-brown);
    color: #fff;
    border-radius: 15px;
    padding: 25px 15px 40px;
}

.lm-others__title {
    margin: 0 0 25px;
    font-family: var(--lm-font-bold);
    font-size: 18px;
}

.lm-others__list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lm-other-item {
    display: block;
    border: 1px solid var(--lm-beige);
    border-radius: 5px;
    padding: 12px 10px;
    color: #fff;
}

.lm-other-item:hover {
    border-color: #fff;
}

.lm-other-item__title {
    display: block;
    margin: 0 0 6px;
    font-size: 15px;
    color: #fff;
}

.lm-other-item .lm-tag {
    font-size: 12px;
    padding: 2px 6px;
}

.lm-other-item .lm-location {
    margin-top: 8px;
    font-size: 13px;
    color: #fff;
}

.lm-main {
    padding: 22px 23px 40px;
    border-color: #fff;
    min-height: 100%;
}

.lm-section {
    margin-bottom: 30px;
}

.lm-section__title {
    margin: 0 0 15px;
    padding: 10px 7px;
    border-top: 1px solid var(--lm-beige);
    border-bottom: 1px solid var(--lm-beige);
    font-family: var(--lm-font-bold);
    font-size: 16px;
    line-height: 1.4;
    color: var(--lm-text);
}

.lm-section__content {
    padding: 0 7px;
    font-size: 15px;
    line-height: 1.75;
}

.lm-section__content p {
    margin: 0 0 10px;
}

.lm-section__content ul {
    padding-left: 20px;
}

.lm-section--disclaimer .lm-section__content {
    font-style: italic;
    font-size: 13px;
}

/* ---------- Pied de page ---------- */
.lm-footer {
    background: var(--lm-footer);
    color: #fff;
    padding: 60px 0 80px;
}

.lm-footer .lm-sheet {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.lm-footer__logo img {
    display: block;
    width: 160px;
    height: auto;
}

.lm-footer__contact {
    margin-top: 30px;
    padding-left: 20px;
    font-size: 18px;
    line-height: 1.6;
}

.lm-footer__contact a,
.lm-footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 15px;
    color: #fff;
}

.lm-footer__contact img {
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    margin-top: 2px;
}

.lm-footer__social {
    text-align: right;
    padding-top: 20px;
    padding-right: 40px;
}

.lm-footer__social p {
    margin: 0 0 12px;
    font-size: 30px;
    color: #fff;
}

.lm-footer__icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
}

/* Icônes : 40x40 comme la maquette (LinkedIn = carré blanc, rayon 5px, padding 8px) */
.lm-page .lm-footer__icons a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
    padding: 0 !important;
    line-height: 0;
    box-sizing: border-box;
}

.lm-page .lm-footer__icons img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
}

.lm-page .lm-footer__icons a.lm-linkedin {
    background: #fff;
    border-radius: 5px;
    padding: 8px !important;
}

@media (max-width: 1199px) {
    .lm-page .lm-footer__icons a {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px;
    }

    .lm-page .lm-footer__icons a.lm-linkedin {
        padding: 6px !important;
    }
}

/* ---------- Cache les éléments hérités ---------- */
.lm-page .wrap_recherche {
    display: none !important;
}

.lm-page .card.card-user {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .lm-header__title {
        font-size: 36px;
    }

    .lm-banner {
        height: 461px;
    }
}

@media (max-width: 991px) {
    .lm-header__logo img {
        width: 170px;
        margin-left: 0;
    }

    .lm-banner {
        height: 353px;
    }

    .lm-list-grid,
    .lm-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .lm-detail-grid .lm-main {
        order: -1;
    }

    .lm-list-head .lm-spontanee .lm-btn {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .lm-banner {
        height: 265px;
    }

    .lm-list-head__title {
        font-size: 50px;
    }

    .lm-detail-head__title {
        font-size: 28px;
    }

    .lm-footer .lm-sheet {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lm-footer__social {
        text-align: center;
        padding-right: 0;
    }

    .lm-footer__icons {
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .lm-header .lm-sheet {
        flex-direction: column;
        justify-content: center;
        min-height: 206px;
        padding-top: 15px;
        padding-bottom: 20px;
    }

    .lm-header__title {
        font-size: 30px;
        margin: 0;
    }

    .lm-banner {
        height: 167px;
    }

    .lm-list-head .lm-sheet {
        padding-top: 50px;
    }

    .lm-list-head .lm-spontanee {
        position: static;
        margin: -24px 0 30px;
        text-align: center;
    }

    .lm-list-head__title {
        font-size: 40px;
        text-align: center;
    }

    .lm-jobs {
        padding: 15px;
    }

    .lm-job-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "tags"
            "loc"
            "btn";
        padding: 12px 15px 18px;
    }

    .lm-job-item__btn {
        justify-self: start;
    }
}
