/**
 * FICHE-PAIE.FR - Générateur de bulletins de paie
 *
 * @copyright 2025-2026 Purple Telecom EURL
 * @license   Proprietary - All Rights Reserved
 * @author    Fabien HIRIART <contact@polygonlab.ai>
 *
 * This software is the property of Purple Telecom EURL.
 * Unauthorized use is strictly prohibited.
 */

/* =====================================================
   VARIABLES COULEURS - STYLE URSSAF
   ===================================================== */
:root {
    --gp-bleu-marine: #1d458c;
    --gp-turquoise: #41bcc9;
    --gp-bleu-moyen: #7da4d7;
    --gp-gris: #6b7280;
    --gp-gris-clair: #f3f4f6;
    --gp-blanc: #ffffff;
    --gp-jaune-pale: #fef9e7;
    --gp-jaune-bordure: #d4a017;
    --gp-jaune-fonce: #b8860b;
    --gp-success: #10b981;
    --gp-error: #ef4444;
}

/* =====================================================
   LOGO - STYLE URSSAF
   ===================================================== */
.logo {
    font-size: 22px;
    font-weight: 800;
    font-family: "Plus Jakarta Sans", sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-bars {
    display: flex;
    gap: 4px;
}

.logo-bars span {
    width: 8px;
    height: 28px;
    border-radius: 4px;
}

.logo-bars span:nth-child(1) {
    background: var(--gp-bleu-marine);
}

.logo-bars span:nth-child(2) {
    background: var(--gp-turquoise);
}

.logo-text {
    display: flex;
    align-items: baseline;
}

.logo-gen {
    color: var(--gp-bleu-marine);
}

.logo-sep {
    color: var(--gp-turquoise);
    margin: 0 2px;
}

.logo-paie {
    color: var(--gp-bleu-marine);
}

.logo-com {
    color: var(--gp-gris);
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

.logo:hover .logo-bars span:nth-child(2) {
    background: var(--gp-bleu-moyen);
}

.logo:hover .logo-sep {
    color: var(--gp-bleu-moyen);
}

/* Tagline sous le logo - Police manuscrite */
.logo-tagline {
    font-family: "Caveat", cursive;
    font-size: 18px;
    font-weight: 500;
    color: var(--gp-bleu-marine);
    margin-left: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--gp-turquoise);
    white-space: nowrap;
}

.logo-tagline strong {
    color: var(--gp-turquoise);
    font-weight: 700;
}

@media (max-width: 768px) {
    .logo-tagline {
        display: none;
    }
}

/* =====================================================
   BOUTONS ICÔNES CERCLE - STYLE URSSAF
   ===================================================== */
.btn-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gp-turquoise);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: var(--gp-turquoise);
    fill: none;
    stroke-width: 2;
}

.btn-icon-circle:hover {
    background: var(--gp-turquoise);
}

.btn-icon-circle:hover svg {
    stroke: white;
}

/* =====================================================
   INFO-BULLES - STYLE URSSAF
   ===================================================== */
.info-box {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    margin: 20px 0;
}

.info-box-warning {
    background: var(--gp-jaune-pale);
    border: 1px solid var(--gp-jaune-bordure);
}

.info-box-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gp-bleu-marine);
}

.info-box-content {
    flex: 1;
}

.info-box-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gp-bleu-marine);
    margin-bottom: 12px;
}

.info-box-content p {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 16px;
}

.btn-outline-yellow {
    background: transparent;
    color: var(--gp-jaune-fonce);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--gp-jaune-bordure);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline-yellow:hover {
    background: var(--gp-jaune-bordure);
    color: white;
}

.info-box-emoji {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--gp-bleu-marine);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FICHE-PAIE.FR - CSS Complet */
@import url("/public/css/fonts.css");

:root {
    --primary: #1d458c;
    --primary-dark: #163a75;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-600);
    background: var(--gray-50);
}

h1, h2, h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; }

/* HEADER */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
}



.nav { display: flex; gap: 8px; }

.nav a {
    padding: 10px 18px;
    color: var(--gray-600);
    font-weight: 500;
    border-radius: 8px;
}

.nav a:hover {
    color: var(--primary);
    background: var(--gray-100);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 12px;
}

/* HERO */
.hero {
    background: linear-gradient(135deg, rgba(29, 69, 140, 0.9) 0%, rgba(22, 58, 117, 0.85) 100%), 
                url('/public/images/hero-banner.webp') center center / cover no-repeat;
    padding: 100px 24px;
    text-align: center;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    color: white;
    font-size: 2.75rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-small {
    padding: 60px 24px;
    flex-direction: column;
}

.hero-small h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.hero-small p {
    margin-bottom: 0;
}

.hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
}

/* FORMULAIRE */
.form-section {
    padding: 60px 24px;
    background: var(--gray-50);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.form-card h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-100);
    color: var(--gray-800);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
    color: var(--gray-800);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(29, 69, 140, 0.1);
}

.form-group input[readonly],
.form-group input[disabled] {
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group small {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 32px;
}

/* RESULTATS */
.resultats-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--gray-200);
}

.resultats-section h2 {
    text-align: center;
    margin-bottom: 32px;
}

.resultats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.resultat-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    border: 1px solid var(--gray-200);
}

.resultat-card.highlight {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.resultat-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.resultat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.resultats-actions {
    text-align: center;
    margin-top: 32px;
}

.info-text {
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-top: 12px;
}

/* FOOTER */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer p { margin: 0; font-size: 0.9rem; }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
}

.footer-links a:hover { color: white; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .hero h1 { font-size: 2rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
/* BULLETIN DE PAIE - Style EXACT PDF */
.bp {
    background: white;
    font-family: Arial, sans-serif;
    font-size: 10px;
    color: #000;
    max-width: 850px;
    margin: 0 auto;
    line-height: 1.3;
}

.bp-top {
    display: grid;
    grid-template-columns: 180px 1fr 100px;
    padding: 10px 12px;
}

.bp-top-left {
    font-size: 10px;
    line-height: 1.3;
}

.bp-top-left strong {
    font-size: 11px;
    font-weight: bold;
}

.bp-top-center {
    text-align: center;
}

.bp-top-center .titre {
    font-size: 18px;
    font-weight: bold;
}

.bp-top-center .periode {
    font-size: 11px;
    margin-top: 5px;
}

.bp-top-right {
    text-align: right;
    font-size: 9px;
}

.bp-siret {
    padding: 5px 12px;
    font-size: 10px;
    border-top: 1px solid #000;
}

.bp-infos {
    display: grid;
    grid-template-columns: 55% 45%;
    border-top: 1px solid #000;
}

.bp-infos-left {
    padding: 8px 12px;
    font-size: 9px;
    line-height: 1.5;
}

.bp-infos-grid {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 1px 5px;
}

.bp-infos-grid .lab {
    font-weight: bold;
}

.bp-infos-right {
    padding: 8px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

/* ENCADRE SALARIE - Fond bleu clair, coins arrondis */
.bp-salarie-box {
    background: #dce6f5;
    border: none;
    padding: 15px 20px;
    font-size: 11px;
    line-height: 1.6;
    border-radius: 8px;
    min-width: 280px;
}

.bp-salarie-box strong {
    font-size: 13px;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.bp-convention {
    padding: 6px 12px;
    font-size: 9px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.bp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
}

/* EN-TETE BLEU-GRIS comme le PDF */
.bp-table thead tr {
    background: #1d458c;
    color: white;
}

.bp-table thead th {
    padding: 6px 4px;
    font-weight: bold;
    text-align: center;
    font-size: 9px;
    border-left: 1px solid #2d4a6f;
}

.bp-table thead th:first-child {
    text-align: left;
    padding-left: 8px;
    border-left: none;
}

.bp-table tbody td {
    padding: 2px 4px;
    border-bottom: 1px solid #d0d0d0;
    vertical-align: top;
}

.bp-table tbody td.num {
    text-align: right;
}

.bp-table tbody td.lib {
    padding-left: 8px;
}

.bp-cat td {
    font-weight: bold;
    padding-top: 5px !important;
    padding-bottom: 2px !important;
    border-bottom: none !important;
}

.bp-sub td {
    font-size: 9px;
    padding-left: 8px !important;
}

.bp-brut td {
    font-weight: bold;
    padding: 4px !important;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.bp-total td {
    font-weight: bold;
    padding: 5px 4px !important;
    border-top: 1px solid #000;
}

.bp-net-section {
    padding: 8px 12px;
}

.bp-net-row {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 9px;
}

.bp-net-row.montant-net-social {
    padding: 4px 0;
}

.bp-net-row.important {
    font-size: 14px;
    font-weight: bold;
    padding: 8px 0;
}

.bp-net-row .label { flex: 1; }
.bp-net-row .value { width: 80px; text-align: right; }

.bp-net-row.sub {
    font-size: 8px;
    color: #555;
    padding-left: 10px;
}

.bp-recap-section {
    border-top: 1px solid #1d458c;
}

.bp-recap-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8px;
}

.bp-recap-table thead tr {
    background: #1d458c;
    color: white;
}

.bp-recap-table thead th {
    padding: 4px 3px;
    font-weight: normal;
    border-right: 1px solid #2d4a6f;
}

.bp-recap-table thead th:last-child {
    border-right: none;
}

.bp-recap-table tbody td {
    padding: 4px 3px;
    text-align: right;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.bp-recap-table tbody td:first-child {
    text-align: left;
    font-weight: bold;
}

.bp-conges {
    border-top: 1px solid #1d458c;
    display: grid;
    grid-template-columns: 80px 1fr;
}

.bp-conges-left {
    background: #1d458c;
    color: white;
    padding: 8px;
    font-size: 9px;
}

.bp-conges-left div { padding: 1px 0; }

.bp-conges-right {
    padding: 8px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.bp-conges-right .net-final {
    font-size: 14px;
    font-weight: bold;
}

.bp-conges-right .paiement {
    font-size: 9px;
    color: #555;
    margin-top: 3px;
}

.bp-legal {
    padding: 6px 12px;
    font-size: 7px;
    color: #555;
    text-align: center;
    border-top: 1px solid #ccc;
}

.bp-actions {
    text-align: center;
    padding: 25px;
    background: #f5f5f5;
}
/* Classes manquantes identifiees par audit */

/* Message erreur */
.error-message {
    background: #fee2e2;
    border: 1px solid #ef4444;
    color: #b91c1c;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Legal pages */
.legal-article {
    margin-bottom: 30px;
}

.legal-article h2 {
    font-size: 18px;
    color: var(--gray-800);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.legal-article h3 {
    font-size: 16px;
    color: var(--gray-700);
    margin: 15px 0 10px;
}

.legal-article p,
.legal-article ul {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-article ul {
    padding-left: 20px;
}

.legal-article li {
    margin-bottom: 5px;
}

/* FAQ accordion */
.faq-accordion {
    margin-bottom: 15px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gray-50);
    cursor: pointer;
    font-weight: 600;
    color: var(--gray-800);
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-toggle {
    font-size: 20px;
    color: var(--primary);
    transition: transform 0.3s;
}

.faq-accordion.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s, padding 0.3s;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-accordion.active .faq-answer {
    padding: 15px 20px;
    max-height: 500px;
}

/* Tarifs - included */
.included {
    color: var(--success);
}

.included::before {
    content: "✓ ";
}

/* FEATURES SECTION */
.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray-500);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* PRICING SECTION */
.pricing-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    border: 2px solid var(--gray-200);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(29, 69, 140, 0.15);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-card h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-price {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--gray-100);
}

.pricing-price .price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.pricing-price .currency {
    font-size: 1.5rem;
    color: var(--gray-600);
    margin-left: 5px;
}

.pricing-price .period {
    display: block;
    font-size: 1rem;
    color: var(--gray-500);
    margin-top: 8px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* PRICING COMPARISON */
.pricing-comparison {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.pricing-comparison h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 40px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 600px;
}

.comparison-table thead {
    background: var(--gray-50);
}

.comparison-table th {
    padding: 20px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-200);
}

.comparison-table th.highlight {
    background: var(--primary);
    color: white;
}

.comparison-table td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-100);
}

.comparison-table td.highlight {
    background: rgba(29, 69, 140, 0.05);
    font-weight: 600;
    color: var(--primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* PRICING FAQ */
.pricing-faq {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.pricing-faq h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* FAQ SECTION */
.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.faq-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--primary);
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* CTA SECTION */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 80px 24px;
    text-align: center;
    margin-top: 80px;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
}

.cta-section .btn:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   STEPS SECTION - Simple comme 1-2-3
   ===================================================== */
.steps-section {
    background: var(--gp-gris-clair, #f3f4f6);
    padding: 80px 40px;
}

.steps-title {
    text-align: center;
    color: var(--gp-bleu-marine);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.steps-subtitle {
    text-align: center;
    color: var(--gp-gris);
    font-size: 17px;
    margin-bottom: 60px;
}

.steps-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.steps-card {
    background: var(--gp-blanc, #ffffff);
    border-radius: 20px;
    padding: 45px 35px 35px;
    flex: 1;
    max-width: 340px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(29, 69, 140, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.steps-card:hover {
    border-color: var(--gp-turquoise);
    box-shadow: 0 15px 50px rgba(65, 188, 201, 0.20);
}

.steps-big-number {
    position: absolute;
    top: -20px;
    right: 15px;
    font-size: 140px;
    font-weight: 900;
    color: #e8f7f9;
    line-height: 1;
    z-index: 0;
    opacity: 0.8;
}

.steps-card-content {
    position: relative;
    z-index: 1;
}

.steps-card-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--gp-turquoise) 0%, var(--gp-bleu-moyen, #7da4d7) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 8px 20px rgba(65, 188, 201, 0.35);
}

.steps-card-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.steps-card-title {
    color: var(--gp-bleu-marine);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
}

.steps-card-desc {
    color: var(--gp-gris);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.steps-badge {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.steps-badge-free {
    background: #e8f7f9;
    color: #0e7490;
}

.steps-badge-price {
    background: var(--gp-bleu-marine);
    color: white;
}

/* Steps Section - Responsive */
@media (max-width: 900px) {
    .steps-cards {
        flex-direction: column;
        align-items: center;
    }
    .steps-card {
        max-width: 400px;
        width: 100%;
    }
    .steps-title {
        font-size: 32px;
    }
    .steps-section {
        padding: 60px 20px;
    }
}

/* =====================================================
   STATS SECTION
   ===================================================== */
.stats-section {
    background: var(--gray-50);
    padding: 60px 24px;
    margin: 60px 0;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-item .stat-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}


/* =====================================================
   TRUST SECTION (Stats)
   ===================================================== */
.trust-section {
    background: var(--gray-50);
    padding: 60px 24px;
}

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 20px;
}

.trust-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 8px;
}

.trust-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}


/* =====================================================
   HERO TRUST BADGES
   ===================================================== */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.hero-trust-item svg {
    opacity: 0.9;
}

/* =====================================================
   BUTTON STYLES
   ===================================================== */
.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn-white {
    background: white;
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.hero-buttons .btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   TESTIMONIALS SECTION
   ===================================================== */
.testimonials-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 24px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-info strong {
    color: var(--gray-800);
    font-size: 0.95rem;
}

.testimonial-info span {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* =====================================================
   MOBILE STICKY CTA
   ===================================================== */
@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-trust-item {
        font-size: 0.85rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   STYLE URSSAF - SECTIONS FEATURES ET HOW IT WORKS
   ===================================================== */

/* Section style URSSAF avec fond dégradé */
.features-section,
.how-it-works {
    background: linear-gradient(135deg, #e8f4f8 0%, #dce6f5 100%);
    padding: 80px 24px;
}

.features-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Cartes features - style horizontal avec flèche */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(29, 69, 140, 0.1);
    border-color: rgba(65, 188, 201, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: #e8f4f8;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
    text-align: left;
}

.feature-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1d458c;
    margin: 0 0 8px 0;
}

.feature-content p {
    font-size: 14px;
    color: #1d458c;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

.feature-arrow {
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.feature-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #1d458c;
    stroke-width: 2;
}

/* Steps cards - même style */
.step-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(29, 69, 140, 0.1);
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1d458c 0%, #163a75 100%);
    color: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1d458c;
    margin: 0 0 8px 0;
}

.step-card p {
    font-size: 14px;
    color: #1d458c;
    opacity: 0.7;
    margin: 0;
    line-height: 1.5;
}

/* Responsive pour les grilles URSSAF */
@media (max-width: 968px) {
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
}




/* Page Succes - Fix alignement */
.success-hero h1 {
    display: block;
    margin-bottom: 10px;
}
.success-hero p {
    display: block;
    font-size: 24px;
    margin-top: 0;
}

/* =====================================================
   FICHE-PAIE.FR - STYLES SPECIFIQUES TPE
   Version simplifiee avec messaging "gratuit"
   ===================================================== */

/* Hero Badge - Gratuit + 2 minutes */
.hero-badge {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-green 2s infinite;
}

.badge-time {
    background: white;
    color: #1d458c;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #41bcc9;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

/* Bouton pulsant */
.btn-pulse {
    animation: pulse-btn 2s infinite;
}

@keyframes pulse-btn {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Step badges */
.step-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.step-badge-price {
    background: #1d458c;
}

.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 32px;
    height: 32px;
    background: #41bcc9;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.step-card {
    position: relative;
}

/* Section redirection PME */
.pme-redirect-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 40px 20px;
    margin: 40px 0;
    border-top: 3px solid #41bcc9;
    border-bottom: 3px solid #41bcc9;
}

.pme-redirect-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.pme-redirect-icon {
    flex-shrink: 0;
}

.pme-redirect-text {
    flex: 1;
    min-width: 250px;
}

.pme-redirect-text h3 {
    color: #1d458c;
    font-size: 20px;
    margin: 0 0 8px 0;
}

.pme-redirect-text p {
    color: #6b7280;
    margin: 0;
    font-size: 15px;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #1d458c;
    border: 2px solid #1d458c;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background: #1d458c;
    color: white;
}

/* CTA subtext */
.cta-subtext {
    margin-top: 16px;
    font-size: 14px;
    opacity: 0.8;
}

/* Pricing page specifics */
.pricing-grid-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .pricing-grid-two {
        grid-template-columns: 1fr;
    }
}

.pricing-badge-free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -40px auto 20px auto;
    display: inline-block;
    text-align: center;
}

.pricing-badge-paid {
    background: linear-gradient(135deg, #1d458c 0%, #3b82f6 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -40px auto 20px auto;
    display: inline-block;
    text-align: center;
}

.pricing-subtitle {
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.price-old {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 18px;
    margin-right: 8px;
}

.pricing-ttc {
    color: #6b7280;
    font-size: 14px;
    margin: 8px 0 20px 0;
    text-align: center;
}

.pricing-note {
    color: #6b7280;
    font-size: 13px;
    margin-top: 16px;
    font-style: italic;
    text-align: center;
}

.pricing-features li.free::before {
    content: "✓";
    color: #10b981;
    font-weight: 700;
}

/* Comparison table highlight row */
.comparison-table tr.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
}

.comparison-table tr.highlight td {
    color: #1d458c;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-badge {
        flex-direction: column;
        align-items: center;
    }
    
    .pme-redirect-content {
        flex-direction: column;
        text-align: center;
    }
    
    .pme-redirect-text {
        text-align: center;
    }
}

/* Footer ameliore */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin: 5px 0 0 0;
}

.footer-links-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.footer-pme-link {
    color: #41bcc9;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-pme-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
}

.footer-legal {
    margin-top: 10px !important;
    font-size: 11px !important;
    opacity: 0.7;
    font-style: italic;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links-group {
        align-items: center;
    }
}

/* ========================================
   FOOTER - Variante A - TOUT CENTRÉ
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, #1a2a4a, #0f1a2e);
    padding: 40px 20px 30px;
    text-align: center;
    color: #ffffff;
}

.site-footer .footer-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: block;
}

.site-footer .logo-section {
    margin-bottom: 25px;
    text-align: center;
    display: block;
}

.site-footer .logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    display: block;
}

.site-footer .tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-align: center;
}

.site-footer .footer-nav {
    margin-bottom: 25px;
    text-align: center;
    display: block;
}

.site-footer .footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 15px;
    font-size: 14px;
    transition: color 0.2s ease;
    display: inline;
}

.site-footer .footer-nav a:hover {
    color: #ffffff;
}

.site-footer .footer-separator {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px auto;
    max-width: 800px;
}

.site-footer .copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-align: center;
    display: block;
}

.site-footer .copyright-dev {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    display: block;
}

.site-footer .copyright-dev a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer .copyright-dev a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 30px 15px 25px;
    }

    .site-footer .footer-nav a {
        display: inline-block;
        margin: 5px 10px;
    }
}
