.yit-block {
    position: relative;
    background: #fbe2e1;
    overflow: hidden;
    max-width: none;
    padding: 51px 48px;
    min-height: 288px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.yit-block-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
}

.yit-block-icon {
    flex: 0 0 auto;
    width: 160px;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
}

.yit-block-content {
    flex: 0 1 auto;
    max-width: 420px;
}

.yit-title {
    font-size: 24px;
    font-weight: 800;
    color: #c94f4f;
    margin: 0 0 12px;
    line-height: 1.2;
}

.yit-subtitle {
    font-size: 15px;
    color: #1d2939;
    margin: 0 0 20px;
    line-height: 1.5;
}

.yit-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 680px) {
    .yit-block { padding: 38px 24px; min-height: auto; }
    .yit-block-inner { flex-direction: column; gap: 20px; }
    .yit-block-icon { display: none; }
    .yit-block-content { max-width: 100%; }
    .yit-title { font-size: 20px; }
}

.yit-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.yit-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.yit-badge-inline {
    cursor: default;
    margin-right: 10px;
    vertical-align: middle;
}

.yit-badge-logo {
    padding: 0;
    background-color: transparent !important;
    box-shadow: none;
    overflow: hidden;
}

.yit-badge-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.yit-badge-shape {
    padding: 0;
    background-color: transparent !important;
    box-shadow: none;
    width: auto;
    min-width: 0;
    border-radius: 0;
}

.yit-badge-shape:hover {
    box-shadow: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.yit-badge-shape img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 0;
}

/* --- Pop-up / Modale --- */

.yit-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.yit-modal.yit-modal-open {
    display: block;
}

.yit-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.yit-modal-content {
    position: relative;
    background: #ffffff;
    max-width: 640px;
    width: calc(100% - 32px);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin: 32px auto;
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.yit-modal-topbar {
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 8px;
}

.yit-modal-heading-label {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin-right: 10px;
}

.yit-modal-line-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.yit-modal-body-wrapper {
    padding: 28px 32px 32px;
}

.yit-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #333333;
    cursor: pointer;
    padding: 4px 8px;
    z-index: 2;
}

.yit-modal-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 0 0;
    padding-right: 40px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.yit-modal-heading-label {
    font-size: 20px;
    font-weight: 600;
    color: #666666;
    margin-right: 10px;
}

.yit-separator-heading {
    margin-top: 16px;
}

.yit-modal-date {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
    color: #333333;
}

.yit-modal-body {
    font-size: 15px;
    line-height: 1.6;
    color: #333333;
}

.yit-modal-body ul {
    padding-left: 20px;
}

.yit-modal-body li {
    margin-bottom: 10px;
}

.yit-modal-images {
    margin-top: 20px;
}

.yit-modal-images img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.yit-modal-body img,
.yit-modal-images img {
    cursor: zoom-in;
    transition: opacity 0.15s ease;
}

.yit-modal-body img:hover,
.yit-modal-images img:hover {
    opacity: 0.9;
}

.yit-item-title {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.yit-separator {
    border: none;
    border-top: 1px solid #e2e2e2;
    margin: 24px 0;
}

.yit-perturbation-item:first-child .yit-item-title {
    margin-top: 0;
}

/* Lightbox plein écran pour l'agrandissement d'image */
.yit-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100010;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.yit-lightbox.yit-lightbox-open {
    display: flex;
}

.yit-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.yit-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
}

body.yit-modal-active {
    overflow: hidden;
}

@media (max-width: 600px) {
    .yit-modal-content {
        margin: 16px auto;
        max-height: calc(100vh - 32px);
    }

    .yit-modal-topbar {
        padding: 16px 20px;
    }

    .yit-modal-body-wrapper {
        padding: 20px;
    }
}
