/*
Theme Name: Publiko LinkSeller Child — apprendre-bricolage.fr
Template: publiko-linkseller
Description: Theme enfant pour Apprendre Bricolage — design "The Architectural Workshop" (rouge, crème, pill-shaped)
Version: 1.0.0
*/

/* ── 1. Override des variables PLK ──────────────────────────────────────── */
:root {
    --plk-primary:        #940000;
    --plk-primary-light:  #b81c1c;
    --plk-primary-dark:   #690000;
    --plk-secondary:      #d4a373;
    --plk-accent:         #940000;
    --plk-bg:             #fff8f0;
    --plk-bg-alt:         #ffffff;
    --plk-text:           #1a1a1a;
    --plk-text-light:     #555555;
    --plk-border:         rgba(0, 0, 0, 0.05);
    --plk-font-heading:   'Outfit', sans-serif;
    --plk-font-body:      'Source Sans 3', sans-serif;
    --plk-radius:         12px;
    --plk-radius-pill:    50px;
    --plk-header-bg:      #ffffff;
    --plk-header-text:    #1a1a1a;
    --plk-footer-bg:      #0f0f0f;
    --plk-footer-text:    #888888;
    --plk-shadow-sm:      0 2px 10px rgba(0, 0, 0, 0.05);
    --plk-shadow-md:      0 10px 30px rgba(0, 0, 0, 0.08);
    --plk-shadow-lg:      0 20px 40px rgba(0, 0, 0, 0.1);
    /* Surface hierarchy */
    --ab-bg:              #fff8f0;
    --ab-surface:         #ffffff;
    --ab-surface-hover:   #fffdf0;
    --ab-primary-10:      rgba(148, 0, 0, 0.1);
}

/* ── 2. Base & typographie ─────────────────────────────────────────────── */
body {
    background-color: var(--ab-bg);
    color: var(--plk-text);
    font-family: 'Source Sans 3', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    line-height: 1.1;
    color: var(--plk-text);
}

a { color: inherit; }
a:hover { color: var(--plk-primary); }

/* ── 3. Header ─────────────────────────────────────────────────────────── */
.site-header.header--classic,
.site-header.header--sticky {
    background: var(--plk-header-bg);
    box-shadow: var(--plk-shadow-sm);
}

.site-header .nav-link {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--plk-text-light);
}

.site-header .nav-link:hover {
    color: var(--plk-primary);
}

.site-header .header__cta,
.site-header .btn-contact {
    background-color: var(--plk-primary);
    color: #fff;
    border-radius: var(--plk-radius-pill);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
}

.site-header .header__cta:hover,
.site-header .btn-contact:hover {
    transform: scale(1.05);
    color: #fff;
}

/* ── 4. Buttons (Power Pill) ───────────────────────────────────────────── */
.hero__cta,
.ab-btn-pill {
    display: inline-block;
    background-color: var(--plk-primary);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--plk-radius-pill);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.hero__cta:hover,
.ab-btn-pill:hover {
    transform: scale(1.05);
    color: #fff;
}

/* ── 5. Badge ──────────────────────────────────────────────────────────── */
.ab-badge {
    display: inline-block;
    background-color: var(--ab-primary-10);
    color: var(--plk-primary);
    padding: 6px 16px;
    border-radius: var(--plk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.ab-badge--white {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ab-badge--solid {
    background: var(--plk-primary);
    color: #fff;
}

/* ── 6. Section title ──────────────────────────────────────────────────── */
.ab-section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.ab-section-title h2 {
    font-size: 32px;
    white-space: nowrap;
}

.ab-section-title__line {
    height: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    flex-grow: 1;
    border-radius: var(--plk-radius);
}

/* ── 7. Hero split (custom) ────────────────────────────────────────────── */
.ab-hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.ab-hero__title {
    font-size: 64px;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.ab-hero__title span {
    color: var(--plk-primary);
}

.ab-hero__subtitle {
    font-size: 20px;
    color: var(--plk-text-light);
    margin-bottom: 32px;
    max-width: 480px;
}

.ab-hero__image {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--plk-radius);
    overflow: visible;
    box-shadow: var(--plk-shadow-lg);
}

.ab-hero__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.ab-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--plk-radius);
}

.ab-hero__image-caption {
    position: absolute;
    bottom: -24px;
    left: -24px;
    z-index: 2;
    background: #fff;
    padding: 20px 24px;
    border-radius: var(--plk-radius);
    box-shadow: var(--plk-shadow-md);
    max-width: 320px;
}

.ab-hero__image-caption h3 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: var(--plk-text);
}

/* ── 8. Posts horizontal (3 cards) ─────────────────────────────────────── */
.ab-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.ab-post-card {
    background: var(--ab-surface);
    padding: 20px;
    border-radius: var(--plk-radius);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background 0.3s;
}

.ab-post-card:hover {
    background: var(--ab-surface-hover);
}

.ab-post-card__img {
    width: 100px;
    height: 100px;
    border-radius: var(--plk-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.ab-post-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-post-card__cat {
    color: var(--plk-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.ab-post-card__title {
    font-size: 18px;
    margin: 4px 0;
}

.ab-post-card__excerpt {
    font-size: 14px;
    color: var(--plk-text-light);
}

/* ── 9. Featured article ───────────────────────────────────────────────── */
.ab-featured {
    position: relative;
    border-radius: var(--plk-radius);
    overflow: hidden;
    margin-bottom: 80px;
    height: 600px;
}

.ab-featured__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-featured__overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--plk-radius);
    max-width: 700px;
}

.ab-featured__title {
    font-size: 40px;
    margin: 12px 0 20px;
}

.ab-featured__excerpt {
    color: var(--plk-text-light);
    font-size: 18px;
    margin-bottom: 24px;
}

.ab-featured__meta {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: var(--plk-text-light);
}

.ab-featured__avatar {
    width: 36px;
    height: 36px;
    background: var(--plk-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--plk-radius);
    font-weight: 700;
    font-size: 14px;
}

.ab-featured__link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

/* ── 10. CTA banner ────────────────────────────────────────────────────── */
.ab-cta {
    background-color: var(--plk-primary);
    padding: 60px;
    border-radius: var(--plk-radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    color: #fff;
    overflow: hidden;
}

.ab-cta h2 {
    font-size: 36px;
    margin-bottom: 8px;
    color: #fff;
}

.ab-cta p {
    font-size: 20px;
    opacity: 0.9;
}

.ab-cta__btn {
    background: #fff;
    color: var(--plk-primary);
    padding: 18px 40px;
    border-radius: var(--plk-radius-pill);
    font-weight: 900;
    font-size: 18px;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.ab-cta__btn:hover {
    transform: scale(1.05);
    color: var(--plk-primary);
}

/* ── 11. Categories section ────────────────────────────────────────────── */
.ab-categories {
    text-align: center;
    margin-bottom: 80px;
}

.ab-categories h2 {
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.ab-categories > p {
    color: var(--plk-text-light);
    margin-bottom: 40px;
}

.ab-categories__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.ab-category-item {
    background: var(--ab-surface);
    padding: 30px 20px;
    border-radius: var(--plk-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.ab-category-item:hover {
    background: var(--plk-primary);
    color: #fff;
    transform: translateY(-5px);
}

.ab-category-item__icon {
    font-size: 40px;
    line-height: 1;
}

.ab-category-item__name {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* ── 12. Bento grid (5 articles) ───────────────────────────────────────── */
.ab-bento {
    margin-bottom: 80px;
}

.ab-bento__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 20px;
}

.ab-bento-item {
    position: relative;
    border-radius: var(--plk-radius);
    overflow: hidden;
}

.ab-bento-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.ab-bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ab-bento-item:hover img {
    transform: scale(1.05);
}

.ab-bento-item__content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: var(--plk-radius);
}

.ab-bento-item--large .ab-bento-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.ab-bento-item--large .ab-bento-item__content {
    background: none;
    padding: 40px;
    color: #fff;
}

.ab-bento-item__content h3 {
    font-size: 32px;
    margin: 10px 0;
    color: inherit;
}

.ab-bento-item__content h4 {
    font-size: 14px;
    color: inherit;
}

.ab-bento-item--large .ab-bento-item__content p {
    color: rgba(255, 255, 255, 0.85);
}

/* ── 12b. Latest articles grid (9 cards) ──────────────────────────────── */
.ab-latest {
    margin-bottom: 100px;
}

.ab-latest__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ab-latest-card {
    background: #fff;
    border-radius: var(--plk-radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ab-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--plk-shadow-md);
}

.ab-latest-card__link {
    display: block;
    color: inherit;
}

.ab-latest-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ab-latest-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.ab-latest-card:hover .ab-latest-card__image img {
    transform: scale(1.05);
}

.ab-latest-card__body {
    padding: 1.25rem;
}

.ab-latest-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 8px 0 6px;
    line-height: 1.3;
}

.ab-latest-card__excerpt {
    font-size: 0.85rem;
    color: var(--plk-text-light);
    line-height: 1.5;
}

/* ── 13. Footer override ───────────────────────────────────────────────── */
.site-footer {
    background: var(--plk-footer-bg);
    color: var(--plk-footer-text);
}

.footer-logo {
    display: none;
}

.footer-minimal__brand {
    margin-bottom: 1rem;
}

.footer-minimal__brand a {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 20px;
}

.site-footer a {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
}

.site-footer a:hover {
    color: #fff;
}

/* ── 14. Article cards (archive/blog) ──────────────────────────────────── */
.article-card {
    border-radius: var(--plk-radius);
    overflow: hidden;
    transition: transform 0.3s;
}

.article-card--horizontal,
.article-card--classic {
    background: #fff;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-card__category {
    background: var(--ab-primary-10);
    color: var(--plk-primary);
    padding: 4px 12px;
    border-radius: var(--plk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

/* ── 14b. Blog sidebar categories — fond blanc ─────────────────────────── */
.blog-sidebar__link {
    background: #fff;
}

.blog-sidebar__link:hover {
    background: var(--ab-surface-hover);
}

.blog-sidebar__link--active {
    background: var(--plk-primary);
    color: #fff;
}

.blog-sidebar__link--active:hover {
    background: var(--plk-primary-dark);
    color: #fff;
}

/* ── 14c. Sidebar cards (single article) — fond blanc ──────────────────── */
.sidebar-card {
    background: #fff;
}

.sidebar-card__category {
    background: var(--ab-primary-10);
}

/* ── 14d. Single header — supprimer le padding du container ──────────────── */
.single-header.container {
    padding-left: 0;
    padding-right: 0;
}



/* ── 14e. Pagination ─────────────────────────────────────────────────── */
.pagination .page-numbers {
    background: #fff;
}
.pagination .page-numbers.current {
    color: #fff;
}

/* ── 15. About page ────────────────────────────────────────────────────── */
.about-custom-hero {
    padding: 60px 0 40px;
}

.about-custom-hero__title {
    font-size: 48px;
    text-align: center;
}

.about-custom-content h2 {
    font-size: 28px;
    margin: 40px 0 16px;
}

.about-custom-content p {
    font-size: 18px;
    color: var(--plk-text-light);
    line-height: 1.7;
    max-width: 700px;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.about-card {
    background: var(--ab-surface);
    padding: 32px;
    border-radius: var(--plk-radius);
    text-align: center;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--plk-primary);
}

.about-card p {
    font-size: 16px;
    color: var(--plk-text-light);
    max-width: none;
}

.about-cta {
    text-align: center;
    padding: 60px 0 40px;
}

.about-cta p {
    font-size: 20px;
    color: var(--plk-text-light);
    margin: 0 auto 24px;
}

.about-cta-btn {
    display: inline-block;
    background: var(--plk-primary);
    color: #fff;
    padding: 16px 40px;
    border-radius: var(--plk-radius-pill);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.about-cta-btn:hover {
    transform: scale(1.05);
    color: #fff;
}

/* ── 16. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .ab-hero {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }
    .ab-hero__title {
        font-size: 40px;
    }
    .ab-hero__image {
        height: 350px;
    }
    .ab-posts-grid {
        grid-template-columns: 1fr;
    }
    .ab-featured {
        height: 500px;
    }
    .ab-featured__overlay {
        padding: 24px;
    }
    .ab-featured__title {
        font-size: 28px;
    }
    .ab-cta {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px;
    }
    .ab-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .ab-bento__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .ab-bento-item--large {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }
    .ab-bento-item:not(.ab-bento-item--large) {
        height: 250px;
    }
    .ab-latest__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ab-hero__title {
        font-size: 32px;
    }
    .ab-featured {
        height: 400px;
    }
    .ab-featured__overlay {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 20px;
    }
    .ab-featured__title {
        font-size: 22px;
    }
    .ab-categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ab-bento__grid {
        grid-template-columns: 1fr;
    }
    .ab-bento-item--large {
        grid-column: span 1;
        height: 350px;
    }
    .ab-bento-item:not(.ab-bento-item--large) {
        height: 220px;
    }
    .ab-latest__grid {
        grid-template-columns: 1fr;
    }
    .ab-cta h2 {
        font-size: 24px;
    }
}
