.fm-content,
.fm-content *,
.fm-content *::before,
.fm-content *::after {
    box-sizing: border-box;
}

.fm-content .elementor-icon {
    color: #175784;
    border-color: #175784;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.fm-content.elementor-element-f71c562,
.fm-content.elementor-element-f71c562 p {
    text-align: center;
    font-family: "Allison", Sans-serif;
    font-size: 42px;
    line-height: 1.2;
    color: #175784;
    margin: 0;
}

.fm-content .elementor-button,
.fm-content .elementor-button:visited {
    background-color: #143850;
    color: #ffffff;
    border-radius: 0;
}

.fm-content .elementor-button:hover,
.fm-content .elementor-button:focus {
    background-color: #143850;
    color: #ffffff;
}

.fm-content .elementor-heading-title {
    font-family: "Roboto", Sans-serif;
    font-size: 35px;
    font-weight: 600;
    color: #143850;
    margin: 0;
    line-height: 1.25;
}

.fm-content .elementor-icon-box-content {
    text-align: left;
}

.fm-content .elementor-icon-box-title,
.fm-content .elementor-icon-box-title span {
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 8px 0;
    color: #D1B060;
}

.fm-content .elementor-icon-box-description,
.fm-content .elementor-icon-box-description p {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6em;
    color: #464646;
    margin: 0 0 8px 0;
}

.fm-infos-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== CARTES LISTE DEFUNTS ===== */

.fm-content.fm-element-card {
    border: 1px solid #d9d9d9;
    padding: 20px;
    margin-right: 0;
    background: #fff;
    width: 100%;
    height: 100%;
}

.fm-content.fm-element-card .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.fm-content.fm-element-card .elementor-image-box-title {
    margin: 0;
    color: #143850;
    line-height: 1.3;
    word-break: normal;
    white-space: normal;
}

.fm-content.fm-element-card .elementor-image-box-title:first-child {
    text-transform: uppercase;
}

.fm-content.fm-element-card img {
    width: 100%;
    height: auto;
    display: block;
}

.fm-content.fm-element-card p.no-margin,
.fm-content.fm-element-card .no-margin {
    margin: 0;
    line-height: 1.6;
    color: #464646;
}

.fm-content.fm-element-card .fm-nav-to {
    background-color: #D1B07A;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
}

.fm-content.fm-element-card .fm-nav-to:hover {
    background-color: #9EBDD4;
}

/* Limité à la liste pour ne pas impacter tout Elementor */
body.page .fm-content .elementor-column.elementor-col-33 {
    width: 33.333% !important;
    min-width: 300px;
}

@media (max-width: 1024px) {
    body.page .fm-content .elementor-column.elementor-col-33 {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    body.page .fm-content .elementor-column.elementor-col-33 {
        width: 100% !important;
        min-width: 0;
    }
}

/* ===== PAGE DETAIL DEFUNT ===== */

.entry-content .fm-content.deceased-detail-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1180px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
    position: relative;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-infos-and-form {
    display: flex !important;
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
    width: 100%;
}

.entry-content .fm-content.deceased-detail-container .deceased-sub-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-infos {
    align-items: stretch;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-infos > .fm-content {
    width: 100%;
    max-width: none;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-from {
    align-items: stretch;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-from > .fm-content {
    width: 100%;
}

.entry-content .fm-content.deceased-detail-container .elementor-widget-image {
    width: 100%;
    text-align: left;
    margin-bottom: 10px;
}

.entry-content .fm-content.deceased-detail-container .elementor-widget-image .elementor-widget-container {
    width: 100%;
}

.entry-content .fm-content.deceased-detail-container .elementor-widget-image img {
    display: block;
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 0 0 20px 0;
}

.entry-content .fm-content.deceased-detail-container .elementor-widget-heading {
    margin-bottom: 16px;
}

.entry-content .fm-content.deceased-detail-container .elementor-heading-title + .elementor-heading-title {
    margin-top: 6px;
}

.entry-content .fm-content.deceased-detail-container .elementor-icon-box-wrapper {
    display: block;
    padding-top: 8px;
}

.entry-content .fm-content.deceased-detail-container .deceased-remarque {
    display: flex;
    width: 100%;
    max-width: 920px;
    position: relative;
    align-self: center;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.7;
}

.entry-content .fm-content.deceased-detail-container .deceased-avis_de_deces {
    display: flex;
    width: 100%;
    max-width: 920px;
    position: relative;
    align-self: center;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.entry-content .fm-content.deceased-detail-container .deceased-avis_de_deces iframe {
    width: 100%;
    min-height: 980px;
    border: 1px solid #ececec;
    background: #fff;
}

.fm-content .condolence-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #143850;
}

.fm-content .condolence-form input,
.fm-content .condolence-form textarea {
    width: 100%;
    border: 1px solid #d9d9d9;
    padding: 12px 14px;
    background: #fff;
    color: #464646;
    font-size: 15px;
}

.fm-content .condolence-form textarea {
    min-height: 170px;
    resize: vertical;
}

.fm-content .condolence-form button {
    width: 100%;
    min-height: 52px;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-from .elementor-widget-form {
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    padding: 28px;
}

.entry-content .fm-content.deceased-detail-container .deceased-deceased-from .elementor-widget-form .elementor-form-fields-wrapper {
    gap: 18px !important;
}

/* contenus WordPress hors module FM */
.entry-content > h2,
.entry-content > h3,
.entry-content > p,
.entry-content > ul {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.entry-content > h2 {
    margin-top: 50px;
    margin-bottom: 18px;
}

.entry-content > h3 {
    margin-top: 40px;
    margin-bottom: 14px;
}

.entry-content > p,
.entry-content > ul {
    margin-top: 0;
    margin-bottom: 16px;
}

.entry-content > h2 + p,
.entry-content > h2 + ul {
    margin-bottom: 28px;
}

.entry-content > h3 + p {
    max-width: 860px;
}

@media only screen and (min-width: 1024px) {
    .entry-content .fm-content.deceased-detail-container .deceased-deceased-infos-and-form {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
    }

    .entry-content .fm-content.deceased-detail-container .deceased-deceased-infos {
        width: 56% !important;
        flex: 0 0 56%;
    }

    .entry-content .fm-content.deceased-detail-container .deceased-deceased-from {
        width: 40% !important;
        flex: 0 0 40%;
    }
}

@media only screen and (max-width: 1023px) {
    .entry-content .fm-content.deceased-detail-container {
        padding: 0 16px;
    }

    .entry-content .fm-content.deceased-detail-container .deceased-deceased-from .elementor-widget-form {
        padding: 22px;
    }

    .entry-content .fm-content.deceased-detail-container .deceased-avis_de_deces iframe {
        min-height: 700px;
    }
}

/* Boutique en ligne - largeur contrainte avec marges */
.fm-bouquet-shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}