/**
 * CSS principal du thème Ataraxia Custom
 *
 * @package Ataraxia_Custom
 * @author Ataraxia Lab
 * @version 1.0.0
 * @last_updated 2026-03-29 10:00:00
 */

/* Variables CSS (utilisées par le customizer) */
:root {
    --primary-color: #007cba;
    --container-width: 1200px;
}

/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

.site-branding {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-title {
    font-size: 1.5rem;
    margin: 0;
}

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

/* Menu toggle - caché par défaut, apparaît en mobile */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #333;
    left: 0;
}

.hamburger:before {
    top: -8px;
}

.hamburger:after {
    bottom: -8px;
}

/* Navigation */
.main-navigation {
    margin-top: 1rem;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

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

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

/* Content */
.site-main {
    padding: 2rem 0;
    min-height: 500px;
}

/* Sidebar */
.widget-area {
    margin-top: 2rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: #f5f5f5;
    padding: 2rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
}

.site-info {
    font-size: 0.9rem;
    color: #666;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

/* Articles et pages */
.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

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

.entry-content {
    margin-bottom: 2rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination,
.posts-navigation {
    margin: 2rem 0;
    text-align: center;
}

.page-links {
    margin-top: 1rem;
}

/* Commentaires */
.comments-area {
    margin-top: 3rem;
}

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

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #005a87;
    transform: translateY(-3px);
}

/* Classes utilitaires */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.has-sidebar .content-area {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.has-sidebar .main-content {
    flex: 2;
    min-width: 0;
}

.has-sidebar .widget-area {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Classes supplémentaires pour templates (erreur n°8)
   ============================================ */

/* Conteneur fluid (pleine largeur) */
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Conteneur pleine largeur pour template full-width */
.full-width-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.full-width-container .content-area {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.full-width-container .main-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Layout avec sidebar à gauche */
.left-sidebar-container .content-area.with-left-sidebar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
}

.left-sidebar {
    flex: 1;
    min-width: 250px;
    order: 1;
}

.left-sidebar-container .main-content {
    flex: 2;
    min-width: 0;
    order: 2;
}

/* Section hero pour la page d'accueil personnalisée */
.custom-home-container .hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 2rem;
    max-width: 800px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-excerpt {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Conteneur WooCommerce */
.woocommerce-content {
    width: 100%;
}

/* Conteneur personnalisé pour la page d'accueil */
.custom-home-container {
    padding: 0;
    max-width: 100%;
}

.custom-home-container .content-area {
    padding: 0;
}

.custom-home-container .main-content {
    padding: 0;
}

.custom-home-container .entry-content {
    padding: 2rem;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
}