/* ===================================
   BLOG STYLES - ELM DIGITAL AGENCY
   Couleur principale: #4ABDFB
   =================================== */

/* Blog Page */
.blog-page {
    padding: 60px 40px;
    background: rgb(255, 255, 255);
}

.blog-page-container {
    max-width: 1280px;
    margin: 0 auto;
}

/* Header avec badge - Centré */
.blog-page-header {
    text-align: center;
    margin-bottom: 48px;
}

.blog-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 16px;
    background: rgb(34, 32, 32);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px;
    margin-bottom: 24px;
}

.badge-text {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: rgb(243, 243, 243);
}

.badge-label {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: rgb(34, 32, 32);
    background: rgb(255, 255, 255);
    padding: 6px 12px;
    border-radius: 6px;
}

.blog-page-header h1 {
    font-family: "Poppins", sans-serif;
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.1;
    color: rgb(34, 32, 32);
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Tabs de catégories - Centré */
.blog-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.blog-tab {
    font-family: "Inter", sans-serif;
    font-size: 18px;
    letter-spacing: -0.01em;
    line-height: 26px;
    color: rgb(34, 32, 32);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blog-tab:hover {
    background: rgb(248, 248, 248);
}

.blog-tab.active {
    background: rgb(251, 251, 251);
    border: 1px solid rgb(237, 237, 237);
}

/* Grille d'articles - Centré */
.blog-grid {
    width: 100%;
    display: flex;
    justify-content: center;
}

.blog-grid-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
}

@media (max-width: 1024px) {
    .blog-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid-row {
        grid-template-columns: 1fr;
    }
}

/* Card d'article */
.blog-card {
    background: rgb(251, 251, 251);
    border: 1px solid rgb(237, 237, 237);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: rgba(0, 20, 98, 0.15) 0px 12px 40px;
    border-color: rgba(0, 20, 98, 0.2);
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-image {
    height: 200px;
    border-radius: 22px;
    margin: 12px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

/* Pattern SVG si pas d'image */
.blog-card-pattern {
    width: 100%;
    height: 100%;
    background-color: rgb(248, 248, 248);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='126'%3E%3Cpath d='M126 0v21.584L21.584 126H0v-17.585L108.415 0H126Zm0 108.414V126h-17.586L126 108.414Zm0-84v39.171L63.585 126H24.414L126 24.414Zm0 42v39.17L105.584 126h-39.17L126 66.414ZM105.586 0 0 105.586V66.415L66.415 0h39.171Zm-42 0L0 63.586V24.415L24.415 0h39.171Zm-42 0L0 21.586V0h21.586Z' fill='rgba(136,136,136,0.15)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 64px;
    border-radius: 22px;
}

.blog-card-content {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.35;
    color: rgb(34, 32, 32);
    margin: 0 0 12px 0;
}

.blog-card-content p {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.6;
    color: rgb(84, 84, 84);
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.blog-card-read {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blog-card-read span {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgb(34, 32, 32);
}

.read-line {
    height: 2px;
    background: rgb(34, 32, 32);
    width: 100%;
    transition: all 0.3s ease;
}

.blog-card:hover .read-line {
    background: #4ABDFB;
    width: 120%;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blog-tag {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    padding: 6px 10px;
    border-radius: 6px;
    background: #e6f0ea;
    color: #134d2f;
}

.blog-time {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    letter-spacing: -0.03em;
    color: rgb(84, 84, 84);
}

/* CTA Section avec image carreaux */
.blog-cta-section {
    position: relative;
    padding: 80px 40px;
    overflow: hidden;
}

.blog-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/head_carreaux.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.blog-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.blog-cta-content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgb(34, 32, 32);
    margin: 0 0 12px 0;
}

.blog-cta-content p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgb(84, 84, 84);
    margin: 0 0 28px 0;
}

.blog-cta-btn {
    display: inline-block;
    padding: 16px 28px;
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    background: linear-gradient(180deg, rgb(51, 51, 51) 34%, rgb(34, 32, 32) 100%);
    color: rgb(243, 243, 243);
    box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 4px 0px, rgba(0, 0, 0, 0.5) 0px -2px 4px 0px inset;
}

.blog-cta-btn:hover {
    transform: translateY(-2px);
    background: #4ABDFB;
    box-shadow: rgba(0, 20, 98, 0.4) 0px 4px 16px 0px;
}

/* Section Tags SEO */
.blog-tags-section {
    padding: 60px 40px;
    background: rgb(251, 251, 251);
    border-top: 1px solid rgb(237, 237, 237);
}

.blog-tags-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.blog-tags-section h3 {
    font-family: "Poppins", sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgb(34, 32, 32);
    margin: 0 0 24px 0;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.blog-seo-tag {
    display: inline-block;
    padding: 10px 18px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(230, 230, 230);
    border-radius: 8px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: rgb(84, 84, 84);
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-seo-tag:hover {
    background: #4ABDFB;
    color: white;
    border-color: #4ABDFB;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-page {
        padding: 100px 24px 40px;
    }

    .blog-page-header h1 {
        font-size: 36px;
    }

    .blog-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .blog-tab {
        font-size: 16px;
        white-space: nowrap;
    }

    .blog-grid-row {
        grid-template-columns: 1fr;
    }

    .blog-cta-section {
        padding: 60px 24px;
    }

    .blog-cta-content h2 {
        font-size: 26px;
    }
}


/* ====================================
   ARTICLE PAGE STYLES
   ==================================== */

.blog-article {
    padding-top: 100px;
    background: rgb(255, 255, 255);
}

/* Article Header - Centré */
.article-header {
    padding: 60px 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.article-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 16px;
    background: rgb(34, 32, 32);
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 2px 4px;
    margin-bottom: 24px;
}

.article-header-badge .badge-text {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: rgb(243, 243, 243);
}

.article-header-badge .badge-label {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: rgb(34, 32, 32);
    background: rgb(255, 255, 255);
    padding: 6px 12px;
    border-radius: 6px;
}

.article-body-text {
    font-family: "Poppins", sans-serif;
    font-size: 48px;
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1.15;
    color: rgb(34, 32, 32);
    margin: 0 0 24px 0;
}

.article-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    letter-spacing: -0.01em;
    line-height: 1.6;
    color: rgb(141, 141, 141);
    margin: 0 0 32px 0;
}

/* Article Info - Centré */
.article-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-author-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.article-author-name {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgb(34, 32, 32);
}

.article-author-role {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgb(141, 141, 141);
}

.article-meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-date-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    letter-spacing: -0.01em;
    color: rgb(141, 141, 141);
}

.article-tags {
    display: flex;
    gap: 8px;
}

/* Article Featured Image */
.article-featured-image {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 40px;
}

.article-featured-image img {
    width: 100%;
    border-radius: 16px;
}

.article-featured-pattern {
    width: 100%;
    height: 400px;
    border-radius: 16px;
    background-color: rgb(248, 248, 248);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='126' height='126'%3E%3Cpath d='M126 0v21.584L21.584 126H0v-17.585L108.415 0H126Zm0 108.414V126h-17.586L126 108.414Zm0-84v39.171L63.585 126H24.414L126 24.414Zm0 42v39.17L105.584 126h-39.17L126 66.414ZM105.586 0 0 105.586V66.415L66.415 0h39.171Zm-42 0L0 63.586V24.415L24.415 0h39.171Zm-42 0L0 21.586V0h21.586Z' fill='rgba(136,136,136,0.2)' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: 64px;
}

/* Article Content */
.article-content-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 40px 60px;
}

.article-content {
    font-family: "Inter", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: rgb(51, 51, 51);
}

.article-content h2 {
    font-family: "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: rgb(34, 32, 32);
    margin: 48px 0 20px 0;
}

.article-content h3 {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: rgb(34, 32, 32);
    margin: 36px 0 16px 0;
}

.article-content p {
    margin: 0 0 20px 0;
}

.article-content strong {
    font-weight: 600;
    color: rgb(34, 32, 32);
}

.article-content ul,
.article-content ol {
    margin: 0 0 24px 0;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.article-content blockquote {
    margin: 32px 0;
    padding: 24px 28px;
    background: rgb(250, 252, 255);
    border-left: 4px solid #4ABDFB;
    border-radius: 8px;
    font-style: italic;
}

.article-content blockquote p {
    margin: 0;
}

/* Article CTA - Full width avec pattern */
.article-cta-section {
    position: relative;
    padding: 80px 40px;
    overflow: hidden;
}

.article-cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/images/head_carreaux.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
}

.article-cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.article-cta-content h3 {
    font-family: "Poppins", sans-serif;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: rgb(34, 32, 32);
    margin: 0 0 12px 0;
}

.article-cta-content p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: rgb(84, 84, 84);
    margin: 0 0 28px 0;
}

.article-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(180deg, rgb(51, 51, 51) 34%, rgb(34, 32, 32) 100%);
    color: rgb(243, 243, 243);
    border-radius: 12px;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 4px 0px, rgba(0, 0, 0, 0.5) 0px -2px 4px 0px inset;
}

.article-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: rgba(0, 0, 0, 0.6) 0px 4px 12px 0px, rgba(0, 0, 0, 0.5) 0px -2px 4px 0px inset;
}

/* Responsive Article */
@media (max-width: 768px) {
    .article-header {
        padding: 40px 24px;
    }

    .article-body-text {
        font-size: 32px;
    }

    .article-featured-image {
        padding: 0 24px;
    }

    .article-content-wrapper {
        padding: 0 24px 40px;
    }

    .article-content {
        font-size: 16px;
    }

    .article-content h2 {
        font-size: 24px;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-info {
        flex-direction: column;
        gap: 16px;
    }

    .article-cta-section {
        padding: 60px 24px;
    }

    .article-cta-content h3 {
        font-size: 26px;
    }
}
