/* ============================================
   Blog Article Modal - Mise en page optimisée
   ============================================ */

/* === Modal Container === */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1;
    backdrop-filter: blur(5px);
}

.blog-modal-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 80px auto 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

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

/* === Close Button === */
.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.blog-modal-close:hover {
    background: #b8956a;
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

/* === Blog Post Container === */
.blog-post {
    padding: 60px;
    color: #2c2c2c;
}

@media (max-width: 768px) {
    .blog-post {
        padding: 40px 30px;
    }
    
    .blog-modal-content {
        margin: 20px 15px;
        border-radius: 8px;
    }
}

/* === Image Header === */
.blog-post-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    margin: 0;
}

@media (max-width: 768px) {
    .blog-post-image {
        height: 250px;
    }
}

/* === Category Badge === */
.blog-post .blog-category {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #b8956a, #d4b896);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* === Title === */
.blog-post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }
}

/* === Meta Info === */
.blog-post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.95rem;
    color: #8a8a8a;
}

.blog-post-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-post-meta span:before {
    content: "•";
    color: #b8956a;
    font-weight: bold;
}

.blog-post-meta span:first-child:before {
    content: none;
}

/* === Content Styles === */
.blog-post-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #4a4a4a;
}

.blog-post-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 50px 0 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
    line-height: 1.4;
}

.blog-post-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.blog-post-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c2c2c;
    margin: 35px 0 20px;
    line-height: 1.4;
}

.blog-post-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #b8956a;
    margin: 25px 0 15px;
    line-height: 1.5;
}

.blog-post-content p {
    margin-bottom: 20px;
    line-height: 1.9;
}

.blog-post-content strong {
    font-weight: 600;
    color: #2c2c2c;
}

.blog-post-content em {
    font-style: italic;
    color: #5a5a5a;
}

/* === Lists === */
.blog-post-content ul,
.blog-post-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.blog-post-content ul li,
.blog-post-content ol li {
    margin-bottom: 12px;
    line-height: 1.8;
    padding-left: 10px;
}

.blog-post-content ul li {
    list-style: none;
    position: relative;
}

.blog-post-content ul li:before {
    content: "→";
    position: absolute;
    left: -25px;
    color: #b8956a;
    font-weight: bold;
}

/* === Blockquotes === */
.blog-post-content blockquote {
    margin: 35px 0;
    padding: 25px 30px 25px 70px;
    background: linear-gradient(135deg, #fef9f3 0%, #faf7f2 100%);
    border-left: 4px solid #b8956a;
    border-radius: 8px;
    font-style: italic;
    color: #4a4a4a;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.blog-post-content blockquote:before {
    content: """;
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    color: #b8956a;
    opacity: 0.3;
    line-height: 1;
}

.blog-post-content blockquote p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* === Tables === */
.blog-post-content table {
    width: 100%;
    margin: 35px 0;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.blog-post-content table thead {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    color: #ffffff;
}

.blog-post-content table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-post-content table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
    font-size: 0.95rem;
}

.blog-post-content table tbody tr {
    background: #ffffff;
    transition: background 0.2s ease;
}

.blog-post-content table tbody tr:hover {
    background: #fafafa;
}

.blog-post-content table tbody tr:last-child td {
    border-bottom: none;
}

/* === Horizontal Rule === */
.blog-post-content hr {
    margin: 50px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b8956a, transparent);
    opacity: 0.3;
}

/* === Links === */
.blog-post-content a {
    color: #b8956a;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-post-content a:hover {
    color: #2c2c2c;
    border-bottom-color: #b8956a;
}

/* === Special Sections === */
.blog-post-content .highlight,
.blog-post-content .callout {
    margin: 30px 0;
    padding: 25px 30px;
    background: linear-gradient(135deg, #fef9f3 0%, #faf7f2 100%);
    border-left: 4px solid #b8956a;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(184, 149, 106, 0.1);
}

/* === Responsive === */
@media (max-width: 768px) {
    .blog-post-content {
        font-size: 1rem;
    }
    
    .blog-post-content h2 {
        font-size: 1.6rem;
        margin: 35px 0 20px;
    }
    
    .blog-post-content h3 {
        font-size: 1.25rem;
        margin: 25px 0 15px;
    }
    
    .blog-post-content table {
        font-size: 0.85rem;
    }
    
    .blog-post-content table th,
    .blog-post-content table td {
        padding: 12px 15px;
    }
    
    .blog-post-content blockquote {
        padding: 20px 20px 20px 50px;
    }
    
    .blog-post-content blockquote:before {
        font-size: 3rem;
        left: 10px;
    }
}

/* === Smooth Scroll === */
.blog-modal {
    scroll-behavior: smooth;
}

.blog-modal::-webkit-scrollbar {
    width: 12px;
}

.blog-modal::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.blog-modal::-webkit-scrollbar-thumb {
    background: #b8956a;
    border-radius: 6px;
}

.blog-modal::-webkit-scrollbar-thumb:hover {
    background: #a07d58;
}
