/* === Scalance Pages — Thème clair pour pages intérieures === */

/* --- Variables héritées de la landing --- *
 * --cobalt: #5B79FF  /  --signal: #22C68F  /  --paper: #0A101C
 * Ces couleurs sont conservées comme accents.
 */

/* --- Appliquer le thème clair sur toutes les pages sauf la front-page --- */
body:not(.home) {
    --bg-page: #FFFFFF;
    --text-page: #1A1F2E;
    --text-soft: #5A6377;
    --border-page: #E2E6EF;
    --card-bg: #F5F7FA;
    --radius: 14px;

    background: var(--bg-page) !important;
    color: var(--text-page) !important;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* --- Header reste sombre sur toutes les pages (cohérence de marque) --- */
body:not(.home) .scalance-header {
    background: rgba(10, 16, 28, .95);
    border-bottom-color: #233049;
}
body:not(.home) .scalance-header .brand span,
body:not(.home) .scalance-header .nav-links a {
    color: #E9EEF6;
}
body:not(.home) .scalance-header .nav-links a:hover {
    color: var(--cobalt);
}

/* --- Contenu principal --- */
body:not(.home) .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

body:not(.home) .site-main {
    padding: 80px 0;
}

/* --- Typo pages --- */
body:not(.home) h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text-page);
    margin-bottom: 16px;
}
body:not(.home) h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    font-weight: 600;
    color: var(--text-page);
    margin-bottom: 12px;
}
body:not(.home) h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-page);
}
body:not(.home) p {
    color: var(--text-soft);
    line-height: 1.7;
    font-size: 1.02rem;
    max-width: 72ch;
}
body:not(.home) a {
    color: var(--cobalt);
    text-decoration: none;
}
body:not(.home) a:hover {
    text-decoration: underline;
}

/* --- Boutons --- */
body:not(.home) .btn-primary {
    background: var(--cobalt);
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-block;
    text-decoration: none;
    transition: background .2s, transform .15s;
}
body:not(.home) .btn-primary:hover {
    background: #3D5CFF;
    text-decoration: none;
}
body:not(.home) .btn-ghost {
    border: 1.5px solid var(--border-page);
    color: var(--text-page);
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    display: inline-block;
    text-decoration: none;
    transition: border-color .2s;
}
body:not(.home) .btn-ghost:hover {
    border-color: var(--cobalt);
    color: var(--cobalt);
    text-decoration: none;
}

/* --- Cartes / blocs --- */
body:not(.home) .card {
    background: var(--card-bg);
    border: 1px solid var(--border-page);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: box-shadow .2s, transform .2s;
}
body:not(.home) .card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

/* --- Pricing cards --- */
body:not(.home) .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}
body:not(.home) .pricing-card {
    background: #fff;
    border: 1px solid var(--border-page);
    border-radius: calc(var(--radius) + 4px);
    padding: 32px 28px;
    text-align: center;
    transition: box-shadow .2s, transform .2s;
    position: relative;
}
body:not(.home) .pricing-card.featured {
    border-color: var(--cobalt);
    box-shadow: 0 0 0 1px var(--cobalt), 0 12px 32px rgba(91, 121, 255, .12);
    transform: scale(1.02);
}
body:not(.home) .pricing-card .badge {
    display: inline-block;
    background: var(--cobalt);
    color: #fff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
body:not(.home) .pricing-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
}
body:not(.home) .pricing-card .price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-page);
    margin: 16px 0 6px;
}
body:not(.home) .pricing-card .price-sub {
    font-size: .85rem;
    color: var(--text-soft);
    margin-bottom: 20px;
}
body:not(.home) .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}
body:not(.home) .pricing-card li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: var(--text-soft);
    font-size: .92rem;
    border-bottom: 1px solid var(--border-page);
}
body:not(.home) .pricing-card li:last-child {
    border-bottom: none;
}
body:not(.home) .pricing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--signal);
    font-weight: 700;
}

/* --- Section grise --- */
body:not(.home) .section-alt {
    background: var(--card-bg);
    padding: 80px 0;
    margin: 40px 0;
}

/* --- Liste à puces --- */
body:not(.home) ul:not(.nav-links):not(.pricing-card ul) {
    list-style: none;
    padding: 0;
}
body:not(.home) ul:not(.nav-links):not(.pricing-card ul) li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-soft);
}
body:not(.home) ul:not(.nav-links):not(.pricing-card ul) li::before {
    content: "›";
    position: absolute;
    left: 4px;
    color: var(--cobalt);
    font-weight: 700;
}

/* --- Footer reste sombre --- */
body:not(.home) .scalance-footer {
    background: #0A101C;
    color: var(--ink-soft);
}

/* --- WooCommerce --- */
body:not(.home) .woocommerce .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Grille features --- */
body:not(.home) .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 32px 0;
}
body:not(.home) .feature-item {
    padding: 20px;
    border-left: 3px solid var(--cobalt);
    background: var(--card-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
}
body:not(.home) .feature-item h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-page);
}
body:not(.home) .feature-item p {
    font-size: .9rem;
    color: var(--text-soft);
    margin: 0;
}

/* --- Hero intérieur --- */
body:not(.home) .page-hero {
    padding: 80px 0 48px;
    background: linear-gradient(160deg, #F0F4FF 0%, #FFFFFF 60%);
    border-bottom: 1px solid var(--border-page);
}
body:not(.home) .page-hero h1 {
    margin-bottom: 16px;
}
body:not(.home) .page-hero p {
    font-size: 1.1rem;
    max-width: 60ch;
}
