/*
Theme Name: PSS Connect
Theme URI: https://prochesservices.com/pss-connect
Author: Proches Services
Author URI: https://prochesservices.com
Description: Thème WordPress pour PSS Connect - Plateforme de solutions WhatsApp Business. Compatible Elementor.
Version: 1.0.0
Requires at least: 5.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: pss-connect
Tags: elementor, business, whatsapp, saas, custom-colors, custom-logo

PSS Connect - Solutions WhatsApp pour Entreprises
Développé par Proches Services - Dakar, Sénégal
*/

:root {
    /* Couleurs PSS Jaune */
    --pss-yellow: #F5A623;
    --pss-yellow-light: #FEF3C7;
    --pss-yellow-dark: #D97706;
    
    /* Couleurs WhatsApp Vert */
    --pss-green: #25D366;
    --pss-green-light: #D1FAE5;
    --pss-green-dark: #128C7E;
    --pss-green-darker: #075E54;
    
    /* Neutres */
    --pss-white: #FFFFFF;
    --pss-gray-50: #F9FAFB;
    --pss-gray-100: #F3F4F6;
    --pss-gray-200: #E5E7EB;
    --pss-gray-300: #D1D5DB;
    --pss-gray-400: #9CA3AF;
    --pss-gray-500: #6B7280;
    --pss-gray-600: #4B5563;
    --pss-gray-700: #374151;
    --pss-gray-800: #1F2937;
    --pss-gray-900: #111827;
    
    /* Typographie */
    --pss-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Espacements */
    --pss-radius: 8px;
    --pss-radius-lg: 12px;
    --pss-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --pss-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--pss-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pss-gray-800);
    background: var(--pss-white);
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--pss-gray-900);
    margin: 0 0 1rem;
}

a { color: var(--pss-green-dark); text-decoration: none; }
a:hover { color: var(--pss-green-darker); }

/* Container */
.pss-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.pss-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--pss-white);
    box-shadow: var(--pss-shadow);
}

.pss-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pss-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--pss-gray-900);
}

.pss-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--pss-yellow), var(--pss-green));
    border-radius: var(--pss-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.pss-logo-text span:first-child {
    display: block;
    font-size: 1.125rem;
    font-weight: 800;
}

.pss-logo-text span:last-child {
    display: block;
    font-size: 0.75rem;
    color: var(--pss-gray-500);
}

/* Navigation */
.pss-nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pss-nav-menu a {
    font-weight: 500;
    color: var(--pss-gray-600);
    padding: 0.5rem 0;
    position: relative;
}

.pss-nav-menu a:hover { color: var(--pss-gray-900); }

.pss-nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pss-yellow), var(--pss-green));
    transition: width 0.3s;
}

.pss-nav-menu a:hover::after { width: 100%; }

/* Boutons */
.pss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--pss-font);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--pss-radius);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.pss-btn-primary {
    background: linear-gradient(135deg, var(--pss-yellow), var(--pss-yellow-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(245,166,35,0.4);
}

.pss-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.5);
    color: white;
}

.pss-btn-whatsapp {
    background: linear-gradient(135deg, var(--pss-green), var(--pss-green-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}

.pss-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.5);
    color: white;
}

.pss-btn-outline {
    background: transparent;
    color: var(--pss-gray-700);
    border-color: var(--pss-gray-300);
}

.pss-btn-outline:hover {
    background: var(--pss-gray-50);
    border-color: var(--pss-gray-400);
}

.pss-btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.pss-btn-block { width: 100%; }

/* Cards */
.pss-card {
    background: var(--pss-white);
    border-radius: var(--pss-radius-lg);
    box-shadow: var(--pss-shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.pss-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pss-shadow-lg);
}

.pss-card-body { padding: 1.5rem; }

.pss-card-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--pss-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.pss-card-icon-yellow {
    background: var(--pss-yellow-light);
    color: var(--pss-yellow-dark);
}

.pss-card-icon-green {
    background: var(--pss-green-light);
    color: var(--pss-green-dark);
}

/* Sections */
.pss-section { padding: 5rem 0; }
.pss-section-gray { background: var(--pss-gray-50); }

.pss-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.pss-section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--pss-yellow-dark);
    margin-bottom: 0.5rem;
}

/* Hero */
.pss-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--pss-gray-50) 0%, white 50%, var(--pss-green-light) 100%);
    position: relative;
    overflow: hidden;
}

.pss-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.pss-hero .highlight-yellow {
    background: linear-gradient(135deg, var(--pss-yellow), var(--pss-yellow-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pss-hero .highlight-green {
    background: linear-gradient(135deg, var(--pss-green), var(--pss-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pss-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Forms */
.pss-form-group { margin-bottom: 1.5rem; }

.pss-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--pss-gray-700);
}

.pss-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--pss-gray-200);
    border-radius: var(--pss-radius);
    transition: all 0.2s;
}

.pss-input:focus {
    outline: none;
    border-color: var(--pss-yellow);
    box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}

/* OTP */
.pss-otp-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 2rem 0;
}

.pss-otp-input {
    width: 56px;
    height: 64px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--pss-gray-200);
    border-radius: var(--pss-radius);
}

.pss-otp-input:focus {
    outline: none;
    border-color: var(--pss-green);
    box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

.pss-otp-input.filled {
    border-color: var(--pss-green);
    background: var(--pss-green-light);
}

/* Footer */
.pss-footer {
    background: var(--pss-gray-900);
    color: var(--pss-gray-300);
    padding: 4rem 0 1.5rem;
}

.pss-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pss-footer h4 {
    color: white;
    margin-bottom: 1rem;
}

.pss-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pss-footer-links a {
    color: var(--pss-gray-400);
    display: block;
    padding: 0.25rem 0;
}

.pss-footer-links a:hover { color: var(--pss-yellow); }

.pss-footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--pss-gray-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* WhatsApp Float */
.pss-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pss-green), var(--pss-green-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: all 0.3s;
}

.pss-whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

.pss-whatsapp-float svg { width: 28px; height: 28px; }

/* Grids */
.pss-grid { display: grid; gap: 1.5rem; }
.pss-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pss-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pss-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Utilities */
.pss-text-center { text-align: center; }
.pss-text-yellow { color: var(--pss-yellow); }
.pss-text-green { color: var(--pss-green); }
.pss-mt-0 { margin-top: 0; }
.pss-mb-0 { margin-bottom: 0; }
.pss-hidden { display: none; }

/* Responsive */
@media (max-width: 768px) {
    .pss-nav-menu { display: none; }
    .pss-menu-toggle { display: block; }
    .pss-hero { min-height: auto; padding: 3rem 0; }
    .pss-footer-grid { grid-template-columns: 1fr; }
    .pss-grid-2, .pss-grid-3, .pss-grid-4 { grid-template-columns: 1fr; }
    .pss-otp-input { width: 48px; height: 56px; }
}

/* Elementor Compatibility */
.elementor-widget-container { width: 100%; }
.elementor-section.pss-hero-section { min-height: 90vh; }
body.elementor-template-canvas { background: var(--pss-white); }
