/*
Theme Name: Radins Coquets
Theme URI: https://radins-coquets.fr
Author: Martin Turcotte
Author URI: https://martinturcotte.com
Description: Un thème WordPress Pop & Playful pour les passionnés de mode, beauté et lifestyle.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-colors, custom-logo, featured-images, threaded-comments
Text Domain: radins-coquets

Copyright 2026 Martin Turcotte
Radins Coquets is distributed under the terms of the GNU GPL v2 or later.
*/
/* 
   Theme: Pop & Playful — Mode, Beauté et Lifestyle
*/


:root {
    /* Pink Palette — Mode & Beauté */
    --primary: #E83E8C;
    /* Rose Mode */
    --primary-hover: #D63384;

    --secondary: #2E86C1;
    /* Bleu Confort */
    --secondary-hover: #1B4F72;

    --accent: #D4AC0D;
    /* Or / Doré */
    --purple: #7D3C98;

    --dark: #2D3436;
    --gray: #636E72;
    --light-gray: #F5F6FA;
    --white: #FFFFFF;

    --font: 'Nunito', sans-serif;

    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;

    --shadow-pop: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --shadow-contour: 0 0 25px rgba(0, 0, 0, 0.1);
    /* Uniform contour shadow */
    --shadow-table: 0 1px 4px rgba(0, 0, 0, 0.05);
    /* Reduced vertical shadow for tables */
}

/* Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--font);
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

/* Typography Helpers */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.text-pop {
    color: var(--primary);
}

.highlight {
    color: var(--primary);
}

.highlight-blue {
    color: var(--secondary);
}

.highlight-yellow {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(192, 57, 43, 0.5);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background-color: var(--dark);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-accent {
    color: var(--primary);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
}

.nav-links a {
    font-weight: 700;
    color: var(--gray);
    font-size: 1.05rem;
    padding: 0.6rem 1rem;
    display: block;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Chevron indicator for parent items */
.nav-links .menu-item-has-children > a::after {
    content: '\f107';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 0.7rem;
    margin-left: 0.4rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Dropdown — Level 1 */
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1000;
    list-style: none;
}

.nav-links li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .sub-menu li {
    position: relative;
}

.nav-links .sub-menu a {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    border-radius: 0;
    transition: all 0.2s ease;
}

.nav-links .sub-menu a:hover {
    background: var(--light-gray);
    color: var(--primary);
    padding-left: 1.5rem;
}

/* Dropdown — Level 2+ (opens to the right) */
.nav-links .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-radius: var(--radius-sm);
}

/* Chevron for sub-menu parents → points right */
.nav-links .sub-menu .menu-item-has-children > a::after {
    content: '\f105';
    float: right;
    margin-left: 1rem;
}

/* Separator line between dropdown items */
.nav-links .sub-menu li + li {
    border-top: 1px solid var(--light-gray);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Mobile sub-menu toggle button */
.sub-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.sub-menu-toggle.open {
    transform: rotate(180deg);
}

/* Hero Section */
.hero {
    padding: 3rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: #5A4800;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: var(--dark);
    line-height: 1;
}

.stat-item span {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 700;
}

/* Hero Visual & Blobs */
.hero-visual {
    position: relative;
}

.blob-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background-color: #FFF5EE;
    /* Very Light Warm */
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    z-index: -1;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.hero-img {
    border-radius: var(--radius-lg);
    /* No shadow on image, clean look */
    mask-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAgMTBoMTgwdjE4MEgxMHoiLz48L3N2Zz4=');
    /* Simple mask if needed, but border radius is enough */
    transform: rotate(2deg);
    transition: transform 0.5s;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

.float-card {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-pop);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 800;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-1 i {
    color: var(--primary);
    font-size: 1.2rem;
}

.card-2 {
    bottom: 15%;
    right: -5%;
    animation-delay: 2s;
}

.card-2 i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.wave-bottom {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Categories */
.categories {
    background-color: var(--light-gray);
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.theme-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-pop);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.theme-card:hover {
    transform: translateY(-10px);
}

.theme-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    transition: 0.3s;
}

.theme-card.color-pink:hover {
    border-color: var(--primary);
}

.theme-card.color-pink .theme-icon {
    background: var(--primary);
}

.theme-card.color-blue:hover {
    border-color: var(--secondary);
}

.theme-card.color-blue .theme-icon {
    background: var(--secondary);
}

.theme-card.color-yellow:hover {
    border-color: var(--accent);
}

.theme-card.color-yellow .theme-icon {
    background: var(--accent);
}

.theme-card.color-purple:hover {
    border-color: var(--purple);
}

.theme-card.color-purple .theme-icon {
    background: var(--purple);
}

.theme-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.theme-card p {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 600;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.view-all {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-pop);
    transition: 0.4s;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover img {
    transform: scale(1.05);
}

.tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--dark);
}

.tag-blue {
    background: #D6EAF8;
    color: #1B4F72;
}

.tag-pink {
    background: #FADBD8;
    color: #922B21;
}

.tag-yellow {
    background: #FFF4D1;
    color: #B7950B;
}

.blog-content {
    padding: 1.8rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.link-btn {
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.link-btn:hover {
    color: var(--primary);
}

/* Promo Feature */
.feature-promo {
    background: #FFF5EE;
    padding: 6rem 0;
}

.promo-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.promo-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    transform: rotate(-3deg);
}

.pill-label {
    display: inline-block;
    background: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    color: var(--purple);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.promo-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.fun-list li {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.fun-list i {
    color: var(--secondary);
    font-size: 1.3rem;
}

/* Newsletter */
.newsletter-box {
    background: var(--secondary);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.newsletter-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-box p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.subscribe-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    font-family: var(--font);
    font-size: 1rem;
}

.subscribe-form button {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 0 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-family: var(--font);
    cursor: pointer;
    transition: 0.3s;
}

.subscribe-form button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.circle-decor {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.top-left {
    top: -80px;
    left: -80px;
}

.bottom-right {
    bottom: -80px;
    right: -80px;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    margin: 0;
    font-size: 1.6rem;
}

.footer-brand p {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-weight: 700;
    color: var(--dark);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    transition: 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: rotate(10deg);
}

.footer-bottom {
    text-align: center;
    border-top: 2px solid var(--light-gray);
    padding-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes blobFloat {
    0% {
        transform: translate(-50%, -50%) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .cat-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .promo-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .promo-img img {
        max-width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        text-align: left;
        animation: slideDown 0.3s ease forwards;
        gap: 0;
    }

    .nav-links.active > li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links.active a {
        padding: 0.8rem 1.5rem;
    }

    /* Mobile: parent item row with toggle button */
    .nav-links .menu-item-has-children {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-links .menu-item-has-children > a {
        flex: 1;
    }

    /* Show mobile toggle button */
    .sub-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        padding: 0.8rem;
    }

    /* Hide desktop chevrons on mobile, use the toggle button instead */
    .nav-links .menu-item-has-children > a::after {
        display: none;
    }

    /* Mobile sub-menus: hidden by default, shown on toggle */
    .nav-links .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 100%;
        width: 100%;
        padding: 0;
        display: none;
        background: var(--light-gray);
        border-radius: 0;
    }

    .nav-links .sub-menu.open {
        display: block;
    }

    .nav-links .sub-menu a {
        padding-left: 2.5rem;
        font-size: 0.95rem;
    }

    /* Level 3+ on mobile */
    .nav-links .sub-menu .sub-menu a {
        padding-left: 3.5rem;
    }

    .nav-links .sub-menu .sub-menu .sub-menu a {
        padding-left: 4.5rem;
    }

    .nav-links .sub-menu li + li {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .buttons,
    .stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
    }

    .blob-bg {
        width: 100%;
        height: 100%;
        top: 50%;
    }

    .cat-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-box {
        padding: 2rem;
    }

    .subscribe-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    /* Single Page Mobile */
    .article-container {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2rem;
    }
}

/* --- Single Page Styles POP --- */

.article-header {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative Background Blob for Header */
.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 100%;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.header-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.meta-tags {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
}

.meta-tags .badge {
    margin-bottom: 0;
}

.read-time {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 700;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.article-header h1 {
    font-size: 4rem;
    margin-bottom: 0;
    color: var(--dark);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.02);
}

/* ═══════════════════════════════════════════
   Category Hero Section
   ═══════════════════════════════════════════ */

.category-hero {
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f0 0%, #fef9f0 50%, #f0f4fd 100%);
}

.category-hero::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(192, 57, 43, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.category-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 134, 193, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.category-hero-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.04),
        0 1px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s ease;
}

.category-hero-card:hover {
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.07),
        0 2px 8px rgba(0, 0, 0, 0.03);
}

.category-hero-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), #e74c3c);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(192, 57, 43, 0.25);
}

.category-hero-content {
    flex: 1;
}

.category-hero-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.category-hero-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(192, 57, 43, 0.08);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1rem;
}

.category-hero-count i {
    font-size: 0.75rem;
}

/* Category Description — left-aligned */
.category-description {
    margin-top: 1rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray);
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1rem;
}

.category-description p {
    margin: 0 0 0.5rem;
}

.category-description p:last-child {
    margin-bottom: 0;
}

.category-description a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.category-description a:hover {
    color: var(--secondary);
}

/* Mobile responsive */
@media (max-width: 600px) {
    .category-hero-card {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .category-hero-content h1 {
        font-size: 1.8rem;
    }

    .category-hero {
        padding: 7rem 0 2rem;
    }
}

.featured-image-wrapper {
    margin-bottom: 5rem;
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 0.5s ease;
}

.featured-image-wrapper img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    height: auto;
}

.featured-image-wrapper:hover {
    transform: rotate(0deg) scale(1.01);
}

/* --- CONTENT WOW UPGRADE --- */
.content-body {
    font-size: 1.15rem;
    color: #4A4A4A;
    line-height: 1.8;
}

/* Paragraphs */
.content-body p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.content-body p a,
.content-body li a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.content-body p a:hover,
.content-body li a:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

/* Lists */
.content-body ul,
.content-body ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
    list-style: none !important;
}

.content-body ul li,
.content-body ol li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 0;
}

.content-body ul li::before,
.content-body ol li::before {
    content: none !important;
}

/* Tables */
.table-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-table);
    background-color: #ffffff;
    width: 100%;
    margin: 0 auto 2rem auto;
}

.content-body table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border: none !important;
    background-color: transparent;
    box-shadow: var(--shadow-table);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.table-card table {
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.content-body th,
.content-body td {
    padding: 1.2rem 1.5rem;
    text-align: left;
    border: none !important;
    border-bottom: none !important;
    border-right: none !important;
}



.content-body th {
    background-color: var(--primary);
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border: none !important;
}

/* Explicit Corner Rounding (Fail-safe) */
.content-body tr:first-child th:first-child {
    border-top-left-radius: var(--radius-md);
}

.content-body tr:first-child th:last-child {
    border-top-right-radius: var(--radius-md);
}

.content-body tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.content-body tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

.content-body tr:last-child td {
    border-bottom: none !important;
}

.content-body tr:nth-child(even) {
    background-color: #F9F9F9;
}

.content-body tr:hover {
    background-color: #F0F0F0;
}

/* GLOBAL CONTENT MEDIA STYLES (Images, Videos) */
.content-body img,
.content-body video,
.content-body iframe {
    width: 100%;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-pop) !important;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* YouTube Videos Responsive 16:9 */
.content-body iframe[src*="youtube.com"],
.content-body iframe[src*="youtu.be"] {
    width: 100% !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
    margin: 2rem 0;
    display: block;
}

/* Drop Cap */
.intro-text::first-letter {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    float: left;
    margin-right: 1rem;
    line-height: 0.8;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 3rem;
}

.content-body h2 {
    font-size: 2.2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

/* Numbered H2 Decoration */
.content-body h2::before {
    content: '#';
    color: var(--secondary);
    margin-right: 0.5rem;
    opacity: 0.5;
}

/* Sticker Images */
.content-image {
    width: 100%;
    border-radius: var(--radius-md);
    margin: 3rem 0;
    border: 8px solid white;
    box-shadow: var(--shadow-pop);
    transform: rotate(1deg);
    transition: 0.3s;
}

.content-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Blockquote Fun */
.content-body blockquote {
    font-size: 1.8rem;
    font-weight: 800;
    font-style: italic;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary) 0%, #25A599 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
    text-align: center;
    margin: 4rem 0;
    box-shadow: var(--shadow-pop);
    position: relative;
}

.content-body blockquote::before {
    content: '\f10d';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    top: 1rem;
    left: 1rem;
}

/* Sidebar Widgets */
.widget {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 2px solid var(--light-gray);
    box-shadow: var(--shadow-pop);
}

.widget h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.mini-post {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: center;
    background: var(--light-gray);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

.mini-post:hover {
    background: white;
    box-shadow: var(--shadow-pop);
    transform: translateX(5px);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px dashed #EEE;
}

.nav-btn {
    flex: 1;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.nav-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-pop);
    transform: translateY(-5px);
}

.next-post {
    text-align: right;
    align-items: flex-end;
}

.nav-label {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-title {
    font-weight: 800;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.3;
}

.nav-btn:hover .nav-title {
    color: var(--primary);
}

/* Related Section */
.related-section {
    background: #FFF5EE;
    padding: 5rem 0;
    margin-top: 2rem;
}

.related-section .section-header {
    justify-content: center;
    margin-bottom: 3rem;
}

.related-section .section-header h3 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

/* Decorative wiggle underline */
.related-section .section-header h3::after {
    content: '';
    display: block;
    width: 100%;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 Q 12.5 0 25 10 T 50 10 T 75 10 T 100 10' stroke='%23C0392B' stroke-width='4' fill='none' /%3E");
    background-size: 50% 100%;
    position: absolute;
    bottom: -15px;
    left: 0;
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .next-post {
        text-align: left;
        align-items: flex-start;
    }
}

/* Table of Contents */
#toc-container {
    background: #FFF5EE;
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    border-left: 5px solid var(--primary);
    display: none;
    /* Hidden by default, shown by JS */
}

#toc-container h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

#toc-container ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#toc-container ul li {
    margin-bottom: 0.8rem;
}

#toc-container ul li a {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

#toc-container ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* Layout with Sidebar */
.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    align-items: start;
}

/* Centrage quand il n'y a pas de sidebar */
.content-sidebar-wrapper.no-sidebar {
    grid-template-columns: 1fr;
    max-width: 1140px;
    margin: 0 auto;
}

.widget-area {
    position: sticky;
    top: 120px;
}

.widget {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.widget ul {
    padding: 0;
}

.widget li {
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.widget li a:hover {
    color: var(--primary);
}

@media (max-width: 992px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr;
    }

    .widget-area {
        position: static;
    }
}


/* Post Tags & Comments */
.post-tags {
    margin: 2rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
    font-weight: 700;
}

/* Custom Block Styles */
.wp-block-button.is-style-pop-shadow .wp-block-button__link {
    box-shadow: 8px 8px 0 var(--accent);
    transition: 0.3s;
}

.wp-block-button.is-style-pop-shadow .wp-block-button__link:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--accent);
}

/* Custom Block Patterns */
.hero-pattern {
    background: var(--light-gray);
    padding: 5rem 2rem;
    border-radius: var(--radius-lg);
    border: 3px dashed var(--primary);
    margin: 2rem 0;
}

.hero-pattern h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.post-tags i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.post-tags a {
    color: var(--gray);
    background: var(--light-gray);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.post-tags a:hover {
    background: var(--primary);
    color: var(--white);
}

.comments-area {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.comment-list {
    margin: 2rem 0;
}

.comment-list .comment {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author .avatar {
    border-radius: 50%;
}

.comment-author b {
    font-size: 1.1rem;
    color: var(--dark);
}

.comment-metadata a {
    font-size: 0.85rem;
    color: var(--gray);
}

.comment-content {
    color: var(--dark);
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
}

#reply-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    font-family: inherit;
}

.comment-form input[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}


/* WordPress Core CSS */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.sticky {
    border: 2px solid var(--primary);
}

.gallery-caption {
    font-size: 11px;
}

.bypostauthor {
    border: 1px solid var(--accent);
}

/* Nav links sur la home */
.home #navbar .nav-links a {
    color: var(--gray) !important;
}

.home #navbar .nav-links a:hover,
.home #navbar .nav-links a.active {
    color: var(--primary) !important;
}
