/* ============================================================
   CRASSQ — Public Site Module
   Préfixe : ps-   |   Portée : page publique uniquement
   ============================================================ */

/* ── Logo ──────────────────────────────────────────────────── */
.ps-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ps-logo-text:hover {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.ps-logo-dark {
    color: #1a1a2e !important;
}

/* ── Boutons ────────────────────────────────────────────────── */
.ps-btn-outline {
    background: transparent !important;
    border: 2px solid #fff !important;
    color: #fff !important;
    margin-left: 12px;
}

.ps-btn-outline:hover {
    background: #fff !important;
    color: #1a1a2e !important;
}

.ps-btn-plan {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #f5f5f5;
    color: #1a1a2e;
    border: 2px solid #e0e0e0;
}

.ps-btn-plan:hover {
    background: #1a1a2e;
    color: #fff;
    border-color: #1a1a2e;
    text-decoration: none;
}

.ps-pricing-featured .ps-btn-plan {
    background: #fff;
    color: #1a1a2e;
    border-color: #fff;
}

.ps-pricing-featured .ps-btn-plan:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

/* ── Badge (Module cards) ───────────────────────────────────── */
.ps-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 10px;
}

/* ── Section Pricing ────────────────────────────────────────── */
.ps-pricing-section {
    padding: 80px 0;
    background: #f8f9fc;
}

.ps-pricing-subtitle {
    max-width: 620px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1rem;
    text-align: center;
    line-height: 1.7;
}

/* ── Pricing card ───────────────────────────────────────────── */
.ps-pricing-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 40px 32px;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ps-pricing-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
    transform: translateY(-4px);
}

.ps-pricing-featured {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-color: transparent;
    color: #fff;
    position: relative;
    z-index: 1;
}

.ps-pricing-featured .ps-plan-name,
.ps-pricing-featured .ps-plan-price,
.ps-pricing-featured .ps-plan-period {
    color: #fff;
}

.ps-pricing-featured li {
    color: rgba(255, 255, 255, 0.9);
}

.ps-pricing-featured li.ps-item-disabled {
    color: rgba(255, 255, 255, 0.35);
}

.ps-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.ps-plan-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1;
    margin-bottom: 4px;
}

.ps-plan-period {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 24px;
}

/* Liste d'items du plan */
.ps-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    flex: 1;
}

.ps-pricing-card ul li {
    padding: 8px 0;
    font-size: 0.92rem;
    color: #444;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ps-pricing-featured ul li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.ps-pricing-card ul li:last-child {
    border-bottom: none;
}

.ps-item-disabled {
    color: #bbb !important;
    text-decoration: line-through;
}

/* ── Section Partenaires ────────────────────────────────────── */
.ps-partners-label {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

/* ── Scroll-to-top ──────────────────────────────────────────── */
#scrollUp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    background: #1a1a2e;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#scrollUp.visible {
    opacity: 1;
}

#scrollUp i {
    color: #fff;
    font-size: 1rem;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ps-pricing-card {
        margin-bottom: 24px;
    }

    .ps-plan-price {
        font-size: 2.2rem;
    }

    .ps-pricing-featured {
        transform: none;
    }
}

/* ── Hero banner — overlay fix ──────────────────────────────── */
/* Le template requiert .home2 sur <body> pour ce rule.         */
/* On l'applique ici directement pour éviter la classe globale. */
.rs-banner {
    position: relative;
}

/* ── Toolbar — blindage contre les resets du CSS admin ─────── */
.full-width-header .toolbar-area {
    padding: 0 !important;
}
.full-width-header .toolbar-area .toolbar-contact ul,
.full-width-header .toolbar-area .toolbar-sl-share ul {
    line-height: 2.50 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.full-width-header .toolbar-area .toolbar-contact ul li,
.full-width-header .toolbar-area .toolbar-sl-share ul li {
    display: inline-block !important;
    line-height: 2.50 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* ── Header transparent flottant sur le hero (équivalent .home2) ─ */
.full-width-header .rs-header {
    position: absolute;
    z-index: 999;
    width: 100%;
    background: transparent;
}

/* Logo + liens nav = blancs sur fond transparent */
.full-width-header .rs-header .ps-logo-text {
    color: #ffffff !important;
}
.full-width-header .rs-header .main-menu .rs-menu ul.nav-menu li a {
    color: #ffffff !important;
}
.full-width-header .rs-header .main-menu .rs-menu ul.nav-menu li:hover a {
    color: #2287ff !important;
}

/* Menu burger (mobile) */
.full-width-header .rs-header .rs-menu-toggle {
    color: #ffffff;
}

/* Sticky : fond blanc, liens gris, logo foncé */
.full-width-header .rs-header .sticky .ps-logo-text {
    color: #1a1a2e !important;
}
.full-width-header .rs-header .sticky .main-menu .rs-menu ul.nav-menu li a {
    color: #757575 !important;
}
.full-width-header .rs-header .sticky .main-menu .rs-menu ul.nav-menu li:hover a {
    color: #2287ff !important;
}
.full-width-header .rs-header .sticky .rs-menu-toggle {
    color: #333;
}

/* ── Toolbar links — couleur forcée (CSS admin override) ────── */
.full-width-header .toolbar-area .toolbar-contact ul li a,
.full-width-header .toolbar-area .toolbar-contact ul li i,
.full-width-header .toolbar-area .toolbar-sl-share ul li a {
    color: #ffffff !important;
    text-decoration: none !important;
}
.full-width-header .toolbar-area .toolbar-contact ul li a:hover,
.full-width-header .toolbar-area .toolbar-sl-share ul li a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ── Logo image ─────────────────────────────────────────────── */
.ps-logo-img {
    height: 52px;
    width: auto;
    display: block;
}
