/*
Theme Name: PSS Theme
Theme URI: https://prochesservices.com
Author: Proches Services SAU
Author URI: https://prochesservices.com
Description: Thème officiel de Proches Services SAU — léger, pleine largeur, compatible Elementor. Développé en interne par PSS.
Version: 1.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: pss-theme
*/

/* ================= BASE ================= */
:root {
    --pss-gold: #f59e0b;
    --pss-gold-dark: #d97706;
    --pss-gold-light: #fbbf24;
    --pss-dark: #1f2937;
    --pss-gray: #6b7280;
    --pss-green: #25d366;
    --pss-cream: #fef3c7;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: var(--pss-gold-dark); }

/* ================= HEADER ================= */
.pss-site-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.pss-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pss-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.pss-logo img { max-height: 56px; width: auto; }
.pss-logo-text { font-size: 1.4rem; font-weight: 800; color: var(--pss-dark); letter-spacing: .5px; }
.pss-logo-text span { color: var(--pss-gold); }

/* Navigation */
.pss-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pss-nav li { position: relative; }
.pss-nav a {
    display: block;
    padding: 10px 14px;
    color: var(--pss-dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: .2s;
}
.pss-nav a:hover { background: var(--pss-cream); color: var(--pss-gold-dark); }

/* Sous-menus */
.pss-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 230px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border-radius: 10px;
    padding: 8px;
    z-index: 9991;
}
.pss-nav li:hover > .sub-menu { display: block; }
.pss-nav .sub-menu a { padding: 9px 12px; font-weight: 500; }

/* Burger mobile */
.pss-burger {
    display: none;
    background: var(--pss-gold);
    border: none;
    color: #fff;
    font-size: 22px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
}

/* ================= CONTENU ================= */
.pss-site-main { width: 100%; }
.pss-page-content { width: 100%; }

/* Pages standards (non pleine largeur) : contenu centré lisible */
.pss-boxed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Titre de page standard (peut être masqué par page via classe) */
.pss-page-title {
    background: linear-gradient(135deg, var(--pss-cream), #fed7aa);
    padding: 40px 24px;
    text-align: center;
}
.pss-page-title h1 { margin: 0; color: var(--pss-dark); font-size: 2.2rem; }

/* ================= FOOTER ================= */
.pss-site-footer {
    background: var(--pss-dark);
    color: #d1d5db;
    text-align: center;
    padding: 35px 20px;
    font-size: .92rem;
    margin-top: 0;
}
.pss-site-footer p { margin: 4px 0; }
.pss-footer-name { color: var(--pss-gold-light); font-weight: bold; font-size: 1.05rem; }
.pss-site-footer a { color: var(--pss-gold-light); text-decoration: none; font-weight: 600; }
.pss-site-footer a:hover { text-decoration: underline; }
.pss-footer-links { margin-top: 12px; }

/* ================= ELEMENTOR ================= */
/* Laisse Elementor gérer ses largeurs, sans contrainte du thème */
.elementor-page .pss-page-title { display: none; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .pss-burger { display: block; }
    .pss-nav { display: none; width: 100%; }
    .pss-nav.open { display: block; }
    .pss-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .pss-nav .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        padding-left: 18px;
        min-width: 0;
    }
    .pss-header-inner { flex-wrap: wrap; }
}

/* ================= FIX LOGO (Customizer) ================= */
.pss-site-header .custom-logo-link { display: flex; align-items: center; }
.pss-site-header .custom-logo,
.pss-site-header .pss-logo img {
    max-height: 60px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}
a.pss-logo-text { font-size: 1.4rem; font-weight: 800; color: var(--pss-dark); text-decoration: none; letter-spacing: .5px; }
a.pss-logo-text span { color: var(--pss-gold); }

/* ================= PAGE D'ACCUEIL NATIVE ================= */
.pss-home { width: 100%; }

.pss-hero {
    background: linear-gradient(135deg, var(--pss-cream), #fed7aa);
    padding: 64px 24px;
    text-align: center;
}
.pss-title { font-size: 2.5rem; font-weight: 800; margin: 0 0 18px; color: var(--pss-dark); }
.pss-hl { color: var(--pss-gold); }
.pss-subtitle { font-size: 1.15rem; color: var(--pss-gray); max-width: 760px; margin: 0 auto 28px; }

.pss-cta { margin-bottom: 38px; }
.pss-btn {
    display: inline-block; padding: 14px 28px; border-radius: 25px;
    font-weight: 700; text-decoration: none; margin: 4px 8px; transition: .2s;
}
.pss-btn-gold { background: var(--pss-gold); color: #fff; }
.pss-btn-gold:hover { background: var(--pss-gold-dark); color: #fff; transform: translateY(-2px); }
.pss-btn-line { background: #fff; color: var(--pss-dark); border: 2px solid var(--pss-gold); }
.pss-btn-line:hover { background: var(--pss-cream); }
.pss-btn-green { background: var(--pss-green); color: #fff; }
.pss-btn-green:hover { background: #128c7e; color: #fff; }

.pss-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; max-width: 900px; margin: 0 auto; }
.pss-stat {
    background: #fff; padding: 24px 28px; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08); min-width: 160px; text-align: center;
}
.pss-stat-n { font-size: 2rem; font-weight: 800; color: var(--pss-gold); }
.pss-stat-l { color: var(--pss-gray); font-weight: 500; }

.pss-section { padding: 56px 24px; background: #fff; }
.pss-section-gray { background: #f9fafb; }
.pss-section-green { background: #ecfdf5; }
.pss-sec-head { text-align: center; max-width: 760px; margin: 0 auto 42px; }
.pss-sec-head h2 { font-size: 2.1rem; font-weight: 800; color: var(--pss-dark); margin: 0 0 12px; }
.pss-sec-head p { color: var(--pss-gray); font-size: 1.08rem; margin: 0; }
.pss-sub-title { text-align: center; font-size: 1.4rem; font-weight: 800; color: var(--pss-dark); margin: 44px 0 26px; }
.pss-center { text-align: center; }

.pss-grid {
    display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
    max-width: 1200px; margin: 0 auto;
}
.pss-card {
    background: var(--pss-cream); border-radius: 15px; padding: 28px;
    max-width: 350px; min-width: 290px; flex: 1 1 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08); position: relative; transition: .25s;
}
.pss-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.14); }
.pss-card h4 { font-size: 1.25rem; font-weight: 800; color: var(--pss-dark); margin: 0 0 12px; }
.pss-card p { color: var(--pss-gray); margin: 0 0 16px; }
.pss-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.pss-card ul li { padding: 4px 0; color: #374151; }

.pss-card-platform { background: #fff; border: 2px solid var(--pss-gold); }
.pss-card-connect { background: linear-gradient(160deg, #fff 60%, #ecfdf5 100%); border: 2px solid var(--pss-green); }

.pss-ico {
    width: 50px; height: 50px; background: var(--pss-gold); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.pss-ico-green { background: var(--pss-green); }

.pss-meta-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--pss-green); color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 10px; border-radius: 12px;
}

.pss-apps-banner {
    max-width: 900px; margin: 0 auto; text-align: center;
    background: linear-gradient(135deg, #1f2937, #374151);
    border-radius: 15px; padding: 42px 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}
.pss-apps-banner h3 { color: var(--pss-gold-light); font-size: 1.6rem; margin: 0 0 12px; }
.pss-apps-banner p { color: #e5e7eb; margin: 0 0 22px; }

.pss-mission { max-width: 800px; margin: 0 auto; text-align: center; color: var(--pss-gray); font-size: 1.08rem; }
.pss-mission p { margin: 0 0 18px; }
.pss-values { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 26px; }
.pss-value { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--pss-dark); }
.pss-value-ico {
    width: 40px; height: 40px; background: var(--pss-gold); border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: #fff;
}

/* Contact flottant */
.pss-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 9995;
    display: flex; flex-direction: column; gap: 10px;
}
.pss-float-btn {
    display: flex; align-items: center; gap: 10px;
    color: #fff !important; padding: 12px 18px; border-radius: 25px;
    text-decoration: none; font-weight: 700; font-size: 14px; transition: .2s;
}
.pss-float-btn span { font-size: 20px; }
.pss-float-num { font-size: 12px; opacity: .9; font-weight: 500; }
.pss-float-phone { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 15px rgba(245,158,11,.4); }
.pss-float-wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 4px 15px rgba(37,211,102,.4); }
.pss-float-btn:hover { transform: translateY(-2px); }

@media (max-width: 768px) {
    .pss-title { font-size: 1.9rem; }
    .pss-hero { padding: 44px 16px; }
    .pss-section { padding: 40px 16px; }
    .pss-card { max-width: 100%; }
    .pss-stats { flex-direction: column; align-items: center; }
    .pss-float { bottom: 14px; right: 14px; }
}
