/*
Theme Name: Horizane Blog
Theme URI: https://example.com
Author: Votre Nom
Author URI: https://example.com
Description: Thème de blog moderne inspiré du design Horizane - épuré, élégant et responsive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horizane-blog
Tags: blog, modern, clean, responsive, two-columns
*/

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #e67e50;
}

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

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    position: relative;
}

.header-left {
    flex: 1;
    min-width: 0;
}

.site-branding {
    text-align: center;
    flex: 0 0 auto;
    max-width: 400px;
}

.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

/* Force la taille du logo même si l'image est grande */
.custom-logo-link img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title a {
    color: #000;
}

.site-title a:hover {
    color: #e67e50;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

/* Navigation */
.header-navigation {
    background: #f8f8f8;
    border-top: 1px solid #e5e5e5;
}

/* Cacher le menu header sur desktop */
.menu-header {
    display: none;
}

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

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 15px 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: #e67e50;
}

/* Menu Toggle (Hamburger) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 10001;
}

.menu-toggle span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: #333 !important;
    margin: 6px 0 !important;
    transition: 0.4s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Overlay pour fermer le menu - désactivé */
.menu-overlay {
    display: none !important;
}

/* Search Bar */
.search-form {
    display: flex;
    align-items: center;
}

.search-form input[type="search"] {
    padding: 8px 35px 8px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    width: 200px;
    font-size: 13px;
    background: #f9f9f9;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #e67e50;
    background: #fff;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: -30px;
    padding: 0;
    display: flex;
    align-items: center;
}

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

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

/* Posts */
.post {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

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

.post-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
}

.post-thumbnail img {
    width: 100%;
    transition: transform 0.3s ease;
}

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

.entry-header {
    margin-bottom: 20px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.entry-title a {
    color: #000;
}

.entry-title a:hover {
    color: #e67e50;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.entry-meta a {
    color: #666;
}

.entry-meta a:hover {
    color: #e67e50;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-content p {
    margin-bottom: 20px;
}

.more-link {
    display: inline-block;
    padding: 10px 25px;
    background: #e67e50;
    color: #fff !important;
    border-radius: 25px;
    font-weight: 500;
    margin-top: 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.more-link:hover {
    background: #d66d42;
    color: #fff !important;
}

/* Single Post */
.single .entry-header {
    text-align: center;
    margin-bottom: 30px;
}

.single .entry-title {
    font-size: 42px;
    margin-bottom: 20px;
}

.single .post-thumbnail {
    margin-bottom: 40px;
}

.single .entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.single .entry-content h2 {
    font-size: 32px;
    margin: 40px 0 20px;
    font-weight: 700;
}

.single .entry-content h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 600;
}

/* Sidebar */
.widget-area {
    position: sticky;
    top: 100px;
}

.widget {
    background: #f8f8f8;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

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

.widget a {
    color: #333;
}

.widget a:hover {
    color: #e67e50;
}

/* Categories Widget */
.widget_categories ul {
    list-style: none;
}

/* Footer */
.site-footer {
    background: #2c2c2c;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.site-info {
    font-size: 14px;
    color: #aaa;
}

.site-info a {
    color: #fff;
}

.site-info a:hover {
    color: #e67e50;
}

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

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #f8f8f8;
    border-radius: 5px;
    color: #333;
}

.pagination a:hover,
.pagination .current {
    background: #e67e50;
    color: #fff;
}

/* Comments */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e5e5;
}

.comments-title {
    font-size: 28px;
    margin-bottom: 30px;
}

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

.comment {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 10px;
}

.comment-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.comment-content p {
    margin-bottom: 10px;
}

.comment-reply-link {
    color: #e67e50;
    font-size: 14px;
    font-weight: 500;
}

@media (min-width: 969px) {
    /* Sur desktop, cacher complètement le menu mobile */
    .menu-toggle {
        display: none !important;
    }
    
    .menu-header {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .site-content {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        position: static;
    }
    
    .header-top {
        display: flex;
        flex-direction: row;
        gap: 15px;
        position: relative;
        padding: 15px;
        align-items: center;
    }
    
    .header-left {
        display: flex;
        order: 1;
        flex-shrink: 0;
        align-items: center;
    }
    
    .site-branding {
        order: 2;
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .site-branding .custom-logo {
        max-height: 35px !important;
        width: auto;
        display: block;
    }
    
    .site-title {
        font-size: 18px;
    }
    
    .header-right {
        order: 3;
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }
    
    /* Bouton hamburger - aligné avec le logo */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 30px;
        height: 24px;
        position: relative;
        z-index: 10005;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }
    
    .menu-toggle span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background: #000 !important;
        transition: all 0.3s ease;
        border-radius: 2px;
        opacity: 1 !important;
        margin: 0 !important;
    }
    
    /* Quand le menu est ouvert, la croix se fixe en haut à gauche */
    .menu-toggle.active {
        position: fixed;
        left: 20px;
        top: 20px;
        background: rgba(0, 0, 0, 0.9);
        width: 45px;
        height: 45px;
        border-radius: 4px;
        padding: 0;
        justify-content: center;
    }
    
    .menu-toggle.active span {
        position: absolute;
        background: #fff;
        width: 25px;
        height: 3px;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
    
    /* Menu slide depuis la gauche */
    .main-navigation ul {
        display: none;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        z-index: 10003;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    }
    
    .main-navigation.toggled ul {
        display: flex;
        left: 0;
    }
    
    /* Header noir "MENU" / "FERMER" - complètement caché */
    .menu-header {
        display: none !important;
    }
    
    .main-navigation.toggled .menu-header {
        display: none !important;
    }
    
    /* Ajuster le padding du menu - pas besoin d'espace pour le header */
    .main-navigation.toggled ul {
        padding-top: 0;
    }
    
    .menu-header-title {
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 3px;
    }
    
    .menu-header-title::before {
        content: "☰ ";
        margin-right: 10px;
        font-size: 16px;
    }
    
    .menu-header-close {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }
    
    .menu-header-close:hover {
        opacity: 0.7;
    }
    
    .menu-header-close::before {
        content: "‹ ";
        margin-right: 5px;
        font-size: 20px;
        font-weight: 300;
    }
    
    /* Items du menu */
    .main-navigation li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #e5e5e5;
        opacity: 0;
        transform: translateX(-30px);
    }
    
    .main-navigation.toggled li {
        animation: slideInMenuLeft 0.3s ease forwards;
    }
    
    .main-navigation.toggled li:nth-child(1) { animation-delay: 0.1s; }
    .main-navigation.toggled li:nth-child(2) { animation-delay: 0.15s; }
    .main-navigation.toggled li:nth-child(3) { animation-delay: 0.2s; }
    .main-navigation.toggled li:nth-child(4) { animation-delay: 0.25s; }
    .main-navigation.toggled li:nth-child(5) { animation-delay: 0.3s; }
    .main-navigation.toggled li:nth-child(6) { animation-delay: 0.35s; }
    
    @keyframes slideInMenuLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    .main-navigation a {
        padding: 16px 20px;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #333;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Plus d'icône pour les items */
    .main-navigation a::after {
        content: "+";
        font-size: 20px;
        font-weight: 300;
        color: #999;
    }
    
    .search-form input[type="search"] {
        width: 120px;
        padding: 8px 30px 8px 12px;
        font-size: 12px;
    }
    
    .search-form button {
        margin-left: -28px;
    }
    
    .search-form button svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 600px) {
    .entry-title {
        font-size: 24px;
    }
    
    .single .entry-title {
        font-size: 28px;
    }
    
    .menu-toggle {
        top: 15px;
        right: 15px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    .search-form input[type="search"] {
        font-size: 13px;
        padding: 8px 12px;
    }
}
