/* INDOCILE V7.1 — mise en page visuelle, aperçu fidèle et recadrage de l’accroche */
body.mce-content-body {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 5% 64px !important;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.72;
    color: #202124;
    background: #fff;
}

.mce-content-body p {
    margin: 0 0 1.25rem;
}

.mce-content-body .indocile-media {
    position: relative;
    display: block;
    box-sizing: border-box;
    max-width: 100%;
    margin-top: .35rem;
    margin-bottom: 1.25rem;
}

.mce-content-body .indocile-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: grab;
}

.mce-content-body .indocile-media img:active { cursor: grabbing; }
.mce-content-body .indocile-cover-media { min-height: 90px; }

.mce-content-body .indocile-cover-editor-crop {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #17191c;
    border-radius: 4px;
}
.mce-content-body .indocile-cover-editor-crop:not(.indocile-cover-editor-uncropped) {
    min-height: 80px;
}
.mce-content-body .indocile-cover-editor-crop .indocile-cover-editor-image {
    width: 100%;
    height: 100%;
    max-width: none;
    display: block;
    object-fit: cover;
    border-radius: 0;
}
.mce-content-body .indocile-cover-editor-uncropped .indocile-cover-editor-image {
    position: static;
    height: auto;
    object-fit: contain;
    transform: none !important;
}
.mce-content-body .indocile-cover-badge {
    top: 7px;
    right: 7px;
    padding: 5px 8px;
    border-radius: 3px;
    background: rgba(20,20,20,.82);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    pointer-events: none;
}

.mce-content-body .indocile-media-left {
    float: left;
    margin-right: 1.5rem;
}

.mce-content-body .indocile-media-right {
    float: right;
    margin-left: 1.5rem;
}

.mce-content-body .indocile-media-center {
    float: none;
    margin-left: auto;
    margin-right: auto;
}

.mce-content-body .indocile-media-normal {
    float: none;
    margin-left: 0;
    margin-right: 0;
}

.mce-content-body .indocile-media-full {
    float: none;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0;
    margin-right: 0;
}

/* Compatibilité avec les articles créés avant V6.8. Les nouvelles tailles peuvent aussi être libres via style="width:…%". */
.mce-content-body .indocile-media-w-25 { width: 25%; }
.mce-content-body .indocile-media-w-33 { width: 33%; }
.mce-content-body .indocile-media-w-50 { width: 50%; }
.mce-content-body .indocile-media-w-66 { width: 66%; }
.mce-content-body .indocile-media-w-100 { width: 100%; }

.mce-content-body .indocile-media-caption {
    display: block;
    margin-top: .45rem;
    padding-top: .4rem;
    border-top: 1px solid #ddd;
    color: #616161;
    font-family: Arial, Helvetica, sans-serif;
    font-size: .78rem;
    line-height: 1.4;
}

.mce-content-body .indocile-caption-text,
.mce-content-body .indocile-photo-credit {
    display: block;
}

.mce-content-body .indocile-photo-credit {
    margin-top: .15rem;
    font-size: .72rem;
}

.mce-content-body .indocile-photo-source {
    color: inherit;
    text-decoration: underline;
}

/* Contrôles uniquement visibles dans TinyMCE. data-mce-bogus="all" empêche leur enregistrement dans l’article. */
.mce-content-body .indocile-editor-control {
    position: absolute;
    z-index: 20;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    user-select: none;
}

.mce-content-body .indocile-move-handle {
    top: 7px;
    left: 7px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.35);
    border-radius: 4px;
    background: rgba(255,255,255,.94);
    color: #222;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    cursor: grab;
    box-shadow: 0 1px 5px rgba(0,0,0,.18);
}

.mce-content-body .indocile-move-handle:active {
    cursor: grabbing;
}

.mce-content-body .indocile-resize-handle {
    right: -8px;
    bottom: -8px;
    width: 17px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #b98a00;
    cursor: nwse-resize;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 1px 4px rgba(0,0,0,.22);
}

.mce-content-body .indocile-media-right .indocile-resize-handle {
    right: auto;
    left: -8px;
    cursor: nesw-resize;
}

.mce-content-body figure.indocile-media[data-mce-selected="1"],
.mce-content-body figure.indocile-media:has(.indocile-editor-control) {
    outline: 1px dashed #b98a00;
    outline-offset: 4px;
}

.mce-content-body.indocile-is-resizing,
.mce-content-body.indocile-is-resizing * {
    cursor: nwse-resize !important;
    user-select: none !important;
}


.mce-content-body .indocile-drop-marker {
    position: relative;
    clear: both;
    width: 100%;
    height: 0;
    margin: 10px 0;
    border-top: 3px solid #b98a00;
    pointer-events: none;
}
.mce-content-body .indocile-drop-marker::after {
    content: attr(data-indocile-drop-label);
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 10px;
    background: #b98a00;
    color: #fff;
    font: 700 10px/1.4 Arial, Helvetica, sans-serif;
    letter-spacing: .05em;
}
.mce-content-body.indocile-is-dragging .indocile-media:not(.indocile-editor-control) { opacity: .94; }
.mce-content-body.indocile-is-dragging { cursor: grabbing !important; }

@media (max-width: 680px) {
    .mce-content-body .indocile-media-left,
    .mce-content-body .indocile-media-right,
    .mce-content-body .indocile-media-center,
    .mce-content-body .indocile-media-normal,
    .mce-content-body .indocile-media-full {
        float: none;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}
