/*
 * Article du blog statique — reproduction de page-blog-article.html, blog-article.html, blog-title.html,
 * blog-category-link.html, blog-author-caption.html, aside-blog-page.html, social-share-button.html,
 * blog-like-comment.html, blog-article-tag.html, blog-article-author-show.html,
 * blog-article-comment(-element, -add).html, blog-similar-articles.html et pedagogy-video.html.
 * S'ajoute à blog-category.css (en-tête de recherche, vignettes, boutons, appel final).
 * Formats Polymer → media queries : headerScreenFormat xs ≤ 800 ; isLargeScreen ≥ 700 ;
 * blog-title ≤ 980.
 */

.page-blog-article .blog-article {
    width: 100%;
    display: block;
    color: var(--writecontrol-secondary-text-color, #19146E);
}

/* ---------- Recherche (#resultSearch) ---------- */

.page-blog-article #resultSearch {
    padding-top: 60px;
    display: block;
    max-width: 984px;
    margin: auto;
    text-align: left;
    padding-bottom: 120px;
}

.page-blog-article #contentBlogPage {
    margin-top: 24px;
}

.page-blog-article #blogArticleContainer {
    text-align: left;
}

/* ---------- Titre (blog-title) ---------- */

.page-blog-article .blog-title {
    display: block;
    text-align: left;
    height: 400px;
}

.page-blog-article .article-image {
    float: left;
    margin-right: 24px;
    object-fit: cover;
    width: 600px;
}

@media (max-width: 699px) {
    .page-blog-article .article-image {
        width: 300px;
    }
}

.page-blog-article #titlePart {
    height: 100%;
    position: relative;
    max-width: 1060px;
    padding: 8px;
}

.page-blog-article .blog-category-link .category {
    font-size: 13px;
    text-decoration: underline;
    color: var(--writecontrol-disabled-secondary-color, #B6B4B6);
    padding: 10px 0 10px 0;
}

.page-blog-article .blog-category-link a {
    color: inherit;
}

.page-blog-article .blog-title h1 {
    font-family: var(--writecontrol-title-font-family, 'Meslo', sans-serif);
    color: var(--writecontrol-secondary-text-color, #19146E);
    font-size: 45px;
    margin: 12px;
    line-height: 49px;
    display: flex;
}

/* Hôte Polymer en ligne : la position statique de la boîte absolue suit l'image flottante. */
.page-blog-article .blog-author-caption {
    display: inline;
    width: 400px;
    color: var(--writecontrol-disabled-secondary-color, #B6B4B6);
    position: absolute;
    bottom: 0;
    padding-bottom: 14px;
}

/* iron-image sizing="cover" */
.page-blog-article .author-circle {
    display: inline-block;
    overflow: hidden;
    position: relative;
    float: left;
    width: 50px;
    height: 50px;
}

.page-blog-article .author-circle-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 50%;
    filter: grayscale(1);
}

.page-blog-article .author-info {
    margin-top: 8px;
    margin-left: 63px;
    font-size: 14px;
}

@media (max-width: 980px) {
    .page-blog-article .blog-author-caption {
        position: static;
        bottom: auto;
        padding-bottom: 10px;
        margin-top: 15px;
    }

    .page-blog-article #titlePart {
        height: auto;
        min-height: 200px;
    }

    .page-blog-article .blog-title {
        height: auto;
        overflow: visible;
    }

    .page-blog-article .article-image {
        float: none;
        width: 100%;
        margin-bottom: 20px;
    }

    .page-blog-article .blog-title h1 {
        font-size: 32px;
        line-height: 36px;
    }
}

/* hideFullImage : format xs */
@media (max-width: 800px) {
    .page-blog-article .article-image {
        display: none;
    }
}

/* ---------- Partage (aside-blog-page, social-share-button) ---------- */

.page-blog-article .aside-blog-page {
    display: inline-block;
    float: left;
    height: auto;
    position: relative;
}

.page-blog-article .aside-blog-page aside {
    display: block;
}

.page-blog-article .social-share-button {
    margin-top: 30px;
    display: block;
}

.page-blog-article .share-button {
    position: relative;
    outline: none;
}

.page-blog-article .share-button:hover {
    cursor: pointer;
}

.page-blog-article .social-share-button .fa {
    background: var(--writecontrol-secondary-text-color, #19146E);
    color: var(--writecontrol-primary-background-color, #ffffff);
    border-radius: 50%;
    margin: 7px;
    height: 40px;
    width: 40px;
    padding: 0;
    transition: none;
}

.page-blog-article .social-share-button .fa:hover {
    background: var(--writecontrol-secondary-text-color, #19146E);
    color: var(--writecontrol-primary-background-color, #ffffff);
}

.page-blog-article .social-share-button .fa:before {
    position: absolute;
    top: 20px;
}

.page-blog-article .social-share-button .fa-facebook:before {
    left: 22px;
}

.page-blog-article .social-share-button .fa-twitter:before {
    left: 20px;
}

/* ---------- Description et contenu ---------- */

.page-blog-article .margin-left {
    margin-left: 100px;
    padding: 8px;
}

.page-blog-article #description {
    padding: 16px;
    max-width: 770px;
    margin-left: 100px;
    margin-top: 22px;
    font-size: 24px;
    line-height: 33px;
}

.page-blog-article #pedagogyVideo {
    max-width: 770px;
    margin: 20px auto;
}

.page-blog-article #contentBlog {
    text-align: initial;
    font-size: 18px;
    max-width: 770px;
    margin-left: 100px;
    line-height: 25px;
}

.page-blog-article #contentBlog img {
    cursor: zoom-in;
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.page-blog-article #contentBlog figure,
.page-blog-article #contentBlog picture {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.page-blog-article #contentBlog figure figcaption {
    text-align: center;
}

.page-blog-article #contentBlog p {
    max-width: 100%;
    box-sizing: border-box;
}

.page-blog-article #contentBlog p,
.page-blog-article #contentBlog a {
    overflow-wrap: anywhere;
}

/* isMobile (≤ 900 px) : images sans titre en 100vw, bornées par max-width 100 %. */
@media (max-width: 900px) {
    .page-blog-article #contentBlog img:not([title]) {
        width: 100vw;
    }
}

/* marginLeft-xs : margin-left unset !important */
@media (max-width: 800px) {
    .page-blog-article .margin-left,
    .page-blog-article #description,
    .page-blog-article #contentBlog {
        margin-left: unset !important;
    }
}

/* ---------- Vidéo pédagogique (pedagogy-video) ---------- */

.page-blog-article .pedagogy-video {
    display: block;
    color: var(--writecontrol-primary-text-color, #5f5f5f);
    font-family: var(--writecontrol-font-family, sans-serif);
}

.page-blog-article .pedagogy-video video {
    display: block;
    width: 100%;
    max-height: 65vh;
    background: var(--writecontrol-secondary-background-color, #f4f4f5);
    border-radius: 12px;
}

.page-blog-article .pedagogy-video .chapters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 22px;
    padding-top: 8px;
}

.page-blog-article .pedagogy-video .chapter {
    font: inherit;
    font-size: 12px;
    line-height: 20px;
    text-align: left;
    border: 0;
    background: transparent;
    color: var(--writecontrol-primary-text-color, #5f5f5f);
    cursor: pointer;
    padding: 4px 0;
    margin: 0;
    position: relative;
    white-space: normal;
    max-width: 100%;
    min-width: 0;
}

.page-blog-article .pedagogy-video .chapter + .chapter:before {
    content: '·';
    position: absolute;
    left: -13px;
    opacity: .4;
}

.page-blog-article .pedagogy-video .chapter:hover .label {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.page-blog-article .pedagogy-video .chapter:focus-visible {
    outline: 2px solid var(--writecontrol-primary-color, #fd907f);
    outline-offset: 3px;
    border-radius: 2px;
}

.page-blog-article .pedagogy-video .time {
    font-variant-numeric: tabular-nums;
    margin-right: 6px;
    opacity: .65;
    font-size: 11px;
    white-space: nowrap;
}

.page-blog-article .pedagogy-video .label {
    font-weight: 400;
}

.page-blog-article .pedagogy-video .chapter[aria-current=true] .label {
    text-decoration: underline;
    text-decoration-color: var(--writecontrol-primary-color, #fd907f);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.page-blog-article .pedagogy-video details {
    margin-top: 5px;
    padding: 3px 0 10px;
    border-bottom: 1px solid var(--writecontrol-block-separator-color, #E9E7E8);
}

.page-blog-article .pedagogy-video summary {
    cursor: pointer;
    font-size: 11px;
    line-height: 20px;
    width: fit-content;
}

.page-blog-article .pedagogy-video summary:hover {
    text-decoration: underline;
}

.page-blog-article .pedagogy-video .transcript {
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    max-height: 350px;
    overflow: auto;
    padding-top: 12px;
}

/* ---------- « Cet article vous a plu ? » (blog-like-comment) ---------- */

.page-blog-article .blog-like-comment {
    display: block;
    margin-top: 32px;
}

.page-blog-article .ellipse {
    height: 16px;
    width: 16px;
    border-radius: 16px;
    background-color: var(--writecontrol-secondary-text-color, #19146E);
    margin-bottom: 32px;
}

.page-blog-article .did-you-like {
    font-size: 24px;
}

/* iron-icon */
.page-blog-article .like-action,
.page-blog-article .counter-icon,
.page-blog-article .comment-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    vertical-align: middle;
    fill: currentcolor;
    stroke: none;
    width: 24px;
    height: 24px;
}

.page-blog-article .like-action svg,
.page-blog-article .counter-icon svg,
.page-blog-article .comment-title-icon svg {
    pointer-events: none;
    display: block;
    width: 100%;
    height: 100%;
}

.page-blog-article .like-action {
    height: 30px;
    width: 30px;
    vertical-align: sub;
    cursor: pointer;
    outline: none;
}

/* paper-spinner inactif : boîte vide de 28 × 28 px */
.page-blog-article .spinner {
    display: inline-block;
    position: relative;
    width: 28px;
    height: 28px;
}

.page-blog-article .counter-icon {
    width: 20px;
    height: 21px;
}

.page-blog-article .counts {
    color: var(--writecontrol-disabled-secondary-color, #B6B4B6);
    margin-top: 32px;
    margin-bottom: 24px;
}

.page-blog-article .counter {
    padding-right: 12px;
    cursor: pointer;
}

.page-blog-article .comment-link {
    cursor: pointer;
    outline: none;
}

/* ---------- Mots-clés (blog-article-tag) ---------- */

.page-blog-article #tags {
    display: inline-block;
    max-width: 600px;
}

.page-blog-article .blog-article-tag {
    position: relative;
}

.page-blog-article .tag {
    position: relative;
    color: var(--writecontrol-secondary-text-color, #19146E);
    background: transparent;
    border: 1px solid var(--writecontrol-secondary-text-color, #19146E);
    border-radius: 12px;
    height: 22px;
    display: inline-block;
    margin: 4px 16px 4px 0;
    padding: 1px;
    cursor: pointer;
    text-decoration: none;
}

.page-blog-article .tag-text {
    font-size: 12px;
    padding: 9px;
}

/* ---------- Auteur (blog-article-author-show) ---------- */

.page-blog-article .blog-article-author-show {
    display: block;
    background-color: var(--writecontrol-secondary-background-color, #f4f4f5);
    position: relative;
    height: 310px;
    margin-top: 100px;
    color: var(--writecontrol-primary-text-color, #5f5f5f);
}

.page-blog-article .blog-article-author-show .circle {
    top: -60px;
    left: calc(50% - 60px);
    position: absolute;
    border-radius: 50%;
    filter: grayscale(1);
    border: 8px solid var(--writecontrol-primary-background-color, #ffffff);
    box-sizing: border-box;
    object-fit: cover;
}

.page-blog-article #ourAuthor {
    padding-top: 80px;
}

.page-blog-article #firstname {
    padding-top: 4px;
    padding-bottom: 16px;
}

.page-blog-article #authorDescription {
    max-width: 500px;
    margin: auto;
    line-height: 20px;
    padding-bottom: 16px;
}

.page-blog-article #email {
    font-size: 12px;
    padding-bottom: 16px;
}

/* ---------- Commentaires (blog-article-comment, -element, -add) ---------- */

.page-blog-article .blog-article-comment {
    display: block;
    max-width: 770px;
    margin: auto;
    padding: 30px 8px 8px 8px;
    font-family: 'Inter', sans-serif;
}

.page-blog-article .comment-title {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid var(--writecontrol-block-separator-color, #e9e7e8);
    font-size: 20px;
    font-weight: 500;
    color: var(--writecontrol-secondary-text-color, #19146E);
}

.page-blog-article .comment-title-text {
    display: block;
}

.page-blog-article .comment-number {
    font-size: 16px;
    font-weight: 400;
    color: var(--writecontrol-disabled-secondary-color, #7c7b7b);
}

.page-blog-article .comment-list {
    text-align: left;
    display: block;
    max-height: 430px;
    overflow-y: hidden;
    -webkit-mask: linear-gradient(black, transparent 145%, black);
    mask: linear-gradient(black, transparent 145%, black);
}

.page-blog-article .comment-list.opened {
    max-height: 1000px !important;
    overflow-y: auto !important;
    -webkit-mask: unset !important;
    mask: unset !important;
}

.page-blog-article .comment-list > .comment-element:not(:first-of-type) {
    border-top: 1px solid var(--writecontrol-block-separator-color, #e9e7e8);
}

.page-blog-article .view-more-div {
    display: flex;
    justify-content: center;
    margin: 20px 0 40px;
}

.page-blog-article .view-more {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--writecontrol-block-separator-color, #e9e7e8);
    border-radius: 18px;
    font-size: 14px;
    color: var(--writecontrol-secondary-text-color, #19146E);
    cursor: pointer;
    outline: none;
}

.page-blog-article .view-more > span {
    display: block;
}

.page-blog-article .view-more:hover {
    background: var(--writecontrol-secondary-background-color, #f4f4f5);
}

.page-blog-article .comment-element {
    display: block;
    font-family: 'Inter', sans-serif;
}

.page-blog-article .comment {
    display: flex;
    gap: 12px;
    padding: 20px 0;
}

.page-blog-article .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--writecontrol-secondary-background-color, #f4f4f5);
}

.page-blog-article .comment-main {
    flex: 1;
    min-width: 0;
}

.page-blog-article .comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

.page-blog-article .comment-header .login {
    font-size: 14px;
    font-weight: 500;
    color: var(--writecontrol-secondary-text-color, #19146E);
}

.page-blog-article .comment-header .date {
    font-size: 12px;
    color: var(--writecontrol-disabled-secondary-color, #7c7b7b);
}

.page-blog-article .comment-text {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--writecontrol-primary-text-color, #19146E);
    overflow-wrap: anywhere;
}

.page-blog-article .comment-text.clamped {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    overflow: hidden;
}

.page-blog-article .children {
    margin-left: 18px;
    padding-left: 24px;
    border-left: 1px solid var(--writecontrol-block-separator-color, #e9e7e8);
}

.page-blog-article .comment-add {
    display: block;
    padding-top: 30px;
    margin: auto;
    text-align: unset;
    font-family: 'Inter', sans-serif;
}

.page-blog-article .static-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 1px solid var(--writecontrol-block-separator-color, #e9e7e8);
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background: transparent;
    resize: vertical;
}

.page-blog-article .static-comment-form .comment-meta { text-align: right; }
.page-blog-article .static-comment-form button { cursor: pointer; }
.page-blog-article .static-comment-form button:disabled { opacity: .5; cursor: default; }

.page-blog-article .need-login-title {
    margin-bottom: 48px;
}

.page-blog-article .connection-link,
.page-blog-article .popup-connection-link {
    text-decoration: none;
}

/* paper-button raised (élévation 1) */
.page-blog-article .cta-button.raised {
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 0 1px -3px rgba(0, 0, 0, 0.2);
}

/* ---------- Articles similaires (blog-similar-articles) ---------- */

.page-blog-article .blog-similar-articles {
    padding-top: 120px;
    display: block;
    max-width: 984px;
    margin: auto;
    text-align: left;
}

.page-blog-article .similar-title {
    color: var(--writecontrol-secondary-text-color, #19146E);
    font-size: 18px;
    display: block;
    text-align: center;
    margin-bottom: 14px;
}

@media (max-width: 800px) {
    .page-blog-article .blog-similar-articles > .blog-category {
        display: block;
        width: 100%;
        text-align: center;
    }
}

.page-blog-article #takeControl {
    margin-top: 120px;
}

/* ---------- Fenêtres (paper-dialog with-backdrop) ---------- */

/* iron-overlay-backdrop */
.page-blog-article .wc-dialog-backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--writecontrol-primary-background-color, #ffffff);
    opacity: 0.6;
    z-index: 102;
}

/* paper-dialog centré par iron-fit-behavior (les marges ne décalent pas la boîte). */
.page-blog-article .need-login-popup,
.page-blog-article .image-dialog {
    position: fixed;
    z-index: 103;
    inset: 0;
    margin: auto;
    box-sizing: border-box;
    outline: none;
    padding: 24px;
    font-size: 14px;
    line-height: 20px;
    text-align: start;
    -webkit-font-smoothing: antialiased;
}

.page-blog-article .need-login-popup {
    width: 650px;
    max-width: calc(100% - 80px);
    height: 280px;
    background: var(--writecontrol-primary-background-color, #ffffff);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 7px;
}

.page-blog-article .popup-title {
    font-family: var(--writecontrol-title-font-family, 'Meslo', sans-serif);
    width: 450px;
    margin: auto;
    text-align: center;
    color: var(--writecontrol-secondary-text-color, #19146E);
    padding: 45px 8px 16px 8px;
    font-size: 30px;
    line-height: 32px;
}

.page-blog-article .need-login-popup .buttons {
    padding: unset;
}

.page-blog-article .popup-connect-button {
    background: linear-gradient(174.07deg, #FF917D 30.81%, #FF6E78 95.85%);
    margin-top: 14px;
    font-weight: normal;
}

.page-blog-article .popup-connect-button > span {
    display: block;
}

.page-blog-article .register {
    text-align: center;
    font-weight: normal;
    color: var(--writecontrol-disabled-secondary-color, #B6B4B6);
    margin-top: 32px;
}

.page-blog-article .registration-link {
    text-decoration: underline;
}

.page-blog-article .image-dialog {
    width: fit-content;
    height: fit-content;
    max-width: 96vw;
    max-height: 96vh;
    background: var(--writecontrol-primary-background-color, #ffffff);
    color: var(--writecontrol-secondary-text-color, #19146E);
    border-radius: 7px;
}

.page-blog-article .image-dialog img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.page-blog-article .image-dialog .buttons {
    text-align: right;
    padding-top: 8px;
}

.page-blog-article .dialog-dismiss {
    font: inherit;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 3px;
    padding: 0.7em 0.57em;
    margin: 0 0.29em;
    min-width: 5.14em;
    cursor: pointer;
}

/* Comme blog-article.html : sections basses rendues à l'approche de la zone visible. */
.page-blog-article .blog-article-comment,
.page-blog-article .blog-similar-articles,
.page-blog-article #takeControl,
.page-blog-article .home-footer {
    content-visibility: auto;
    contain-intrinsic-size: auto 600px;
}

/* Liens du contenu : non soulignés, comme dans le shell Polymer (style global des liens). */
.page-blog-article #contentBlog a {
    text-decoration: none;
}
