/* Styles du Blog Geoptim */

.blog-hero {
    background: linear-gradient(135deg, #7c3aed 0%, #f97316 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.blog-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .blog-container {
        grid-template-columns: 1fr;
    }
}

/* Grille d'articles */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.post-image {
    height: 200px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #7c3aed;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #7c3aed;
}

.post-excerpt {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.post-meta {
    border-top: 1px solid #f3f4f6;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Sidebar */
.blog-sidebar .widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    border: 1px solid #f3f4f6;
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    color: #1f2937;
}

.category-list, .latest-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #4b5563;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    transition: color 0.2s;
}

.category-list a:hover {
    color: #7c3aed;
}

/* Article Détail */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(249, 115, 22, 0.1));
    color: #7c3aed;
    padding: 6px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-decoration: none;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #1f2937;
}

.article-meta-large {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #6b7280;
    font-size: 0.95rem;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #374151;
}

.article-content h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-left: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(135deg, #7c3aed, #f97316);
    border-radius: 2px;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #7c3aed;
    position: relative;
    padding-left: 15px;
}

.article-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #f97316;
    border-radius: 2px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Liens dans le contenu */
.article-content a {
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(124, 58, 237, 0.3);
    transition: all 0.2s;
}

.article-content a:hover {
    color: #f97316;
    border-bottom-color: rgba(249, 115, 22, 0.5);
}

/* Listes */
.article-content ul, .article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.article-content ul li::marker {
    color: #7c3aed;
    font-size: 1.2em;
}

.article-content ol li {
    margin-bottom: 10px;
    padding-left: 10px;
}

.article-content ol li::marker {
    color: #f97316;
    font-weight: 700;
}

/* Citations */
.article-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(249, 115, 22, 0.05));
    border-left: 4px solid;
    border-image: linear-gradient(135deg, #7c3aed, #f97316) 1;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #4b5563;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: rgba(124, 58, 237, 0.2);
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: Georgia, serif;
    line-height: 1;
}

.article-content blockquote p {
    margin-bottom: 0;
    padding-left: 20px;
}

/* Texte en gras et italique */
.article-content strong {
    color: #7c3aed;
    font-weight: 700;
}

.article-content em {
    color: #f97316;
}

/* Code inline */
.article-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Bloc de code */
.article-content pre {
    background: #1f2937;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    border-left: 4px solid #7c3aed;
}

.article-content pre code {
    background: transparent;
    border: none;
    color: #e5e7eb;
    padding: 0;
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table thead {
    background: linear-gradient(135deg, #7c3aed, #f97316);
    color: white;
}

.article-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f3f4f6;
}

.article-content table tbody tr:hover {
    background: rgba(124, 58, 237, 0.05);
}

/* Séparateur horizontal */
.article-content hr {
    margin: 40px 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7c3aed, #f97316, transparent);
}

.share-buttons {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.share-title {
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    margin: 0 5px;
    transition: transform 0.2s;
}

.btn-share:hover {
    transform: translateY(-3px);
}

.share-facebook { background-color: #1877f2; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-email { background-color: #6b7280; }

/* Correction padding bouton newsletter */
.widget form:not(.relative) button[type="submit"] {
    display: block;
    width: 100%;
    text-align: center;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    font-weight: 600;
}
