/* Cache l'image mise en avant sur les pages */
.page .post-thumbnail,
.page .wp-post-image {
    display: none !important;
}

/* Style général du contenu de page */
body.page .main-content-rounded,
body.page .entry-content,
body.page .post,
body.page article {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    padding: 32px 24px;
    margin: 32px auto;
    max-width: 900px;
    color: #222;
    /* Gérer la taille de police d'écriture */
    font-size: 1.25em;
    line-height: 1.7;
    font-family: 'Montserrat', Arial, Helvetica, sans-serif !important;
}

.page h1, .page h2, .page h3, .page h4 {
    color: #5c1215;
    font-family: 'Montserrat', Arial, sans-serif;
    margin-top: 19px;
    margin-bottom: 0.6em;
}

.page p {
    margin-bottom: 1.1em;
}

.page ul, .page ol {
    margin-left: 2em;
    margin-bottom: 1.1em;
}

.page a {
    color: #d43e43;
    text-decoration: underline;
    transition: color 0.2s;
}
.page a:hover {
    color: #580101;
    text-decoration: underline;
}

.page table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5em;
}
.page th, .page td {
    border: 1px solid #ccc;
    padding: 8px 12px;
}

/* Animation de zoom sur les images du contenu */
body.page .main-content-rounded img:not(a img),
body.page .entry-content img:not(a img),
body.page .post img:not(a img),
body.page article img:not(a img) {
    transition: transform 0.25s cubic-bezier(.4,2,.6,1);
    cursor: zoom-in;
}

body.page .main-content-rounded img:not(a img):active,
body.page .entry-content img:not(a img):active,
body.page .post img:not(a img):active,
body.page article img:not(a img):active {
    transform: scale(1.25);
    z-index: 10;
    position: relative;
}

/* Lightbox d'image pour agrandissement */
#img-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
    transition: opacity 0.2s;
}
#img-lightbox[style*="display: flex"] {
    display: flex !important;
    opacity: 1;
}
#img-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 24px #000;
    background: #fff;
}

@media (max-width: 700px) {
    .page .main-content-rounded,
    .page .entry-content,
    .page .post,
    .page article {
        padding: 12px 4px;
        margin: 12px 0;
        border-radius: 10px;
        font-size: 1em;
    }
}
