/* Vidéos YouTube et iframes responsives */
iframe {
    max-width: 100%;
}

/* Wrapper responsive pour ratio 16:9 */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === VIDÉOS ET IFRAMES RESPONSIVES === */
iframe {
    max-width: 100%;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === JUSTIFICATION AUTOMATIQUE DES ARTICLES === */
.item-page p,
.item-page div,
.article-content p,
.com-content-article p,
.blog-item p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

/* === IMAGES RESPONSIVES DANS LES ARTICLES === */
.item-page img,
.article-content img,
.com-content-article img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   PACK CSS GNAKRYLIVE - Articles
   ======================================== */

/* === VIDÉOS ET IFRAMES RESPONSIVES + CENTRÉES === */
iframe {
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === IMAGES RESPONSIVES + CENTRÉES === */
.item-page img,
.article-content img,
.com-content-article img,
.blog-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === INTÉGRATIONS RÉSEAUX SOCIAUX (Facebook, Twitter/X, Instagram, TikTok) === */
.item-page .fb-post,
.item-page .fb-video,
.item-page .twitter-tweet,
.item-page .instagram-media,
.item-page .tiktok-embed,
.article-content .fb-post,
.article-content .fb-video,
.article-content .twitter-tweet,
.article-content .instagram-media,
.article-content .tiktok-embed {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 100% !important;
}

/* === CENTRAGE GLOBAL DES BLOCS EMBED === */
.item-page embed,
.item-page object,
.item-page video,
.article-content embed,
.article-content object,
.article-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* === JUSTIFICATION AUTOMATIQUE DU TEXTE === */
.item-page p,
.article-content p,
.com-content-article p,
.blog-item p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    word-break: normal;
    overflow-wrap: break-word;
}

/* === CONTENEUR FIGURE (légendes d'images centrées) === */
.item-page figure,
.article-content figure {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 100%;
}

.item-page figure figcaption,
.article-content figure figcaption {
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
}