/* ============================================================
   Blog — CSS custom properties
   ============================================================ */
:root {
    --blog-selling-tips:       #3dab1a;
    --blog-conseils-de-vente:  #3dab1a;
    --blog-our-story:          #085698;
    --blog-notre-histoire:     #085698;
    --blog-technology:         #248FDE;
    --blog-technologie:        #248FDE;
    --blog-lifestyle:          #d4690e;
    --blog-style-de-vie:       #d4690e;
}

/* ============================================================
   Fade-in (mirrors company.css pattern so the block script works)
   ============================================================ */
#blog-page .fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

#blog-page .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   Page shell
   ============================================================ */
#blog-page {
    font-family: 'Signika', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================================
   Hero
   ============================================================ */
#blog-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 6% 72px;
}

#blog-hero-inner {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

#blog-hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--secondary);
    background: rgba(126, 222, 73, 0.12);
    border: 1px solid rgba(126, 222, 73, 0.35);
    padding: 6px 16px;
    border-radius: 20px;
}

#blog-hero-title {
    font-size: clamp(40px, 6vw, 66px);
    font-weight: 700;
    line-height: 1.08;
    color: white;
    margin: 0;
}

#blog-hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 28px;
    margin: 0;
    max-width: 480px;
}

/* ============================================================
   Content wrapper
   ============================================================ */
#blog-content {
    padding: 0 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ============================================================
   Shared: category badge
   ============================================================ */
.blog-badge {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
    width: fit-content;
    color: white;
    background: var(--primary);
}

.blog-badge-selling-tips,
.blog-badge-conseils-de-vente  { background: var(--blog-selling-tips); }
.blog-badge-our-story,
.blog-badge-notre-histoire     { background: var(--blog-our-story); }
.blog-badge-technology,
.blog-badge-technologie        { background: var(--blog-technology); }
.blog-badge-lifestyle,
.blog-badge-style-de-vie       { background: var(--blog-lifestyle); }

/* ============================================================
   Shared: meta text
   ============================================================ */
.blog-meta {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgb(140, 140, 140);
}

/* ============================================================
   Featured card
   ============================================================ */
#blog-featured {
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(8, 36, 80, 0.14);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: inherit;
    min-height: 300px;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

#blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 52px rgba(8, 36, 80, 0.2);
}

#blog-featured-text {
    flex: 1 1 60%;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

#blog-featured-title {
    font-size: clamp(22px, 2.8vw, 32px);
    font-weight: 700;
    color: rgb(12, 28, 52);
    line-height: 1.2;
}

#blog-featured-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 26px;
    color: rgb(80, 90, 105);
    max-width: 520px;
}

#blog-featured-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-top: 6px;
    flex-wrap: wrap;
}

#blog-featured-cta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 180ms ease;
}

#blog-featured:hover #blog-featured-cta {
    gap: 10px;
}

.blog-arrow {
    display: inline-block;
    transition: transform 180ms ease;
}

#blog-featured:hover .blog-arrow {
    transform: translateX(3px);
}

/* Featured panel (right decorative side) */
#blog-featured-panel {
    flex: 0 0 38%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #085698 0%, #068DAA 55%, #7EDE49 100%);
    padding: 40px;
}

.blog-panel-selling-tips  { background: linear-gradient(135deg, #1a8a0a 0%, #3dab1a 60%, #7EDE49 100%); }
.blog-panel-conseils-de-vente { background: linear-gradient(135deg, #1a8a0a 0%, #3dab1a 60%, #7EDE49 100%); }
.blog-panel-our-story,
.blog-panel-notre-histoire { background: linear-gradient(135deg, #064f8a 0%, #085698 55%, #068DAA 100%); }
.blog-panel-technology,
.blog-panel-technologie    { background: linear-gradient(135deg, #0d5fa8 0%, #248FDE 60%, #5ab3f0 100%); }
.blog-panel-lifestyle,
.blog-panel-style-de-vie   { background: linear-gradient(135deg, #9c3d00 0%, #d4690e 60%, #f0922a 100%); }

#blog-featured-panel.blog-featured-slug-reselling-tips-and-tricks-2026 {
    background-image: url('/static/images/blog-reselling-tips-2026.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#blog-featured-panel.blog-featured-slug-conseils-et-astuces-revente-2026 {
    background-image: url('/static/images/blog-reselling-tips-2026.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#blog-featured-panel::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -60px;
    right: -60px;
}

#blog-featured-panel::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    bottom: -40px;
    left: -40px;
}

#blog-featured-panel.blog-featured-slug-reselling-tips-and-tricks-2026::before,
#blog-featured-panel.blog-featured-slug-reselling-tips-and-tricks-2026::after {
    display: none;
}

#blog-featured-deco {
    font-family: 'Signika', sans-serif;
    font-size: 100px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.18);
    line-height: 1;
    z-index: 1;
    user-select: none;
}

#blog-featured-deco-line {
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.55);
    z-index: 1;
}

#blog-featured-panel-tag {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* ============================================================
   Grid
   ============================================================ */
#blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================================================
   Grid card
   ============================================================ */
.blog-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 22px rgba(8, 36, 80, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    text-decoration: none;
    color: inherit;
    transition: transform 200ms ease, box-shadow 200ms ease;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 40px rgba(8, 36, 80, 0.17);
}

/* Top accent bar */
.blog-card-bar {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
    background: var(--primary);
    transition: height 200ms ease;
}

.blog-card:hover .blog-card-bar {
    height: 6px;
}

.blog-bar-selling-tips,
.blog-bar-conseils-de-vente  { background: var(--blog-selling-tips); }
.blog-bar-our-story,
.blog-bar-notre-histoire     { background: var(--blog-our-story); }
.blog-bar-technology,
.blog-bar-technologie        { background: var(--blog-technology); }
.blog-bar-lifestyle,
.blog-bar-style-de-vie       { background: var(--blog-lifestyle); }

.blog-card-body {
    padding: 24px 26px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.blog-card-title {
    font-family: 'Signika', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: rgb(12, 28, 52);
    line-height: 1.3;
}

.blog-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 22px;
    color: rgb(85, 95, 110);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.blog-cta-arrow {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    transition: transform 180ms ease;
    line-height: 1;
}

.blog-card:hover .blog-cta-arrow {
    transform: translateX(4px);
}

/* ============================================================
   Blog Post Page
   ============================================================ */
#blog-post-page {
    font-family: 'Signika', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

#post-header-section {
    width: 100%;
    max-width: 800px;
    padding: 118px 28px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#post-back-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    width: fit-content;
    transition: color 150ms ease;
    letter-spacing: 0.01em;
}

#post-back-link:hover { color: white; }

#post-category {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    color: white;
    background: var(--primary);
}

.blog-cat-selling-tips  #post-category,
.blog-cat-conseils-de-vente #post-category { background: var(--blog-selling-tips); }
.blog-cat-our-story     #post-category,
.blog-cat-notre-histoire #post-category    { background: var(--blog-our-story); }
.blog-cat-technology    #post-category,
.blog-cat-technologie   #post-category     { background: var(--blog-technology); }
.blog-cat-lifestyle     #post-category,
.blog-cat-style-de-vie  #post-category     { background: var(--blog-lifestyle); }

#post-title {
    font-family: 'Signika', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 4.5vw, 50px);
    color: white;
    line-height: 1.12;
    margin: 0;
}

#post-meta {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}

#post-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(126, 222, 73, 0.55), transparent);
    border-radius: 2px;
    margin-top: 6px;
}

/* Article body */
#post-body {
    width: 100%;
    max-width: 800px;
    padding: 52px 52px 60px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    margin: 36px 28px 0;
    box-shadow: 0 10px 44px rgba(8, 36, 80, 0.15);
}

#post-body p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 30px;
    color: rgb(35, 45, 62);
    margin: 0 0 24px;
}

#post-body h2 {
    font-family: 'Signika', sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 14px;
    line-height: 1.25;
}

#post-body h3 {
    font-family: 'Signika', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: rgb(25, 45, 75);
    margin: 30px 0 12px;
}

#post-body ul, #post-body ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

#post-body li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 28px;
    color: rgb(35, 45, 62);
    margin-bottom: 8px;
}

#post-body strong { font-weight: 600; color: rgb(18, 32, 52); }
#post-body em     { font-style: italic; color: rgb(55, 72, 95); }

/* Post CTA */
#post-cta {
    width: 100%;
    max-width: 800px;
    margin: 28px 28px 90px;
    box-sizing: border-box;
}

#post-cta-inner {
    background: linear-gradient(130deg, #064f8a 0%, #068DAA 45%, #5fcf38 100%);
    border-radius: 22px;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(8, 86, 152, 0.28);
    position: relative;
    overflow: hidden;
}

#post-cta-inner::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    top: -80px;
    right: -60px;
    pointer-events: none;
}

#post-cta-title {
    font-family: 'Signika', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.8vw, 28px);
    color: white;
    line-height: 1.2;
}

#post-cta-sub {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 24px;
}

.post-cta-btn { margin-top: 8px; }

/* ============================================================
   Tablet  (580px – 900px)
   ============================================================ */
@media (max-width: 900px) and (min-width: 581px) {
    #blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #blog-featured-panel {
        flex: 0 0 34%;
    }
}

/* ============================================================
   Mobile  (≤580px)
   ============================================================ */
@media (max-width: 580px) {
    #blog-hero {
        padding: 105px 5% 52px;
    }

    #blog-hero-sub {
        font-size: 15px;
    }

    #blog-content {
        padding: 0 4% 80px;
        gap: 20px;
    }

    /* Featured stacks vertically */
    #blog-featured {
        flex-direction: column;
        min-height: auto;
    }

    #blog-featured-text {
        padding: 28px 24px;
        gap: 12px;
    }

    #blog-featured-title {
        font-size: 20px;
    }

    #blog-featured-panel {
        flex: none;
        height: 110px;
        padding: 20px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }

    #blog-featured-deco {
        font-size: 52px;
    }

    #blog-featured-deco-line {
        display: none;
    }

    /* Grid single column */
    #blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-card-body {
        padding: 20px 20px 22px;
    }

    /* Post page */
    #post-header-section {
        padding: 98px 16px 0;
    }

    #post-body {
        padding: 28px 20px 36px;
        margin: 20px 10px 0;
        border-radius: 16px;
    }

    #post-body p, #post-body li {
        font-size: 15px;
        line-height: 27px;
    }

    #post-body h2 { font-size: 19px; }

    #post-cta {
        margin: 20px 10px 60px;
    }

    #post-cta-inner {
        padding: 30px 24px;
        border-radius: 16px;
    }
}
