/**
* Blog CSS - Compatible avec le thème Cruise
* Auteur: Compatible avec Limpid Themes
* Description: Styles pour les articles de blog harmonisés avec le thème Cruise
**/

/* === STYLES GÉNÉRAUX POUR LES PAGES BLOG === */
.blog-post-main {
    padding: 60px 0;
    background: #f7f7f7; /* Même fond que les sections du thème */
    font-family: 'Open Sans', sans-serif;
    color: #07253F;
}

.blog-post-article {
    background: #ffffff;
    padding: 40px;
    box-shadow: 0px 0px 5px #e6e6e6; /* Même ombre que le thème */
    border: 1px solid #e6e6e6;
    margin-bottom: 30px;
    transition: all 0.3s ease; /* Transition du thème */
}

/* === EN-TÊTE DE L'ARTICLE === */
.post-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e6e6e6;
    padding-bottom: 30px;
    text-align: center; /* Style section-title du thème */
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.breadcrumb a {
    color: #00adef; /* Couleur secondaire du thème */
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #f9676b; /* Couleur primaire au hover */
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #BEC4C8;
}

/* === TITRE PRINCIPAL === */
.post-title {
    font-size: 2.5rem;
    font-weight: 800; /* Même poids que les h2 du thème */
    color: #07253F;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: 1px; /* Style du thème */
    text-transform: uppercase; /* Style du thème */
}

.post-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    color: #BEC4C8; /* Couleur de texte secondaire du thème */
    font-size: 14px;
    margin-bottom: 20px;
}

.post-info > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-info i {
    color: #f9676b; /* Couleur primaire pour les icônes */
    margin-right: 5px;
}

/* === IMAGE PRINCIPALE === */
.post-featured-image {
    margin-bottom: 40px;
    text-align: center;
}

.post-featured-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border: 5px solid #e6e6e6; /* Style de bordure du thème */
    transition: all 0.3s ease;
}

.post-featured-image img:hover {
    border-color: #f9676b; /* Effet hover du thème */
}

.image-caption {
    font-style: italic;
    color: #BEC4C8;
    margin-top: 15px;
    font-size: 13px;
}

/* === CONTENU DE L'ARTICLE === */
.post-content {
    line-height: 2; /* Line-height standard du thème */
    font-size: 15px; /* Taille de police du thème */
    color: #07253F;
    margin-bottom: 40px;
}

.post-content h2 {
    color: #07253F;
    font-weight: 800;
    letter-spacing: 2px; /* Style des h2 du thème */
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
}

.post-content h2:after {
    content: "";
    width: 100px;
    height: 4px;
    background: #f9676b; /* Ligne décorative du thème */
    position: absolute;
    bottom: -10px;
    left: 0;
}

.post-content h3 {
    color: #07253F;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content h4 {
    color: #07253F;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
    line-height: 2;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
    line-height: 2;
}

.post-content blockquote {
    background: #f7f7f7; /* Fond du thème */
    border-left: 4px solid #f9676b;
    margin: 40px 0;
    padding: 25px;
    font-style: italic;
    font-size: 1.1em;
    color: #0A3152;
    position: relative;
}

.post-content blockquote:before {
    content: "\f10d";
    font-family: "FontAwesome";
    color: #f9676b;
    margin-right: 10px;
}

.post-content blockquote:after {
    content: "\f10e";
    font-family: "FontAwesome";
    color: #f9676b;
    margin-left: 10px;
}

.post-content strong {
    font-weight: bold;
    color: #07253F;
}

/* === FOOTER DE L'ARTICLE === */
.post-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e6e6e6;
}

/* === TAGS === */
.post-tags {
    margin-bottom: 30px;
}

.post-tags h4 {
    margin-bottom: 20px;
    color: #07253F;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #e6e6e6;
    padding: 8px 15px;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #e6e6e6;
}

.tag a {
    color: #07253F;
    text-decoration: none;
    font-weight: bold;
}

.tag:hover {
    background: #f9676b;
    border-color: #f9676b;
}

.tag:hover a {
    color: #ffffff;
}

/* === PARTAGE SOCIAL === */
.social-share {
    margin-bottom: 40px;
}

.social-share h4 {
    margin-bottom: 20px;
    color: #07253F;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.share-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
}

.share-btn:hover {
    text-decoration: none;
    transform: translateY(-2px); /* Effet du thème */
}

.share-btn.facebook {
    background: #3b5998;
    color: #ffffff;
}

.share-btn.facebook:hover {
    background: transparent;
    color: #3b5998;
    border-color: #3b5998;
}

.share-btn.twitter {
    background: #1da1f2;
    color: #ffffff;
}

.share-btn.twitter:hover {
    background: transparent;
    color: #1da1f2;
    border-color: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
    color: #ffffff;
}

.share-btn.linkedin:hover {
    background: transparent;
    color: #0077b5;
    border-color: #0077b5;
}

/* === NAVIGATION ENTRE ARTICLES === */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
}

.post-navigation a {
    color: #00adef;
    text-decoration: none;
    padding: 15px 25px;
    border: 2px solid #00adef;
    font-weight: bold;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #00adef;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

/* === SECTION COMMENTAIRES === */
.comments-section {
    margin-top: 50px;
    padding: 40px;
    background: #f7f7f7; /* Fond du thème */
    border: 1px solid #e6e6e6;
    box-shadow: 0px 0px 5px #e6e6e6;
}

.comments-section h3 {
    margin-bottom: 30px;
    color: #07253F;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-form .form-group {
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #07253F;
    font-size: 12px;
    text-transform: uppercase;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #BEC4C8; /* Couleur de bordure du thème */
    background-color: transparent;
    color: #07253F;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    height: 40px; /* Hauteur standard du thème */
    transition: border-color 0.15s ease-in-out;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #f9676b;
    box-shadow: none;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

/* === BOUTONS === */
.btn,
.btn-primary {
    background: #f9676b !important; /* Couleur primaire du thème */
    color: #ffffff !important;
    padding: 12px 30px;
    border: 2px solid transparent !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn:hover,
.btn-primary:hover {
    background: #00adef !important; /* Couleur secondaire au hover */
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
    border-color: transparent !important;
}

/* === ARTICLES SIMILAIRES === */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    margin-bottom: 30px;
    text-align: center;
    color: #07253F;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-post-item {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0px 0px 5px #e6e6e6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-item:hover {
    border-color: #F19C4F; /* Couleur hover du thème */
    box-shadow: 0px 0px 5px #F19C4F;
    transform: translateY(-5px);
}

.related-post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-post-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-item h4 {
    padding: 20px;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #07253F;
    line-height: 1.6;
}

/* === INTÉGRATION AVEC LE CAROUSEL EXISTANT === */
/* Styles pour les articles dans le carousel de la page d'accueil */
.room-grid-view .post-title h5 {
    font-weight: bold;
    margin-top: 10px;
}

.room-grid-view .post-desc p {
    line-height: 2;
    font-size: 13px;
}

.room-grid-view .post-alt i {
    margin: 0px 5px;
}

/* === LISTE DES ARTICLES (PAGE BLOG) === */
.blog-listing {
    padding: 60px 0;
}

.post-wrapper {
    border: 1px solid #e6e6e6;
    box-shadow: 0px 0px 5px #e6e6e6;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.post-wrapper:hover {
    border-color: #F19C4F;
    box-shadow: 0px 0px 5px #F19C4F;
}

.post-wrapper img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-body {
    padding: 30px;
}

.post-body h3 {
    font-weight: bold;
    letter-spacing: 1px;
    line-height: 1.3;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.post-body h3 a {
    color: #07253F;
    text-decoration: none;
}

.post-body h3 a:hover {
    color: #f9676b;
}

.post-body p {
    line-height: 2;
    margin-bottom: 20px;
}

.post-body .post-meta {
    color: #BEC4C8;
    font-size: 13px;
    margin-bottom: 15px;
}

.post-body .post-meta i {
    color: #f9676b;
    margin-right: 5px;
}

.post-body .post-meta a {
    color: #BEC4C8;
}

.post-body .post-meta a:hover {
    color: #00adef;
}

.post-body .read-more a {
    background: #f9676b;
    color: #ffffff;
    padding: 10px 20px;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.post-body .read-more a:hover {
    background: #00adef;
    color: #ffffff;
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    .blog-post-article {
        padding: 30px 20px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .blog-post-main {
        padding: 30px 0;
    }
    
    .blog-post-article {
        padding: 20px 15px;
    }

    .post-title {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .post-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .post-navigation {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav-next {
        text-align: center;
    }

    .share-buttons {
        justify-content: center;
        flex-direction: column;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .comments-section {
        padding: 20px 15px;
    }
    
    .post-content h2 {
        font-size: 1.5rem;
    }
    
    .post-body {
        padding: 20px;
    }
}

/* === CLASSES UTILITAIRES === */
.text-primary {
    color: #f9676b !important;
}

.text-secondary {
    color: #00adef !important;
}

.bg-light {
    background-color: #f7f7f7 !important;
}

.border-primary {
    border-color: #f9676b !important;
}

/* === SIDEBAR BLOG (si utilisé) === */
.blog-sidebar .sidebar-item {
    border: 1px solid #e6e6e6;
    box-shadow: 0px 0px 5px #e6e6e6;
    margin-bottom: 30px;
}

.blog-sidebar .sidebar-item h4 {
    background: #e6e6e6;
    margin: 0;
    padding: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-sidebar .sidebar-item .sidebar-body {
    padding: 20px;
}

.blog-sidebar .recent-post a {
    color: #07253F;
}

.blog-sidebar .recent-post a:hover {
    color: #f9676b;
}