/*
Theme Name: VulTask Blog
Theme URI: https://www.vultask.fr
Author: Daniel FERMONT
Author URI: https://www.vultask.fr
Description: Thème WordPress officiel de VulTask, reprenant l'identité visuelle du projet avec Tasko le renard comme mascotte. Design moderne avec dégradés violet/orange et interface épurée.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vultask
Tags: blog, one-column, two-columns, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, sticky-post, threaded-comments, translation-ready
*/

/* ==========================================================================
   VARIABLES & RESET
   ========================================================================== */

:root {
    /* Couleurs VulTask */
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #764ba2;
    --orange-fox: #ff7b00;
    --orange-light: #ffb366;
    
    /* Couleurs de statut */
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    
    /* Échelle de gris */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Effets */
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Dégradés */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-fox: linear-gradient(135deg, var(--orange-fox) 0%, var(--orange-light) 100%);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-100);
    color: var(--gray-900);
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    background: var(--gradient-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

.site-title a {
    color: white;
    text-decoration: none;
}

.site-description {
    display: none;
}

/* Navigation principale */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 50px;
    display: block;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Sous-menu */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    flex-direction: column;
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul a {
    color: var(--gray-700);
    padding: 10px 20px;
    border-radius: 0;
}

.main-navigation ul ul a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

/* Bouton CTA header */
.header-cta {
    margin-left: 20px;
}

.btn-app {
    background: white;
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-app:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

/* Menu mobile toggle */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    border-radius: var(--radius);
    cursor: pointer;
}

/* ==========================================================================
   HERO / PAGE HEADER
   ========================================================================== */

.page-header {
    background: var(--gradient-primary);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="60" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.5;
}

.page-header-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Archive header */
.archive-header {
    padding: 60px 20px;
}

/* ==========================================================================
   CONTENU PRINCIPAL
   ========================================================================== */

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.site-content.full-width {
    grid-template-columns: 1fr;
    max-width: 900px;
}

.content-area {
    min-width: 0;
}

/* ==========================================================================
   ARTICLES / CARDS
   ========================================================================== */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.post-card-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumbnail img {
    transform: scale(1.05);
}

.post-card-thumbnail .category-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.post-card-thumbnail .category-badge {
    background: var(--gradient-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card-content {
    padding: 25px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.post-card-meta .author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-card-meta .author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.post-card-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
}

.post-card-title a {
    color: var(--gray-900);
}

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

.post-card-excerpt {
    color: var(--gray-600);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--gray-200);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.read-more:hover {
    gap: 10px;
}

.reading-time {
    font-size: 13px;
    color: var(--gray-400);
}

/* ==========================================================================
   ARTICLE SINGLE
   ========================================================================== */

.single-post-header {
    padding: 80px 20px 60px;
}

.single-post-header .post-categories {
    margin-bottom: 15px;
}

.single-post-header .category-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
}

.single-post-header .entry-title {
    color: white;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 25px;
}

.single-post-header .entry-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
}

.single-post-header .author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.single-post-header .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.single-post-header .author-name {
    font-weight: 600;
    color: white;
}

/* Featured image */
.single-post-featured-image {
    max-width: 900px;
    margin: -40px auto 40px;
    padding: 0 20px;
}

.single-post-featured-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* Contenu de l'article */
.entry-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow);
}

.entry-content h2 {
    font-size: 28px;
    color: var(--gray-900);
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.entry-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.entry-content h3 {
    font-size: 22px;
    color: var(--gray-800);
    margin: 30px 0 15px;
}

.entry-content h4 {
    font-size: 18px;
    color: var(--gray-800);
    margin: 25px 0 12px;
}

.entry-content p {
    margin-bottom: 20px;
    color: var(--gray-700);
}

.entry-content ul,
.entry-content ol {
    margin: 0 0 20px 25px;
    color: var(--gray-700);
}

.entry-content li {
    margin-bottom: 8px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--gray-50);
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--gray-700);
}

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

.entry-content pre {
    background: var(--gray-900);
    color: var(--gray-100);
    padding: 25px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 25px 0;
    font-size: 14px;
}

.entry-content code {
    background: var(--gray-100);
    color: var(--primary-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.entry-content img {
    border-radius: var(--radius);
    margin: 25px 0;
}

.entry-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(102, 126, 234, 0.3);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-color: var(--primary);
}

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.post-tags-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.post-tags a {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    margin: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.post-tags a:hover {
    background: var(--primary);
    color: white;
}

/* Navigation articles */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.post-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--gray-100);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.post-navigation .nav-label {
    display: inline;
}

.post-navigation .nav-title {
    display: none;
}

.post-navigation .nav-next {
    margin-left: auto;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */

.widget-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    color: var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget a:hover {
    color: var(--primary);
}

.widget a .count {
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Widget Tasko (mascotte) */
.widget-tasko {
    background: var(--gradient-primary);
    text-align: center;
    color: white;
}

.widget-tasko .tasko-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.widget-tasko .tasko-message {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
}

.widget-tasko .btn-app {
    background: white;
    color: var(--primary);
    width: 100%;
    justify-content: center;
}

/* Widget recherche */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    transition: border-color 0.2s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-form .search-submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-form .search-submit:hover {
    transform: translateY(-2px);
}

/* ==========================================================================
   COMMENTAIRES
   ========================================================================== */

.single-post-comments {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.comments-area {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-top: 40px;
    box-shadow: var(--shadow);
}

.comments-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title::before {
    content: '💬';
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 25px 0;
    border-bottom: 1px solid var(--gray-200);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--gray-900);
}

.comment-metadata {
    font-size: 13px;
    color: var(--gray-500);
}

.comment-content {
    color: var(--gray-700);
    line-height: 1.7;
}

.comment-reply-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 10px;
    display: inline-block;
}

/* Formulaire de commentaire */
.comment-respond {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}

.comment-reply-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
}

.comment-form label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    margin-bottom: 20px;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-submit .submit {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 15px;
    background: white;
    color: var(--gray-700);
    border-radius: var(--radius);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--gradient-primary);
    color: white;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    margin-top: 80px;
}

.footer-widgets {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-widget .widget-title {
    color: white;
    border-bottom-color: var(--primary);
}

.footer-widget .widget-title::before {
    display: none;
}

.footer-widget a {
    color: var(--gray-400);
}

.footer-widget a:hover {
    color: white;
}

.footer-widget li {
    border-bottom-color: var(--gray-800);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    height: 35px;
}

.footer-logo span {
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.footer-copyright {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

/* ==========================================================================
   BOUTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    color: var(--gray-900);
}

.btn-fox {
    background: var(--gradient-fox);
    color: white;
}

.btn-fox:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 123, 0, 0.4);
    color: white;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.error-404-content {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.error-404-content .error-code {
    font-size: 120px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-content h1 {
    font-size: 32px;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.error-404-content p {
    color: var(--gray-600);
    font-size: 18px;
    margin-bottom: 30px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: auto;
        padding: 15px 20px;
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }
    
    .main-navigation.toggled {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
    }
    
    .main-navigation ul ul a {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .header-cta {
        margin-left: auto;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .single-post-header .entry-title {
        font-size: 32px;
    }
    
    .single-post-header .entry-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .entry-content {
        padding: 30px 20px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation a {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.5s ease forwards;
}

.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.2s; }
.post-card:nth-child(4) { animation-delay: 0.3s; }
.post-card:nth-child(5) { animation-delay: 0.4s; }
.post-card:nth-child(6) { animation-delay: 0.5s; }

/* ==========================================================================
   BARRE DE PROGRESSION DE LECTURE
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    transition: width 0.1s ease-out;
}

/* ==========================================================================
   BOUTON RETOUR EN HAUT
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* ==========================================================================
   RÉACTIONS
   ========================================================================== */

.post-engagement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.post-reactions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gray-100);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.reaction-btn:hover {
    background: var(--gray-200);
    transform: scale(1.05);
}

.reaction-btn.active {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
}

.reaction-btn.clicked {
    animation: reactionPop 0.3s ease;
}

@keyframes reactionPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.reaction-icon {
    font-size: 18px;
}

.reaction-count {
    font-weight: 600;
    color: var(--gray-600);
}

.reaction-btn.active .reaction-count {
    color: var(--primary);
}

/* ==========================================================================
   PARTAGE SOCIAL
   ========================================================================== */

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
    margin-right: 5px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--share-color, var(--primary));
    color: white;
    transform: scale(1.1);
}

.share-btn.copied {
    background: var(--success);
    color: white;
}

.share-twitter .share-icon { font-family: system-ui; }
.share-facebook .share-icon { font-family: Georgia, serif; }
.share-linkedin .share-icon { font-family: system-ui; font-size: 12px; }

/* ==========================================================================
   ARTICLES SIMILAIRES
   ========================================================================== */

.single-post-related {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.related-posts {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.related-posts-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 25px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post-card {
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.related-post-thumbnail {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.related-post-date {
    font-size: 13px;
    color: var(--gray-500);
}

/* ==========================================================================
   NOMBRE DE VUES DANS LE HEADER
   ========================================================================== */

.post-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   RESPONSIVE NOUVELLES FONCTIONNALITÉS
   ========================================================================== */

@media (max-width: 900px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-post-card {
        flex-direction: row;
    }
    
    .related-post-thumbnail {
        width: 120px;
        flex-shrink: 0;
        aspect-ratio: 1;
    }
    
    .related-post-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .post-engagement {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-reactions {
        flex-wrap: wrap;
    }
    
    .reaction-btn {
        padding: 6px 10px;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

.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;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--gray-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    clip: auto !important;
    clip-path: none;
    color: var(--gray-900);
    display: block;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
