/*
Theme Name: JVPC New
Theme URI: https://jeuxvideopaschers.fr
Description: Thème moderne et léger pour JVPC - Comparateur de prix pour jeux vidéo, consoles et accessoires
Author: Marko
Author URI: https://jeuxvideopaschers.fr
Version: 2.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/*
===========================================
SOMMAIRE
===========================================
1. Variables CSS
2. Reset & Base
3. Typography
4. Layout
5. Header
6. Navigation
7. Content
8. Products (Jeux, Consoles, Accessoires)
9. Price Grid
10. Archive & Category
11. Footer
12. Responsive
===========================================
*/

/* ===========================================
   1. VARIABLES CSS
   =========================================== */
:root {
    /* Couleurs principales */
    --primary-color: #6f2dbd;
    --primary-dark: #661cbb;
    --primary-light: #7c43bd;
    
    /* Couleurs secondaires */
    --secondary-color: #a663cc;
    --secondary-light: #b284cd;
    
    /* Couleurs plateformes */
    --color-playstation: #003791;
    --color-xbox: #9bc848;
    --color-nintendo: #E60012;
    --color-pc: #666666;
    
    /* Couleurs texte */
    --text-primary: #141C2B;
    --text-secondary: #48597A;
    --text-light: #c3c3c3;
    
    /* Couleurs background */
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0a0612;
    
    /* Couleurs état */
    --color-success: #18b818;
    --color-info: #2db0e2;
    --color-warning: #ffb04d;
    --color-danger: #bd0808;
    --color-price-drop: #e53935;       /* Rouge baisse de prix — fond de badge plein */
    --color-price-drop-light: #ef5350; /* Variante claire pour dégradés */
    
    /* Typographie */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Espacements */
    --spacing-xs: 0.10rem;
    --spacing-sm: 0.25rem;
    --spacing-md: 0.5rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Radius */
    --radius-sm: 3px;
    --radius-md: 5px;
    --radius-lg: 10px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 5px rgba(0, 0, 0, 0.15);
    --shadow-lg: 1px 2px 12px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;

    /* Classic+ Product Page */
    --cp-hero-bg-start: #1a0f2e;
    --cp-hero-bg-mid: #2d1b4e;
    --cp-accent-violet: #7c3aed;
    --cp-accent-violet-dark: #6d28d9;
    --cp-accent-amber: #fbbf24;
    --cp-page-bg: #fafaf9;
    --cp-text-dark: #1a1325;
    --cp-text-hero-muted: #c4b5e0;
    --cp-text-muted: #6b7280;
    --cp-border-light: #e5e7eb;
    --cp-row-best-bg: #fdfaff;

    /* Design tokens v2 */
    --color-ink-900: #0a0612;
    --color-ink-800: #0c0a14;
    --color-ink-700: #1a0f2e;
    --color-ink-600: #1f1530;
    --color-ink-500: #2d1b4e;
    --color-ink-muted: #c4b5e0;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --page-bg: #fafaf9;
}

/* ===========================================
   2. RESET & BASE
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-normal);
}

a:hover {
    color: var(--secondary-light);
    text-decoration-thickness: 2px;
}

/* Exceptions : liens dans les menus, boutons, cartes produits et tableau de prix ne doivent pas être soulignés */
.main-navigation a,
.breadcrumbs a,
.product-card a,
.product-card-title a,
.product-card-cta,
.price-grid a,
.best-offer a,
.best-offer-cta,
.offers-list a,
.offer-item a,
.offer-link,
.offer-cta,
.mobile-best-offer-button,
button a,
.btn,
.social-icon,
.share-twitter-btn,
.site-title a,
.site-branding a {
    text-decoration: none;
}

/* Réinitialiser les couleurs et styles pour les exceptions */
.product-card a,
.product-card-title a {
    color: var(--text-primary);
}

.product-card-title a:hover {
    color: var(--primary-color);
}

.offers-list a,
.offer-item a,
.offer-link {
    color: var(--text-primary);
}

.offers-list a:hover,
.offer-item a:hover,
.offer-link:hover {
    color: var(--primary-color);
}

/* Réinitialiser le text-decoration-thickness pour les exceptions */
.main-navigation a:hover,
.breadcrumbs a:hover,
.product-card a:hover,
.product-card-title a:hover,
.social-icon:hover,
.share-twitter-btn:hover,
.site-title a:hover,
.site-branding a:hover {
    text-decoration-thickness: initial;
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--spacing-md);
}

/* ===========================================
   4. LAYOUT
   =========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
}

/* Padding spécifique pour les pages d'articles et de tests */
.single-post .container {
    padding: 0 var(--spacing-lg);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-lg);
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
    padding: var(--spacing-xl) 0;
}

/* Retirer le padding-top pour les pages produit avec header desktop */
.site-main .product-single > .product-header-desktop:first-child,
.site-main .product-header-desktop:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Retirer le padding-top pour les fiches produit Classic+ */
.site-main .product-single > .product-hero:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Retirer le padding-top pour les pages d'articles/tests avec header wrapper */
.site-main .single-post > .single-post-header-wrapper:first-child,
.site-main .single-post-header-wrapper:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Retirer le padding-top pour les pages de catégorie avec header image */
.site-main .category-page > .category-header:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Retirer le padding-top pour la page contact */
.site-main .contact-page > .contact-hero:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Retirer le padding-top pour la page baisses de prix */
.page-template-page-baisses-de-prix .site-main .prix-drops-hero:first-child,
.site-main .prix-drops-hero:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* Marge entre le header et le hero */
.site-main .homepage-hero:first-child {
    margin-top: calc(var(--spacing-xl) * 0.0875);
}

/* ===========================================
   5. HEADER
   =========================================== */
.site-header {
    background-color: var(--color-ink-900);
    position: sticky;
    top: 0;
    z-index: 1000;
    color: white;
    border-bottom: 1px solid var(--color-ink-600);
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}

/* Wrapper pour positionner l'overlay de recherche */
.site-header > .search-overlay {
    position: absolute;
}

/* Décalage du header quand l'utilisateur est connecté (barre d'admin WordPress) */
/* Les valeurs par défaut seront ajustées dynamiquement par JavaScript */
body.logged-in.admin-bar .site-header {
    top: 32px; /* Valeur par défaut pour desktop */
}

@media screen and (max-width: 782px) {
    body.logged-in.admin-bar .site-header {
        top: 46px; /* Valeur par défaut pour mobile */
    }
}

/* Header sur une seule ligne */
.header-content {
    display: flex;
    align-items: center;
    min-height: 60px;
    padding: 14px 0;
    gap: 32px;
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: #a8a0c4;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex: 0 0 auto;
    position: relative;
}

.search-toggle:hover {
    color: #fff;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Overlay de recherche */
.search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-overlay.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent;
    padding: var(--spacing-lg);
    box-shadow: none;
}


.search-container .search-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.search-container .search-form-wrapper {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.search-container .search-form-wrapper:focus-within {
    border-color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.15);
}

.search-container .search-field {
    color: white;
    background-color: transparent;
}

.search-container .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container .search-submit {
    background-color: var(--primary-color);
    color: white;
}

.search-container .search-submit:hover {
    background-color: var(--primary-light);
}

/* Ticker bons plans */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes ticker-cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
    60%       { box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
}

.header-ticker {
    background: #1a0f2e;
    border-top: 1px solid #1f1530;
    padding: 7px 0;
    overflow: hidden;
}

.header-ticker .container {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.header-ticker__badge {
    background: #fbbf24;
    color: #0c0a14;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    font-size: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Zone de défilement */
.header-ticker__scroller {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.header-ticker__track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: ticker-scroll 32s linear infinite;
}

.header-ticker__track:hover {
    animation-play-state: paused;
}

.header-ticker__sep {
    color: #52416f;
    flex-shrink: 0;
}

.header-ticker__item {
    color: #c4b5e0;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-ticker__item:hover {
    color: #fff;
}

/* Bouton CTA "Prix en baisse !" */
.header-ticker__cta {
    flex-shrink: 0;
    white-space: nowrap;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.04em;
    padding: 4px 11px;
    border-radius: 4px;
    text-decoration: none;
    animation: ticker-cta-pulse 2.2s ease-out infinite;
    transition: background 0.2s, transform 0.15s;
}

.header-ticker__cta:hover {
    background: #b91c1c;
    transform: scale(1.04);
    animation-play-state: paused;
}

/* Logo à gauche */
.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex: 0 0 auto;
}

.site-branding {
    display: flex;
    align-items: center;
    height: 65px;
}

.site-branding img {
    height: 65px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: white;
}

.site-title a:hover {
    color: var(--primary-light);
}

/* Réseaux sociaux */
.header-social {
    flex: 0 0 auto;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: white;
    transition: all var(--transition-normal);
    border-radius: 50%;
}

.social-icon:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}


/* ===========================================
   6. NAVIGATION
   =========================================== */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #c4b5e0;
    font-weight: 500;
    font-size: 13px;
    padding: 4px var(--spacing-md);
    border-radius: var(--radius-md);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
}

.main-navigation a:hover {
    color: #fff;
    background-color: transparent;
}


/* Indicateur pour les items avec sous-menu - flèche masquée */
.main-navigation .menu-item-has-children > a::after {
    content: none;
}

/* Sous-menus - cachés par défaut */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--bg-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    margin-top: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Afficher le sous-menu au hover */
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Items du sous-menu */
.main-navigation .sub-menu li {
    width: 100%;
    margin: 0;
}

.main-navigation .sub-menu a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 0;
    white-space: nowrap;
    width: 100%;
}

.main-navigation .sub-menu a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Sous-menus de niveau 2+ (imbriqués) */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: var(--spacing-xs);
    margin-top: 0;
}

.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: none;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* ===========================================
   7. CONTENT
   =========================================== */
.content-area {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

.entry-header {
    margin-bottom: var(--spacing-xl);
}

.entry-title {
    margin-bottom: var(--spacing-sm);
}

.entry-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.entry-content {
    line-height: 1.8;
}

.entry-content img {
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
}

/* Blog Cards Grid */
.posts-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: var(--spacing-2xl);
}

/* Blog Card */
.blog-card {
    background-color: var(--bg-white);
    border-radius: 0;
    overflow: visible;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    margin: 0;
    padding: 0;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

/* Blog Card Image */
.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


.blog-card-no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-no-image::after {
    content: '📝';
    font-size: 4rem;
    opacity: 0.3;
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-slow), filter var(--transition-slow);
    filter: brightness(1);
    display: block;
    flex-shrink: 0;
}


.blog-card:hover .blog-card-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Blog Card Content */
.blog-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    position: relative;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    order: 1;
}

.blog-card-author {
    color: var(--text-secondary);
    font-weight: 700;
}

.blog-card-date {
    color: var(--text-secondary);
}

.blog-card-comments {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.blog-card-comments-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.blog-card-comments-count {
    font-weight: 500;
}

.blog-card-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.7rem;
}

.blog-card-views-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
}

.blog-card-views-count {
    font-weight: 500;
}

.blog-card-header {
    margin-bottom: var(--spacing-md);
    order: 2;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    color: var(--text-primary);
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card:hover .blog-card-title {
    color: var(--primary-color);
}

.blog-card-excerpt {
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    order: 3;
}

.blog-card-excerpt p {
    margin: 0;
}

/* Blog Card Full Content (for single posts) */
.blog-card-full-content {
    padding: var(--spacing-xl);
    background-color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.blog-card-full-content .entry-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.blog-card-full-content .entry-content p {
    margin-bottom: var(--spacing-md);
}

.blog-card-full-content .entry-footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--bg-light);
}

.blog-card-full-content .tags-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.blog-card-full-content .tags-label {
    font-weight: 600;
    color: var(--text-primary);
}

.blog-card-full-content .tags-links a {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--bg-light);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.blog-card-full-content .tags-links a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Blog Card Homepage Layout (image à gauche, contenu à droite) */
.blog-card-homepage {
    height: auto;
}

.blog-card-homepage .blog-card-link {
    flex-direction: row;
    align-items: stretch;
    gap: var(--spacing-lg);
}

.blog-card-homepage .blog-card-image-wrapper {
    order: 1;
    width: 200px;
    min-width: 200px;
    height: 200px;
    flex-shrink: 0;
}

.blog-card-homepage .blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-homepage .blog-card-content {
    flex: 1;
    order: 2;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.blog-card-homepage .blog-card-header {
    order: 1;
    margin-bottom: var(--spacing-md);
}

.blog-card-homepage .blog-card-meta {
    order: 2;
    margin-bottom: var(--spacing-md);
    margin-top: 0;
}

.blog-card-homepage .blog-card-excerpt {
    order: 3;
    margin-top: 0;
}

/* Note du test pour layout homepage : à gauche */
.blog-card-homepage .blog-card-test-rating-homepage {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    right: auto;
}

/* ===========================================
   BLOG PAGE HERO MODERN
   =========================================== */
.blog-hero-modern {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-2xl);
    margin-top: 0;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Première ligne : 2 blocs identiques (chacun prend 3 colonnes) */
.blog-hero-item:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1;
    height: 350px;
}

.blog-hero-item:nth-child(2) {
    grid-column: 4 / 7;
    grid-row: 1;
    height: 350px;
}

/* Seconde ligne : 3 blocs identiques (chacun prend 2 colonnes) */
.blog-hero-item:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    height: 350px;
}

.blog-hero-item:nth-child(4) {
    grid-column: 3 / 5;
    grid-row: 2;
    height: 350px;
}

.blog-hero-item:nth-child(5) {
    grid-column: 5 / 7;
    grid-row: 2;
    height: 350px;
}

/* Style commun pour tous les items */
.blog-hero-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blog-hero-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-hero-item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    position: relative;
}

.blog-hero-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.blog-hero-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.blog-hero-item-rating {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    padding: calc(var(--spacing-sm) * 1.5) calc(var(--spacing-md) * 1.5);
    border-radius: 0;
    border: 5px solid var(--primary-color);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 75px;
    pointer-events: none;
}

.blog-hero-item-rating span {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.blog-hero-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: 2;
}

.blog-hero-item-category {
    display: inline-block;
    padding: calc(var(--spacing-xs) * 0.5) var(--spacing-sm);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.blog-hero-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 var(--spacing-sm) 0;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-hero-item-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}


/* Responsive Blog Hero */
@media (max-width: 992px) {
    .blog-hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-hero-item:nth-child(1),
    .blog-hero-item:nth-child(2) {
        grid-column: auto;
        height: 300px;
    }
    
    .blog-hero-item:nth-child(3),
    .blog-hero-item:nth-child(4),
    .blog-hero-item:nth-child(5) {
        grid-column: auto;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .site-main {
        padding: var(--spacing-md) 0;
    }
    
    /* Ajuster le margin-top négatif pour les pages d'articles/tests en mobile */
    .site-main .single-post > .single-post-header-wrapper:first-child,
    .site-main .single-post-header-wrapper:first-child {
        margin-top: calc(var(--spacing-md) * -1);
    }
    
    /* Ajuster aussi pour les pages produits en mobile */
    .site-main .product-single > .product-header-desktop:first-child,
    .site-main .product-header-desktop:first-child {
        margin-top: calc(var(--spacing-md) * -1);
    }

    .site-main .product-single > .product-hero:first-child {
        margin-top: calc(var(--spacing-md) * -1);
    }
    
    /* Ajuster le contenu des articles/tests en mobile pour prendre toute la largeur */
    .single-post .container {
        padding: 0 var(--spacing-md);
        max-width: 100%;
        width: 100%;
    }
    
    .single-post-content-wrapper.single-post-normal-layout {
        margin-top: 0;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .single-post-content-main {
        padding: var(--spacing-lg);
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
        background-color: transparent;
        order: 1;
    }

    .single-post-widget-sidebar {
        order: 2;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .test-content-column {
        padding: var(--spacing-md);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* S'assurer que le contenu ne déborde pas */
    .single-post-content-main .entry-content,
    .test-content-column .entry-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .blog-hero-modern {
        padding: var(--spacing-lg) 0;
    }
    
    .blog-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .blog-hero-item:nth-child(1),
    .blog-hero-item:nth-child(2),
    .blog-hero-item:nth-child(3),
    .blog-hero-item:nth-child(4),
    .blog-hero-item:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
        height: 300px;
        width: 100%;
        margin: 0;
    }
    
    .blog-hero-item-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 576px) {
    .blog-hero-item {
        height: 250px;
    }
    
    .blog-hero-item-title {
        font-size: 1rem;
    }
}

/* Section blog articles (page-blog.php) */
.blog-articles {
    padding: var(--spacing-xl) 0;
}

/* Section "Les autres articles" */
.blog-other-articles {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-2xl);
}

.blog-other-articles .section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Responsive Blog Hero */
@media (max-width: 1200px) {
    .blog-hero .hero-container {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .blog-hero .hero-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .blog-hero-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .blog-other-articles .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .blog-other-articles .section-title {
        font-size: 1.5rem;
    }
}

/* Responsive Blog Cards */
@media (max-width: 1100px) {
    .posts-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .blog-card-image-wrapper {
        height: 200px;
    }
    
    .blog-card-title {
        font-size: 1.125rem;
    }
    
    /* Layout homepage en mobile : retour au layout vertical */
    .blog-card-homepage .blog-card-link {
        flex-direction: column;
    }
    
    .blog-card-homepage .blog-card-image-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .blog-card-homepage .blog-card-content {
        order: 2;
    }
}

@media (max-width: 576px) {
    .blog-card-image-wrapper {
        height: 180px;
    }
    
    .blog-card-content {
        padding: var(--spacing-md);
    }
    
    .blog-card-title {
        font-size: 1rem;
    }
    
    .blog-card-homepage .blog-card-image-wrapper {
        height: 180px;
    }
}

/* ===========================================
   HOMEPAGE HERO CAROUSEL
   =========================================== */
.homepage-hero {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: calc(var(--spacing-xl) * 0.0875);
    margin-bottom: var(--spacing-lg);
    min-height: 500px;
    overflow: hidden;
}

@media (max-width: 960px) {
    .homepage-hero {
        min-height: auto;
    }
}

.hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-md);
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    height: 500px;
    aspect-ratio: 2.4 / 1;
    box-sizing: border-box;
}

/* Ajustement pour écrans moyens (iPad Pro, etc.) */
@media (min-width: 961px) and (max-width: 1200px) {
    .hero-container {
        padding: 0 var(--spacing-lg);
    }
}

/* Carousel horizontal à gauche */
.hero-carousel-wrapper {
    position: relative;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-carousel-horizontal {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-horizontal-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-horizontal-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-horizontal-slide-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    z-index: 1;
}

.hero-horizontal-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-horizontal-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-horizontal-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-horizontal-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: var(--spacing-xl);
    z-index: 2;
    max-width: 80%;
}

.hero-horizontal-slide-category-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-horizontal-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.2;
    color: white;
}

.hero-horizontal-slide-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.8;
}

/* Badge de note de test dans le hero carousel */
.hero-horizontal-slide-test-rating {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    padding: calc(var(--spacing-sm) * 1.5) calc(var(--spacing-md) * 1.5);
    border-radius: 0;
    border: 5px solid var(--primary-color);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 75px;
    pointer-events: none;
}

.hero-horizontal-slide-test-rating-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Navigation buttons */
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    color: white;
    padding: 0;
    opacity: 0.8;
}

.hero-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.hero-carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-carousel-prev {
    left: var(--spacing-md);
}

.hero-carousel-next {
    right: var(--spacing-md);
}

.hero-carousel-nav svg {
    width: 24px;
    height: 24px;
}

.hero-horizontal-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.hero-horizontal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-normal);
    opacity: 0.5;
}

.hero-horizontal-dot:hover,
.hero-horizontal-dot.active {
    opacity: 1;
    background: white;
    transform: scale(1.2);
}

/* Sidebar avec 2 articles à droite */
.hero-sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    height: 100%;
}

.hero-sidebar-article {
    flex: 1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    background: var(--bg-light);
    min-height: 0;
    position: relative;
}

.hero-sidebar-article:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-sidebar-article-link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
    overflow: hidden;
}

.hero-sidebar-article-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.hero-sidebar-article:hover .hero-sidebar-article-image img {
    transform: scale(1.05);
}

.hero-sidebar-article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-sidebar-article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.hero-sidebar-article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.3;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-sidebar-article-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-sidebar-article-meta time {
    color: rgba(255, 255, 255, 0.9);
}

/* Badge de note de test dans les articles de droite du hero */
.hero-sidebar-article-test-rating {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--primary-color);
    padding: calc(var(--spacing-sm) * 1.5) calc(var(--spacing-md) * 1.5);
    border-radius: 0;
    border: 5px solid var(--primary-color);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 75px;
    pointer-events: none;
}

.hero-sidebar-article-test-rating-number {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* Ancien carousel (pour compatibilité) */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--spacing-2xl);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 800px;
    color: white;
}

.hero-slide-category {
    margin-bottom: var(--spacing-md);
}

.hero-slide-category a {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slide-category a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
}

.hero-slide-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--spacing-md) 0;
    line-height: 1.2;
}

.hero-slide-title a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.hero-slide-title a:hover {
    color: var(--primary-color);
}

.hero-slide-excerpt {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-slide-cta {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-2xl);
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all var(--transition-normal);
    align-self: flex-start;
}

.hero-slide-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.hero-dots {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-normal);
    opacity: 0.5;
}

.hero-dot:hover,
.hero-dot.active {
    opacity: 1;
    background: white;
    transform: scale(1.2);
}

/* Responsive Hero */
@media (max-width: 960px) {
    .hero-container {
        grid-template-columns: 1fr;
        height: auto;
        aspect-ratio: 1.8 / 1;
        padding: 0 var(--spacing-lg);
    }
    
    /* Cacher les articles de droite en mobile */
    .hero-sidebar-articles {
        display: none;
    }
    
    /* Le carousel prend toute la largeur */
    .hero-carousel-wrapper {
        width: 100%;
    }
    
    .hero-horizontal-slide-content {
        padding: var(--spacing-lg);
    }
    
    .hero-horizontal-slide-title {
        font-size: 1.5rem;
    }
    
    .hero-horizontal-slide-test-rating {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: calc(var(--spacing-xs) * 1.5) calc(var(--spacing-sm) * 1.5);
    }
    
    .hero-horizontal-slide-test-rating-number {
        font-size: 1.875rem;
    }
    
    .hero-sidebar-article-test-rating {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
        padding: calc(var(--spacing-xs) * 1.5) calc(var(--spacing-sm) * 1.5);
    }
    
    .hero-sidebar-article-test-rating-number {
        font-size: 1.875rem;
    }
    
    .hero-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-carousel-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .hero-carousel-prev {
        left: var(--spacing-sm);
    }
    
    .hero-carousel-next {
        right: var(--spacing-sm);
    }
    
    .hero-horizontal-dots {
        bottom: var(--spacing-md);
    }
    
    /* Ancien carousel */
    .hero-carousel {
        height: 400px;
    }
    
    .hero-slide-content {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-slide-title {
        font-size: 1.75rem;
    }
    
    .hero-slide-excerpt {
        font-size: 1rem;
    }
    
    .hero-slide-cta {
        padding: var(--spacing-sm) var(--spacing-xl);
        font-size: 1rem;
    }
    
    .hero-dots {
        bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .homepage-hero {
        min-height: auto;
    }
    
    .hero-container {
        aspect-ratio: 1.8 / 1;
        padding: 0 var(--spacing-md);
    }
    
    .hero-horizontal-slide-content {
        padding: var(--spacing-md);
    }
    
    .hero-horizontal-slide-title {
        font-size: 1.25rem;
    }
    
    .hero-carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .hero-carousel-nav svg {
        width: 18px;
        height: 18px;
    }
    
    .hero-carousel-prev {
        left: var(--spacing-xs);
    }
    
    .hero-carousel-next {
        right: var(--spacing-xs);
    }
    
    .hero-horizontal-slide-test-rating-number {
        font-size: 1.5rem;
    }
    
    .hero-sidebar-article-test-rating-number {
        font-size: 1.5rem;
    }
    
    /* Ancien carousel */
    .hero-carousel {
        height: 350px;
    }
    
    .hero-slide-title {
        font-size: 1.5rem;
    }
    
    .hero-slide-excerpt {
        font-size: 0.9rem;
    }
}

/* Homepage Content */
.homepage-content {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
}

.homepage-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-primary);
}

.homepage-content p:last-child {
    margin-bottom: 0;
}

.homepage-content h2,
.homepage-content h3,
.homepage-content h4 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.homepage-content h2:first-child,
.homepage-content h3:first-child,
.homepage-content h4:first-child {
    margin-top: 0;
}

/* Homepage Latest Posts Section */
.homepage-latest-posts {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
}

/* Homepage Bons Plans Section */
.homepage-bons-plans {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.homepage-bons-plans .section-title {
    margin-bottom: var(--spacing-md);
}

/* Homepage Preorders Section */
.homepage-preorders {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-lg) 0;
}

.homepage-preorders .section-title {
    margin-bottom: var(--spacing-md);
}

/* Products Filters */
.products-filters {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md) 0;
}

.filter-group {
    margin-bottom: var(--spacing-md);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
    font-size: 0.95rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.filter-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-select {
    width: 100%;
    max-width: 300px;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 0;
    background: white;
    color: var(--text-color);
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color var(--transition-normal);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.no-results-filter {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
    font-style: italic;
    grid-column: 1 / -1;
}

@media (max-width: 960px) {
    .filter-buttons {
        gap: var(--spacing-xs);
    }
    
    .filter-btn {
        padding: calc(var(--spacing-xs) * 0.75) var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .filter-select {
        max-width: 100%;
    }
}

/* Homepage Magazine Section */
.homepage-magazine {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.magazine-articles,
.magazine-tests {
    width: 100%;
}

.magazine-articles .section-title,
.magazine-tests .section-title {
    margin-bottom: var(--spacing-md);
}

.magazine-articles .section-description,
.magazine-tests .section-description {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.10rem;
}

.magazine-articles .posts-wrapper,
.magazine-tests .posts-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
}

/* Section Description */
.section-description {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.10rem;
}

.section-description p {
    margin-bottom: var(--spacing-sm);
}

.section-description p:last-child {
    margin-bottom: 0;
}

/* Magazine Pagination */
.magazine-pagination {
    margin-top: var(--spacing-xl);
}

/* Homepage Bottom Content */
.homepage-bottom-content {
    margin: var(--spacing-md) 0;
    padding: var(--spacing-lg) 0;
    background-color: var(--bg-light);
}

.homepage-bottom-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.8;
}

.homepage-bottom-content-wrapper p {
    margin-bottom: var(--spacing-md);
}

.homepage-bottom-content-wrapper p:last-child {
    margin-bottom: 0;
}

.homepage-bottom-content-wrapper h2,
.homepage-bottom-content-wrapper h3,
.homepage-bottom-content-wrapper h4 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.homepage-bottom-content-wrapper h2:first-child,
.homepage-bottom-content-wrapper h3:first-child,
.homepage-bottom-content-wrapper h4:first-child {
    margin-top: 0;
}

.homepage-bottom-content-wrapper a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-normal);
}

.homepage-bottom-content-wrapper a:hover {
    color: var(--primary-dark);
}

.magazine-pagination .page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.magazine-pagination .page-numbers li {
    margin: 0;
}

.magazine-pagination .page-numbers a,
.magazine-pagination .page-numbers span {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: white;
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--bg-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.magazine-pagination .page-numbers a:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.magazine-pagination .page-numbers .current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Responsive Magazine */
@media (max-width: 992px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

/* ===========================================
   SINGLE POST (Article individuel)
   =========================================== */

/* Single Post Header */
.single-post {
    margin-top: 0;
}

/* Retirer le margin-top seulement si le header wrapper est présent */
.single-post > .single-post-header-wrapper:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

.single-post-header-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0;
    margin-bottom: 0;
}

.single-post-header {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.single-post-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.single-post-header-no-image {
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b5e 100%);
    min-height: 280px;
    padding: var(--spacing-2xl) 0;
}

.single-post-header-no-image .single-post-header-overlay {
    display: none;
}

.single-post-header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 20px 0;
    color: white;
}

.single-post-header-content .breadcrumbs {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.single-post-header-content .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition-normal);
}

.single-post-header-content .breadcrumbs a:hover {
    color: white;
}

.single-post-header-content .breadcrumbs span,
.single-post-header-content .breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.7);
}

.single-post-category-badge {
    margin-bottom: var(--spacing-md);
}

.single-post-category-badge a {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.single-post-category-badge a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.single-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--spacing-md) 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 900px;
}

/* Métadonnées sous le titre */
.single-post-header-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.95);
    margin-top: var(--spacing-md);
}

.single-post-meta-author {
    font-weight: 700;
    color: white;
}

.single-post-meta-date {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-meta-comments,
.single-post-meta-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-meta-comments-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

.single-post-meta-views-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.9)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
}

.single-post-meta-comments-count,
.single-post-meta-views-count {
    font-weight: 500;
}

.single-post-test-rating-header {
    margin: var(--spacing-lg) 0;
}

.single-post-test-rating-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.single-post-test-rating-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.single-post-test-rating-max {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

.single-post-date {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.single-post-date svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.single-post-reading-time {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.single-post-reading-time svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.single-post-views {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.single-post-views svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.single-post-categories {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.single-post-category {
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.single-post-category:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

/* Single Post Content Wrapper */
.single-post-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.single-post-content-wrapper.has-sidebar {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-2xl);
}

/* Layout normal pour articles non-test : 2/3 - 1/3 */
.single-post-content-wrapper.single-post-normal-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    margin-top: 20px;
    align-items: flex-start;
}

/* Single Post Content */
.single-post-content {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-top: calc(var(--spacing-2xl) * -1);
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
}

.single-post-content-wrapper.has-sidebar .single-post-content {
    max-width: none;
    flex: 1;
    margin-left: 0;
    margin-right: 0;
}

/* Contenu principal pour articles normaux (sans bordure) */
.single-post-content-main {
    background-color: var(--bg-white);
    padding: var(--spacing-xl) var(--spacing-2xl);
    margin-top: 0;
    box-shadow: none;
    border: none;
    border-radius: var(--radius-lg);
}

/* Retirer le background en mobile */
@media (max-width: 768px) {
    .single-post-content-main {
        background-color: transparent;
    }
}

/* Zone de partage en haut */
.single-post-sharing-top {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--bg-light);
}

@media (max-width: 768px) {
    .single-post-sharing-top {
        margin: 0;
        margin-bottom: 0;
        text-align: center;
        border-bottom: none;
    }
    
    .single-post-sharing-top .price-social-sharing-buttons {
        justify-content: center;
    }
}

.single-post-sharing-top .price-social-sharing {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.single-post-sharing .price-social-sharing {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.container.has-sidebar-container {
    max-width: 1200px;
}

.single-post-content .entry-content,
.single-post-content-main .entry-content {
    line-height: 1.9;
    color: var(--text-primary);
    font-size: 1.125rem;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.single-post-content .entry-content p,
.single-post-content-main .entry-content p {
    margin-bottom: var(--spacing-lg);
}

/* Supprimer la marge du haut pour les paragraphes qui contiennent des vidéos YouTube */
.single-post-content .entry-content p:has(iframe[src*="youtube.com"]):first-child,
.single-post-content .entry-content p:has(iframe[src*="youtu.be"]):first-child,
.single-post-content-main .entry-content p:has(iframe[src*="youtube.com"]):first-child,
.single-post-content-main .entry-content p:has(iframe[src*="youtu.be"]):first-child,
.entry-content p:has(iframe[src*="youtube.com"]):first-child,
.entry-content p:has(iframe[src*="youtu.be"]):first-child {
    margin-top: 0;
}

/* Supprimer la marge du haut pour les wrappers YouTube qui sont les premiers éléments */
.single-post-content .entry-content .youtube-embed-wrapper:first-child,
.single-post-content-main .entry-content .youtube-embed-wrapper:first-child,
.entry-content .youtube-embed-wrapper:first-child,
.single-post-content .entry-content .wp-block-embed:first-child,
.single-post-content-main .entry-content .wp-block-embed:first-child,
.entry-content .wp-block-embed:first-child {
    margin-top: 0;
}

/* Supprimer la marge du haut pour les iframes YouTube qui sont les premiers éléments */
.single-post-content .entry-content iframe[src*="youtube.com"]:first-child,
.single-post-content .entry-content iframe[src*="youtu.be"]:first-child,
.single-post-content-main .entry-content iframe[src*="youtube.com"]:first-child,
.single-post-content-main .entry-content iframe[src*="youtu.be"]:first-child,
.entry-content iframe[src*="youtube.com"]:first-child,
.entry-content iframe[src*="youtu.be"]:first-child {
    margin-top: 0 !important;
}

/* H2 — Titre de section avec underline dégradé */
.test-content-column .entry-content h2,
.single-post-content .entry-content h2,
.single-post-content-main .entry-content h2 {
    font-size: 1.85rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: #0c0a14;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    position: relative;
    border-bottom: none;
}
.test-content-column .entry-content h2::after,
.single-post-content .entry-content h2::after,
.single-post-content-main .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), rgba(111, 45, 189, 0));
    border-radius: 2px;
}

/* H3 — Sous-section avec tiret accent */
.test-content-column .entry-content h3,
.single-post-content .entry-content h3,
.single-post-content-main .entry-content h3 {
    font-size: 1.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.test-content-column .entry-content h3::before,
.single-post-content .entry-content h3::before,
.single-post-content-main .entry-content h3::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 3px;
}

/* H4 — Point d'entrée coloré */
.test-content-column .entry-content h4,
.single-post-content .entry-content h4,
.single-post-content-main .entry-content h4 {
    font-size: 1.05rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* H5, H6 — Niveaux secondaires */
.test-content-column .entry-content h5,
.single-post-content .entry-content h5,
.single-post-content-main .entry-content h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 1.25rem;
    margin-bottom: 0.4rem;
}
.test-content-column .entry-content h6,
.single-post-content .entry-content h6,
.single-post-content-main .entry-content h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.single-post-content .entry-content img,
.single-post-content-main .entry-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-md);
}

/* Vidéos YouTube et embeds responsives dans le contenu des articles */
.single-post-content .entry-content iframe,
.single-post-content-main .entry-content iframe,
.entry-content iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    display: block;
}

/* Paragraphes contenant des iframes YouTube - s'assurer qu'ils ne débordent pas */
.single-post-content .entry-content p:has(iframe[src*="youtube.com"]),
.single-post-content .entry-content p:has(iframe[src*="youtu.be"]),
.single-post-content-main .entry-content p:has(iframe[src*="youtube.com"]),
.single-post-content-main .entry-content p:has(iframe[src*="youtu.be"]),
.entry-content p:has(iframe[src*="youtube.com"]),
.entry-content p:has(iframe[src*="youtu.be"]) {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
    margin: var(--spacing-xl) 0;
    margin-top: 0;
}

/* Fallback pour navigateurs sans support :has() */
@supports not selector(:has(*)) {
    .single-post-content .entry-content p iframe[src*="youtube.com"],
    .single-post-content .entry-content p iframe[src*="youtu.be"],
    .single-post-content-main .entry-content p iframe[src*="youtube.com"],
    .single-post-content-main .entry-content p iframe[src*="youtu.be"],
    .entry-content p iframe[src*="youtube.com"],
    .entry-content p iframe[src*="youtu.be"] {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Wrapper pour les embeds YouTube avec ratio 16:9 */
.single-post-content .entry-content .wp-block-embed,
.single-post-content-main .entry-content .wp-block-embed,
.entry-content .wp-block-embed,
.single-post-content .entry-content .wp-embed-wrapper,
.single-post-content-main .entry-content .wp-embed-wrapper,
.entry-content .wp-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    height: 0;
    overflow: hidden;
    margin: var(--spacing-xl) 0;
    margin-top: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-width: 100%;
}

.single-post-content .entry-content .wp-block-embed iframe,
.single-post-content-main .entry-content .wp-block-embed iframe,
.entry-content .wp-block-embed iframe,
.single-post-content .entry-content .wp-embed-wrapper iframe,
.single-post-content-main .entry-content .wp-embed-wrapper iframe,
.entry-content .wp-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Iframes YouTube directes (sans wrapper) - utiliser aspect-ratio moderne */
.single-post-content .entry-content iframe[src*="youtube.com"],
.single-post-content .entry-content iframe[src*="youtu.be"],
.single-post-content-main .entry-content iframe[src*="youtube.com"],
.single-post-content-main .entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"] {
    max-width: 100% !important;
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    margin-top: 0;
    box-shadow: var(--shadow-md);
    display: block;
}

/* Fallback pour les navigateurs qui ne supportent pas aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .single-post-content .entry-content iframe[src*="youtube.com"],
    .single-post-content .entry-content iframe[src*="youtu.be"],
    .single-post-content-main .entry-content iframe[src*="youtube.com"],
    .single-post-content-main .entry-content iframe[src*="youtu.be"],
    .entry-content iframe[src*="youtube.com"],
    .entry-content iframe[src*="youtu.be"] {
        height: calc((100vw - 4rem) * 0.5625); /* 56.25% de la largeur disponible */
        max-height: 600px; /* Limite la hauteur max */
    }
    
    @media (min-width: 1200px) {
        .single-post-content .entry-content iframe[src*="youtube.com"],
        .single-post-content .entry-content iframe[src*="youtu.be"],
        .single-post-content-main .entry-content iframe[src*="youtube.com"],
        .single-post-content-main .entry-content iframe[src*="youtu.be"] {
            height: calc(900px * 0.5625); /* Basé sur max-width du conteneur */
        }
    }
}

.single-post-content .entry-content blockquote,
.single-post-content-main .entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
    font-style: italic;
    color: var(--text-secondary);
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
}

.single-post-content .entry-content ul,
.single-post-content .entry-content ol,
.single-post-content-main .entry-content ul,
.single-post-content-main .entry-content ol {
    margin: var(--spacing-lg) 0;
    padding-left: var(--spacing-xl);
}

.single-post-content .entry-content li,
.single-post-content-main .entry-content li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
}

.single-post-content .entry-content a,
.single-post-content-main .entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all var(--transition-normal);
}

.single-post-content .entry-content a:hover,
.single-post-content-main .entry-content a:hover {
    color: var(--primary-dark);
    text-decoration-thickness: 2px;
}

/* Zones publicitaires */
.ad-zone {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md) 0;
    text-align: center;
}

.ad-end-article {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ad-zone iframe,
.ad-zone img,
.ad-zone script {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.ad-zone > div {
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ad-zone {
        margin: var(--spacing-lg) 0;
        padding: var(--spacing-sm) 0;
    }
    
    .ad-end-article {
        margin: var(--spacing-lg) 0;
        padding: var(--spacing-md) 0;
    }
}

/* Related Articles - Cartes minimalistes */
.related-articles {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--bg-light);
}

.related-articles-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.related-article-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.related-article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.related-article-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.related-article-image-wrapper {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    position: relative;
}

.related-article-image-wrapper.related-article-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-article-image-wrapper.related-article-no-image::before {
    content: '📝';
    font-size: 2rem;
    opacity: 0.3;
}

.related-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.related-article-card:hover .related-article-image {
    transform: scale(1.05);
}

.related-article-content {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    flex: 1;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text-primary);
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-article-card:hover .related-article-title {
    color: var(--primary-color);
}

.related-article-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Related Products */
.related-products {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--bg-light);
}

.related-products-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
}

.related-products-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}

/* Related Products in Sidebar */
.single-post-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

/* Sidebar de widgets pour articles normaux */
.single-post-widget-sidebar {
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.single-post-widget-sidebar .widget {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.single-post-widget-sidebar .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

/* Widget Derniers Articles personnalisé - Style */
.single-post-widget-sidebar .widget_jvpc_recent_posts .widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

/* Liste des articles */
.single-post-widget-sidebar .widget_jvpc_recent_posts ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li {
    margin: 0;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    background-color: transparent;
}

/* Lien de l'article - Layout horizontal */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-md);
    text-decoration: none;
    color: var(--text-primary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

/* Hover bien marqué */
.single-post-widget-sidebar .widget_jvpc_recent_posts li:hover {
    background-color: var(--bg-light);
    transform: translateX(2px);
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Wrapper de l'image à gauche */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-image-wrapper {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li:hover .widget-post-image-wrapper {
    box-shadow: var(--shadow-md);
    transform: scale(1.05);
}

/* Image miniature carrée */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a img.widget-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-normal);
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li:hover img.widget-post-thumbnail {
    transform: scale(1.1);
}

/* Placeholder pour les images manquantes */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-thumbnail-placeholder::before {
    content: '📝';
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Contenu à droite (titre + date) */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    min-width: 0;
}

/* Titre de l'article */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    transition: color var(--transition-normal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li a:hover .widget-post-title {
    color: var(--primary-color);
}

/* Date de publication */
.single-post-widget-sidebar .widget_jvpc_recent_posts li a .widget-post-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color var(--transition-normal);
}

.single-post-widget-sidebar .widget_jvpc_recent_posts li a:hover .widget-post-date {
    color: var(--text-secondary);
}

.related-products-sidebar {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.related-products-sidebar .related-products-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
    display: block;
    align-items: normal;
    gap: 0;
}

.related-products-sidebar .related-products-title svg {
    display: none;
}

.related-products-sidebar .related-products-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.related-products-sidebar .product-card {
    max-width: 100%;
}

/* Responsive Related Products */
@media (max-width: 992px) {
    .single-post-content-wrapper.has-sidebar {
        flex-direction: column;
    }
    
    .single-post-content-wrapper.single-post-normal-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .single-post-sidebar {
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .single-post-widget-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .related-products-sidebar {
        margin-top: var(--spacing-2xl);
        padding-top: var(--spacing-2xl);
        border-top: 2px solid var(--bg-light);
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .related-products-title {
        font-size: 1.5rem;
    }
    
    .related-products-grid {
        grid-template-columns: 1fr;
    }
}

/* Test Rating Section */
.test-rating-section {
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.test-rating {
    margin-bottom: var(--spacing-xl);
}

.test-rating-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.test-rating-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.15);
    margin-top: var(--spacing-md);
}

.test-conclusion {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--bg-border);
}

.test-conclusion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.test-conclusion-content {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.test-conclusion-content p {
    margin-bottom: var(--spacing-md);
}

.test-conclusion-content p:last-child {
    margin-bottom: 0;
}

/* Test Products Sidebar */
.test-products-sidebar {
    margin-bottom: var(--spacing-xl);
}

.test-products-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
}

.test-products-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.test-products-list .product-card {
    max-width: 100%;
}

/* Blog Card Test Rating */
.blog-card-test-rating {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 58px;
    height: 58px;
    background: rgba(26, 15, 46, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(124, 58, 237, 0.7);
    pointer-events: none;
    gap: 1px;
}

.blog-card-test-rating-number {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    line-height: 1;
}

/* Blog Card Category Badge */
.blog-card-category-badge {
    position: absolute;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    z-index: 5;
}

.blog-card-category-badge span {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 10;
}


/* Test Layout - 2 colonnes (1/3 et 2/3) */
.single-post-test-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-xl);
    align-items: start;
}

.test-sidebar-column {
    width: 100%;
    align-self: start;
}

.test-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 45, 189, 0.25) transparent;
    padding-right: 4px;
}
.test-sidebar::-webkit-scrollbar {
    width: 3px;
}
.test-sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.test-sidebar::-webkit-scrollbar-thumb {
    background: rgba(111, 45, 189, 0.3);
    border-radius: 2px;
}

.test-sidebar-note {
    margin-bottom: var(--spacing-md);
}

.test-sidebar-note-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) var(--spacing-xl);
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.15);
    width: 100%;
}

/* Badge note dans le hero article test */
.single-post-hero-note {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.single-post-hero-note .note-ring-wrap {
    width: 160px;
    height: 160px;
}
.single-post-hero-note .note-ring {
    width: 160px;
    height: 160px;
}
.single-post-hero-note .note-number {
    font-size: 2.75rem;
}
.single-post-hero-note .note-max {
    font-size: 1.1rem;
}
.single-post-hero-note .note-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

/* Le note-ring-bg est gris clair sur fond blanc, mais sur fond sombre hero il faut l'adapter */
.single-post-hero-note .note-ring-bg {
    stroke: rgba(255, 255, 255, 0.15);
}

.single-post-header-content--with-note {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
}
.single-post-header-main {
    flex: 1;
    min-width: 0;
}

.test-sidebar-conclusion {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--bg-border);
    margin-top: var(--spacing-md);
}

.test-sidebar-conclusion-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.test-sidebar-conclusion-content {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.test-sidebar-conclusion-content p {
    margin-bottom: var(--spacing-md);
}

.test-sidebar-conclusion-content p:last-child {
    margin-bottom: 0;
}

.test-sidebar-products {
    margin-top: var(--spacing-lg);
}

.test-sidebar-products-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--primary-color);
}

.test-sidebar-products-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.test-sidebar-products-list .product-card {
    max-width: 100%;
}

/* ── Note des lecteurs ───────────────────────────────────────── */
.test-reader-rating {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: #0c0a14;
    border-radius: 14px;
    border: 1px solid rgba(111, 45, 189, 0.25);
}

.test-reader-rating-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-md);
}

/* Bloc moyenne */
.test-reader-rating-avg {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.test-reader-rating-avg-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-shrink: 0;
}

.test-reader-rating-avg-num {
    font-family: var(--font-secondary); /* identique à .note-number */
    font-size: 2.25rem;
    font-weight: 800;
    color: #f59e0b;
    line-height: 1;
    letter-spacing: -0.02em;
}

.test-reader-rating-avg-denom {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
}

.test-reader-rating-avg-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.test-reader-rating-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.test-reader-rating-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #f59e0b);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.test-reader-rating-count {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
}

/* Invite + boutons */
.test-reader-rating-prompt {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
}

.test-reader-rating-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.test-reader-rating-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.55);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-reader-rating-btn:hover {
    background: rgba(111, 45, 189, 0.3);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
}

.test-reader-rating-btn.is-selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Dernier bouton sélectionné : accent doré */
.test-reader-rating-btn.is-selected:last-of-type,
.test-reader-rating-buttons:has(.test-reader-rating-btn[data-value="10"].is-selected) .test-reader-rating-btn.is-selected {
    background: #f59e0b;
    border-color: #f59e0b;
}

.test-reader-rating-submit {
    width: 100%;
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.test-reader-rating-submit:hover:not(:disabled) {
    background: var(--primary-dark);
}

.test-reader-rating-submit:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.test-reader-rating-thanks {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* Colonne de droite (contenu) */
.test-content-column {
    width: 100%;
}

.test-content-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--bg-light);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.test-content-info {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.test-content-date,
.test-content-reading-time {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.test-content-date svg,
.test-content-reading-time svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.test-content-comment-btn {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.test-content-comment-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Section temps de lecture et partage pour les tests */
.test-content-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--bg-light);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.test-content-reading-time-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1;
    height: 40px;
}

.test-content-reading-time-info svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.test-content-sharing {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    line-height: 1;
    height: 40px;
}

.test-content-sharing .price-social-sharing {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.test-content-sharing .price-social-sharing-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    height: 100%;
}

.test-content-sharing .price-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.test-content-sharing-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-right: var(--spacing-xs);
}

.test-content-column .entry-content {
    line-height: 1.8;
    color: var(--text-primary);
}

/* Responsive Test Rating */
@media (max-width: 992px) {
    .single-post-test-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .test-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
}

@media (max-width: 768px) {
    .test-rating-section {
        padding: var(--spacing-lg);
    }

    .test-rating-title,
    .test-conclusion-title {
        font-size: 1.25rem;
    }

    .test-content-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .test-content-comment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Single Post Footer */
.single-post-content .entry-footer,
.single-post-content-main .entry-footer {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--bg-light);
}

.single-post-tags {
    margin-bottom: var(--spacing-xl);
}

.single-post-tags .tags-label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.single-post-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.single-post-tags .tag-badge {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    display: inline-block;
}

.single-post-tags .tag-badge:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 70, 83, 0.3);
    color: white;
}

.single-post-sharing {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--bg-light);
}

/* Post Navigation */
.post-navigation {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 2px solid var(--bg-light);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.post-navigation .nav-links {
    display: contents;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid #ecebef;
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.post-navigation .nav-previous:hover a,
.post-navigation .nav-next:hover a {
    color: white;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.post-navigation .nav-previous:hover .nav-subtitle,
.post-navigation .nav-next:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.post-navigation .nav-title {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.post-navigation .nav-previous:hover .nav-title,
.post-navigation .nav-next:hover .nav-title {
    color: white;
}

.post-navigation .nav-next {
    text-align: right;
}

/* Responsive Single Post */
@media (max-width: 992px) {
    .single-post-header {
        background-attachment: scroll;
        min-height: 280px;
    }
    
        .single-post-title {
            font-size: 1.5rem;
        }
    
    .single-post-content {
        padding: var(--spacing-xl);
        margin-top: calc(var(--spacing-xl) * -1);
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .single-post-header {
        min-height: 245px;
    }

    .single-post-header-no-image {
        min-height: 210px;
        padding: var(--spacing-xl) 0;
    }

    .single-post-title {
        font-size: 1.6rem;
    }
    
    .single-post-test-rating-number {
        font-size: 2rem;
    }
    
    .single-post-test-rating-max {
        font-size: 1.25rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .single-post-content {
        padding: var(--spacing-lg);
        margin-top: calc(var(--spacing-lg) * -1);
        border-radius: var(--radius-md);
    }
    
    .single-post-content .entry-content {
        font-size: 1rem;
    }
    
    .test-content-column .entry-content h2,
    .single-post-content .entry-content h2,
    .single-post-content-main .entry-content h2 {
        font-size: 1.5rem;
    }

    .test-content-column .entry-content h3,
    .single-post-content .entry-content h3,
    .single-post-content-main .entry-content h3 {
        font-size: 1.15rem;
    }

    .test-content-column .entry-content h4,
    .single-post-content .entry-content h4,
    .single-post-content-main .entry-content h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .single-post-header {
        min-height: 210px;
    }
    
    .single-post-title {
        font-size: 1.75rem;
    }
    
    .single-post-content {
        padding: var(--spacing-md);
        border-radius: var(--radius-md);
    }
}

/* ===========================================
   SHORTCODES
   =========================================== */

/* Shortcode [cmProduit] - Product Card Horizontal */
.blcBp {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-slow);
    display: flex;
    flex-direction: row;
    border: 1px solid rgba(38, 70, 83, 0.08);
    margin: var(--spacing-lg) 0;
    max-width: 650px;
    width: 100%;
    min-height: 140px;
    position: relative;
}

.blcBp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 0;
}

.blcBp:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.blcBp:hover::before {
    opacity: 0.03;
}

/* Lien cliquable pour toute la card (gauche + centre) */
.blcBp-link {
    display: flex;
    flex-direction: row;
    flex: 1;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.blcBp-link:hover {
    background-color: rgba(38, 70, 83, 0.015);
}

/* Jaquette à gauche */
.blcBp-cover {
    width: 120px;
    min-width: 120px;
    height: 100%;
    min-height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.blcBp-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.blcBp:hover .blcBp-cover::after {
    opacity: 1;
}

/* Contenu au milieu */
.blcBp-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-sm);
    min-width: 0;
    position: relative;
    z-index: 1;
}

.blcBp-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-normal);
}

.blcBp-link:hover .blcBp-title {
    color: var(--primary-color);
}

.blcBp-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.blcBp-date::before {
    content: '📅';
    font-size: 0.75rem;
}

.blcBp-platform {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.blcBp:hover .blcBp-platform {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.blcBp-platform.ps5,
.blcBp-platform.ps4 {
    background: linear-gradient(135deg, var(--color-playstation) 0%, #002d6b 100%);
}

.blcBp-platform.xbox,
.blcBp-platform.xbox-series-x,
.blcBp-platform.xbox-series-s {
    background: linear-gradient(135deg, var(--color-xbox) 0%, #7ba83a 100%);
}

.blcBp-platform.switch,
.blcBp-platform.nintendo-switch {
    background: linear-gradient(135deg, var(--color-nintendo) 0%, #b3000f 100%);
}

.blcBp-platform.pc {
    background: linear-gradient(135deg, var(--color-pc) 0%, #4a4a4a 100%);
}

/* Section offre à droite */
.blcBp-offer {
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(240, 242, 245, 0.9) 100%);
    border-left: 1px solid rgba(38, 70, 83, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: center;
    min-width: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.blcBp-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(38, 70, 83, 0.1);
}

.blcBp-price.indispo {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: none;
}

.blcBp-vendor {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: var(--spacing-xs) 0;
}

.blcBp-vendor img {
    max-height: 28px;
    max-width: 100px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.95);
    transition: all var(--transition-normal);
    opacity: 0.8;
}

.blcBp:hover .blcBp-vendor img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

.blcBp-btn {
    width: 100%;
    padding: 10px var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(38, 70, 83, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.blcBp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.blcBp-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(38, 70, 83, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: white;
}

.blcBp-btn:hover::before {
    left: 100%;
}

.blcBp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(38, 70, 83, 0.3);
}

/* Shortcode dans le contenu des articles */
.single-post-content .blcBp,
.entry-content .blcBp {
    margin: var(--spacing-md) 0;
}

/* Responsive Shortcode */
@media (max-width: 768px) {
    .blcBp {
        max-width: 100%;
        flex-direction: column;
        min-height: auto;
    }
    
    .blcBp-link {
        flex-direction: row;
    }
    
    .blcBp-cover {
        width: 100%;
        min-width: 100%;
        height: 200px;
        min-height: 200px;
    }
    
    .blcBp-content {
        padding: var(--spacing-md);
    }
    
    .blcBp-title {
        font-size: 1.0625rem;
    }
    
    .blcBp-offer {
        padding: var(--spacing-md);
        border-left: none;
        border-top: 1px solid rgba(38, 70, 83, 0.1);
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
        gap: var(--spacing-md);
    }
    
    .blcBp-price {
        font-size: 1.5rem;
    }
    
    .blcBp-btn {
        width: auto;
        min-width: 130px;
        padding: 10px var(--spacing-md);
    }
}

@media (max-width: 576px) {
    .blcBp {
        min-height: auto;
    }
    
    .blcBp-cover {
        height: 180px;
        min-height: 180px;
    }
    
    .blcBp-offer {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .blcBp-price {
        font-size: 1.375rem;
    }
    
    .blcBp-btn {
        width: 100%;
    }
}

/* ===========================================
   SEARCH RESULTS
   =========================================== */

.search-results-page {
    padding: var(--spacing-xl) 0;
}

.search-results-count {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.search-results-count p {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.search-section {
    margin-bottom: var(--spacing-2xl);
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 3px solid var(--primary-color);
}

.search-section-title svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.search-section-count {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: var(--spacing-xs);
}

.search-section-products {
    margin-top: var(--spacing-2xl);
}

.search-section-products:first-child {
    margin-top: 0;
}

.search-section-articles {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--bg-light);
}

.search-section-articles:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Responsive Search Results */
@media (max-width: 768px) {
    .search-section-title {
        font-size: 1.5rem;
    }
    
    .search-section-count {
        font-size: 1.125rem;
    }
}

/* ===========================================
   8. PRODUCTS (Jeux, Consoles, Accessoires)
   =========================================== */

/* Product Header */
.product-header {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.product-header-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    color: white;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.product-platform {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-platform.ps5 { background-color: rgba(0, 55, 145, 0.8); }
.product-platform.ps4 { background-color: rgba(0, 67, 156, 0.8); }
.product-platform.xbox { background-color: rgba(155, 200, 72, 0.8); }
.product-platform.switch { background-color: rgba(230, 0, 18, 0.8); }
.product-platform.pc { background-color: rgba(102, 102, 102, 0.8); }

.product-date {
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-info);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Product Breadcrumbs */
.product-breadcrumbs {
    margin-bottom: var(--spacing-md);
}

.product-breadcrumbs .breadcrumbs {
    color: var(--text-secondary);
    font-size: 0.55rem;
}

.product-breadcrumbs .breadcrumbs a {
    color: var(--text-primary);
    font-size: 0.55rem;
}

.product-breadcrumbs .breadcrumbs a:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.product-breadcrumbs .breadcrumbs span {
    color: var(--text-secondary);
}

.product-breadcrumbs .breadcrumbs .separator {
    color: var(--text-secondary);
}

/* Product Header Simple */
.product-header-simple {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-md);
}

.product-header-simple .product-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
    text-shadow: none;
}

.product-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.product-meta-item {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.product-meta-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.product-meta-info-under-image {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.product-meta-info-under-image .product-meta-item {
    display: flex;
    align-items: center;
}

/* Product Content */
.product-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

/* Product Content Wrapper */
.product-content-wrapper {
    display: flex;
    flex-direction: column;
}

/* Product Content Layout (nouveau layout) */
.product-content-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    align-items: start;
    order: 1; /* Premier élément (titre + jaquette) */
}

.product-image-wrapper {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.product-image {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    object-fit: fill;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--spacing-md);
}

/* YouTube Embed Wrapper */
.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: var(--spacing-xl) 0;
    margin-top: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-platform-under-image {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

/* Product Section */
.product-section {
    margin-bottom: var(--spacing-sm);
}

/* Desktop Introduction */
.desktop-introduction {
    margin-bottom: var(--spacing-xl);
}

.desktop-introduction .game-introduction {
    padding: 10px 0 var(--spacing-xl) 0;
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
    text-align: left;
}

/* Mobile Introduction */
.mobile-introduction {
    display: none;
}

.mobile-introduction .game-introduction {
    padding: 10px 0 var(--spacing-xl) 0;
    margin-bottom: 0;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-weight: 400;
    text-align: left;
}

/* Mobile Best Offer */
.mobile-best-offer-wrapper {
    display: none;
}

.mobile-best-offer-cta {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.mobile-best-offer-price {
    margin-bottom: var(--spacing-md);
}

.mobile-base-price {
    display: block;
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
}

.mobile-best-price {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-best-offer-button {
    display: inline-block;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.mobile-best-offer-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Desktop Only Elements */
.desktop-only {
    display: block;
}

/* Mobile Only Elements */
.mobile-only {
    display: none;
}

/* Product Header Desktop with Background */
.product-header-desktop {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: flex-end; /* titre en bas comme les articles */
}

.product-header-desktop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 20, 0.15) 0%,
        rgba(12, 10, 20, 0.5) 50%,
        rgba(12, 10, 20, 0.82) 100%
    );
    z-index: 1;
}

.product-header-desktop-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-2xl);
}

.product-header-desktop-content .breadcrumbs {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.product-header-desktop-content .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
}

.product-header-desktop-content .breadcrumbs a:hover {
    color: white;
}

.product-header-desktop-content .breadcrumbs span,
.product-header-desktop-content .breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.7);
}

.product-header-desktop-content .product-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    color: white;
    line-height: 1.1;
    max-width: 700px;
}

.product-header-desktop-content .product-meta-info {
    justify-content: flex-start;
}

.product-header-desktop-content .product-meta-item {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.product-header-desktop-content .product-meta-item strong {
    color: white;
}

/* Mobile Only Elements */
.mobile-jaquette-first {
    display: none;
}

.mobile-other-offers {
    display: none;
}

.mobile-game-info {
    display: none;
}

/* Section Title */
.section-title {
    font-size: 1.5rem;
    padding-bottom: var(--spacing-sm);
    border-bottom: 4px solid var(--primary-color);
    margin-top: 30px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.section-title::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
    display: block;
}

/* ===========================================
   9. PRICE GRID
   =========================================== */
.price-grid {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
}

/* Best Offer - Version épurée */
.best-offer {
    background-color: var(--bg-white);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.best-offer:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.best-offer .section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--bg-light);
}

.best-offer-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.best-offer-merchant {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-width: 200px;
}

.merchant-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background-color: var(--bg-light);
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
}

.merchant-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.best-offer-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-xs);
    min-width: 120px;
}

.base-price {
    font-size: 0.875rem;
    text-decoration: line-through;
    color: var(--text-secondary);
}

.best-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.best-offer-cta {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-xl);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.best-offer-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    color: white;
}

.best-offer-bonus {
    background-color: var(--color-success);
    color: white;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    text-align: center;
    display: inline-block;
}

/* Other Offers */
.other-offers-title {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.offers-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.offer-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.offer-item:hover {
    background-color: white;
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Offre indisponible (prix = NA) */
.offer-item--unavailable {
    opacity: 0.55;
    filter: grayscale(0.8);
}

.offer-item--unavailable:hover {
    background-color: var(--bg-light);
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.offer-link--disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.offer-item--unavailable .offer-price {
    color: var(--text-secondary);
    font-style: italic;
}

.offer-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-primary);
}

.offer-merchant {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
}

.offer-merchant-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.offer-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: var(--spacing-xl);
}

.offer-cta {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.offer-cta:hover {
    background-color: var(--primary-dark);
    color: white;
}

.price-update-info {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mobile price update info - cachée en desktop */
.mobile-price-update-info {
    display: none;
}

/* Price Social Sharing */
.price-social-sharing {
    margin-top: 0;
    padding-top: 0;
    border-top: 1px solid var(--bg-light);
}

/* Price Social Sharing - Desktop seulement */
@media (min-width: 961px) {
    .price-social-sharing {
        margin-top: var(--spacing-lg);
        padding-top: var(--spacing-lg);
    }
}

/* Mobile Price Social Sharing */
.mobile-price-social-sharing {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--bg-light);
}

/* Masquer les boutons de partage du price-grid en mobile */
@media (max-width: 992px) {
    .price-grid .price-social-sharing {
        display: none;
    }
}

/* Masquer les boutons de partage mobile en desktop */
@media (min-width: 993px) {
    .mobile-price-social-sharing {
        display: none;
    }
}

.price-social-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: flex-start;
}

.price-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    min-width: 40px;
    height: 40px;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 0;
    background-color: var(--bg-light);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
    white-space: normal;
    word-wrap: break-word;
}

.price-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: currentColor;
}

.price-social-btn svg {
    width: 20px;
    height: 20px;
}

.price-social-x {
    color: #000000;
}

.price-social-x:hover {
    background-color: #000000;
    color: #ffffff;
}

.price-social-facebook {
    color: #1877f2;
}

.price-social-facebook:hover {
    background-color: #1877f2;
    color: #ffffff;
}

.price-social-bluesky {
    color: #00a8ff;
}

.price-social-bluesky:hover {
    background-color: #00a8ff;
    color: #ffffff;
}

.price-social-mastodon {
    color: #6364ff;
}

.price-social-mastodon:hover {
    background-color: #6364ff;
    color: #ffffff;
}

.price-social-linkedin {
    color: #0077b5;
}

.price-social-linkedin:hover {
    background-color: #0077b5;
    color: #ffffff;
}

.price-social-whatsapp {
    color: #25d366;
}

.price-social-whatsapp:hover {
    background-color: #25d366;
    color: #ffffff;
}

.no-offers {
    text-align: center;
    padding: var(--spacing-2xl);
}

.no-offers img {
    width: 150px;
    margin: 0 auto var(--spacing-lg);
    opacity: 0.5;
}

/* Price History */
#price-history {
    margin-top: calc(var(--spacing-2xl) * 0.8);
    margin-bottom: calc(var(--spacing-2xl) * 0.8);
}

.price-history-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: calc(var(--spacing-2xl) * 0.8);
    box-shadow: var(--shadow-sm);
}

.price-history-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.price-drop-badge {
    display: inline-block;
    background-color: rgba(189, 8, 8, 0.1);
    color: var(--color-danger);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-alltime-low-badge {
    display: inline-block;
    background-color: rgba(24, 184, 24, 0.1);
    color: var(--color-success);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.price-alltime-low-badge::before {
    content: '⭐ ';
}

.price-history-stat {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.price-history-stat strong {
    color: var(--text-primary);
}

.price-history-chart-wrapper {
    position: relative;
    height: 220px;
    margin-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
}

/* --- Badges baisse de prix --- */

/* Badge affiché dans la zone meilleure offre sur les pages produit */
.price-drop-badge-product {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--color-price-drop), var(--color-price-drop-light));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 12px auto 0;
    box-shadow: 0 2px 6px rgba(229, 57, 53, .35); /* shadow teintée --color-price-drop */
    line-height: 1;
    white-space: nowrap;
}

.price-drop-badge-product::before {
    content: '▼';
    font-size: 0.75em;
}

/* Badge superposé en bas-gauche de l'image dans les cartes produit */
.product-card-image-wrapper {
    position: relative;
}

.product-card-drop-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background-color: var(--color-price-drop);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

/* ===========================================
   10. ARCHIVE & CATEGORY
   =========================================== */
.archive-header {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
    color: white;
    position: relative;
    overflow: hidden;
}

.archive-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 28, 43, 0.85) 0%,
        rgba(245, 153, 35, 0.85) 100%
    );
    z-index: 1;
}

.archive-header-content {
    position: relative;
    z-index: 2;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    text-transform: capitalize;
}

.archive-description {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* ===========================================
   CATEGORY PAGE
   =========================================== */
.category-page {
    min-height: 100vh;
}

/* Header de catégorie simplifié */
.category-header {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}

.category-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.category-header-no-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 280px;
    padding: var(--spacing-2xl) 0;
}

.category-header .container {
    position: relative;
    z-index: 2;
    padding-bottom: var(--spacing-2xl);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: var(--spacing-lg) 0 var(--spacing-md) 0;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 900px;
}

/* Description de catégorie dans le header */
.category-header-description {
    margin-top: var(--spacing-lg);
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    max-width: 800px;
}

.category-header-description p {
    margin: 0 0 var(--spacing-md) 0;
}

.category-header-description p:last-child {
    margin-bottom: 0;
}

/* Marge conséquente entre header et contenu */
.category-content-wrapper {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
}

/* Contenu personnalisé de catégorie après la pagination */
.category-content {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--bg-light);
}

.category-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-primary);
}

.category-content p:last-child {
    margin-bottom: 0;
}

.category-content h2,
.category-content h3,
.category-content h4 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.category-content h2:first-child,
.category-content h3:first-child,
.category-content h4:first-child {
    margin-top: 0;
}

/* Product Grid */
/* Grille produits CPT — archive, catégorie, recherche (4 colonnes) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* Grille plateforme (5 colonnes desktop) */
.platform-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: var(--spacing-2xl);
}

@media (max-width: 1100px) {
    .platform-products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .platform-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .platform-products-grid { grid-template-columns: 1fr; }
}

/* Platform Page Content */
.platform-page-content {
    padding: var(--spacing-xl) 0;
}

.platform-products-section {
    margin-bottom: var(--spacing-2xl);
}

.platform-products-section .section-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary);
}

.platform-products-section .section-title::before {
    display: none;
}

/* Platform CTA Section */
.platform-cta-section {
    margin: var(--spacing-2xl) 0;
}

.platform-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.platform-cta-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: var(--bg-white);
    border: 1.5px solid #ecebef;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.platform-cta-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(107, 70, 193, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Cercle icône SVG */
.platform-cta-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(107, 70, 193, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.platform-cta-card:hover .platform-cta-icon-wrap {
    background-color: rgba(107, 70, 193, 0.18);
}

.platform-cta-icon-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    stroke: currentColor;
    fill: none;
}

/* Icône emoji legacy (rétrocompatibilité) */
.platform-cta-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.platform-cta-content {
    flex: 1;
}

.platform-cta-content h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.platform-cta-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Flèche SVG animée */
.platform-cta-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-cta-arrow svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

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

/* Platform Content Section */
.platform-content-section {
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl) 0;
    border-top: 1px solid #ecebef;
}

.platform-content-wrapper {
    line-height: 1.8;
    color: var(--text-primary);
}

.platform-content-wrapper h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.85rem;
    color: #0c0a14;
    letter-spacing: -0.025em;
    padding-bottom: 0.85rem;
    position: relative;
    border-bottom: none;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.platform-content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.platform-content-wrapper h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    color: #0c0a14;
    letter-spacing: -0.015em;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.platform-content-wrapper h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.platform-content-wrapper h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.platform-content-wrapper h2:first-child,
.platform-content-wrapper h3:first-child,
.platform-content-wrapper h4:first-child {
    margin-top: 0;
}

.platform-content-wrapper p {
    margin-bottom: var(--spacing-md);
}

.platform-content-wrapper ul,
.platform-content-wrapper ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.platform-content-wrapper li {
    margin-bottom: var(--spacing-xs);
}



.product-card {
    background-color: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    padding: var(--spacing-md);
    background-color: var(--bg-white);
}

.product-card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.product-card-title {
    font-size: 0.9375rem;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
    min-width: 0; /* Permet au titre de se rétrécir si nécessaire */
}

.product-card-title:hover {
    color: var(--primary-color);
}

/* Badge plateforme dans les cartes */
.product-card-title-wrapper .jvpc-platform-badge {
    display: inline-flex;
    padding: var(--spacing-md) var(--spacing-lg);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    flex-shrink: 0; /* Empêche le badge de se rétrécir */
    white-space: nowrap; /* Empêche le texte de se couper */
}

.product-card-platform {
    display: inline-flex;
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--text-secondary);
    color: white;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.product-card-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.product-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--bg-light);
}

.product-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card-cta {
    background-color: var(--primary-color);
    color: white !important;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.product-card-cta:hover {
    background-color: var(--primary-dark);
    color: white !important;
    transform: scale(1.05);
    text-decoration: none;
}

/* ===========================================
   RELATED PRODUCTS — single product pages (Classic+ style)
   Scoped après les règles génériques pour prendre la priorité
   =========================================== */
.related-products .section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
    padding-bottom: 0;
    padding-left: 14px;
    border-bottom: none;
    border-left: 4px solid #7c3aed;
    display: block;
}

.related-products .section-title::before {
    display: none;
}

/* Grille "Découvrez d'autres offres" — 5 colonnes auto-fill */
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .related-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-products .products-grid .product-card .product-card-cta:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
    transform: none;
}

/* ===========================================
   TEST PAGE — PRODUCT CARDS (Classic+ style)
   =========================================== */
.test-sidebar-products-list .product-card,
.test-products-list .product-card {
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.test-sidebar-products-list .product-card:hover,
.test-products-list .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.18);
    border-color: #7c3aed;
}

.test-sidebar-products-list .product-card .product-card-price,
.test-products-list .product-card .product-card-price {
    color: #7c3aed;
}

.test-sidebar-products-list .product-card .product-card-cta,
.test-products-list .product-card .product-card-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border-radius: 8px;
}

.test-sidebar-products-list .product-card .product-card-cta:hover,
.test-products-list .product-card .product-card-cta:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
}

/* ===========================================
   NOTE RING — composant partagé
   =========================================== */
.note-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.note-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 120px;
}

.note-ring-bg {
    fill: none;
    stroke: #f3f4f6;
    stroke-width: 10;
}

.note-ring-fill {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.note-ring-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.note-number {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
}

.note-max {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.note-label {
    margin-top: var(--spacing-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 0;
}

/* ===========================================
   COMMENT FORM
   =========================================== */
/* Bouton de soumission du formulaire de commentaire */
.comment-form #submit,
.comment-form .submit,
.comment-form input[type="submit"],
.comment-form .btn-primary,
.comment-form .form-submit input[type="submit"] {
    background-color: var(--secondary-color);
    color: white !important;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    display: inline-block;
}

.comment-form #submit:hover,
.comment-form .submit:hover,
.comment-form input[type="submit"]:hover,
.comment-form .btn-primary:hover,
.comment-form .form-submit input[type="submit"]:hover {
    background-color: var(--secondary-light);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ===========================================
   11. FOOTER
   =========================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1.2fr 1fr;
    gap: 48px;
    margin-bottom: var(--spacing-xl);
}

/* Colonnes du footer */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-column-left {
    align-items: flex-start;
}

.footer-column-center,
.footer-column-right {
    align-items: flex-start;
}

/* Logo du footer */
.footer-logo {
    margin-bottom: var(--spacing-md);
    line-height: 0;
    display: flex;
    align-items: flex-start;
}

.footer-logo img {
    max-height: 100px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: top;
    margin-bottom: 10px;
}

.footer-site-title {
    margin: 0;
    font-size: 1.5rem;
}

.footer-site-title a {
    color: white;
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-site-title a:hover {
    color: var(--primary-color);
}

/* Réseaux sociaux dans le footer */
.footer-social {
    margin-bottom: var(--spacing-md);
}

.footer-social .social-icons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-social .social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: color var(--transition-normal), background-color var(--transition-normal);
    color: rgba(255, 255, 255, 0.8);
}

.footer-social .social-icon:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 1);
}

/* Texte du footer */
.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Titre des colonnes */
.footer-column-title {
    color: white;
    margin: 0 0 var(--spacing-md) 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.2;
    padding-top: 0;
}

/* Menu de navigation du footer */
.footer-column-center #footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column-center #footer-menu li {
    margin-bottom: var(--spacing-sm);
}

.footer-column-center #footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-column-center #footer-menu a:hover {
    color: var(--primary-color);
}

/* Liste des produits les plus consultés */
.footer-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-product-item {
    margin-bottom: var(--spacing-sm);
}

.footer-product-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
    display: block;
}

.footer-product-link:hover {
    color: var(--primary-color);
    padding-left: var(--spacing-xs);
}

.footer-no-products {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
}

.footer-column-title--spaced {
    margin-top: var(--spacing-xl);
}

/* Wanted !!! */
.footer-wanted-title {
    color: #fbbf24;
    letter-spacing: 0.04em;
}

.footer-wanted-link {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.footer-wanted-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.footer-wanted-count {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: #fbbf24;
    font-weight: 600;
    white-space: nowrap;
}

/* Bas du footer */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}


/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-column-left {
        align-items: center;
    }

    .footer-column-title--spaced {
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: var(--spacing-lg);
    }
    
    .footer-social .social-icons {
        justify-content: center;
    }
}

/* ===========================================
   CATEGORY CONTENT
   =========================================== */
.category-content {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
    border-top: 2px solid var(--bg-light);
}

.category-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    color: var(--text-primary);
}

.category-content p:last-child {
    margin-bottom: 0;
}

.category-content h2,
.category-content h3,
.category-content h4 {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.category-content h2:first-child,
.category-content h3:first-child,
.category-content h4:first-child {
    margin-top: 0;
}

/* ===========================================
   12. RESPONSIVE
   =========================================== */

/* Tablets (960px and down) */
@media (max-width: 960px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    /* Toutes les pages, y compris les produits, basculent en mode mobile à 960px */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block;
    }
    
    .product-header-desktop {
        display: none;
    }
    
    .product-content {
        grid-template-columns: 1fr;
    }
    
    .product-image-wrapper {
        position: static;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .best-offer-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    .best-offer-price-wrapper {
        align-items: center;
    }
    
    .best-offer-cta {
        width: 100%;
    }
    
    .header-content {
        min-height: 60px;
        padding: var(--spacing-sm) 0;
        gap: var(--spacing-sm);
        justify-content: space-between;
        position: relative;
    }
    
    /* Hamburger à gauche */
    .mobile-menu-toggle {
        display: block;
        order: 1;
        flex: 0 0 auto;
        position: static;
    }
    
    /* Logo au centre */
    .header-left {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .site-branding {
        height: 45px;
    }
    .site-branding img {
        height: 45px;
    }
    
    .site-title {
        font-size: 1.125rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    /* Navigation cachée par défaut */
    .main-navigation {
        display: none;
        flex: 0 1 auto;
        order: 4;
    }
    
    /* Menu ouvert - prend toute la largeur de la page */
    .main-navigation.is-open {
        display: block;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--bg-dark);
        box-shadow: var(--shadow-md);
        flex: none;
        z-index: 9998;
        margin: 0;
        padding: 0;
    }
    
    /* Ajustement pour la barre d'admin WordPress */
    body.logged-in.admin-bar .main-navigation.is-open {
        top: calc(60px + 46px);
    }
    
    @media screen and (max-width: 782px) {
        body.logged-in.admin-bar .main-navigation.is-open {
            top: calc(60px + 46px);
        }
    }
    
    .main-navigation.is-open ul {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        width: 100%;
        margin: 0;
        align-items: stretch;
    }
    
    .main-navigation.is-open li {
        width: 100%;
    }
    
    .main-navigation.is-open a {
        color: white;
        display: block;
        width: 100%;
        padding: var(--spacing-md);
    }
    
    .main-navigation.is-open a:hover {
        background-color: var(--primary-light);
        color: white;
    }
    
    /* Réduire la taille du fil d'Ariane en mobile */
    .product-breadcrumbs .breadcrumbs {
        font-size: 0.55rem;
    }
    
    .product-breadcrumbs .breadcrumbs a,
    .product-breadcrumbs .breadcrumbs span {
        font-size: 0.55rem;
    }
    
    /* Centrer les boutons de partage RS en mobile */
    .mobile-price-social-sharing .price-social-sharing-buttons {
        justify-content: center;
    }
    
    /* Style des cards "également disponibles chez" en mobile */
    .offers-list .offer-item {
        background-color: white;
        border: 2px solid var(--bg-light);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .offers-list .offer-item:hover {
        border-color: var(--primary-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Sous-menus en mode mobile - cachés par défaut */
    .main-navigation.is-open .sub-menu {
        position: static;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transform: none;
        box-shadow: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0;
        margin-left: var(--spacing-md);
        padding: 0;
        border-left: 2px solid rgba(255, 255, 255, 0.2);
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    /* Sous-menus ouverts en mode mobile */
    .main-navigation.is-open .menu-item-has-children.submenu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-sm) 0;
    }
    
    .main-navigation.is-open .sub-menu a {
        padding-left: var(--spacing-lg);
        font-size: 0.9rem;
    }
    
    /* Flèche pour les items avec sous-menu en mode mobile */
    .main-navigation.is-open .menu-item-has-children > a {
        position: relative;
        padding-right: var(--spacing-xl);
        cursor: pointer;
    }
    
    .main-navigation.is-open .menu-item-has-children > a::after {
        content: '▼';
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        pointer-events: none;
        color: rgba(255, 255, 255, 0.8);
    }
    
    /* Flèche tournée quand le sous-menu est ouvert */
    .main-navigation.is-open .menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Sous-menus imbriqués en mode mobile */
    .main-navigation.is-open .sub-menu .sub-menu {
        position: static;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        margin-left: var(--spacing-md);
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }
    
    .main-navigation.is-open .sub-menu .menu-item-has-children.submenu-open > .sub-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        padding: var(--spacing-sm) 0;
    }
    
    /* Flèche pour les sous-menus imbriqués */
    .main-navigation.is-open .sub-menu .menu-item-has-children > a {
        position: relative;
        padding-right: var(--spacing-xl);
        cursor: pointer;
    }
    
    .main-navigation.is-open .sub-menu .menu-item-has-children > a::after {
        content: '▼';
        position: absolute;
        right: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.75rem;
        transition: transform 0.3s ease;
        pointer-events: none;
        color: rgba(255, 255, 255, 0.8);
    }
    
    .main-navigation.is-open .sub-menu .menu-item-has-children.submenu-open > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Recherche à droite */
    .search-toggle {
        order: 3;
        margin-left: 0;
        flex: 0 0 auto;
    }
    
    .header-social {
        display: none;
    }
}

/* Mobile (576px and down) */
@media (max-width: 576px) {
    :root {
        font-size: 14px;
    }
    
    .product-header {
        height: 250px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .best-price {
        font-size: 2rem;
    }
    
    .offer-link {
        flex-direction: column;
        text-align: center;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .main-navigation,
    .product-card-cta,
    .best-offer-cta {
        display: none;
    }
}

/* ===========================================
   === CLASSIC+ PRODUCT PAGE ===
   =========================================== */

/* -----------------------------------------------
   Hero Section
   ----------------------------------------------- */

.product-hero {
    background: linear-gradient(135deg, var(--cp-hero-bg-start) 0%, var(--cp-hero-bg-mid) 50%, var(--cp-hero-bg-start) 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

/* Overlay radial au-dessus du gradient principal */
.product-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(124, 58, 237, .25) 0%, transparent 60%);
    pointer-events: none;
}

.product-hero__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 48px 48px;
    position: relative; /* passe au-dessus de l'overlay */
}

.product-hero__breadcrumb {
    padding: 14px 0 0;
    font-size: 12px;
    color: var(--cp-text-hero-muted);
}

.product-hero__breadcrumb a {
    color: var(--cp-text-hero-muted);
    text-decoration: none;
}

.product-hero__breadcrumb a:hover {
    color: #fff;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: 280px 1fr 360px;
    gap: 40px;
    align-items: start;
    padding-top: 32px;
}

/* Jaquette */

.hero-cover {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-cover__img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .5);
    display: block;
}

.hero-cover__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f59e0b;
    color: var(--cp-text-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 4px;
    letter-spacing: .04em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    text-transform: uppercase;
    line-height: 1;
}

/* Infos produit (colonne centrale) */

.hero-platform-badge {
    background: #0070D1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: .04em;
    line-height: 1.4;
    text-decoration: none;
}

a.hero-platform-badge:hover {
    background: #005bb5;
    color: #fff;
    text-decoration: none;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -.02em;
    color: #fff;
}

.hero-meta {
    font-size: 13px;
    color: var(--cp-text-hero-muted);
    margin-bottom: 14px;
}

.hero-meta strong {
    color: #fff;
}

.hero-synopsis {
    font-size: 14px;
    line-height: 1.65;
    color: #d4c9e8;
    margin: 0 0 20px;
    max-width: 520px;
}

.hero-synopsis strong {
    color: #fff;
    font-weight: 600;
}

.hero-synopsis a {
    color: #a78bfa;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-synopsis a:hover {
    color: #c4b5fd;
}

.hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.hero-action-btn {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background var(--transition-normal);
    cursor: pointer;
}

.hero-action-btn:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    text-decoration: none;
}

/* Bouton hype */

.hero-hype-btn {
    background: rgba(251, 191, 36, .12);
    border-color: rgba(251, 191, 36, .35);
    color: #fbbf24;
    gap: 5px;
}

.hero-hype-btn:hover {
    background: rgba(251, 191, 36, .22);
    color: #fde68a;
}

.hero-hype-btn--voted {
    background: rgba(251, 191, 36, .25);
    border-color: rgba(251, 191, 36, .6);
    color: #fde68a;
    cursor: default;
}

.hero-hype-btn--loading {
    opacity: .6;
    cursor: wait;
}

.hero-hype-count {
    background: rgba(251, 191, 36, .25);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 6px;
    line-height: 1.4;
}

.hero-hype-count--hidden {
    display: none;
}

/* Partage RS sous le bouton historique */

.hero-social-share {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-social-share__label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .45);
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
}

.hero-social-share .price-social-sharing {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hero-social-share .price-social-sharing-buttons {
    gap: 8px;
    justify-content: flex-start;
}

.hero-social-share .price-social-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    border: 1px solid rgba(255, 255, 255, .18);
}

.hero-social-share .price-social-btn:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.hero-social-share .price-social-x:hover         { background: rgba(0, 0, 0, .85);  color: #fff; border-color: transparent; }
.hero-social-share .price-social-facebook:hover   { background: #1877f2;             color: #fff; border-color: transparent; }
.hero-social-share .price-social-bluesky:hover    { background: #0085ff;             color: #fff; border-color: transparent; }
.hero-social-share .price-social-mastodon:hover   { background: #6364ff;             color: #fff; border-color: transparent; }
.hero-social-share .price-social-linkedin:hover   { background: #0077b5;             color: #fff; border-color: transparent; }
.hero-social-share .price-social-whatsapp:hover   { background: #25d366;             color: #fff; border-color: transparent; }

/* Carte meilleur prix (colonne droite) */

.hero-price-card {
    background: #f0e6ff;
    color: var(--cp-text-dark);
    border: 2px solid #6f2dbd;
    border-radius: 12px;
    padding: 24px 20px 20px;
    box-shadow: 0 16px 48px -10px rgba(111, 45, 189, .3);
    position: relative;
}

.hero-price-card__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #6f2dbd;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: .06em;
    margin-bottom: 16px;
    text-transform: uppercase;
    line-height: 1;
}

.hero-price-card__merchant {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-price-card__merchant span {
    font-size: 14px;
    font-weight: 700;
    color: var(--cp-text-dark);
}

.hero-price-card__merchant .merchant-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.hero-price-card__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hero-price-card__price {
    font-size: 36px;
    font-weight: 700;
    color: #4c1d95;
    letter-spacing: -.02em;
    line-height: 1;
}

.hero-price-card__ref {
    font-size: 14px;
    color: #9c82b8;
    text-decoration: line-through;
}

.hero-price-card__pct {
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 4px;
}

.hero-price-card__bonus {
    font-size: 12px;
    color: #4c1d95;
    background: #e9d5ff;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.hero-price-card__cta {
    display: block;
    width: 100%;
    background: #fbbf24;
    color: #1a1325;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 16px -4px rgba(251, 191, 36, .5);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
    box-sizing: border-box;
}

.hero-price-card__cta:hover {
    background: #f59e0b;
    color: #1a1325;
    text-decoration: none;
    box-shadow: 0 6px 20px -4px rgba(251, 191, 36, .6);
}

.hero-price-card__saving {
    font-size: 11px;
    color: #7c3aed;
    text-align: center;
    margin-top: 8px;
}

/* -----------------------------------------------
   Table des prix
   ----------------------------------------------- */

.price-table-section {
    background: #fff;
    padding: 40px 0;
}

.price-table-section .product-hero__inner {
    /* réutilise le conteneur centré du hero */
}

.price-table-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 20px;
}

.price-table-header__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.02em;
    color: var(--cp-text-dark);
}

.price-table-header__date {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--cp-text-muted);
}

.price-table {
    border: 1px solid var(--cp-border-light);
    border-radius: 10px;
    overflow: hidden;
}

.price-table__head {
    display: grid;
    grid-template-columns: 44px 1fr 120px 120px 160px;
    gap: 16px;
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid var(--cp-border-light);
    font-size: 11px;
    font-weight: 700;
    color: var(--cp-text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.price-table__row {
    display: grid;
    grid-template-columns: 44px 1fr 120px 120px 160px;
    gap: 16px;
    padding: 14px 16px;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    background: #fff;
    transition: background var(--transition-normal);
}

.price-table__row:last-child {
    border-bottom: none;
}

.price-table__row--best {
    background: var(--cp-row-best-bg);
}

/* Ligne marquée indisponible (prix = NA) */
.price-table__row--unavailable {
    background: #fafafa;
}

.price-table__row--unavailable .price-table__merchant span,
.price-table__row--unavailable .price-table__rank {
    color: #9ca3af;
}

.price-table__row--unavailable .merchant-logo-sm {
    filter: grayscale(1);
    opacity: 0.6;
}

/* CTA reste pleinement actif sur les lignes indisponibles */
.price-table__row--unavailable .price-table__cta {
    background: #6b7280;
    color: #fff;
    border-color: #6b7280;
}

.price-table__row--unavailable .price-table__cta:hover {
    background: #4b5563;
    border-color: #4b5563;
}

.price-table__unavailable-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    background: #e5e7eb;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-table__rank {
    font-weight: 700;
    font-size: 14px;
    color: #9ca3af;
}

.price-table__row--best .price-table__rank {
    color: var(--cp-accent-violet);
}

.price-table__merchant {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.price-table__merchant span {
    font-size: 14px;
    font-weight: 600;
    color: var(--cp-text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.price-table__merchant .merchant-logo-sm {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.price-table__price {
    font-size: 15px;
    font-weight: 600;
    color: var(--cp-text-dark);
}

.price-table__row--best .price-table__price {
    font-size: 18px;
    font-weight: 700;
    color: var(--cp-accent-violet);
    letter-spacing: -.01em;
}

.savings-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.savings-badge--best {
    background: var(--cp-accent-violet);
    color: #fff;
}

.price-table__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cp-text-dark);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition-normal);
}

.price-table__cta:hover {
    opacity: .85;
    color: #fff;
    text-decoration: none;
}

.price-table__cta--best {
    background: var(--cp-accent-violet);
}

.price-table__cta--best:hover {
    background: var(--cp-accent-violet-dark);
    opacity: 1;
}

.price-table__disclaimer {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 10px;
}

.price-table__range {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 6px;
}

/* -----------------------------------------------
   Bloc de confiance (bas de fiche)
   ----------------------------------------------- */

.product-trust-block {
    background: #f5f3ff;
    border: 1px solid #ede9fe;
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 32px;
}

.product-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.product-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 0 24px;
    border-right: 1px solid #ede9fe;
}

.product-trust-item:first-child {
    padding-left: 0;
}

.product-trust-item:last-child {
    border-right: none;
}

.product-trust-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background: #ede9fe;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-trust-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a0f2e;
    margin-bottom: 4px;
}

.product-trust-text span {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

.product-trust-text a {
    font-size: 12px;
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
}

.product-trust-text a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .product-trust-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .product-trust-item {
        padding: 0;
        border-right: none;
    }

    .product-trust-item:first-child {
        padding-left: 0;
    }
}

/* -----------------------------------------------
   Section Caractéristiques / Description
   ----------------------------------------------- */

.product-specs-section {
    background: #fff;
    border-top: 1px solid #f3f4f6;
    padding: 40px 0;
}

.product-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

/* Grille à une seule colonne si un seul enfant direct (pas de description) */
.product-specs-grid:has(> :only-child) {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.product-specs__desc h2,
.product-specs__info h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -.02em;
    color: var(--cp-text-dark);
}

.specs-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed var(--cp-border-light);
    padding: 8px 0;
    font-size: 13px;
}

.specs-row dt {
    color: var(--cp-text-muted);
}

.specs-row dd {
    font-weight: 600;
    color: var(--cp-text-dark);
    margin: 0;
    text-align: right;
}

.specs-row dd a {
    color: var(--cp-accent-violet);
    text-decoration: none;
}

.specs-row dd a:hover {
    text-decoration: underline;
}

/* -----------------------------------------------
   Responsive — Classic+ Product Page
   ----------------------------------------------- */

/* Tablette large (≤ 1024px) */
@media (max-width: 1024px) {
    .product-hero__grid {
        grid-template-columns: 240px 1fr 320px;
        gap: 24px;
    }

    .product-hero__inner {
        padding: 0 24px 40px;
    }
}

/* Tablette portrait (≤ 900px) — passage en colonne unique */
@media (max-width: 900px) {
    .product-hero__grid {
        grid-template-columns: 1fr;
    }

    .hero-cover {
        display: flex;
        justify-content: center;
    }

    .hero-cover__img {
        max-width: 150px;
    }

    .hero-price-card {
        margin-top: 0;
    }

    .hero-title {
        font-size: 28px;
    }

    /* Table des prix : masquer entête et colonne Économies */
    .price-table__head {
        display: none;
    }

    .price-table__row {
        grid-template-columns: 32px 1fr 80px 110px;
        gap: 10px;
        padding: 12px;
    }

    .price-table__savings {
        display: none;
    }
}

/* Mobile (≤ 768px) — réordonnancement et centrage */
@media (max-width: 768px) {
    /* Ordre : meilleur prix → jaquette → infos */
    .hero-price-card {
        order: -1;
        width: 100%;
        max-width: 240px;
        margin: 0 auto 24px; /* espace avant la jaquette */
        padding: 10px 12px;
        box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .4);
        border-radius: 10px;
    }

    .hero-cover {
        order: 0;
    }

    .hero-cover__img {
        max-width: 120px;
    }

    /* Centrage global du héro */
    .product-hero__grid {
        justify-items: center;
        text-align: center;
        gap: 12px;
        padding-top: 14px;
    }

    .hero-info {
        text-align: center;
        width: 100%;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-synopsis {
        max-width: 100%;
        text-align: left;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-social-share .price-social-sharing-buttons {
        justify-content: center;
    }

    /* Price card compacte — organisation interne */
    .hero-price-card__label {
        font-size: 9px;
        padding: 3px 7px;
        margin-bottom: 8px;
    }

    /* Marchand + prix sur la même ligne */
    .hero-price-card__merchant {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
    }

    .hero-price-card__merchant .merchant-logo {
        width: 24px;
        height: 24px;
        border-radius: 4px;
    }

    .hero-price-card__merchant span {
        font-size: 11px;
        flex: 1;
    }

    .hero-price-card__prices {
        display: flex;
        align-items: baseline;
        gap: 6px;
        margin: 6px 0 8px;
    }

    .hero-price-card__price {
        font-size: 20px;
    }

    .hero-price-card__ref {
        font-size: 11px;
    }

    .hero-price-card__pct {
        font-size: 10px;
        padding: 2px 5px;
    }

    /* Masqués sur mobile : trop verbeux */
    .hero-price-card__bonus,
    .hero-price-card__saving {
        display: none;
    }

    .hero-price-card__cta {
        padding: 8px;
        font-size: 13px;
    }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
    .product-hero__inner {
        padding: 0 16px 32px;
    }

    .product-specs-grid {
        grid-template-columns: 1fr;
    }

    .price-table__cta {
        font-size: 12px;
        padding: 8px 10px;
    }
}

/* Très petit mobile (≤ 480px) — flex wrap : marchand+prix ligne 1, bouton pleine largeur ligne 2 */
@media (max-width: 480px) {
    .price-table__row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .price-table__rank,
    .price-table__savings {
        display: none;
    }

    .price-table__merchant {
        flex: 1 1 auto;
        min-width: 0;
    }

    .price-table__price {
        flex: 0 0 auto;
    }

    .price-table__cta {
        flex: 1 1 100%;
        display: flex;
        justify-content: center;
        box-sizing: border-box;
    }
}

/* ===========================================
   PAGE CONTACT
   =========================================== */

.contact-hero {
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b5e 100%);
    padding: 56px 0 48px;
}

.contact-hero__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.contact-hero__breadcrumb {
    margin-bottom: var(--spacing-md);
    opacity: 0.7;
}

.contact-hero__title {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0 0 12px;
}

.contact-hero__subtitle {
    color: rgba(255,255,255,.75);
    font-size: 1.05rem;
    margin: 0;
}

/* Layout deux colonnes */
.contact-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 48px 0 64px;
    align-items: start;
}

/* Colonne infos */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-info__block {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-info__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #ede9fe;
    color: #7c3aed;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__block strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.contact-info__block p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Carte formulaire */
.contact-form-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    padding: 36px 40px;
}

/* ── Contact Form 7 ── */
.contact-form-wrap .wpcf7 p {
    margin-bottom: 20px;
}

.contact-form-wrap .wpcf7 label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.contact-form-wrap .wpcf7-text,
.contact-form-wrap .wpcf7-email,
.contact-form-wrap .wpcf7-tel,
.contact-form-wrap .wpcf7-select,
.contact-form-wrap .wpcf7-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.contact-form-wrap .wpcf7-text:focus,
.contact-form-wrap .wpcf7-email:focus,
.contact-form-wrap .wpcf7-tel:focus,
.contact-form-wrap .wpcf7-select:focus,
.contact-form-wrap .wpcf7-textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124,58,237,.12);
    background: #fff;
}

.contact-form-wrap .wpcf7-textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form-wrap .wpcf7-submit {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.contact-form-wrap .wpcf7-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.contact-form-wrap .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8125rem;
    margin-top: 4px;
    display: block;
}

.contact-form-wrap .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    border: none;
}

.contact-form-wrap .wpcf7-mail-sent-ok {
    background: #d1fae5;
    color: #065f46;
}

.contact-form-wrap .wpcf7-validation-errors,
.contact-form-wrap .wpcf7-mail-sent-ng {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0 48px;
    }

    .contact-form-wrap {
        padding: 24px 20px;
    }

    .contact-hero__title {
        font-size: 1.75rem;
    }
}

/* ===========================================
   SECTION FLUX RSS EXTERNES
   =========================================== */

/* ═══════════════════════════════════════════════════════════
   Section RSS externe — "Qu'est-ce qui se passe ailleurs ?"
   Fond sombre, style cohérent avec le header ticker.
   ═══════════════════════════════════════════════════════════ */
.hp-rss {
    background: #0c0a14;
    padding: 40px 0 48px;
}
.hp-rss__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Variantes dark du header de section */
.hp-section-kicker--dark {
    color: #52416f;
}
.hp-section-h2--dark {
    color: #e2ddf4;
}

/* Filtres par source */
.hp-rss__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.hp-rss__filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #2a1f45;
    background: transparent;
    color: #8b7fad;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-family: inherit;
}
.hp-rss__filter:hover {
    border-color: #7c3aed;
    color: #c4b5e0;
}
.hp-rss__filter.is-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}
.hp-rss__filter-count {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
}
.hp-rss__filter.is-active .hp-rss__filter-count {
    background: rgba(255,255,255,0.25);
}

/* Grille des articles */
.hp-rss__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 14px;
}

/* Card article */
.hp-rss__item {
    background: #12102a;
    border-radius: 10px;
    border: 1px solid #1f1530;
    overflow: hidden;
    transition: border-color 0.18s, transform 0.18s;
}
.hp-rss__item:hover {
    border-color: #7c3aed;
    transform: translateY(-3px);
}
.hp-rss__item-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.hp-rss__thumb {
    position: relative;
    height: 130px;
    overflow: hidden;
    background: #1a0f2e;
    flex-shrink: 0;
}
.hp-rss__thumb--placeholder {
    background: repeating-linear-gradient(
        45deg,
        #1a0f2e 0 6px,
        #12102a 6px 12px
    );
}
.hp-rss__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s;
    opacity: 0.85;
}
.hp-rss__item:hover .hp-rss__img {
    transform: scale(1.04);
    opacity: 1;
}

/* Badge source — style doré comme le ticker */
.hp-rss__source-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #0c0a14;
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
    white-space: nowrap;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-rss__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
.hp-rss__title {
    font-size: 12px;
    font-weight: 600;
    color: #c4b5e0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.18s;
}
.hp-rss__item:hover .hp-rss__title {
    color: #fff;
}
.hp-rss__date {
    font-size: 11px;
    color: #52416f;
    margin-top: auto;
    display: block;
}

@media (max-width: 768px) {
    .hp-rss__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-rss__filters { gap: 6px; }
    .hp-rss__filter { font-size: 11px; padding: 5px 10px; }
}
@media (max-width: 480px) {
    .hp-rss__grid { grid-template-columns: repeat(2, 1fr); }
    .hp-rss__filter-count { display: none; }
}

/* === PAGE D'ACCUEIL REFONTE === */

/* Supprimer le padding du site-main pour la homepage (hero flush sous le header) */
.page-template-page-homepage .site-main,
.home .site-main {
    padding: 0;
}

/* Bouton alertes header */
.btn-alertes {
    background: #7c3aed;
    color: #fff;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}
.btn-alertes:hover {
    background: #6d28d9;
    color: #fff;
}

/* Hero */
.hp-hero {
    background: #0a0612;
    padding: 32px 24px 24px;
}
.hp-hero__container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    min-height: 380px;
}
/* Slider wrapper */
.hp-hero__slider {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}
.hp-hero__slides-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}
/* Chaque slide = grille 2 colonnes desktop : [texte + bouton | jaquette] */
.hp-hero__slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    background: linear-gradient(135deg, #1a0f2e 0%, #2d1b4e 50%, #4c1d95 100%);
    padding: 32px 56px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "text  cover"
        "cta   cover";
    column-gap: 28px;
    row-gap: 20px;
    align-items: start;
}

/* Flèches de navigation */
.hp-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    padding: 0;
}
.hp-hero__arrow:hover {
    background: rgba(255,255,255,0.32);
}
.hp-hero__arrow--prev { left: 12px; }
.hp-hero__arrow--next { right: 12px; }

/* Indicateurs (dots) */
.hp-hero__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.hp-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s, border-radius 0.2s;
    flex-shrink: 0;
}
.hp-hero__dot.is-active {
    background: #fbbf24;
    width: 22px;
    border-radius: 4px;
}
.hp-hero__main-text {
    grid-area: text;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 1;
}
.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fbbf24;
    color: #0c0a14;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    width: fit-content;
}
.hp-hero__discount-bg {
    position: absolute;
    right: 200px;
    top: -40px;
    font-size: 280px;
    font-weight: 800;
    color: rgba(251,191,36,0.06);
    letter-spacing: -0.06em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}
.hp-hero__title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}
.hp-hero__title-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.18s;
}
.hp-hero__title-link:hover {
    opacity: 0.85;
    color: #fff;
}
.hp-hero__prices {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-hero__price-current {
    font-size: 48px;
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
    letter-spacing: -0.03em;
    font-family: 'Inter', sans-serif;
}
.hp-hero__price-ref {
    font-size: 16px;
    color: #a8a0c4;
    text-decoration: line-through;
}
.hp-hero__price-discount {
    font-size: 13px;
    font-weight: 800;
    background: #7c3aed;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
}
.hp-hero__merchant {
    font-size: 13px;
    color: #c4b5e0;
}
.hp-hero__cover {
    grid-area: cover;
    align-self: center;
    width: 190px;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.5));
}
.hp-hero__cta {
    grid-area: cta;
    display: inline-block;
    background: #fff;
    color: #0c0a14;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    width: fit-content;
    align-self: end;
}
.hp-hero__cta:hover {
    opacity: 0.9;
    color: #0c0a14;
}

/* Hero side cards */
.hp-hero__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
}
.hp-hero__side-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Stretched link — couvre toute la card, z-index sous le CTA */
.hp-hero__side-permalink {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- Card article/test : image plein cadre + overlay dégradé --- */
.hp-hero__side-card--article {
    min-height: 160px;
    display: block;
    background: #1a1228;
}
.hp-hero__side-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp-hero__side-bg-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1228 0%, #2d1f4a 100%);
}
.hp-hero__side-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(10,6,20,0.92) 0%, rgba(10,6,20,0.5) 55%, transparent 100%);
    text-decoration: none;
}
.hp-hero__side-cat-pill {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    margin-bottom: 7px;
    width: fit-content;
}
.hp-hero__side-article-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card CPT : flex-row, jaquette imposante, vrai bouton deal --- */
.hp-hero__side-card--product {
    background: #fff;
    border: 1px solid #ecebef;
    border-left: 4px solid #7c3aed;
    padding: 14px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
}
.hp-hero__side-cover {
    width: 88px;
    height: 100px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.12));
}
.hp-hero__side-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.hp-hero__side-name {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: #0c0a14;
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hp-hero__side-platform {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 500;
    margin-left: 4px;
}
.hp-hero__side-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.hp-hero__side-price {
    font-size: 20px;
    font-weight: 800;
    color: #7c3aed;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}
.hp-hero__side-ref {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}
.hp-hero__side-discount {
    font-size: 10px;
    font-weight: 800;
    background: #7c3aed;
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
}
.hp-hero__side-merchant {
    font-size: 11px;
    color: #71717a;
    margin: 0 0 8px;
}
/* pointer-events : img + info laissent passer les clics vers le stretched link */
.hp-hero__side-card--product .hp-hero__side-cover,
.hp-hero__side-card--product .hp-hero__side-info {
    pointer-events: none;
}
.hp-hero__side-cta-btn {
    pointer-events: auto;
    position: relative;
    z-index: 2;
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.18s;
    width: fit-content;
}
.hp-hero__side-cta-btn:hover {
    background: #5b21b6;
    color: #fff;
}

/* Trust strip */
.hp-trust {
    background: #0a0612;
    border-top: 1px solid #1f1530;
    padding: 14px 24px;
}
.hp-trust__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    color: #a8a0c4;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
}
.hp-trust__item strong {
    color: #fff;
    font-size: 15px;
}
.hp-trust__sep {
    width: 1px;
    height: 18px;
    background: #1f1530;
    flex-shrink: 0;
}

/* Section header commun */
.hp-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}
.hp-section-kicker {
    font-size: 11px;
    color: #7c3aed;
    letter-spacing: 0.14em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}
.hp-section-h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}
.hp-section-link {
    font-size: 13px;
    color: #7c3aed;
    font-weight: 600;
    text-decoration: none;
}
.hp-section-link:hover {
    text-decoration: underline;
    color: #7c3aed;
}

/* Flash deals */
.hp-flash-deals {
    background: #fafaf9;
    padding: 40px 24px;
}
.hp-flash-deals__container {
    max-width: 1280px;
    margin: 0 auto;
}
.hp-flash-deals__grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 6), 1fr);
    gap: 14px;
}

/* ── V3 (horizontal) : 3 colonnes par défaut pour que les cartes respirent */
.hp-flash-deals__grid--v3 {
    grid-template-columns: repeat(var(--grid-cols, 3), 1fr);
}

/* ═══════════════════════════════════════════════════════════
   Deal card — base commune (V1 & V2 héritent, V3/V4/V5 surchargent)
   ═══════════════════════════════════════════════════════════ */
.hp-deal-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ecebef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative; /* ancrage du stretched link */
}

/* Lien fantôme — couvre toute la carte, pointe vers la fiche CPT */
.hp-deal-card__permalink {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* Hover subtil sur toute la carte */
.hp-deal-card:has(.hp-deal-card__permalink:hover) {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
    border-color: #c4b5fd;
    transition: box-shadow 0.18s, border-color 0.18s;
}
.hp-deal-card__image-wrap {
    position: relative;
    padding: 14px 14px 0;
    background: #fafaf9;
}
.hp-deal-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.hp-deal-card__image-placeholder {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    background: repeating-linear-gradient(45deg, #f4f0fb 0 6px, #ece5f7 6px 12px);
}
.hp-deal-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #0c0a14;
    color: #fbbf24;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}
.hp-deal-card__body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hp-deal-card__title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}
.hp-deal-card__merchant {
    font-size: 11px;
    color: #71717a;
    margin-bottom: 8px;
}
.hp-deal-card__prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}
.hp-deal-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}
.hp-deal-card__price--na {
    font-size: 13px;
    color: #71717a;
}
.hp-deal-card__ref {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}
/* !important requis : Gutenberg et les styles d'articles héritent des règles "a" avec spécificité élevée */
.hp-deal-card .hp-deal-card__cta {
    margin-top: auto;
    display: block;
    background: #0c0a14;
    color: #fff !important;
    border: none;
    padding: 9px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    position: relative;
    z-index: 2; /* au-dessus du stretched link */
}
.hp-deal-card .hp-deal-card__cta:hover {
    background: #1f1530;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── V1 : Classique — aucun surcharge nécessaire (= base) ── */

/* ── V2 : Sombre ────────────────────────────────────────────── */
.hp-deal-card--v2 {
    background: #0c0a14;
    border-color: #1f1530;
}
.hp-deal-card--v2 .hp-deal-card__image-wrap {
    background: #12102a;
}
.hp-deal-card--v2 .hp-deal-card__badge {
    background: #7c3aed;
    color: #fff;
}
.hp-deal-card--v2 .hp-deal-card__title {
    color: #e2ddf4;
}
.hp-deal-card--v2 .hp-deal-card__merchant {
    color: #8b7fad;
}
.hp-deal-card--v2 .hp-deal-card__price {
    color: #fbbf24;
}
.hp-deal-card--v2 .hp-deal-card__price--na {
    color: #6b5f8a;
}
.hp-deal-card--v2 .hp-deal-card__ref {
    color: #4b4568;
}
.hp-deal-card.hp-deal-card--v2 .hp-deal-card__cta {
    background: #7c3aed;
    color: #fff;
}
.hp-deal-card.hp-deal-card--v2 .hp-deal-card__cta:hover {
    background: #6d28d9;
    color: #fff;
    text-decoration: none;
}

/* ── V3 : Horizontal pleine largeur ─────────────────────────── */
.hp-deal-card--v3 {
    flex-direction: row;
    align-items: stretch;
    min-height: 160px;
}
.hp-deal-card--v3 .hp-deal-card__image-wrap {
    flex-shrink: 0;
    width: 160px;
    padding: 16px;
    background: #fafaf9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-deal-card--v3 .hp-deal-card__image {
    width: 100%;
    height: 130px;
    object-fit: contain;
    border-radius: 4px;
}
.hp-deal-card--v3 .hp-deal-card__image-placeholder {
    width: 100%;
    height: 130px;
    border-radius: 4px;
}
.hp-deal-card--v3 .hp-deal-card__badge {
    top: 8px;
    right: 8px;
    font-size: 10px;
    padding: 2px 5px;
}
.hp-deal-card--v3 .hp-deal-card__body {
    flex: 1;
    padding: 16px 20px;
    border-left: 1px solid #ecebef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hp-deal-card--v3 .hp-deal-card__title {
    font-size: 14px;
    font-weight: 700;
    height: auto;
    margin-bottom: 8px;
    line-height: 1.35;
}
.hp-deal-card--v3 .hp-deal-card__merchant {
    font-size: 12px;
    margin-bottom: 10px;
}
.hp-deal-card--v3 .hp-deal-card__price {
    font-size: 22px;
}
.hp-deal-card--v3 .hp-deal-card__cta {
    padding: 9px 16px;
    font-size: 12px;
    align-self: flex-start;
    margin-top: 12px;
}

/* ── Bloc Gutenberg & shortcode [cmProduit] : Carte Produit ─── */
.jvpc-produit-block {
    margin: 1.5rem 0;
    width: 100%;
}

/* Aperçu dans le canvas de l'éditeur */
.jvpc-produit-block__editor {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 16px 20px;
    background: #f9fafb;
    min-height: 60px;
}
.jvpc-produit-block__editor-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #374151;
    font-size: 14px;
}
.jvpc-produit-block__editor-icon {
    font-size: 20px;
    line-height: 1;
}
.jvpc-produit-block__editor-name {
    font-weight: 600;
}

/* ── V4 : Minimaliste ────────────────────────────────────────── */
.hp-deal-card--v4 {
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.hp-deal-card--v4 .hp-deal-card__image-wrap {
    padding: 0;
    background: transparent;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.hp-deal-card--v4 .hp-deal-card__image {
    height: 160px;
    border-radius: 0;
    object-fit: contain;
    background: #f7f5fc;
    padding: 8px;
}
.hp-deal-card--v4 .hp-deal-card__image-placeholder {
    height: 160px;
    border-radius: 0;
}
.hp-deal-card--v4 .hp-deal-card__badge {
    top: 8px;
    right: 8px;
    background: #7c3aed;
    color: #fff;
}
.hp-deal-card--v4 .hp-deal-card__body {
    padding: 12px 16px 16px;
}
.hp-deal-card--v4 .hp-deal-card__title {
    font-size: 13px;
    height: auto;
    color: #1a1a2e;
    margin-bottom: 8px;
}
.hp-deal-card--v4 .hp-deal-card__merchant {
    display: none;
}
.hp-deal-card--v4 .hp-deal-card__price {
    font-size: 22px;
    color: #0c0a14;
}
.hp-deal-card--v4 .hp-deal-card__cta {
    background: none;
    color: #7c3aed;
    font-weight: 700;
    padding: 0;
    text-align: left;
    font-size: 12px;
    border-radius: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hp-deal-card--v4 .hp-deal-card__cta:hover {
    background: none;
    color: #5b21b6;
}

/* ── V5 : Magazine ─────────────────────────────────────────── */
.hp-deal-card--v5 {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.hp-deal-card--v5 .hp-deal-card__image-link {
    display: block;
    text-decoration: none;
}
.hp-deal-card--v5 .hp-deal-card__image-wrap {
    padding: 0;
    background: #0c0a14;
    position: relative;
    overflow: hidden;
}
.hp-deal-card--v5 .hp-deal-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 0;
    display: block;
    opacity: 0.85;
    transition: opacity 0.25s;
}
.hp-deal-card--v5:hover .hp-deal-card__image {
    opacity: 1;
}
.hp-deal-card--v5 .hp-deal-card__image-placeholder {
    height: 240px;
    border-radius: 0;
}
.hp-deal-card--v5 .hp-deal-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(12,10,20,0.92) 0%, transparent 100%);
}
.hp-deal-card--v5 .hp-deal-card__title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    margin-bottom: 6px;
    line-height: 1.3;
}
.hp-deal-card--v5 .hp-deal-card__prices {
    margin-bottom: 0;
}
.hp-deal-card--v5 .hp-deal-card__price {
    color: #fbbf24;
    font-size: 18px;
}
.hp-deal-card--v5 .hp-deal-card__badge {
    position: static;
    background: #7c3aed;
    color: #fff;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
}
.hp-deal-card--v5 .hp-deal-card__body {
    padding: 10px 14px 12px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
}
.hp-deal-card--v5 .hp-deal-card__merchant {
    margin-bottom: 0;
    font-size: 11px;
    color: #71717a;
}
.hp-deal-card--v5 .hp-deal-card__cta {
    margin-top: 0;
    flex-shrink: 0;
    background: #7c3aed;
    color: #fff;
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 6px;
    white-space: nowrap;
}
.hp-deal-card--v5 .hp-deal-card__cta:hover {
    background: #6d28d9;
    color: #fff;
}

/* Accessories */
.hp-accessories {
    padding: 40px 24px;
    background: #fff;
}
.hp-accessories__container {
    max-width: 1280px;
    margin: 0 auto;
}
.hp-accessories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Accessory card */
.hp-acc-card {
    background: #fafaf9;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}
.hp-acc-card__image-wrap {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.hp-acc-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.hp-acc-card__image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    background: repeating-linear-gradient(45deg, #f4f0fb 0 6px, #ece5f7 6px 12px);
}
.hp-acc-card__info {
    flex: 1;
}
.hp-acc-card__platform {
    font-size: 10px;
    color: #71717a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.hp-acc-card__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    font-family: 'Inter', sans-serif;
}
.hp-acc-card__name-link {
    color: inherit;
    text-decoration: none;
}
.hp-acc-card__name-link:hover {
    color: #7c3aed;
}
.hp-acc-card__prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}
.hp-acc-card__price {
    font-size: 19px;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
}
.hp-acc-card__price--na {
    font-size: 13px;
    color: #71717a;
}
.hp-acc-card__ref {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: line-through;
}
.hp-acc-card__discount {
    font-size: 10px;
    font-weight: 800;
    background: #fef3c7;
    color: #92400e;
    padding: 2px 5px;
    border-radius: 3px;
}
.hp-acc-card__merchant {
    font-size: 11px;
    color: #71717a;
}

/* Magazine */
.hp-magazine {
    padding: 48px 24px;
    background: #fafaf9;
}
.hp-magazine__container {
    max-width: 1280px;
    margin: 0 auto;
}
/* Layout 2fr + 1fr */
.hp-magazine__layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}
/* Grille 2 colonnes de cards */
.hp-magazine__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Cards articles --- */
.hp-mag-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ecebef;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hp-mag-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.hp-mag-card__thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #f4f0fb;
    flex-shrink: 0;
}
.hp-mag-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.hp-mag-card__link:hover .hp-mag-card__img {
    transform: scale(1.04);
}
.hp-mag-card__img-ph {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #f4f0fb 0 6px, #ece5f7 6px 12px);
}
.hp-mag-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hp-mag-card__tag {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}
.hp-mag-card__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #0c0a14;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.hp-mag-card__link:hover .hp-mag-card__title {
    color: #7c3aed;
}
.hp-mag-card__excerpt {
    font-size: 12px;
    color: #52525b;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.hp-mag-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f4f4f5;
}
.hp-mag-card__date {
    font-size: 11px;
    color: #9ca3af;
}
.hp-mag-card__stats {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-mag-card__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9ca3af;
}

/* --- Sidebar magazine --- */
.hp-mag-sidebar__kicker {
    margin-bottom: 4px;
}
.hp-mag-sidebar__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    font-family: 'Inter', sans-serif;
    color: #0c0a14;
}
.hp-mag-sidebar__list {
    background: #fff;
    border: 1px solid #ecebef;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}
.hp-mag-sidebar__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f4f4f5;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.hp-mag-sidebar__item:last-child {
    border-bottom: none;
}
.hp-mag-sidebar__item:hover {
    background: #fafaf9;
}
.hp-mag-sidebar__num {
    font-size: 18px;
    font-weight: 700;
    color: #d4d4d8;
    letter-spacing: -0.02em;
    min-width: 28px;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}
.hp-mag-sidebar__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.hp-mag-sidebar__tag {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 2px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}
.hp-mag-sidebar__item-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #0c0a14;
}
.hp-mag-sidebar__item:hover .hp-mag-sidebar__item-title {
    color: #7c3aed;
}


/* Alert banner */
.hp-alert-banner {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}
.hp-alert-banner::before {
    content: "!";
    position: absolute;
    right: -60px;
    top: -60px;
    font-size: 320px;
    line-height: 1;
    font-weight: 800;
    color: rgba(251,191,36,0.12);
    pointer-events: none;
}
.hp-alert-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
}
.hp-alert-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fbbf24;
    color: #0c0a14;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}
.hp-alert-banner__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-family: 'Inter', sans-serif;
}
.hp-alert-banner__desc {
    color: #e9e3f5;
    font-size: 15px;
    margin: 0;
    line-height: 1.5;
    max-width: 480px;
}
.hp-alert-banner__form-block {
    background: rgba(0,0,0,0.25);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.hp-alert-banner__form .search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.hp-alert-banner__form .search-field {
    flex: 1;
    background: rgba(255,255,255,0.95);
    border: none;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
}
.hp-alert-banner__form .search-submit {
    background: #fbbf24;
    color: #0c0a14;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.hp-alert-banner__reassurance {
    font-size: 11px;
    color: #c4b5e0;
}

/* Bloc texte SEO sous les sections deals */
.hp-seo-block {
    margin-top: 32px;
    padding: 24px 32px;
    background: #f4f1f9;
    border-left: 3px solid #7c3aed;
    border-radius: 0 8px 8px 0;
}

.hp-seo-block__title {
    font-size: 16px;
    font-weight: 700;
    color: #0c0a14;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.hp-seo-block__content {
    font-size: 13px;
    line-height: 1.7;
    color: #52525b;
}

.hp-seo-block__content p {
    margin: 0 0 8px;
}

.hp-seo-block__content p:last-child {
    margin-bottom: 0;
}

.hp-seo-block__content a {
    color: #7c3aed;
    text-decoration: underline;
}

/* Liens marchands — même style que .footer-column-center #footer-menu a */
.footer-column-center #footer-merchants {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column-center #footer-merchants li {
    margin-bottom: var(--spacing-sm);
}

.footer-column-center #footer-merchants a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-normal);
    font-size: 0.9rem;
}

.footer-column-center #footer-merchants a:hover {
    color: var(--primary-color);
}

/* =============================================
   PAGE BAISSES DE PRIX
   ============================================= */

/* Hero */
.prix-drops-hero {
    position: relative;
    min-height: 340px;
    background-color: #0c0a14;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0;
    overflow: hidden;
}

.prix-drops-hero--with-image::before,
.prix-drops-hero__overlay {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 20, 0.2) 0%,
        rgba(12, 10, 20, 0.55) 50%,
        rgba(12, 10, 20, 0.85) 100%
    );
    z-index: 1;
}

.prix-drops-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: var(--spacing-2xl) 0;
    color: white;
}

.prix-drops-hero__title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: white;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.prix-drops-hero--with-image .prix-drops-hero__title,
.prix-drops-hero:not(.prix-drops-hero--with-image) .prix-drops-hero__title {
    color: white;
}

.prix-drops-hero__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
}

.prix-drops-hero__stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

.prix-drops-stat-num {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.prix-drops-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Filtres */
.prix-drops-filters {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.prix-drops-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    border: 1.5px solid #ecebef;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.prix-drops-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
}

.prix-drops-filter-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Grille produits */
.prix-drops-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    padding-bottom: var(--spacing-2xl);
}

/* Wrapper card (card + date) */
.prix-drops-card-wrap {
    display: flex;
    flex-direction: column;
}

.prix-drops-card-wrap .hp-deal-card {
    flex: 1;
}

.prix-drops-card-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-xs) 0;
}

/* Empty state */
.prix-drops-empty {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    color: var(--text-secondary);
}

/* Contenu SEO en bas de page */
.prix-drops-seo-content {
    border-top: 1px solid #ecebef;
    margin: var(--spacing-xl) 0 var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    line-height: 1.8;
    color: var(--text-primary);
}

.prix-drops-seo-content h2 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.5rem;
    color: #0c0a14;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.prix-drops-seo-content h2:first-child {
    margin-top: 0;
}

.prix-drops-seo-content h3 {
    font-family: var(--font-secondary);
    font-weight: 700;
    font-size: 1.15rem;
    color: #0c0a14;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.prix-drops-seo-content p {
    margin-bottom: var(--spacing-md);
}

.prix-drops-seo-content a {
    color: var(--primary-color);
}

/* ── Blog Hero triptyque ─────────────────────────────────────── */
.blog-hero {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    height: 415px;
    width: 100%;
    overflow: hidden;
}

.blog-hero__item {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

/* Séparateur vertical entre items */
.blog-hero__item + .blog-hero__item {
    border-left: 2px solid rgba(255, 255, 255, 0.15);
}

/* Image de fond — zoomable */
.blog-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.blog-hero__item:hover .blog-hero__bg {
    transform: scale(1.07);
}

/* Gradient overlay — plus dense sur les items latéraux */
.blog-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 20, 0.08) 0%,
        rgba(12, 10, 20, 0.45) 50%,
        rgba(12, 10, 20, 0.85) 100%
    );
    transition: opacity 0.4s ease;
}

/* Item principal : overlay un peu plus léger pour mettre l'image en valeur */
.blog-hero__item--main .blog-hero__overlay {
    background: linear-gradient(
        to bottom,
        rgba(12, 10, 20, 0.05) 0%,
        rgba(12, 10, 20, 0.3) 45%,
        rgba(12, 10, 20, 0.82) 100%
    );
}

.blog-hero__item:hover .blog-hero__overlay {
    opacity: 0.85;
}

/* Contenu texte — ancré en bas */
.blog-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.blog-hero__item--main .blog-hero__content {
    padding: 2rem 2.25rem;
}

/* Badge catégorie */
.blog-hero__cat {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--primary-color);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.6rem;
}

/* Titre */
.blog-hero__title {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    font-size: 1rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-hero__item--main .blog-hero__title {
    font-size: 1.5rem;
    -webkit-line-clamp: 4;
}

/* Date */
.blog-hero__date {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Flush sous le header — annule le padding-top du site-main */
.blog .site-main .blog-hero:first-child,
.site-main .blog-hero:first-child {
    margin-top: calc(var(--spacing-xl) * -1);
}

/* ── Blog Index — layout articles + sidebar RSS ──────────────── */
.blog-index-wrap {
    margin-top: var(--spacing-2xl);
}

.blog-index-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.blog-index-main {
    min-width: 0;
}

.blog-index-main .posts-wrapper {
    grid-template-columns: repeat(3, 1fr);
}

/* Sidebar RSS condensée */
.blog-index-sidebar {
    position: sticky;
    top: 90px;
}

.blog-rss-sidebar {
    background: var(--bg-white);
    border: 1px solid #ecebef;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.blog-rss-sidebar__header {
    padding: 0.85rem 1.25rem 0.75rem;
    border-bottom: 1px solid #ecebef;
}

.blog-rss-sidebar__title {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin: 0 0 0.6rem;
}

.blog-rss-sidebar__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.6rem;
}

.blog-rss-sidebar__filter {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    border: 1px solid #ecebef;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.blog-rss-sidebar__filter:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.blog-rss-sidebar__filter.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.blog-rss-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-rss-sidebar__item {
    border-bottom: 1px solid #ecebef;
}

.blog-rss-sidebar__item:last-child {
    border-bottom: none;
}

.blog-rss-sidebar__link {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1.25rem;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.blog-rss-sidebar__link:hover {
    background-color: #f9f8fc;
    text-decoration: none;
}

.blog-rss-sidebar__source {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
}

.blog-rss-sidebar__headline {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-rss-sidebar__date {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 0.1rem;
}


.similaires-group__title {
    font-size: 1.1rem;
}

.similaires-group .products-grid {
    grid-template-columns: repeat(6, 1fr);
}

@media (max-width: 1100px) {
    .similaires-group .products-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
    .similaires-group .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .similaires-group .products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Badge plateforme sur les cartes jeu */
.deal-card-platform-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background-color: #555;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    z-index: 2;
    line-height: 1.4;
}

.deal-card-platform-badge--ps5  { background-color: #003791; }
.deal-card-platform-badge--ps4  { background-color: #00439c; }
.deal-card-platform-badge--xbox,
.deal-card-platform-badge--xbox-series-x,
.deal-card-platform-badge--xbox-series-s { background-color: #107c10; }
.deal-card-platform-badge--switch,
.deal-card-platform-badge--nintendo-switch { background-color: var(--color-nintendo); }
.deal-card-platform-badge--pc   { background-color: #555; }

/* Galerie d'images dans la section description */
.description-with-gallery {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.description-with-gallery__text {
    flex: 2;
    min-width: 0;
}

.description-with-gallery__images {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.description-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: opacity 0.2s;
}

.description-gallery__item:hover img {
    opacity: 0.85;
}

@media (max-width: 768px) {
    .description-with-gallery {
        flex-direction: column;
    }
}

/* ── Slider galerie description ── */
.description-with-gallery__images {
    flex: 1;
    min-width: 0;
}

.gallery-slider__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.gallery-slider {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
}

.gallery-slider__track {
    position: relative;
}

.gallery-slider__slide {
    display: none;
}

.gallery-slider__slide.is-active {
    display: block;
}

.gallery-slider__slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
}

.gallery-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    padding: 6px 10px;
    border-radius: 4px;
    z-index: 2;
    transition: background 0.15s;
}

.gallery-slider__btn:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-slider__btn--prev { left: 6px; }
.gallery-slider__btn--next { right: 6px; }

.gallery-slider__dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 6px;
    background: var(--bg-light);
}

.gallery-slider__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--cp-border-light);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s;
}

.gallery-slider__dot.is-active {
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .description-with-gallery {
        flex-direction: column;
    }
}

/* ── Galerie description : grande image + miniatures ── */
.desc-gallery {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.desc-gallery__main {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 4/3;
}

.desc-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
}

.desc-gallery__thumbs {
    display: flex;
    gap: 6px;
}

.desc-gallery__thumb {
    flex: 1;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.15s;
    aspect-ratio: 1;
}

.desc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.65;
    transition: opacity 0.15s;
}

.desc-gallery__thumb.is-active,
.desc-gallery__thumb:hover {
    border-color: var(--primary-color);
}

.desc-gallery__thumb.is-active img,
.desc-gallery__thumb:hover img {
    opacity: 1;
}

.desc-gallery__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Bouton image principale cliquable */
.desc-gallery__main-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.desc-gallery__zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.85rem;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s;
}

.desc-gallery__main-btn:hover .desc-gallery__zoom-icon {
    opacity: 1;
}

/* Lightbox */
.jvpc-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: lightboxIn 0.18s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.jvpc-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.jvpc-lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.jvpc-lightbox__close:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════
   CONTENU FAQ — classe dédiée, isolée du reste
   ═══════════════════════════════════════════════ */
.jvpc-faq-content h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--text-primary);
}

.jvpc-faq-content h3:not(:first-child) {
    margin-top: 24px;
}

.jvpc-faq-content p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   Iframes collés bruts (YouTube) dans la description
   — empêche le débordement quel que soit width/height
   ═══════════════════════════════════════════════ */

/* Sécurité globale : aucun iframe ne dépasse son conteneur */
.product-description iframe,
.jvpc-faq-content iframe {
    max-width: 100%;
}

/* Iframe collé brut (hors .youtube-embed-wrapper) : ratio 16:9 responsive */
.product-description > iframe,
.product-description > p > iframe,
.jvpc-faq-content > iframe,
.jvpc-faq-content > p > iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: var(--radius-md);
    display: block;
    margin: var(--spacing-md) 0;
}
