/*
Theme Name: ENOI Theme
Description: Thème WordPress pour ENOI et Patrick Chan Hoi Sing
Version: 2.0
Author: ENOI Team
*/

/* =======================================================================
   CLEAN DESIGN SYSTEM - INSPIRED BY FLOS WEBSITE
   ENOI/Patrick Chan Hoi Sing WordPress Theme
   ======================================================================= */

/* =======================================================================
   RESET & BASE STYLES
   ======================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =======================================================================
   COLOR PALETTE & VARIABLES
   ======================================================================= */

:root {
    /* Primary Colors - ENOI Brand */
    --primary-purple: #9D7EDB;
    --primary-purple-dark: #8B6BC8;
    --secondary-green: #7DBF7B;
    --secondary-green-dark: #6BA869;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --medium-gray: #6C757D;
    --dark-gray: #495057;
    --black: #2C3E50;
    
    /* Background Colors */
    --bg-light-blue: #E3F2FD;
    --bg-light-green: #E8F5E8;
    --bg-light-beige: #F5F5DC;
    --bg-dark-green: #2E7D32;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* =======================================================================
   TYPOGRAPHY
   ======================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-purple-dark);
}

/* =======================================================================
   LAYOUT & CONTAINER
   ======================================================================= */

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* =======================================================================
   CLEAN HEADER
   ======================================================================= */

.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

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

.site-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
}

.site-title a {
    color: var(--primary-purple);
}

.site-description {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-left: var(--spacing-sm);
}

/* Homepage Logos (page d'accueil uniquement) */
.homepage-logos {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.homepage-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.homepage-logo img {
    max-height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.homepage-logo:hover img {
    transform: scale(1.05);
}

.enoi-logo img {
    max-height: 50px;
}

.patrick-logo img {
    max-height: 55px;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Logos dans la navigation (pages spécifiques) */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo img {
    max-height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.enoi-nav-logo img {
    max-height: 35px;
}

.patrick-nav-logo img {
    max-height: 38px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    color: var(--dark-gray);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: background-color 0.2s ease;
}

.nav-menu a:hover {
    background: var(--bg-light-green);
    color: var(--secondary-green-dark);
}

/* =======================================================================
   CLEAN BUTTONS
   ======================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 44px;
}

.btn:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Primary Button */
.btn-primary {
    background: var(--primary-purple);
    color: var(--white);
    border: 2px solid var(--primary-purple);
}

.btn-primary:hover {
    background: var(--primary-purple-dark);
    border-color: var(--primary-purple-dark);
}

/* Secondary Button */
.btn-secondary {
    background: var(--secondary-green);
    color: var(--white);
    border: 2px solid var(--secondary-green);
}

.btn-secondary:hover {
    background: var(--secondary-green-dark);
    border-color: var(--secondary-green-dark);
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
    background: var(--primary-purple);
    color: var(--white);
}

/* Button Sizes */
.btn-small {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    min-height: 36px;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 1.125rem;
    min-height: 52px;
}

/* =======================================================================
   CLEAN CARDS
   ======================================================================= */

.card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: var(--primary-purple);
}

.card-featured {
    border: 2px solid var(--primary-purple);
    background: var(--off-white);
}

.card-testimonial {
    border-left: 4px solid var(--secondary-green);
    background: var(--white);
}

.card-service {
    background: var(--bg-light-green);
    border: 1px solid var(--secondary-green);
}

.card-formation {
    background: var(--bg-light-blue);
    border: 1px solid var(--primary-purple);
}

/* =======================================================================
   CLEAN SECTIONS
   ======================================================================= */

.section {
    padding: var(--spacing-xxl) 0;
}

.section-light {
    background: var(--white);
}

.section-light-blue {
    background: var(--bg-light-blue);
}

.section-light-green {
    background: var(--bg-light-green);
}

.section-light-beige {
    background: var(--bg-light-beige);
}

.section-dark-green {
    background: var(--bg-dark-green);
    color: var(--white);
}

.section-dark-green h1,
.section-dark-green h2,
.section-dark-green h3 {
    color: var(--white);
}

/* =======================================================================
   CLEAN GRID SYSTEM
   ======================================================================= */

.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* =======================================================================
   HERO SECTION
   ======================================================================= */

.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background: var(--white);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-slide-content {
    position: relative;
    z-index: 3;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide-content {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 var(--spacing-md);
}

.hero-slide-text {
    flex: 1;
    max-width: 50%;
    padding-right: var(--spacing-xl);
}

.hero-slide-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--dark-gray);
    line-height: 1.2;
}

.hero-slide-text h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-purple);
    line-height: 1.3;
}

.hero-slide-text p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
    color: var(--medium-gray);
    line-height: 1.6;
}

.hero-slide-button {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--primary-purple);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.hero-slide-button:hover {
    background: var(--primary-purple-dark);
    color: var(--white);
}

.hero-slide-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.hero-slide-image img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
}

.hero-slider-nav {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-slider-dot.active {
    background: var(--primary-purple);
}

.hero-slider-dot:hover {
    background: var(--primary-purple-dark);
}

/* =======================================================================
   FEATURE CARDS
   ======================================================================= */

.feature {
    text-align: center;
    padding: var(--spacing-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--white);
    font-size: 2rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--dark-gray);
}

.feature p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* =======================================================================
   TESTIMONIALS
   ======================================================================= */

.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border-left: 4px solid var(--secondary-green);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    font-size: 3rem;
    color: var(--secondary-green);
    font-family: serif;
    opacity: 0.3;
}

.testimonial-content {
    margin-left: var(--spacing-md);
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.testimonial-info h4 {
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
}

.testimonial-info p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: 2px;
    margin-bottom: var(--spacing-sm);
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1rem;
}

/* =======================================================================
   PRODUCT/SERVICE CARDS
   ======================================================================= */

.product {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: border-color 0.2s ease;
}

.product:hover {
    border-color: var(--primary-purple);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-light-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 3rem;
}

.product-content {
    padding: var(--spacing-lg);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.product-description {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.product-features i {
    color: var(--secondary-green);
    font-size: 0.8rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: var(--spacing-md);
}

/* =======================================================================
   CTA SECTIONS
   ======================================================================= */

.cta {
    background: var(--bg-dark-green);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.cta p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta .btn {
    background: var(--white);
    color: var(--bg-dark-green);
    border: 2px solid var(--white);
    font-size: 1.125rem;
    padding: var(--spacing-md) var(--spacing-xl);
}

.cta .btn:hover {
    background: transparent;
    color: var(--white);
}

/* =======================================================================
   CLEAN FOOTER
   ======================================================================= */

.site-footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* =======================================================================
   RESPONSIVE DESIGN
   ======================================================================= */

@media (max-width: 768px) {
    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-slide-content {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-slide-text {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-slide-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide-text h2 {
        font-size: 1.5rem;
    }
    
    .hero-slide-text p {
        font-size: 1rem;
    }
    
    .hero-slide-image {
        max-width: 100%;
    }
    
    .hero-slide-image img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Navigation logos responsive */
    .nav-logo img {
        max-height: 30px;
    }
    
    .enoi-nav-logo img {
        max-height: 28px;
    }
    
    .patrick-nav-logo img {
        max-height: 30px;
    }
    
    /* Homepage logos responsive */
    .homepage-logos {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .homepage-logo img {
        max-height: 45px;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-slide-text h1 {
        font-size: 2rem;
    }
    
    .hero-slide-text h2 {
        font-size: 1.25rem;
    }
    
    .hero-slide-text p {
        font-size: 0.9rem;
    }
    
    .hero-slide-image img {
        max-width: 150px;
        max-height: 150px;
    }
    
    .cta h2 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* =======================================================================
   ACCESSIBILITY
   ======================================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--black);
    }
    
    .btn {
        border: 2px solid var(--black);
    }
}

/* =======================================================================
   PRINT STYLES
   ======================================================================= */

@media print {
    .card,
    .btn,
    .product {
        background: var(--white) !important;
        color: var(--black) !important;
        border: 1px solid var(--black) !important;
    }
    
    .hero,
    .cta {
        background: var(--white) !important;
        color: var(--black) !important;
    }
}
