/*
Theme Name: FIETTI Display Theme
Theme URI: https://fietti-conseil.fr
Description: A minimal WordPress theme specifically designed to display the FIETTI CONSEIL & AUDIT plugin content. Clean, professional layout with no distractions.
Author: FIETTI CONSEIL & AUDIT
Version: 1.0.0
License: GPL v2 or later
Text Domain: fietti-theme
Tags: business, one-column, responsive, custom-header, custom-menu, featured-images, threaded-comments, translation-ready

This theme is specifically created to showcase the FIETTI plugin beautifully.
*/

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

html {
    scroll-behavior: smooth;
}

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

/* Remove default WordPress styles that might interfere */
.wp-block-group__inner-container {
    max-width: none !important;
}

.wp-site-blocks {
    padding: 0 !important;
}

/* Main Container */
.fietti-theme-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Header Styles (minimal WordPress header) */
.fietti-theme-header {
    position: relative;
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Hide WordPress admin bar adjustments */
body.admin-bar .fietti-theme-container {
    margin-top: 0;
}

/* Main Content Area */
.fietti-theme-main {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.fietti-theme-content {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Page Content */
.fietti-theme-page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.fietti-theme-page .entry-content {
    width: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

/* Remove default WordPress spacing */
.fietti-theme-page .entry-content > * {
    margin: 0;
    padding: 0;
}

/* Hide page title by default (since plugin has its own headers) */
.fietti-theme-page .entry-header {
    display: none;
}

/* Show page title only if explicitly enabled */
.fietti-theme-show-title .entry-header {
    display: block;
    text-align: center;
    padding: 2rem 0;
    background: #f8f9fa;
}

.fietti-theme-show-title .entry-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #992539;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Footer Styles (minimal) */
.fietti-theme-footer {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* WordPress Elements - Clean up */
.wp-block-group,
.wp-block-columns,
.wp-block-column {
    margin: 0 !important;
    padding: 0 !important;
}

/* Comments Section (hidden by default) */
.fietti-theme-comments {
    display: none;
}

.fietti-theme-show-comments .fietti-theme-comments {
    display: block;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Navigation Menus (minimal styling) */
.fietti-theme-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0.5rem 0;
    display: none; /* Hidden by default */
}

.fietti-theme-show-nav .fietti-theme-nav {
    display: block;
}

.fietti-theme-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.fietti-theme-nav li {
    margin: 0;
}

.fietti-theme-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.fietti-theme-nav a:hover {
    background: #992539;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fietti-theme-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .fietti-theme-show-title .entry-title {
        font-size: 2rem;
    }
}

/* WordPress Admin Bar Compatibility */
@media screen and (max-width: 782px) {
    body.admin-bar .fietti-theme-nav {
        top: 46px;
    }
}

@media screen and (min-width: 783px) {
    body.admin-bar .fietti-theme-nav {
        top: 32px;
    }
}

/* Utility Classes */
.fietti-theme-fullwidth {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.fietti-theme-hide {
    display: none !important;
}

.fietti-theme-show {
    display: block !important;
}

/* WordPress Block Editor Compatibility */
.wp-block {
    max-width: none !important;
}

.wp-block[data-align="full"] {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Search Form Styling (if needed) */
.fietti-theme-search {
    max-width: 400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.fietti-theme-search .search-form {
    display: flex;
    gap: 0.5rem;
}

.fietti-theme-search input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.fietti-theme-search button {
    background: #992539;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.fietti-theme-search button:hover {
    background: #7a1d2c;
}

/* Print Styles */
@media print {
    .fietti-theme-nav,
    .fietti-theme-comments,
    .wp-admin-bar {
        display: none !important;
    }
    
    .fietti-theme-container {
        margin: 0 !important;
        padding: 0 !important;
    }
}
