/*
Theme Name: Kinesiflow Genspark
Description: Thème WordPress natif converti depuis Elementor pour Kinesiflow - Solutions naturelles pour douleurs articulaires
Author: Kinesiflow Team
Version: 1.0.0
Text Domain: kinesiflow-native
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo-mobile {
    display: none;
}

/* ===== NAVIGATION ===== */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-menu li {
    position: relative;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.3em;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.main-menu a:hover,
.main-menu .current-menu-item > a {
    color: #5263FF;
}

/* Sous-menus */
.main-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    border-radius: 1rem;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.main-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-menu .sub-menu a {
    padding: 1.4em;
    display: block;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.main-menu .sub-menu a:hover {
    color: #5263FF;
    background-color: #f8f9ff;
}

/* Bouton header */
.header-button .btn {
    background: linear-gradient(45deg, #5263FF, #15b7ac);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.header-button .btn:hover {
    transform: translateY(-2px);
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: #5263FF;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
}

/* ===== TITRES ===== */
h1 {
    background-image: linear-gradient(45deg, #15b7ac, #5263FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    font-size: 2.5em;
    margin: 0 0 0.5em 0;
}

h2 {
    background-image: linear-gradient(45deg, #15b7ac, #5263FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: fit-content;
    padding: 0.8em 0 0.4em 0;
    font-size: 2em;
}

h3 {
    color: #333;
    font-size: 1.5em;
    margin: 1.5em 0 1em 0;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
    margin: 0 0 20px 0;
    position: relative;
    z-index: 5;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list a {
    text-decoration: none;
    color: #5263FF;
}

.separator {
    margin: 0 0.5em;
    color: rgb(21 183 172 / 50%);
}

/* ===== CONTENU PRINCIPAL ===== */
.site-main {
    padding: 40px 0;
}

.post,
.page {
    margin-bottom: 40px;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
    padding: 0;
    font-size: 0.9em;
    color: #666;
}

.post-meta-left,
.post-meta-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-meta-right {
    align-items: flex-end;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-icon {
    width: 16px;
    height: 16px;
    color: #5263FF;
}

.post-thumbnail {
    margin: 20px 0;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 2em;
}

/* ===== SOMMAIRE ===== */
.table-of-contents {
    background-color: rgba(82, 99, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.4em;
    margin: 2em 0;
    border: 3px solid #5263FF;
}

.toc-header {
    background: linear-gradient(45deg, #5263FF, #15b7ac);
    color: white;
    padding: 10px 15px;
    margin: -1.4em -1.4em 1em -1.4em;
    border-radius: 0.75rem 0.75rem 0 0;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.1em;
}

.toc-list a {
    color: #5263FF;
    text-decoration: none;
    font-weight: bold;
}

.toc-list a:hover {
    color: #15b7ac;
}

.toc-list ul {
    margin-left: 2.5em;
    font-weight: normal;
}

/* ===== POINTS ESSENTIELS ===== */
.points-essentiels {
    background-color: rgb(238 250 249);
    margin-bottom: 2em;
    padding: 1.4em;
    border-radius: 0.75em;
    border: 0.3em solid #15b7ac;
}

.points-essentiels h2 {
    background-image: none;
    color: #15b7ac;
    padding: 0;
    font-size: 1.4em;
}

.points-essentiels li {
    list-style-type: circle;
    margin-bottom: 0.5em;
}

.points-essentiels li::marker {
    color: #15b7ac;
    font-size: 1.3em;
}

/* ===== ARCHIVE POSTS ===== */
.archive-title {
    text-align: center;
    margin-bottom: 40px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.post-card-thumbnail {
    width: 100%;
    height: 200px;
    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-content {
    padding: 20px;
}

.post-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.post-card-title a {
    color: #333;
    text-decoration: none;
}

.post-card-title a:hover {
    color: #5263FF;
}

.post-card-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.post-card-link {
    color: #5263FF;
    text-decoration: none;
    font-weight: bold;
}

.post-card-link:hover {
    color: #15b7ac;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #5263FF;
    border-radius: 5px;
}

.pagination .current {
    background: #5263FF;
    color: white;
}

.pagination a:hover {
    background: #e9ecef;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(45deg, #5263FF, #15b7ac);
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

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

.site-footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .site-logo {
        display: none;
    }
    
    .site-logo-mobile {
        display: block;
    }
    
    .site-logo-mobile img {
        height: 50px;
        width: 50px;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .header-button .btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .post-meta {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .post-meta-right {
        align-items: flex-start;
    }
    
    h1 {
        font-size: 2.8em;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 20px 0;
    }
    
    .post-card-content {
        padding: 15px;
    }
    
    .points-essentiels,
    .table-of-contents {
        padding: 1em;
    }
}

/* ===== STYLES SUPPLÉMENTAIRES ===== */
blockquote {
    overflow-wrap: break-word;
    margin: 2em 0;
    padding: 2em;
    border-left: 6px solid #5263ff;
    background-color: #f9f9f9;
    font-style: italic;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #5263FF, #15b7ac);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(82, 99, 255, 0.3);
}

/* Styles pour les commentaires */
.comments-area {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

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

.post-card {
    animation: fadeInUp 0.6s 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; }