
/**
 * HP Whitepaper Card Component
 * 2-Column Layout: Visual (left) + Content (right)
 * Includes 3D perspective effect on book cover
 */

.wp-block-acf-livre-blanc {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 80px;
    align-items: center;
    gap: 72px;
    margin: 0 auto;
}

.hp-wp__card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: stretch;
    width: 100%;
    min-height: 570px;
    border-radius: 12px;
    overflow: hidden;
}

/* ─────────────────────────────────────────
   LEFT COLUMN: VISUAL SECTION
   ───────────────────────────────────────── */

.hp-wp__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 600px;
}

.hp-wp__image-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    aspect-ratio: 9 / 12;
    border-radius: 8px;
    overflow: hidden;
}

.hp-wp__image {
    width: 100%;
    object-fit: cover;
    display: block;
}

.hp-wp__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    aspect-ratio: 9 / 12;
    background: linear-gradient(135deg, #e8e4df 0%, #f3efea 100%);
    border-radius: 8px;
    color: #999;
}

.hp-wp__image-placeholder svg {
    opacity: 0.5;
}

/* Tag Badge */
.hp-wp__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: var(--space-8, 8px) var(--space-12, 12px);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Fustat";
    font-size: var(--space-14, 14px);
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    text-transform: uppercase;
    border-radius: var(--space-4, 4px);
    background: var(--white-white-20, rgba(255, 255, 255, 0.20));
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 10;
}

.hp-wp__tag-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #d4215e;
}

.hp-wp__tag-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
    color: inherit;
}

/* ─────────────────────────────────────────
   RIGHT COLUMN: CONTENT
   ───────────────────────────────────────── */

.hp-wp__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

/* Meta Information */
.hp-wp__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #999;
}

.hp-wp__type-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8, 8px);
    border-radius: var(--space-4, 4px);
    background: var(--greyscale-grey-50, #F8F7F6);
    padding: var(--space-8, 8px) var(--space-12, 12px);
    font-size: var(--space-14, 14px);
    line-height: 100%;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--greyscale-grey-900, #090a0c);
}

.hp-wp__type-label-icon {
    display: inline-flex;
    align-items: center;
    color: var(--primary-pink-500, #D9306B);
    flex-shrink: 0;
}

.hp-wp__type-label-icon svg {
    width: 16px;
    height: 16px;
}

.hp-wp__year {
    color: #ccc;
}

/* Title */
.hp-wp__title {
    font-family: "Fustat", sans-serif;
    font-size: var(--space-48, 48px);
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: -1.92px;
    color: #1a1a1a;
    margin: 0;
    transition: color 0.3s ease;
    max-width: 600px;
    padding-bottom: 32px;
}

.hp-wp__card:hover .hp-wp__title {
    color: #d4215e;
}

/* Description */
.hp-wp__description {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0.75rem 0;
}

/* Points List */
.hp-wp__points {
    list-style: none;
    margin: 0;
    margin-top: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hp-wp__point {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.hp-wp__point-icon {
    flex-shrink: 0;
    color: var(--greyscale-grey-500, #747472);
    font-size: var(--space-20, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin-top: 2px;
}

.hp-wp__point-text {
    flex: 1;
    color: var(--greyscale-grey-500, #747472);
    font-size: var(--space-20, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

/* CTA Section – Aligned to Bottom */
.hp-wp__cta {
    display: flex;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* ─────────────────────────────────────────
   RIGHT COLUMN: STATISTICS VISUAL (3rd column)
   ───────────────────────────────────────── */

.hp-wp__visual-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    overflow: hidden;
}

.hp-wp__visual-stats-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    padding: 1rem;
}

/* ═════════════════════════════════════════
   RESPONSIVE DESIGN
   ════════════════════════════════════════ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .wp-block-acf-livre-blanc {
        padding: 48px 24px;
        gap: 48px;
    }

    .hp-wp__card {
        grid-template-columns: 1fr 1.2fr;
        gap: 1.5rem;
    }

    .hp-wp__visual-stats {
        display: none;
    }

    .hp-wp__image-wrapper {
        height: auto;
    }

    .hp-wp__content {
        height: auto;
        padding: 1.5rem;
        gap: 0.875rem;
    }

    .hp-wp__title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        padding-bottom: 16px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .wp-block-acf-livre-blanc {
        padding: 32px 24px;
        gap: 32px;
    }

    .hp-wp__card {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
    }

    .hp-wp__visual {
        width: 100%;
    }

    /* Image réduite et centrée en haut de la carte */
    .hp-wp__image-wrapper {
        width: 100%;
        height: auto;
        max-height: 280px;
        aspect-ratio: 16 / 9;
        border-radius: 0;
    }

    .hp-wp__image {
        height: 100%;
        object-position: top center;
    }

    .hp-wp__visual-stats {
        display: none;
    }

    .hp-wp__content {
        height: auto;
        padding: 24px 0 24px 0;
        gap: 0.875rem;
    }

    .hp-wp__title {
        font-size: 1.5rem;
        letter-spacing: -0.5px;
        padding-bottom: 12px;
    }

    .hp-wp__description {
        font-size: 0.9rem;
        line-height: 1.6;
        margin: 0;
    }

    .hp-wp__point-text,
    .hp-wp__point-icon {
        font-size: 0.875rem;
    }

    .hp-wp__tag {
        top: 0.75rem;
        left: 0.75rem;
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .hp-wp__cta {
        padding-top: 1rem;
    }
}

/* ═════════════════════════════════════════
   DARK MODE SUPPORT
   ════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .hp-wp__card {
        background-color: #2a2a2a;
    }

    .hp-wp__title {
        color: #fff;
    }

    .hp-wp__meta {
        color: #888;
    }

    .hp-wp__image-placeholder {
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
        color: #666;
    }

    .hp-wp__btn {
        background-color: #d4215e;
    }

    .hp-wp__btn:hover {
        background-color: #e63976;
    }
}


/* ─────────────────────────────────────────
   Dark Mode Support
   ───────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
    .hp-wp__card {
        background-color: #2a2a2a;
    }

    .hp-wp__type-label {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .hp-wp__title {
        color: #f5f5f5;
    }

    .hp-wp__card:hover .hp-wp__title {
        color: #ff6b9d;
    }

    .hp-wp__meta {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .hp-wp__year,
    .hp-wp__point {
        color: #aaa;
    }

    .hp-wp__point-icon {
        color: #ff6b9d;
    }

    .hp-wp__image-placeholder {
        background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
        color: #666;
    }
}
