/*!
Theme Name: Forever BE Premium
Theme URI: https://foreverbienetre.com
Author: Forever Bien Etre Team
Author URI: https://foreverbienetre.com
Description: Thème WordPress premium pour Forever Bien Etre - Distributeur officiel Forever Living. Catalogue produits naturels à l'Aloe Vera, blog bien-être et opportunité d'affaire FBO. Design moderne, optimisé SEO et haute performance.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: forever-be
Tags: e-commerce, blog, business, health, wellness, aloe-vera, responsive, customizer, seo-ready, translation-ready
*/

/**
 * Table of Contents
 *
 * 1. CSS Variables & Custom Properties
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layouts
 * 5. Components
 * 6. Utilities
 * 7. WordPress Core Styles
 * 8. Responsive
 */

/* ==========================================================================
   1. CSS VARIABLES & CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Brand Colors - Unified */
    --brand-green: #006241;
    --brand-green-dark: #004f34;
    --brand-green-light: #059669;
    --brand-gold: #fbbf24;        /* Unifié sur Tailwind amber-400 */
    --brand-gold-dark: #f59e0b;   /* amber-500 */
    --brand-gold-light: #fcd34d;  /* amber-300 */
    --brand-beige: #f5f5dc;
    --brand-white: #ffffff;

    /* Aliases for compatibility */
    --color-gold: #fbbf24;
    --color-green-dark: #004f34;

    /* UI Colors - WCAG AA Compliant */
    --color-accent: #2563eb;
    --color-accent-dark: #1d4ed8;
    --color-text-dark: #0f172a;
    --color-text-medium: #374151; /* Improved from #475569 - WCAG AA on white */
    --color-text-light: #4b5563; /* Improved from #64748b - WCAG AA on white (4.63:1 ratio) */
    --color-header-bg: #ffffff;
    --color-footer-bg: #f8fafc;
    --color-border: #e5e7eb;
    --color-mobile-active-bg: #eff6ff;

    /* Typography */
    --font-family-sans: 'Inter', "Helvetica Neue", Arial, sans-serif;
    --font-family-serif: Georgia, serif;
    --font-family-script: 'Dancing Script', cursive;
    --font-size-nav-desktop: 15px;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --letter-spacing-nav: 0.3px;

    /* Sizing & Spacing */
    --header-height-desktop: 75px;
    --header-height-mobile: 60px;
    --nav-link-spacing: 40px;
    --container-max-width: 1280px;

    /* Transitions */
    --transition-duration: 0.3s;
    --transition-easing: cubic-bezier(0.19, 1, 0.22, 1);
    /* easeOutExpo */

    /* Shadows & Borders */
    --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.08);
    --focus-ring-width: 2px;
    --border-radius-subtle: 12px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-medium);
    background-color: var(--brand-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    padding-top: var(--header-height-desktop);
}

@media (max-width: 1023px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: var(--font-weight-bold);
    margin-top: 0;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    line-height: 1.6;
    margin-top: 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-duration) var(--transition-easing);
}

a:hover,
a:focus {
    color: var(--color-accent-dark);
}

/* ==========================================================================
   4. LAYOUTS
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus States */
*:focus-visible {
    outline: var(--focus-ring-width) solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Header Shadow */
.header-shadow {
    box-shadow: var(--header-shadow);
}

/* Fade In Up Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    transition: opacity 0.8s var(--transition-easing),
        transform 0.8s var(--transition-easing);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   7. WORDPRESS CORE STYLES
   ========================================================================== */

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.5rem;
}

.sticky {
    /* Styles for sticky posts */
}

.bypostauthor {
    /* Styles for post author comments */
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* TailwindCSS will handle most responsive utilities */

/* ==========================================================================
   9. CUSTOM UTILITIES & MEGA MENU
   ========================================================================== */

/* Brand Colors */
.text-brand-green {
    color: var(--brand-green) !important;
}

.text-brand-gold {
    color: var(--brand-gold) !important;
}

.bg-brand-green {
    background-color: var(--brand-green) !important;
}

.bg-green-50 {
    background-color: #f0fdf4 !important;
}

/* Hover States */
.hover\:text-brand-gold:hover {
    color: var(--brand-gold) !important;
}

.hover\:text-brand-green:hover {
    color: var(--brand-green) !important;
}

.hover\:bg-gray-50:hover {
    background-color: #f9fafb !important;
}

.hover\:pl-4:hover {
    padding-left: 1rem !important;
}

/* Mega Menu Transitions & Logic */
.group:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover\:visible {
    visibility: visible !important;
}

.group:hover .group-hover\:translate-y-0 {
    transform: translateY(0) !important;
}

/* Active States */
.current-menu-item>a,
.current-menu-ancestor>a {
    color: var(--brand-green) !important;
    font-weight: 700 !important;
}

/* Sub-menu Active State (Premium Slide Effect) */
.sub-menu .current-menu-item>a {
    background-color: var(--brand-beige);
    padding-left: 1rem;
    border-left: 3px solid var(--brand-green);
}