/* ==========================================================================
   1. BASE & MISE EN PAGE GLOBALE
   ========================================================================== */
body {
    background: url('../img/core-img/body-blog.png') repeat;
    margin: 0;
    padding: 0;
}

/* Le vrai bouton de retour au blog, stylisé et centré au-dessus de l'article */
.back-blog {
    display: table; /* S'adapte proprement à la largeur du texte */
    margin: 20px auto -30px auto; /* Centré horizontalement */
    padding: 10px 22px;
    background: #b86b31;
    color: #fff !important; /* Force la couleur blanche textuelle */
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: background 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.back-blog:hover {
    background: #d48a45;
    transform: translateY(-2px);
}


/* ==========================================================================
   2. STRUCTURE DE L'ARTICLE
   ========================================================================== */
.mumtaz-article {
    position: relative;
    width: 80%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 40px;
    font-family: Georgia, serif !important;
    background-color: #fcdabf;
    color: #333;
    border: 3px solid #f4991a;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}


/* ==========================================================================
   3. TITRE & SÉPARATEUR ORIENTAL
   ========================================================================== */
.mumtaz-article h1 {
    position: relative;
    display:block;
    font-family: "Cormorant Garamond", serif !important;
    font-weight: 500;
    text-align: center;
    font-size: 35px;
    margin: 0 auto 30px;
    color: #ffffff;
    letter-spacing: -0.5px;
    max-width: 100%;
    word-wrap: break-word;
}

.mumtaz-article h1::after {
    content: "";
    display: block;
    width: 500px;
    max-width: 80%;
    height: 3px;
    margin: 25px auto 0;
    background: linear-gradient(to right, transparent, #f4991a, transparent);
}


/* ==========================================================================
   4. TEXTE INFRASTRUCTURE (TYPOGRAPHIE)
   ========================================================================== */
.mumtaz-article .content p,
.mumtaz-article .content li,
.mumtaz-article .content span {
    font-family: Georgia, 'Times New Roman', Times, serif;
    text-align: justify;
    margin: 18px 0;
    font-size: 14px;
    line-height: 1.6; /* Améliore le confort de lecture générale */
}

/* Blockquote (Citations) */
.mumtaz-article blockquote {
    border-left: 4px solid #d4a373;
    padding-left: 18px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
}

/* Gestion sémantique des liens dans le texte */
.mumtaz-article a {
    color: #b86b31;
    text-decoration: none;
    border-bottom: 1px solid rgba(184,107,49,0.3);
    transition: 0.2s;
}

.mumtaz-article a:hover {
    border-bottom: 1px solid #b86b31;
}


/* ==========================================================================
   5. ÉLÉMENTS MÉDIAS (IMAGES)
   ========================================================================== */
.mumtaz-article img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
}

/* ==========================================================================
   6. ZONE DE PARTAGE RÉSEAUX SOCIAUX (SHARE BOX)
   ========================================================================== */
.share-box {
    display: flex;
    align-items: center;
    justify-content: center; /* Centre la barre de partage sous le titre */
    gap: 15px;
    margin: -5px 0 38px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(244, 153, 26, 0.2); /* Séparateur horizontal */
}

.share-title,
.share-label {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Bouton circulaire générique pour les RS */
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%; /* Boutons parfaitement ronds */
    color: #ffffff !important; /* Force la couleur blanche sur les SVGs */
    border: none !important; /* Évite d'avoir la bordure par défaut des liens de l'article */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.share-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1); /* Donne un léger éclat au survol */
    border: none !important;
}

/* Couleurs officielles des marques */
.share-btn.facebook {
    background-color: #1877f2;
}

.share-btn.x-twitter {
    background-color: #111111;
}

.share-btn.whatsapp {
    background-color: #25d366;
}

/* Normalisation des SVGs à l'intérieur des boutons */
.share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.article-hero {
    display: grid;
    grid-template-columns: minmax(260px, 42%) 1fr;
    align-items: stretch;
    gap: 38px;
    margin: 35px 0 45px;
    padding: 22px;
    background: #321313;
    border: 1px solid #f4991a;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(50, 19, 19, 0.14);
}

.article-hero-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.article-hero--without-cover {
    grid-template-columns: 1fr;
}

.article-cover {
    min-height: 280px;
    margin: 0;
}

.article-cover img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 380px;
    margin: 0 !important;
    object-fit: cover;
    object-position: center;
    border-radius: 9px;
    border: 1px solid #f4991a;
    box-shadow: 0 8px 20px rgba(50, 19, 19, 0.18);
}

.article-hero-text .share-box {
    justify-content: center;
    margin: 0;
}

.article-rubrique {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 34px;
    padding: 15px 18px;
    background: rgba(255, 246, 230, 0.55);
    border-left: 5px solid var(--rubrique-color, #b86b31);
    border-radius: 4px 10px 10px 4px;
}

.article-rubrique-icon {
    flex: 0 0 auto;
    font-size: 30px;
}

.article-rubrique strong {
    color: var(--rubrique-color, #b86b31);
    font: 700 20px/1.2 "Cormorant Garamond", Georgia, serif;
}

.article-rubrique p {
    margin: 5px 0 0 !important;
    color: #4d3a30;
    font: italic 14px/1.45 Georgia, serif !important;
    text-align: left !important;
}

.article-official-mark {
    position: absolute;
    /*right: 40px;*/
    bottom: 100px;
    left: 200px;
    /*justify-content: center;*/
    z-index: 2;
    display: flex;
    margin: 0;
    pointer-events: none;
}

.article-official-mark img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.article-official-mark.wide img {
    max-width: 65%;
    max-height: none;
}

.article-official-mark.wide {
    transform: rotate(-30deg);
}

.article-official-mark.round img {
    max-width: 145px;
    max-height: 145px;
}

.share-btn svg path {
    fill: currentColor !important;
}

.share-btn.facebook,
.share-btn.share-facebook {
    background-color: #1877f2;
}

.share-btn.x-twitter,
.share-btn.share-x {
    background-color: #111111;
}

.share-btn.whatsapp,
.share-btn.share-whatsapp {
    background-color: #25d366;
}

.share-btn.messenger {
    background-color: #0084ff;
}

.share-btn.telegram {
    background-color: #0088cc;
}

/* Bandeau visible uniquement dans preview.php. */
.preview-banner {
    position: relative;
    z-index: 5;
    padding: 11px 20px;
    background: #321313;
    color: #fcdabf;
    text-align: center;
    font: 700 13px/1.4 system-ui, -apple-system, sans-serif;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    .mumtaz-article {
        width: calc(100% - 30px);
        margin: 40px auto;
        padding: 0 10px;
    }
    .mumtaz-article .content img {
    float:none !important;
    width: 100% !important;
    height: auto;
    display: block;
    margin: 20px auto !important;
    }
 
    .mumtaz-article h1 {
        margin-top: 0;
        font-size: 29px;
    }

    .article-hero {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 25px 0 35px;
        padding: 14px;
    }

    .article-cover {
        width: 100%;
        min-height: 0;
        margin: 0;
    }

    .article-cover img {
        height: auto;
        max-height: 360px;
    }

    .article-rubrique {
        align-items: flex-start;
    }

    .article-official-mark.wide img {
        max-width: 95%;
    }

    .article-official-mark.round img {
        max-width: 120px;
    }

    .article-official-mark {
        right: 20px;
        left: 20px;
        bottom: 100px;
    }

    .share-box {
        gap: 10px;
        margin-bottom: 28px;
    }

    .share-btn {
        width: 36px;
        height: 36px;
    }
}
