
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Dancing+Script:wght@400;700&display=swap");

/* 
 * CSS Mystique pour Articles de Blog - Priorité Maximale
 * Ce fichier doit être chargé en dernier pour avoir la priorité sur tous les autres styles
 * Compatible avec Bootstrap, style.css et tous les autres CSS du thème
 */

/* Scope doux: ne pas surcharger Bootstrap / layout global inutilement */
/* Utiliser des sélecteurs spécifiques plutôt que des resets globaux */

.blog-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="25" height="25" patternUnits="userSpaceOnUse"><circle cx="3" cy="3" r="0.5" fill="%23dd9c76" opacity="0.6"/><circle cx="18" cy="10" r="0.3" fill="%23efd4b7" opacity="0.4"/><circle cx="10" cy="18" r="0.4" fill="%23de8d38" opacity="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.15;
    z-index: 1;
}

.blog-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Image principale optimisée */
.blog-header-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(221, 156, 118, 0.3);
}

.blog-header-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.blog-header-image:hover img {
    transform: scale(1.02);
}

.blog-header-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
    rgba(221, 156, 118, 0.1) 0%,
    transparent 50%);
    pointer-events: none;
}

/* Contenu principal */
.blog-details-con {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(221, 156, 118, 0.3);
    border-radius: 25px;
    padding: 50px;
    margin: 50px 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-details-con::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
    transparent 0%,
    #dd9c76 25%,
    #de8d38 50%,
    #dd9c76 75%,
    transparent 100%);
}

/* Typographie élégante avec nouvelles polices (compatibilité Bootstrap/maquette) */
.blog-details-con p {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    line-height: 1.8;
    color: #2c3e50;
    margin-bottom: 28px;
    text-align: justify;
    position: relative;
    font-weight: 400;
}

.blog-details-con > p:first-child::first-letter {
    float: left;
    font-family: "Playfair Display", serif;
    font-size: 85px;
    line-height: 70px;
    padding-right: 12px;
    padding-top: 8px;
    font-weight: 700;
    color: #de8d38;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-right: 5px;
    position: relative;
    z-index: 2;
    clear: left;
}

/* Désactiver toute transformation sur les autres paragraphes */
.blog-details-con > p:not(:first-child)::first-letter {
    float: none;
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    color: inherit;
    text-shadow: none;
    position: static;
    z-index: auto;
    clear: none;
}

/* Exclure la première lettre décorative pour les légendes d'images */
.blog-details-con .img-caption::first-letter {
    float: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    margin: 0;
    font-weight: inherit;
    color: inherit;
    text-shadow: none;
    position: static;
    z-index: auto;
    clear: none;
}

/* Titres dans le contenu - Priorité sur les styles existants */
.blog-details-con h1,
.blog-details-con h2,
.blog-details-con h3,
.blog-details-con h4 {
    font-family: "Playfair Display", serif !important;
    color: #2c3e50 !important;
    margin: 40px 0 25px !important;
    position: relative !important;
    font-weight: 700 !important;
}

.blog-details-con h2 {
    font-size: 32px;
    border-bottom: 3px solid rgba(221, 156, 118, 0.4);
    padding-bottom: 15px;
    color: #de8d38;
}

.blog-details-con h3 {
    font-size: 26px;
    color: #dd9c76;
}

.blog-details-con h4 {
    font-size: 22px;
    color: #17384e;
}

/* Listes stylées */
.blog-details-con ul {
    padding-left: 0;
    margin: 30px 0;
    list-style: none;
}

.blog-details-con ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 15px;
    color: #34495e;
    line-height: 1.7;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
}

.blog-details-con ul li::before {
    content: '❈';
    position: absolute;
    left: 0;
    color: #dd9c76;
    font-size: 18px;
    top: 2px;
}

/* Blockquotes élégantes */
.blog-details-con blockquote {
    background: linear-gradient(135deg,
    rgba(221, 156, 118, 0.1) 0%,
    rgba(222, 141, 56, 0.05) 100%);
    border-left: 5px solid #dd9c76;
    padding: 30px 35px;
    margin: 35px 0;
    border-radius: 15px;
    position: relative;
    font-style: italic;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Par défaut, pas de guillemet décoratif au-dessus des blockquotes */
.blog-details-con blockquote::before {
    content: none;
}

/* Activer le guillemet décoratif uniquement si la classe est présente */
.blog-details-con blockquote.quote-decor::before {
    content: '"';
    font-family: "Dancing Script", cursive;
    font-size: 70px;
    color: #de8d38;
    position: absolute;
    top: -15px;
    left: 20px;
    opacity: 0.6;
}

.blog-details-con blockquote p {
    font-family: "Playfair Display", serif;
    color: #2c3e50;
    font-size: 22px;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

/* Links élégants */
.blog-details-con a {
    color: #de8d38;
    text-decoration: underline;
    text-decoration-color: rgba(222, 141, 56, 0.5);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-details-con a:hover {
    color: #dd9c76;
    text-shadow: 0 0 5px rgba(221, 156, 118, 0.3);
    text-decoration-color: #dd9c76;
}

/* Images dans le contenu - Priorité sur les styles existants */
.blog-details-con img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 25px 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
}

.blog-details-con img:hover {
    transform: scale(1.02) !important;
}

/* Images avec enveloppement de texte - Priorité sur les styles existants */
.blog-details-con .img-float-left {
    float: left;
    margin: 15px 25px 15px 0;
    max-width: 300px;
    shape-outside: margin-box;
    position: relative;
    z-index: 1;
}

.blog-details-con .img-float-right {
    float: right;
    margin: 15px 0 15px 25px;
    max-width: 300px;
    shape-outside: margin-box;
    position: relative;
    z-index: 1;
}

/* Images de taille moyenne - Priorité sur les styles existants */
.blog-details-con .img-medium {
    max-width: 250px;
}

/* Images de petite taille */
.blog-details-con .img-small {
    max-width: 200px;
}

/* Images de grande taille */
.blog-details-con .img-large {
    max-width: 400px;
}

/* Conteneur pour images avec légende */
.blog-details-con .img-with-caption {
    text-align: center;
    margin: 20px;
}

/* Conteneur pour images avec légende flottantes - Priorité sur les styles existants */
.blog-details-con .img-with-caption.img-float-left {
    float: left;
    margin: 15px 25px 15px 0;
    max-width: 300px;
    shape-outside: margin-box;
    position: relative;
    z-index: 1;
}

.blog-details-con .img-with-caption.img-float-right {
    float: right;
    margin: 15px 0 15px 25px;
    max-width: 300px;
    shape-outside: margin-box;
    position: relative;
    z-index: 1;
}

.blog-details-con .img-with-caption img {
    margin: 0 0 10px 0;
}

.blog-details-con .img-caption {
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
    color: #dd9c76;
    font-style: italic;
    text-align: center;
    margin: 0;
    line-height: 1.4;
}

/* Nettoyage du float */
.blog-details-con .clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Dividers élégants */
.blog-divider {
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg,
    transparent 0%,
    #dd9c76 25%,
    #de8d38 50%,
    #dd9c76 75%,
    transparent 100%);
    margin: 50px auto;
    position: relative;
}

.blog-divider::before {
    content: '◆';
    font-family: "Dancing Script", cursive;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: #de8d38;
    font-size: 24px;
    padding: 0 15px;
}

/* Navigation article */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    padding: 25px 0;
    border-top: 2px solid rgba(221, 156, 118, 0.3);
}

.blog-nav-btn {
    background: linear-gradient(135deg, #17384e 0%, #132031 100%);
    color: #dd9c76;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid rgba(221, 156, 118, 0.5);
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: "Playfair Display", serif;
    font-size: 16px;
}

.blog-nav-btn:hover {
    background: linear-gradient(135deg, #dd9c76 0%, #de8d38 100%);
    color: #132031;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(221, 156, 118, 0.4);
}

/* Tags stylisés */
.blog-tags .badge {
    background: linear-gradient(135deg, #dd9c76 0%, #de8d38 100%) !important;
    color: #132031 !important;
    margin-right: 10px !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-family: "Cormorant Garamond", serif !important;
    font-weight: 500 !important;
    border: 1px solid rgba(221, 156, 118, 0.5) !important;
}

.blog-tags h4 {
    font-family: "Playfair Display", serif !important;
    color: #2c3e50 !important;
}

/* Responsive optimisé */
@media (max-width: 768px) {
    .blog-details-con {
        padding: 30px 25px;
    }

    .blog-details-con p {
        font-size: 18px;
        line-height: 1.7;
    }

    .blog-details-con > p:first-child::first-letter {
        font-size: 60px;
        line-height: 50px;
    }

    /* Images flottantes sur mobile */
    .blog-details-con .img-float-left,
    .blog-details-con .img-float-right,
    .blog-details-con .img-with-caption.img-float-left,
    .blog-details-con .img-with-caption.img-float-right {
        float: none;
        margin: 20px auto;
        max-width: 100%;
        display: block;
    }

    .blog-navigation {
        flex-direction: column;
        gap: 20px;
    }

    .blog-nav-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-details-con {
        padding: 25px 20px;
    }

    .blog-details-con h2 {
        font-size: 26px;
    }

    .blog-details-con h3 {
        font-size: 22px;
    }

    .blog-details-con p {
        font-size: 16px;
    }
}

/* Animation d'entrée douce */
.blog-details-con {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
