/*
Theme Name: Leonys
Theme URI: 
Author: Julien Louis
Author URI: 
Description: A premium, high-performance WordPress theme for Elementor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leonys
Tags: elementor, professional, clean, grid-layout, accessibility-ready, custom-menu, anti-spam, translation-ready, performance-optimized

Leonys - FinOps & GreenOps 
*/

/**
 * 1. CSS CUSTOM PROPERTIES (Design System)
 */
:root {
    /* Colors */
    --primary: #5B2EDF;
    --secondary: #FD5A32;
    --accent: #F6F5EF;
    --bg: #FFFFFF;
    --text: #0C0C0B;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    
    /* Typography */
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Layout */
    --container-max: 1200px;
    --gutter: 1.5rem;
}

/**
 * 2. CSS RESET / NORMALIZE
 */
html { box-sizing: border-box; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body { 
    margin: 0; 
    padding: 0; 
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
    background-color: var(--bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/**
 * 3. ACCESSIBILITY & UX
 */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    left: -9999px;
    position: absolute;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 999999;
}

.skip-link:focus {
    background-color: var(--white);
    border: 3px solid var(--primary);
    clip: auto !important;
    clip-path: none;
    color: var(--primary);
    display: block;
    font-size: 1rem;
    font-weight: 700;
    height: auto;
    left: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    top: 1rem;
    width: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/**
 * 4. GRID SYSTEM & UTILITIES
 */
.container { width: 90%; max-width: var(--container-max); margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
.col { flex: 1; padding: 0 calc(var(--gutter) * 0.5); min-width: 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.p-4 { padding: 4rem; }

/**
 * 5. ANTI-SPAM
 */
.hp-field {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none;
}

/**
 * 6. PRINT STYLES
 */
@media print {
    .no-print, nav, footer, #comments { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
    a:after { content: " (" attr(href) ")"; }
    h1, h2, h3 { page-break-after: avoid; }
}
