/*
Theme Name: Open Mind
Theme URI: https://openmindmagazine.fr
Author: Open Mind Team
Author URI: https://openmindmagazine.fr
Description: Thème WordPress sur mesure pour le magazine Open Mind - Se connecter, se relier, s'écouter. Un design organique et inspirant dédié au bien-être et à la connexion avec la nature.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openmind
Tags: magazine, wellness, nature, blog, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready

Changelog v1.2.0:
- Fixed: Guides and Magazine now appear in Menus interface (show_in_nav_menus)
- Added: Instagram feed widget integration
- Added: Estimated reading time on articles
- Added: Auto table of contents for long articles
- Added: Breadcrumbs navigation
- Added: Reading progress bar
- Added: Schema.org structured data (Article, BreadcrumbList)
- Added: Dynamic meta descriptions
- Added: Complete Open Graph tags
- Improved: Full responsive optimization (mobile/tablet/desktop)
*/

/* ================================
   RESET & BASE STYLES
   ================================ */

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

:root {
    --primary-green: #7cb342;
    --soft-green: #a8d5ba;
    --cream: #fefdf8;
    --soft-pink: #ffd5d9;
    --soft-blue: #a8d8ea;
    --dark-text: #2d3436;
    --warm-brown: #8b7355;
    --light-gray: #f5f5f5;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

a:hover {
    color: #5a9216;
}

/* ================================
   TYPOGRAPHY
   ================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ================================
   LAYOUT
   ================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.site-main {
    min-height: 60vh;
    padding: 4rem 0;
}

/* ================================
   DECORATIVE ORGANIC SHAPES
   ================================ */

.organic-shape {
    position: absolute;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    opacity: 0.15;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--soft-green), var(--soft-blue));
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--soft-pink), var(--primary-green));
    bottom: 200px;
    left: -80px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--soft-blue), var(--soft-green));
    top: 50%;
    right: 10%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -30px) rotate(5deg); }
    50% { transform: translate(-15px, -50px) rotate(-5deg); }
    75% { transform: translate(30px, -20px) rotate(3deg); }
}

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

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--soft-blue));
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(124, 179, 66, 0.3);
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.site-branding .site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0;
}

.site-branding .site-title a {
    color: var(--dark-text);
    text-decoration: none;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 3rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation a {
    color: var(--dark-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
    width: 100%;
}

.cta-subscribe {
    background: var(--primary-green);
    color: white !important;
    padding: 0.75rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-subscribe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 179, 66, 0.3);
}

.cta-subscribe::after {
    display: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
}

/* ================================
   BREADCRUMBS
   ================================ */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #636e72;
}

.breadcrumbs a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #5a9216;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #b2bec3;
}

.breadcrumbs .current {
    color: var(--dark-text);
    font-weight: 500;
}

/* ================================
   READING TIME & META
   ================================ */

.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #636e72;
    font-size: 0.9rem;
}

.reading-time::before {
    content: "📖";
}

.article-meta-extended {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 2rem;
}

/* ================================
   TABLE OF CONTENTS
   ================================ */

.table-of-contents {
    background: linear-gradient(135deg, rgba(168, 213, 186, 0.1), rgba(168, 216, 234, 0.1));
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem 0 3rem;
    border-left: 4px solid var(--primary-green);
}

.table-of-contents h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

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

.toc-list li {
    margin-bottom: 0.7rem;
}

.toc-list a {
    color: var(--dark-text);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.3rem;
    border-radius: 8px;
}

.toc-list a:hover {
    background: rgba(124, 179, 66, 0.1);
    padding-left: 1rem;
}

.toc-list a::before {
    content: "→";
    color: var(--primary-green);
    flex-shrink: 0;
}

.toc-list .toc-h3 {
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.toc-list .toc-h3::before {
    content: "•";
}

/* ================================
   BUTTONS
   ================================ */

.btn, .wp-block-button__link {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(124, 179, 66, 0.4);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--dark-text);
    border-color: var(--dark-text);
}

.btn-secondary:hover {
    background: var(--dark-text);
    color: white;
    transform: translateY(-3px);
}

/* ================================
   ARTICLE CARDS
   ================================ */

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin: 3rem 0;
}

.article-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.article-content {
    padding: 2rem;
}

.article-category {
    display: inline-block;
    background: var(--soft-green);
    color: var(--dark-text);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.article-title a {
    color: var(--dark-text);
}

.article-excerpt {
    color: #636e72;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #636e72;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more:hover {
    gap: 1rem;
}

/* ================================
   NEWSLETTER SECTION
   ================================ */

.newsletter-section {
    background: var(--primary-green);
    padding: 5rem 3rem;
    border-radius: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 6rem auto;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-title {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.newsletter-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.95);
}

.newsletter-button {
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-green);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s ease;
}

.newsletter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.site-footer {
    background: #2d3436;
    color: white;
    padding: 4rem 3rem 2rem;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #b2bec3;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    color: white;
}

.footer-widget h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.8rem;
}

.footer-widget a {
    color: #b2bec3;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #b2bec3;
    max-width: 1400px;
    margin: 0 auto;
}

/* ================================
   WORDPRESS SPECIFIC
   ================================ */

.wp-block-image {
    margin: 2rem 0;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-green);
    padding-left: 2rem;
    font-style: italic;
    margin: 2rem 0;
}

.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

.aligncenter {
    display: block;
    margin: 2rem auto;
}

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

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 4rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 10px;
    color: var(--dark-text);
    font-weight: 600;
}

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

.pagination a:hover {
    background: var(--primary-green);
    color: white;
}

/* ================================
   COMMENTS
   ================================ */

.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid var(--light-gray);
}

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

.comment {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.comment-respond {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
}

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

@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .main-navigation {
        display: none;
    }

    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1.5rem;
    }
    
    /* Breadcrumbs mobile */
    .breadcrumbs {
        font-size: 0.85rem;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0.75rem 0;
    }
    
    /* TOC mobile */
    .table-of-contents {
        padding: 1.5rem;
        margin: 1.5rem -1.5rem 2rem;
        border-radius: 0;
    }
    
    /* Article meta mobile */
    .article-meta-extended {
        gap: 1rem;
        font-size: 0.85rem;
    }
}
