/* Cywiz VR — blog (lot 4.3). Liste, article (ex-partial 2.4), preview, édition. */

/* --- liste --- */

.blog-hero-section.blog-hero-section--blog-page::before { display: none; }
.blog-hero-section.blog-hero-section--blog-page {
    background: linear-gradient(rgba(11, 15, 20, 0.7), rgba(11, 15, 20, 0.7)), url('../../img/blog.jpg') center / cover no-repeat;
    padding: 120px 0;
    position: relative;
}
.blog-hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
}
.blog-hero-journal-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: 'Changa', sans-serif;
    font-size: var(--site-caption-font-size, 0.9rem);
    font-weight: var(--site-font-weight-heading, 400);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-cyan);
    line-height: 1.2;
}

.blog-hero-journal-label i {
    font-size: 0.85em;
    line-height: 1;
}
.blog-title-bandeau h1 { color: var(--text-heading); font-weight: var(--site-font-weight-display) !important; -webkit-text-stroke: 0; text-stroke: 0; }
.blog-title-bandeau {
    min-height: 1.2em;
}
.blog-card { border: none; box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); transition: transform 0.2s, box-shadow 0.2s; height: 100%; display: flex; flex-direction: column; border: 1px solid var(--border-subtle); background: var(--bg-secondary); border-radius: 8px; overflow: hidden; }
.blog-card-title { color: var(--text-heading); margin-bottom: 0.75rem; font-size: 1.25rem; }
.blog-card-text { flex-grow: 1; margin-bottom: 1rem; color: var(--text-primary); line-height: 1.6; }

/* --- article + preview --- */

.blog-post-page .blog-post-page, .blog-post-page h1, .blog-post-page h2, .blog-post-page h3, .blog-post-page h4, .blog-post-page h5, .blog-post-page h6, .blog-post-page p, .blog-post-page .badge, .blog-post-page .btn { font-weight: 300 !important; }
.blog-post-page b, .blog-post-page strong { font-weight: 600 !important; }
.blog-post-paragraph u { text-decoration: underline; }
#postContent { column-count: 1; column-gap: 2.25rem; column-fill: balance; }
@media (min-width: 576px) { #postContent { column-count: 2; } }
#postContent .blog-post-paragraph { break-inside: auto; orphans: 2; widows: 2; margin-bottom: 1rem; }
.blog-post-title2, .blog-post-subtitle2 { break-after: avoid; break-inside: avoid; break-before: avoid-column; }
.blog-post-inline-img { break-inside: avoid; }
#postMeta { align-items: center; }
#postMeta .badge { display: inline-flex; align-items: center; line-height: 1; padding-top: 0.42rem; padding-bottom: 0.42rem; white-space: nowrap; }
#postMeta .blog-post-theme-image-badge { background: transparent !important; }
#postMeta .badge.text-bg-secondary { background: rgba(182, 238, 253, 0.16) !important; border: 0.5px solid rgba(182, 238, 253, 0.35); color: rgba(255, 255, 255, 0.88) !important; }
.blog-post-title { color: #b6eefd; font-weight: 300; letter-spacing: -0.02em; font-size: 1.45rem; line-height: 1.25; padding-top: 0.8rem; }
.blog-post-left-start { margin-top: 1.45rem; }
#postBodyRightCol, #postBodyRight { overflow: visible; }
.blog-post-title-mark { display: inline-block; padding: 0; border-radius: 0; background: transparent; border: none; }
.blog-post-paragraph { color: rgba(255, 255, 255, .80); font-weight: 300; line-height: 1.9; font-size: 1.05rem; }
.blog-post-paragraph a { color: var(--color-link); text-decoration: none; text-underline-offset: 0.18em; }
.blog-post-paragraph a:hover { color: var(--color-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(182, 238, 253, 0.65); }
.blog-post-paragraph a:hover { color: #b4aaff; }
.blog-post-title2 { color: #b4aaff; font-weight: 300; letter-spacing: -0.01em; font-size: 1.25rem; line-height: 1.35; margin: 0 0 0.35rem; }
.blog-post-subtitle2 { color: rgba(255, 255, 255, 0.72); font-weight: 300; font-style: italic; font-size: 0.95rem; line-height: 1.55; margin: 0 0 1rem; }
.blog-post-inline-img { border-radius: 12px; overflow: hidden; border: 0.5px solid var(--border-subtle); background: rgba(255, 255, 255, 0.02); margin: 0.75rem auto 1.15rem; max-width: 62%; display: flex; justify-content: center; }
.blog-post-inline-img img { max-height: 240px; }
.blog-post-inline-img-right { max-width: 100%; margin: 0.55rem 0 0.85rem; justify-content: flex-start; }
.blog-post-inline-img-right img { max-height: none; }
@media (max-width: 575.98px) { .blog-post-inline-img { max-width: 100%; } .blog-post-inline-img img { max-height: none; } }
.blog-post-subtitle { color: rgba(255, 255, 255, 0.80); font-weight: 300; font-style: italic; line-height: 1.6; font-size: 1.08rem; margin-top: -0.25rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.blog-post-byline { color: rgba(255, 255, 255, 0.72); font-weight: 300; font-size: 0.82rem; line-height: 1.45; margin-top: -0.15rem; margin-bottom: 0.65rem; }
.blog-post-header-col { padding-bottom: 1.4rem; }
#postReadingTime { margin-top: 0.55rem !important; margin-bottom: 0.85rem !important; font-size: 0.9rem; }
#postImage { display: block; }
#postImageWrap { margin-bottom: 0.35rem; }
.blog-post-ref-line { color: rgba(255, 255, 255, .78); font-weight: 300; font-size: 0.9rem; line-height: 1.65; }
.blog-post-ref-list { margin: 0; padding-left: 1.1rem; color: rgba(255, 255, 255, .78); font-weight: 300; font-size: 0.9rem; line-height: 1.65; }
.blog-post-ref-list li { margin: 0.25rem 0; }
#postReferences a { color: var(--color-link); font-style: italic; text-decoration: none; text-underline-offset: 0.18em; }
#postReferences a:hover { color: var(--color-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(182, 238, 253, 0.65); }
.blog-post-bottom { border-top: 0.5px solid var(--border-subtle); padding-top: 1.5rem; margin-top: 2.2rem; }
.blog-post-bottom-card { border: 0.5px solid var(--border-subtle); border-radius: 14px; background: transparent; padding: 1rem; height: 100%; display: flex; flex-direction: column; }
.blog-post-bottom-title { color: rgba(255, 255, 255, .85); font-weight: 300; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.blog-post-bottom-muted { color: rgba(255, 255, 255, .65); font-weight: 300; font-size: 0.9rem; }
.blog-post-bottom-spacer { flex: 1; }
.blog-post-site-link { color: var(--color-link); text-decoration: none; text-underline-offset: 0.18em; }
.blog-post-site-link:hover { color: var(--color-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(182, 238, 253, 0.65); }
.blog-post-bottom .btn-cyber-primary { color: #0b0f14 !important; text-decoration: none !important; box-shadow: none !important; padding: 0.42rem 0.75rem !important; letter-spacing: -0.02em !important; }
.blog-post-bottom .btn-cyber-primary:hover, .blog-post-bottom .btn-cyber-primary:focus, .blog-post-bottom .btn-cyber-primary:active { color: #0b0f14 !important; text-decoration: none !important; box-shadow: none !important; transform: none !important; filter: none !important; }

.blog-post-muted { color: rgba(255, 255, 255, .70); font-weight: 300; }

/* --- édition --- */

.blog-edit-page { --primary-cyan: #b4aaff; --text-primary: rgba(255,255,255,0.80); }
.blog-edit-page, .blog-edit-page h1, .blog-edit-page label, .blog-edit-page .form-control, .blog-edit-page .form-select { color: rgba(255,255,255,0.80) !important; }
.blog-edit-page .form-control::placeholder { color: rgba(255,255,255,0.45) !important; }
.blog-edit-page .blog-edit-frame { border-width: 0.5px !important; }
.blog-edit-page .blog-edit-frame:hover, .blog-edit-page .blog-edit-frame:focus-within { border-color: #b6eefd !important; box-shadow: 0 0 0 0.14rem rgba(182,238,253,0.14); }
.blog-edit-page #newArticleBtn.btn-cyber-primary { background: #b4aaff !important; border-color: #b4aaff !important; color: #0b0f14 !important; }
.blog-edit-page .form-control:focus, .blog-edit-page .form-select:focus { border-color: #b6eefd !important; box-shadow: 0 0 0 0.14rem rgba(182,238,253,0.14) !important; }
/* Liste articles : hover même style que la navbar (bleu/noir) */
.blog-edit-page .list-group-item-action:hover,
.blog-edit-page .list-group .list-group-item:hover {
background-color: rgba(125, 216, 255, 0.1) !important;
color: #b6eefd !important;
}
.blog-edit-page .list-group-item.is-selected { border-color: #b6eefd !important; background: rgba(182, 238, 253, 0.08) !important; color: rgba(255,255,255,0.95) !important; }
.blog-edit-page .img-remove-btn { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 999px; border: 0.5px solid var(--border-subtle); background: rgba(0,0,0,0.35); color: rgba(255,255,255,0.90); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; }
.blog-edit-page .layout-prev-title { color: #b6eefd; font-weight: 300; font-size: 1.1rem; }
.blog-edit-page .layout-prev-text p { color: rgba(255,255,255,0.80); font-weight: 300; }
.blog-edit-page .layout-prev-text p a { color: var(--color-link); text-decoration: none; text-underline-offset: 0.18em; }
.blog-edit-page .layout-prev-text p a:hover { color: var(--color-link-hover); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: rgba(182, 238, 253, 0.65); }
.blog-edit-page .layout-prev-text p strong { font-weight: 400; }
.blog-edit-page .layout-prev-text p u { text-decoration: underline; }
/* Input fichier : "Choisir un fichier" lisible (fond sombre, texte clair, hover bleu) */
.blog-edit-page input[type="file"].form-control {
color: rgba(255, 255, 255, 0.80) !important;
background: rgba(255, 255, 255, 0.04) !important;
}
.blog-edit-page input[type="file"].form-control::file-selector-button,
.blog-edit-page input[type="file"].form-control::-webkit-file-upload-button {
background: rgba(255, 255, 255, 0.06) !important;
color: rgba(255, 255, 255, 0.90) !important;
border: none !important;
border-right: 0.5px solid var(--border-subtle) !important;
border-radius: 0 !important;
padding: 0.375rem 0.75rem !important;
margin-right: 0.75rem !important;
}
.blog-edit-page input[type="file"].form-control::file-selector-button:hover,
.blog-edit-page input[type="file"].form-control::-webkit-file-upload-button:hover {
background: rgba(125, 216, 255, 0.15) !important;
color: #b6eefd !important;
}
.blog-edit-page input[type="file"].form-control::file-selector-button:active,
.blog-edit-page input[type="file"].form-control::-webkit-file-upload-button:active {
background: rgba(182, 238, 253, 0.2) !important;
color: #b6eefd !important;
}
.blog-edit-page input[type="file"].form-control:focus,
.blog-edit-page input[type="file"].form-control.has-file {
background: rgba(182, 238, 253, 0.08) !important;
border-color: #b6eefd !important;
box-shadow: 0 0 0 0.14rem rgba(182, 238, 253, 0.14) !important;
}
/* Aperçu : même comportement que le site statique (overflow hidden = pas de superposition) */
.blog-edit-page #layoutPrevRightCol { overflow: hidden; }
.blog-edit-page #layoutPrevRightText { overflow: hidden; }
