/*
 Theme Name:   Kadence Child - Nephants
 Theme URI:    https://nephants.fr
 Description:  Theme enfant Kadence pour le projet Nephants - Service d'obtention du numero NEPH
 Author:       Equipe Nephants
 Author URI:   https://nephants.fr
 Template:     kadence
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  nephants
*/

/* ==========================================================================
   Variables & Reset - Design Nephants (Indigo/Sombre)
   ========================================================================== */

:root {
    --neph-primary: #4f46e5;
    --neph-primary-light: #ede9fe;
    --neph-primary-dark: #3730a3;
    --neph-success: #10b981;
    --neph-warning: #f59e0b;
    --neph-danger: #ef4444;
    --neph-dark: #0f172a;
    --neph-dark-mid: #1e293b;
    --neph-gray-50: #f8fafc;
    --neph-gray-100: #f1f5f9;
    --neph-gray-300: #cbd5e1;
    --neph-gray-500: #64748b;
    --neph-gray-700: #334155;
    --neph-gray-900: #0f172a;
    --neph-white: #ffffff;
    --neph-radius: 12px;
    --neph-radius-lg: 20px;
    --neph-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --neph-shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
    --neph-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Global
   ========================================================================== */

body {
    font-family: var(--neph-font) !important;
    color: var(--neph-gray-700);
    background: var(--neph-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--neph-font) !important;
    color: var(--neph-gray-900);
}

/* ==========================================================================
   Header sticky avec blur
   ========================================================================== */

#masthead {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92) !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease-out;
}

.site-branding .site-title,
.site-branding .site-title a {
    color: var(--neph-primary) !important;
    font-weight: 800 !important;
    font-size: 24px !important;
    letter-spacing: -0.5px;
}

.main-navigation .primary-menu-container > ul > li > a {
    font-weight: 500 !important;
    font-size: 15px !important;
    color: var(--neph-gray-700) !important;
    transition: color 0.15s ease-out;
}

.main-navigation .primary-menu-container > ul > li > a:hover {
    color: var(--neph-primary) !important;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.wp-block-button__link,
button,
.button,
input[type="submit"] {
    font-family: var(--neph-font) !important;
    font-weight: 600 !important;
    border-radius: var(--neph-radius) !important;
    transition: all 0.2s ease-out !important;
    box-shadow: var(--neph-shadow) !important;
    letter-spacing: -0.2px;
}

.wp-block-button__link:hover,
button:hover,
.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--neph-shadow-lg) !important;
}

/* Bouton primaire indigo */
.neph-btn-primary .wp-block-button__link,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background: var(--neph-primary) !important;
    color: var(--neph-white) !important;
    border: none !important;
}

.neph-btn-primary .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background: var(--neph-primary-dark) !important;
}

/* Bouton outline */
.is-style-outline .wp-block-button__link {
    border: 2px solid var(--neph-white) !important;
    color: var(--neph-white) !important;
    background: transparent !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.neph-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%) !important;
    position: relative;
    overflow: hidden;
}

.neph-hero::before {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.neph-hero h1 {
    color: var(--neph-white) !important;
    font-weight: 800 !important;
    font-size: 48px !important;
    line-height: 1.15 !important;
    letter-spacing: -1px;
}

.neph-hero p {
    color: #cbd5e1 !important;
}

/* Badge hero */
.neph-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--neph-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

/* Stats hero */
.neph-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.neph-stats .stat {
    text-align: center;
    color: var(--neph-white);
}

.neph-stats .stat-number {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.neph-stats .stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ==========================================================================
   Barre de confiance
   ========================================================================== */

.neph-trust-bar {
    background: var(--neph-primary) !important;
    color: var(--neph-white) !important;
}

.neph-trust-bar .wp-block-column p {
    color: var(--neph-white) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.neph-section {
    padding: 80px 0;
}

.neph-section-gray {
    background: var(--neph-gray-50);
}

.neph-section h2 {
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.neph-section .neph-subtitle {
    color: var(--neph-gray-500) !important;
    font-size: 18px;
}

/* ==========================================================================
   Cartes (etapes, temoignages, etc.)
   ========================================================================== */

.neph-card {
    background: var(--neph-white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--neph-radius) !important;
    padding: 32px 24px !important;
    box-shadow: var(--neph-shadow);
    transition: all 0.2s ease-out;
}

.neph-card:hover {
    box-shadow: var(--neph-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--neph-primary);
}

/* Numero d'etape */
.neph-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--neph-primary-light);
    color: var(--neph-primary);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 16px;
}

/* ==========================================================================
   Pricing Card
   ========================================================================== */

.neph-pricing {
    background: var(--neph-white);
    border: 2px solid var(--neph-primary);
    border-radius: var(--neph-radius-lg) !important;
    padding: 48px 40px !important;
    box-shadow: var(--neph-shadow-lg);
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

.neph-pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--neph-primary);
    color: var(--neph-white);
    padding: 6px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.neph-pricing .neph-price {
    font-size: 56px !important;
    font-weight: 800 !important;
    color: var(--neph-primary) !important;
    line-height: 1 !important;
}

.neph-pricing .neph-price-sub {
    color: var(--neph-gray-500);
    font-size: 15px;
}

.neph-pricing ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.neph-pricing ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--neph-gray-100);
    font-size: 15px;
    color: var(--neph-gray-700);
}

.neph-pricing ul li::before {
    content: '✓';
    color: var(--neph-success);
    font-weight: 700;
    margin-right: 12px;
}

.neph-pricing ul li.neph-highlight {
    color: var(--neph-success);
    font-weight: 600;
}

/* ==========================================================================
   Temoignages
   ========================================================================== */

.neph-testimonial {
    font-style: italic;
    color: var(--neph-gray-700);
    line-height: 1.7;
}

.neph-testimonial-stars {
    color: var(--neph-warning);
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.neph-testimonial-name {
    font-weight: 700;
    color: var(--neph-gray-900);
    font-style: normal;
}

.neph-testimonial-role {
    font-size: 13px;
    color: var(--neph-gray-500);
    font-style: normal;
}

/* ==========================================================================
   FAQ Accordeon
   ========================================================================== */

.neph-faq details {
    border: 1px solid var(--neph-gray-100);
    border-radius: var(--neph-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s ease-out;
}

.neph-faq details[open] {
    border-color: var(--neph-primary);
    box-shadow: 0 2px 12px rgba(79,70,229,0.08);
}

.neph-faq summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: var(--neph-gray-900);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.neph-faq summary::-webkit-details-marker {
    display: none;
}

.neph-faq details p {
    padding: 0 24px 20px;
    color: var(--neph-gray-500);
    line-height: 1.7;
    font-size: 15px;
}

/* ==========================================================================
   CTA Final
   ========================================================================== */

.neph-cta-final {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    padding: 80px 0;
    text-align: center;
}

.neph-cta-final h2 {
    color: var(--neph-white) !important;
}

.neph-cta-final p {
    color: #94a3b8 !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--neph-dark) !important;
    color: var(--neph-gray-300) !important;
}

.site-footer a {
    color: var(--neph-gray-300) !important;
}

.site-footer a:hover {
    color: var(--neph-white) !important;
}

.site-footer h2,
.site-footer .widget-title {
    color: var(--neph-white) !important;
}

/* ==========================================================================
   WooCommerce overrides
   ========================================================================== */

.woocommerce .button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--neph-primary) !important;
    color: var(--neph-white) !important;
    border-radius: var(--neph-radius) !important;
    font-weight: 600 !important;
}

.woocommerce .button:hover,
.woocommerce a.button:hover {
    background-color: var(--neph-primary-dark) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ==========================================================================
   Homepage - layout pleine largeur sans padding
   ========================================================================== */

.neph-homepage .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.neph-homepage .entry-content-wrap {
    padding: 0 !important;
    max-width: 100% !important;
}

.neph-homepage .entry.single-entry {
    box-shadow: none !important;
}

.neph-homepage .site-container,
.neph-homepage .content-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Responsive grid C'est quoi le NEPH */
@media (max-width: 768px) {
    section [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .neph-hero h1 {
        font-size: 32px !important;
    }

    .neph-stats {
        gap: 1.5rem;
    }

    .neph-stats .stat-number {
        font-size: 22px;
    }

    .neph-pricing {
        padding: 32px 24px !important;
    }

    .neph-pricing .neph-price {
        font-size: 42px !important;
    }

    .neph-section {
        padding: 48px 0;
    }
}

/* ==========================================================================
   Espace membre - overrides demo MVP
   ========================================================================== */

:root {
    --neph-member-primary: #2563eb;
    --neph-member-success: #16a34a;
    --neph-member-danger: #dc2626;
    --neph-member-pending: #6b7280;
    --neph-member-surface: #ffffff;
    --neph-member-surface-alt: #f8fafc;
    --neph-member-border: #dbe3f0;
    --neph-member-shadow: 0 18px 48px rgba(37, 99, 235, 0.08);
}

.neph-espace-membre {
    max-width: 960px;
    padding: 16px;
}

.neph-welcome {
    background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    color: #0f172a;
    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: var(--neph-member-shadow);
}

.neph-welcome h2,
.neph-welcome p {
    color: inherit;
}

.neph-espace-membre .neph-card {
    background: var(--neph-member-surface);
    border: 1px solid var(--neph-member-border);
    border-radius: 20px;
    box-shadow: var(--neph-member-shadow);
    padding: 20px;
}

.neph-status-card h3,
.neph-espace-membre .neph-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.neph-progress-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 8px 0 0;
}

.neph-progress-bar::before {
    display: none;
}

.neph-step {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--neph-member-surface-alt);
    border: 1px solid var(--neph-member-border);
    text-align: left;
}

.neph-step-circle {
    width: 42px;
    height: 42px;
    margin-bottom: 0;
    background: #e5e7eb;
    color: var(--neph-member-pending);
    flex-shrink: 0;
}

.neph-step-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--neph-member-pending);
    text-align: left;
}

.neph-step-done {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.2);
}

.neph-step-done .neph-step-circle {
    background: var(--neph-member-success);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.12);
}

.neph-step-done .neph-step-label {
    color: var(--neph-member-success);
}

.neph-step-active {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.24);
}

.neph-step-active .neph-step-circle {
    background: var(--neph-member-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.14);
}

.neph-step-active .neph-step-label {
    color: var(--neph-member-primary);
}

.neph-status-message {
    margin-top: 18px;
    border-left-width: 5px;
    border-radius: 16px;
    padding: 16px 18px;
}

.neph-status-en_attente {
    background: #f3f4f6;
    border-left-color: var(--neph-member-pending);
}

.neph-status-en_cours {
    background: #eff6ff;
    border-left-color: var(--neph-member-primary);
}

.neph-status-valide {
    background: #f0fdf4;
    border-left-color: var(--neph-member-success);
}

.neph-status-refuse,
.neph-status-incomplet {
    background: #fef2f2;
    border-left-color: var(--neph-member-danger);
}

.neph-info-table,
.neph-info-table tbody,
.neph-info-table tr,
.neph-info-table td {
    display: block;
    width: 100%;
}

.neph-info-table tr {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.neph-info-table tr:first-child {
    padding-top: 0;
}

.neph-info-label {
    width: auto;
    margin-bottom: 6px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--neph-member-pending);
}

.neph-info-value {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.neph-docs-list {
    gap: 12px;
}

.neph-doc-item {
    border-radius: 16px;
    border: 1px solid transparent;
    padding: 14px 16px;
    flex-wrap: wrap;
    row-gap: 4px;
}

.neph-doc-ok {
    background: #f0fdf4;
    border-color: rgba(22, 163, 74, 0.18);
}

.neph-doc-missing {
    background: #fef2f2;
    border-color: rgba(220, 38, 38, 0.14);
}

.neph-doc-status {
    margin-left: auto;
}

.neph-no-dossier .neph-card,
.neph-login-prompt .neph-card {
    box-shadow: var(--neph-member-shadow);
}

@media (min-width: 768px) {
    .neph-espace-membre {
        padding: 24px;
    }

    .neph-progress-bar {
        display: flex;
        align-items: flex-start;
        gap: 0;
        padding: 28px 0 6px;
    }

    .neph-progress-bar::before {
        display: block;
        top: 47px;
        left: 72px;
        right: 72px;
        height: 4px;
        transform: none;
        background: linear-gradient(90deg, #bfdbfe 0%, #dbeafe 100%);
    }

    .neph-step {
        flex: 1;
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: 0;
        padding: 0 12px;
        text-align: center;
    }

    .neph-step-circle {
        margin-bottom: 0;
        width: 52px;
        height: 52px;
    }

    .neph-step-label {
        text-align: center;
    }

    .neph-info-table {
        display: table;
    }

    .neph-info-table tbody {
        display: table-row-group;
    }

    .neph-info-table tr {
        display: table-row;
        padding: 0;
    }

    .neph-info-table td {
        display: table-cell;
        width: auto;
        padding: 14px 0;
    }

    .neph-info-label {
        width: 220px;
        margin-bottom: 0;
        font-size: 0.875rem;
        letter-spacing: 0;
        text-transform: none;
    }
}

/* ==========================================================================
   Espace membre - classes cibles demo
   ========================================================================== */

.neph-dossier-card,
.neph-espace-membre .neph-card {
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.08);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.neph-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    background: #f3f4f6;
    color: #6b7280;
}

.neph-status-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.neph-status-en_attente .neph-status-badge,
.neph-status-badge.neph-status-en_attente {
    background: #f3f4f6;
    color: #6b7280;
}

.neph-status-en_cours .neph-status-badge,
.neph-status-badge.neph-status-en_cours {
    background: #eff6ff;
    color: #2563eb;
}

.neph-status-valide .neph-status-badge,
.neph-status-badge.neph-status-valide {
    background: #f0fdf4;
    color: #16a34a;
}

.neph-status-refuse .neph-status-badge,
.neph-status-badge.neph-status-refuse {
    background: #fef2f2;
    color: #dc2626;
}

.neph-status-incomplet .neph-status-badge,
.neph-status-badge.neph-status-incomplet {
    background: #fff7ed;
    color: #f59e0b;
}

.neph-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 10px;
    background: #4f46e5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.neph-btn-primary:hover,
.neph-btn-primary:focus {
    background: #3730a3;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.24);
}

.neph-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 10px;
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    font-weight: 700;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.neph-btn-secondary:hover,
.neph-btn-secondary:focus {
    border-color: #4f46e5;
    color: #4f46e5;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .neph-progress-bar {
        gap: 12px;
    }

    .neph-dossier-card,
    .neph-espace-membre .neph-card {
        border-radius: 16px;
        padding: 18px;
    }

    .neph-status-badge {
        width: fit-content;
        max-width: 100%;
    }
}

/* ==========================================================================
   Dashboard gestionnaire
   ========================================================================== */

.neph-espace-admin {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 16px 32px;
}

.neph-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.neph-stat {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.neph-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    color: #111827;
}

.neph-stat-label {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.neph-espace-admin .neph-info-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.neph-espace-admin .neph-info-table thead {
    background: #f3f4f6;
}

.neph-espace-admin .neph-info-table th {
    text-align: left;
}

.neph-espace-admin .neph-info-table td,
.neph-espace-admin .neph-info-table th {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .neph-espace-admin {
        padding: 16px 12px 24px;
    }

    .neph-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   BLOG WORDPRESS - Design Nephants (meme style que la SPA)
   ========================================================================== */

/* Masquer le header/footer Kadence sur les articles blog */
.single-post .site-header,
.archive .site-header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Header article */
.neph-blog-article { font-family: 'Inter', -apple-system, sans-serif; }
.neph-blog-header {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    padding: 80px 24px 60px;
}
.neph-blog-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}
.neph-breadcrumb {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}
.neph-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
}
.neph-breadcrumb a:hover { color: white; }
.neph-breadcrumb span { margin: 0 8px; }
.neph-blog-hero-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 24px;
}
.neph-blog-header h1 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.neph-blog-meta {
    color: #94a3b8;
    font-size: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.neph-blog-cat {
    background: rgba(79,70,229,0.2);
    color: #a5b4fc;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
}

/* Contenu article */
.neph-blog-body {
    padding: 48px 24px 80px;
    background: #f8fafc;
}
.neph-blog-content {
    background: white;
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    font-size: 17px;
    color: #334155;
    line-height: 1.8;
}
.neph-blog-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 16px;
}
.neph-blog-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 24px 0 12px;
}
.neph-blog-content p { margin-bottom: 16px; }
.neph-blog-content ul, .neph-blog-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.neph-blog-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.neph-blog-content blockquote {
    background: #eff6ff;
    border-left: 4px solid #4f46e5;
    padding: 16px 24px;
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
    color: #1e40af;
}
.neph-blog-content a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
}
.neph-blog-content a:hover { text-decoration: underline; }
.neph-blog-content img {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

/* Auteur */
.neph-blog-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.neph-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #4f46e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}
.neph-author-name { font-weight: 700; color: #0f172a; font-size: 15px; }
.neph-author-desc { font-size: 13px; color: #64748b; margin-top: 2px; }

/* CTA article */
.neph-blog-cta {
    margin-top: 32px;
    padding: 40px;
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    border-radius: 16px;
    text-align: center;
}
.neph-blog-cta h3 {
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}
.neph-blog-cta p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 24px;
}
.neph-btn-primary-blog {
    display: inline-block;
    background: #4f46e5;
    color: white;
    padding: 14px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(79,70,229,0.35);
    transition: all 0.2s;
}
.neph-btn-primary-blog:hover {
    background: #3730a3;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

/* Articles similaires */
.neph-blog-related {
    margin-top: 40px;
}
.neph-blog-related h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
}
.neph-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.neph-related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all 0.2s;
}
.neph-related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.neph-related-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.neph-related-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Liste blog */
.neph-blog-list-page { font-family: 'Inter', -apple-system, sans-serif; }
.neph-blog-list-header {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    padding: 60px 24px;
    text-align: center;
}
.neph-blog-list-header h1 {
    color: white;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}
.neph-blog-list-header p {
    color: #94a3b8;
    font-size: 18px;
}
.neph-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 0;
}
.neph-blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}
.neph-blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.neph-blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.neph-blog-card-body { padding: 20px; }
.neph-blog-card-cat {
    display: inline-block;
    background: #ede9fe;
    color: #4f46e5;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.neph-blog-card h2 {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    line-height: 1.4;
}
.neph-blog-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}
.neph-blog-card-date {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 12px;
    display: block;
}

/* Bandeau mise a jour */
.neph-blog-update-badge {
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(79,70,229,0.15);
    border-radius: 8px;
    font-size: 13px;
    color: #c7d2fe;
    display: inline-block;
}

/* CTA haut (au-dessus du contenu) */
.neph-blog-cta-top {
    background: #ede9fe;
    border-bottom: 2px solid #c7d2fe;
    padding: 12px 24px;
}
.neph-cta-top-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.neph-cta-top-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 14px;
    color: #1e293b;
}
.neph-cta-top-text strong {
    color: #312e81;
    font-size: 15px;
}
.neph-btn-sm {
    padding: 10px 24px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

/* Sommaire (table des matieres) */
.neph-blog-toc {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #4f46e5;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin-bottom: 24px;
}
.neph-toc-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.neph-toc-list {
    margin: 0;
    padding-left: 20px;
}
.neph-toc-list li {
    margin-bottom: 6px;
    line-height: 1.5;
}
.neph-toc-list a {
    color: #4f46e5;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}
.neph-toc-list a:hover {
    text-decoration: underline;
    color: #3730a3;
}

/* CTA inline (insere entre les paragraphes) */
.neph-cta-inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, #ede9fe 0%, #e0e7ff 100%);
    border: 1px solid #c7d2fe;
    border-radius: 12px;
}
.neph-cta-inline span {
    font-size: 15px;
    font-weight: 600;
    color: #312e81;
}
.neph-cta-inline a {
    white-space: nowrap;
    background: #4f46e5;
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(79,70,229,0.25);
    transition: all 0.2s;
}
.neph-cta-inline a:hover {
    background: #3730a3;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .neph-cta-inline {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px 18px;
    }
}

/* Disclaimer independance */
.neph-blog-disclaimer {
    margin-top: 24px;
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}
.neph-blog-disclaimer a {
    color: #92400e;
    font-weight: 600;
    text-decoration: underline;
}

/* Related cards avec images */
.neph-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.neph-related-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}
.neph-related-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.neph-related-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}
.neph-related-card-body {
    padding: 16px;
}
.neph-related-card-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    line-height: 1.4;
}
.neph-related-card-body p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Blog responsive */
@media (max-width: 768px) {
    .neph-blog-header h1 { font-size: 26px; }
    .neph-blog-header { padding: 60px 16px 40px; }
    .neph-blog-content { padding: 28px 20px; font-size: 16px; }
    .neph-blog-grid { grid-template-columns: 1fr; }
    .neph-related-grid { grid-template-columns: 1fr; }
    .neph-blog-cta { padding: 28px 20px; }
    .neph-blog-list-header h1 { font-size: 28px; }
    .neph-cta-top-inner { flex-direction: column; text-align: center; }
    .neph-blog-toc { padding: 16px 18px; }
    .neph-related-grid { grid-template-columns: 1fr 1fr; }
}

/* Placeholder image quand pas de thumbnail */
.neph-blog-card-img-placeholder {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #ede9fe 0%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.neph-blog-card-img-placeholder span {
    font-size: 48px;
    font-weight: 800;
    color: #4f46e5;
    opacity: 0.4;
}

/* CTA en bas de la page listing blog */
.neph-blog-list-cta {
    text-align: center;
    padding: 48px 32px;
    margin: 16px 0 48px;
    background: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    border-radius: 16px;
}
.neph-blog-list-cta h2 {
    color: white;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.neph-blog-list-cta p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
