/* 
Theme Name: mataucarre
Description: Un thème WordPress moderne et personnalisable
Version: 1.0.0
Author: mataucarre
*/

/* Styles de base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Header et navigation */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
}

/* Formulaire de recherche dans le header */
.header-search {
    display: flex;
    align-items: center;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.header-search .search-form:focus-within {
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
    background: white;
}

.header-search .search-field {
    border: none;
    background: transparent;
    padding: 0;
    margin-right: 8px;
    font-size: 14px;
    color: #333;
    width: 200px;
    outline: none;
}

.header-search .search-field::placeholder {
    color: #6c757d;
}

.header-search .search-submit {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .search-submit:hover {
    color: #f58220;
}

.header-search .search-submit svg {
    width: 18px;
    height: 18px;
}

.main-navigation {
    background-color: #f58220;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    text-decoration: none;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-menu li a:hover {
    background-color: rgba(255,255,255,0.2);
}

/* Header */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

.site-title {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
}

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

.site-description {
    margin: 0;
    color: #666;
    font-size: 1em;
    font-style: italic;
}

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

/* Layout du contenu */
.content-area {
    float: left;
    width: 70%;
    padding-right: 30px;
}

.site-main {
    width: 100%;
}

/* Sidebar */
.widget-area {
    float: right;
    width: 30%;
}

.widget-area.sidebar-disabled {
    display: none;
}

/* Layout sans sidebar */
.content-area.content-full-width {
    width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}

.site-main.content-full-width {
    width: 100% !important;
    margin-right: 0 !important;
}

/* Clearfix pour le layout */
.site-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Liens */
a {
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover, a:focus {
    text-decoration: underline;
}

/* Articles */
.entry-header {
    margin-bottom: 10px;
}

.entry-title {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    line-height: 1.3;
}

.entry-title a {
    color: inherit;
}

.entry-title a:hover {
    color: inherit;
}

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

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

/* Catégories */
.entry-categories {
    margin: 5px 0;
}

.category {
    display: inline-block;
    padding: 4px 12px;
    margin: 0 5px 5px 0;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category a {
    color: inherit;
    text-decoration: none;
}

.category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contenu des articles */
.entry-content {
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f58220;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #d64040;
    color: white;
    text-decoration: none;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* États des catégories */
.category.hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* Amélioration du menu mobile */
.nav-menu.active {
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 40px 0;
    font-size: 1.1em;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a {
    background-color: #f5f5f5;
    color: #333;
}

.pagination a:hover {
    background-color: #f58220;
    color: white;
}

.pagination .current {
    background-color: #f58220;
    color: white;
    font-weight: bold;
}

/* Footer */
.site-footer {
    clear: both;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area,
    .widget-area {
        float: none;
        width: 100%;
        padding-right: 0;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
    }

    /* Formulaire de recherche mobile */
    .header-search .search-form {
        width: 100%;
        max-width: 300px;
    }

    .header-search .search-field {
        width: 100%;
        flex: 1;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 10px 0;
        width: 100%;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px;
        border-radius: 0;
    }
}

/* Images des articles */
.post-thumbnail {
    margin: 20px 0;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Section commentaires */
.comments-section {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.comments-title {
    margin: 0 0 25px 0;
    font-size: 1.5em;
    color: #333;
    border-bottom: 2px solid #f58220;
    padding-bottom: 10px;
}

/* Navigation des articles */
.post-navigation {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

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

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 600;
    color: #333;
}

.nav-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover .nav-title {
    color: #f58220;
}

/* Styles des commentaires */
/* Formulaire de commentaire - styles spécifiques aux commentaires WordPress */
.comments-section .comment-form {
    margin-top: 20px;
}

.comments-section .comment-form p {
    margin-bottom: 20px;
}

.comments-section .comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.comments-section .comment-form input[type="text"],
.comments-section .comment-form input[type="email"],
.comments-section .comment-form input[type="url"],
.comments-section .comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.comments-section .comment-form input[type="text"]:focus,
.comments-section .comment-form input[type="email"]:focus,
.comments-section .comment-form input[type="url"]:focus,
.comments-section .comment-form textarea:focus {
    outline: none;
    border-color: #f58220;
    box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.1);
}

.comments-section .comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Bouton de soumission du commentaire */
.comments-section .comment-form input[type="submit"] {
    background: linear-gradient(135deg, #f58220 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comments-section .comment-form input[type="submit"]:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 130, 32, 0.4);
}

.comments-section .comment-form input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(245, 130, 32, 0.3);
}

/* Liste des commentaires */
.comments-section .comment-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Styles spécifiques aux commentaires du site - ne s'appliquent qu'aux commentaires WordPress */
.comments-section .comment {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #f58220;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.comments-section .comment-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.comments-section .comment-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
}

.comments-section .comment-content {
    line-height: 1.6;
    color: #444;
}

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

.comments-section .comment-content p:last-child {
    margin-bottom: 0;
}

/* Nombre de commentaires */
.comments-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9em;
    color: #666;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

/* Styles pour la page de recherche */
.search-results {
    margin-top: 30px;
}

.search-result {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #f58220;
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-result .entry-title {
    margin-bottom: 15px;
}

.search-result .entry-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.search-result .entry-title a:hover {
    color: #f58220;
}

.search-result .entry-meta {
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.search-result .entry-summary {
    line-height: 1.6;
    color: #555;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.no-results h2 {
    color: #333;
    margin-bottom: 15px;
}

.no-results p {
    color: #666;
    margin-bottom: 25px;
}

.search-form-container {
    max-width: 400px;
    margin: 0 auto;
}

/* Réinitialisation des styles pour les éléments "comment" dans le contenu des articles */
.entry-content .comment,
.entry-content .comment-author,
.entry-content .comment-meta,
.entry-content .comment-content,
.entry-content .comment-form {
    all: unset;
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    line-height: inherit;
}

.comments-count:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.comments-icon {
    font-size: 1.1em;
    opacity: 0.8;
}

/* Bouton remonter en haut de page */
.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f58220;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(245, 130, 32, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    opacity: 1;
    transform: translateY(0);
}

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

.scroll-to-top:not(.visible) {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.scroll-to-top:hover {
    background: #e67300;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 130, 32, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* Responsive pour le bouton */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 40px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }
}

/* Debug: s'assurer que le bouton est visible */
.scroll-to-top {
    background: #f58220 !important;
    border: 2px solid #fff !important;
}
