:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --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;

    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    --transition: all 0.25s ease;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

h1 {
    font-size: 2.0rem;
    color: var(--emerald-700);
}

h1.section-title {
    position: relative;
    padding-bottom: 0.6rem;
}

h1.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200px; /* longueur du souligné */
    height: 2px;
    background: linear-gradient(to right, #03381b, transparent);
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--gray-500);
    font-size: 1rem;
}

small {
    color: var(--gray-500);
    font-size: 0.85rem;
}

/* ------------------------------
   SECTIONS
------------------------------ */

/* Sections Corporate Blue */
.section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid var(--emerald-800);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s ease;
}

.section:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}


.btn-goppo {
    background-color: var(--emerald-600);
    color: white;
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: none;
}

.btn-goppo:hover {
    background-color: var(--emerald-700);
    box-shadow: var(--shadow-md);
}

.btn-goppo-outline {
    background-color: white;
    color: var(--emerald-700);
    border: 2px solid var(--emerald-300);
    padding: 0.65rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
}

.btn-goppo-outline:hover {
    background-color: var(--emerald-50);
    border-color: var(--emerald-400);
}

.badge-goppo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-paid {
    background: var(--emerald-100);
    color: var(--emerald-700);
    border-color: var(--emerald-300);
}

.badge-sent {
    background: #e0f2fe;
    color: #0369a1;
    border-color: #7dd3fc;
}

.badge-draft {
    background: #fef3c7;
    color: #b45309;
    border-color: #fcd34d;
}

.card-goppo {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card-goppo:hover {
    box-shadow: var(--shadow-md);
}

.table-goppo thead {
    background: var(--gray-100);
}

.table-goppo th {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
}

.table-goppo td {
    padding: 1rem;
    vertical-align: middle;
}

.table-goppo tr:hover {
    background: var(--gray-50);
}

input, select, textarea {
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    padding: 0.65rem 0.9rem;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px var(--emerald-100);
    outline: none;
}

.section {
    padding: 3rem 0;
}

.container-narrow {
    max-width: 900px;
    margin: auto;
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.shadow-soft {
    box-shadow: var(--shadow-sm);
}

.shadow-medium {
    box-shadow: var(--shadow-md);
}

.shadow-strong {
    box-shadow: var(--shadow-lg);
}
/* SIDEBAR PREMIUM */
details {
    width: 100%;
    display: block;
}

.app-sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;

    background: var(--gray-100);
    border-right: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.app-main {
    flex: 1;
    padding: 2rem;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin: 20px;
}

.sidebar-custom {
    background-color: #ffffff; /* couleur par défaut */
    border-right: 1px solid #c0c0c0; /* équivalent de border-end Bootstrap */
}


/* Navigation */
.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section */
.sidebar-section {
    background: var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem;
}

/* Summary (bouton principal) */
.sidebar-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-summary:hover {
    background: var(--emerald-100);
    color: var(--emerald-700);
}

/* Sous-menu */
.sidebar-submenu {
    margin-top: 0.5rem;
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Liens */
.sidebar-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar-link:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
}

/* Footer */
.sidebar-footer {
    border-top: 1px solid var(--gray-300);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* --- STYLE TIIME --- */

/* Table générale */
.table-tiime {
    border-collapse: separate;
    border-spacing: 0 6px;
    width: 100%;
    table-layout: fixed; /* <-- clé */
}

.table-tiime thead th {
    background: #f5f7f9;
    color: #4a5568;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
}

/* Lignes */
.table-tiime tbody tr {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    transition: background 0.15s ease-in-out;
}

.table-tiime tbody tr:hover {
    background: #f0f7f4;
}

.table-tiime tbody tr:hover::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #38a169; /* vert Tiime */
    border-radius: 0 4px 4px 0;
}

.table-tiime tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* Inputs compressibles */
.input-tiime {
    border: none;
    border-bottom: 1px solid #d1d5db; /* gris clair */
    background: transparent;
    padding: 4px 2px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 13px;
    color: #2d3748;
    box-sizing: border-box;
    transition: all 0.2s ease;
}



.input-tiime:focus {
    outline: none;
    border-bottom: 1px solid #38a169;
}

/* Select Tiime */
.select-tiime {
    border: none;
    background: transparent;
    padding: 4px 2px;
    width: 100%;
    font-size: 13px;
    color: #2d3748;
}

.select-tiime:focus {
    outline: none;
    border-bottom: 1px solid #38a169;
}

/* Colonnes compressibles */
.col-code { max-width: 10px; }
.col-qty { max-width: 10px; }
.col-unit { max-width: 10px; }
.col-price { max-width: 20px; }
.col-tva { max-width: 10px; }
.col-total { max-width: 20px; }

.col-desc { width: auto; }

/* Empêche les colonnes de s'étirer */
.table-tiime td,
.table-tiime th {
    white-space: nowrap;
}

/* Empêche les débordements */
.table-tiime td {
    overflow: hidden; /* <-- clé */
}

/* Bouton supprimer */
.btn-delete {
    color: #e53e3e;
    font-size: 18px;
}

.btn-delete:hover {
    color: #c53030;
}

.textarea-tiime {
    border: none;
    background: transparent;
    padding: 4px 2px;
    width: 100%;
    font-size: 13px;
    color: #2d3748;
    resize: none;
    overflow: hidden;
    line-height: 1.3;
    box-sizing: border-box;
    white-space: normal; /* <-- clé pour autoriser le retour à la ligne */
}
.textarea-tiime:focus {
    outline: none;
    border-bottom: 1px solid #38a169;
}

.client-card {
    width: 28rem;          /* largeur idéale Tiime */
    max-width: 100%;       /* sécurité responsive */
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-left: 4px solid #38a169;
    background: #ffffff;
}

.table-tiime thead tr {
    position: relative;
}

.table-tiime thead tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #38a169; /* vert Tiime */
    border-radius: 0 0px 0px 0;
}

.table-tiime thead th {
    background: #f5f7f9;
    color: #4a5568;
    font-weight: 600;
    padding: 12px 8px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    white-space: nowrap;
}

.form-input {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 10px 12px;
}

.form-input[name="name"],
.form-input[name="address_line"],
.form-input[name="contact_name"] {
    width: 100%;
}

.input-tiime::placeholder {
    color: #9aa0a6;
    font-style: italic;
    opacity: 0.8;
}

.input-tiime-help,
.textarea-tiime-help {
    position: relative;
}

.input-tiime-help::after,
.textarea-tiime-help::after {
    content: attr(data-help);
    position: absolute;
    bottom: 6px;
    left: 12px;
    font-size: 0.75rem;
    font-style: italic;
    color: #9aa0a6;
    pointer-events: none;
    opacity: 0.8;
}

.input-help::placeholder {
    color: #9aa0a6;
    font-style: italic;
    opacity: 0.8;
}

/* Le placeholder disparaît quand l'utilisateur tape */
.input-help:not(:placeholder-shown)::placeholder {
    opacity: 0;
}

.table {
    font-size: 0.85rem;   /* Taille plus petite */
}

.table th,
.table td {
    padding: 0.4rem 0.5rem; /* Resserre un peu les cellules */
}

/* Colonne Nom plus large */
.table .col-name {
    width: 22%;
}

/* Colonne Contact plus petite */
.table .col-contact {
    width: 12%;
}

.section-divider {
    border: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #03381b, transparent);
    margin: 0.5rem 0 1.5rem 0;
}

.search-sm {
    font-size: 0.85rem;          /* police plus petite */
    padding: 0.35rem 0.6rem;     /* champ plus fin */
    height: auto;                /* enlève la hauteur imposée */
    border-radius: 6px;          /* arrondi élégant */
}

.filter-btn-sm {
    font-size: 0.75rem;        /* police plus petite */
    padding: 0.18rem 0.40rem;  /* boutons plus fins */
    border-radius: 4px;        /* arrondi plus discret */
}

.filter-container-sm {
    padding: 0.25rem 0.5rem !important;
    gap: 0.35rem !important;
}

.badge-thin {
    padding-top: 0.10rem !important;
    padding-bottom: 0.10rem !important;
    font-size: 0.75rem;
}

.card-goppo2 {
    border-color: transparent;
    
}

.pagination .page-link {
    color: #198754; /* vert Bootstrap */
}

.pagination .page-item.active .page-link {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.pagination .page-link:hover {
    color: #145c32;
}

/* Colonne solde */
td.col-solde {
    color: red;
    font-weight: bold;
}

body {
    background-color: #f5f6f8; /* gris clair moderne */
}

/* Cadre blanc centré */
.content-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 35px;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.nav-link.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* --- Onglets modernes Goppo --- */

.nav-tabs {
    border-bottom: 2px solid #e5e7eb; /* gris clair */
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #4a5568; /* gris foncé */
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 6px 6px 0 0;
    position: relative;
    transition: all 0.2s ease;
}

/* Hover */
.nav-tabs .nav-link:hover {
    color: #1e7e34; /* vert foncé */
    background: #f8fff9; /* vert très pâle */
}

/* Onglet actif */
.nav-tabs .nav-link.active {
    color: #1e7e34;
    background: #ffffff;
    font-weight: 600;
}

/* Soulignement animé de l’onglet actif */
.nav-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 20%;
    width: 60%;
    height: 3px;
    background-color: #28a745; /* vert Goppo */
    border-radius: 3px;
}

/* Supprime les bordures Bootstrap par défaut */
.nav-tabs .nav-link,
.nav-tabs .nav-link.active {
    border: none !important;
}


.hover-shadow {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-3px);
}

/* Taille du donut */
.donut-container {
    width: 220px;
    height: 220px;
}

/* Légende */
#donutLegend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#donutLegend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

#donutLegend li span {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 50%;
}

/* Conteneur horizontal donut + légende */
.donut-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* Taille du donut */
.donut-container {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
}

/* Canvas doit respecter la taille */
.donut-container canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Légende Chart.js */
.donut-legend {
    max-width: 180px;
}

.donut-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.donut-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.donut-legend li span {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border-radius: 50%;
}

.donut-wrapper {
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

/* =========================================================
   DASHBOARD — PERFORMANCES DU MOIS
   ========================================================= */

.dashboard-performance-card {
    padding: 26px;
}


/* Petits KPI du haut */

.dashboard-mini-kpi {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 18px;
    min-height: 145px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.04);
}


/* Version cotisations */

.dashboard-mini-kpi-danger {
    background-color: rgba(255, 228, 225, 0.507);
}


/* Bloc disponible */

.dashboard-disponible-card {
    background-color: rgba(151, 245, 214, 0.24);
    border-radius: 18px;
    padding: 20px;
}


/* Disponible prévisionnel */

.dashboard-prevision-card {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 12px;
    padding: 12px 15px;
}


/* =========================================================
   DASHBOARD — CHARGES DU MOIS
   ========================================================= */

.dashboard-charges-card {
    display: flex;
    flex-direction: column;
    padding: 24px 14px;
}


/* Donut + légende */

.dashboard-donut-wrapper {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 18px;
}


/* Donut spécifique au dashboard */

.dashboard-donut-container {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}


/* Canvas */

.dashboard-donut-container canvas {
    width: 100% !important;
    height: 100% !important;
}


/* Légende plus compacte */

.dashboard-charges-card .donut-legend {
    width: 100%;
    max-width: 180px;
}


.dashboard-charges-card .donut-legend ul {
    list-style: none;
    padding: 0;
    margin: 0;
}


.dashboard-charges-card .donut-legend li {
    display: flex;
    align-items: center;

    margin-bottom: 6px;

    font-size: 12px;
    line-height: 1.25;
}


/* Responsive */

@media (max-width: 991px) {

    .dashboard-donut-container {
        width: 180px;
        height: 180px;
    }

}

/* =========================================================
   DASHBOARD — RÉPARTITION DES CHARGES EN BARRES
   ========================================================= */

.dashboard-charges-breakdown {
    display: flex;
    flex-direction: column;
    gap: 18px;

    margin-top: 10px;
}


/* Total */

.dashboard-charges-total {
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}


/* Une ligne de charge */

.dashboard-charge-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* Libellé + montant */

.dashboard-charge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    font-size: 12px;
}


.dashboard-charge-label {
    font-weight: 600;
    color: #334155;
}


.dashboard-charge-value {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}


/* Barre */

.dashboard-charge-bar {
    width: 100%;
    height: 8px;

    background: #e9ecef;

    border-radius: 999px;

    overflow: hidden;
}


/* Partie remplie */

.dashboard-charge-fill {
    height: 100%;

    border-radius: 999px;

    transition: width 0.4s ease;
}


/* Pourcentage */

.dashboard-charge-percent {
    font-size: 11px;
    color: #64748b;
    text-align: right;
}

/* ============================================================
   GOPPO — MODE MOBILE + SIDEBAR COLLAPSE
   ============================================================ */

/* ------------------------------------------------------------
   SIDEBAR RÉTRACTABLE (DESKTOP)
   ------------------------------------------------------------ */
.sidebar-custom.collapsed {
    width: 70px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

/* Masquer les labels */
.sidebar-custom.collapsed .sidebar-item span {
    display: none !important;
}

/* Centrer les icônes */
.sidebar-custom.collapsed .sidebar-item {
    justify-content: center !important;
}

/* Icônes sans marge */
.sidebar-custom.collapsed .sidebar-item i {
    margin-right: 0 !important;
}

/* Bouton centré en mode collapsed */
.sidebar-custom.collapsed .sidebar-toggle {
    justify-content: center !important;
}

/* Rotation de l’icône */
.sidebar-custom.collapsed #toggleSidebar i {
    transform: rotate(180deg);
    transition: transform .3s ease;
}


.dashboard-capture {
    display: block;
    width: 100%;
    height: auto;
}

.goppo-large-preview {
    width: min(1500px, 96vw);
    margin-left: 50%;
    transform: translateX(-50%);
}

/* ------------------------------------------------------------
   MODE MOBILE — MASQUER SIDEBAR
   ------------------------------------------------------------ */
@media (max-width: 768px) {

    .sidebar-custom {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .flex-grow-1.d-flex {
        display: block !important;
    }

    main.app-main {
        padding-bottom: 80px !important;
    }
}

/* ------------------------------------------------------------
   BOTTOM BAR MOBILE
   ------------------------------------------------------------ */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 2000;
}

.bottom-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #666;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.bottom-item i {
    font-size: 22px;
}

.bottom-item.active {
    color: #198754;
    font-weight: 600;
}

.bottom-item.active i {
    color: #198754;
}

/* =========================================================
   MOBILE APP NAVIGATION
   ========================================================= */

@media (max-width: 767.98px) {

    .goppo-mobile-header {
        z-index: 1030;
    }

    .goppo-mobile-logo {
        width: 125px;
        height: auto;
        display: block;
    }

    .goppo-mobile-menu-btn {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 12px;
        background: #f3f6f4;
        color: #198754;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.7rem;
    }

    .mobile-main-navigation {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .mobile-nav-link {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        text-decoration: none;
        color: #212529;
        font-weight: 600;
    }

    .mobile-nav-link i {
        width: 24px;
        text-align: center;
        color: #198754;
        font-size: 1.15rem;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
        background: #f2f8f5;
        color: #198754;
    }

    .goppo-mobile-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 68px;
        background: #fff;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -3px 14px rgba(0,0,0,.07);
        z-index: 1040;

        display: grid;
        grid-template-columns: repeat(5, 1fr);

        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-action-item {
        appearance: none;
        border: 0;
        background: transparent;
        color: #495057;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 2px;
        padding: 5px 2px;

        font-size: .68rem;
        font-weight: 600;
    }

    .mobile-action-item i {
        color: #198754;
        font-size: 1.35rem;
        line-height: 1;
    }

    .mobile-action-pay i {
        color: #dc3545;
    }

    .mobile-action-item:disabled {
        opacity: .35;
    }

    .mobile-account-sheet {
        height: auto !important;
        max-height: 75vh;
        border-radius: 22px 22px 0 0;
    }

    .mobile-account-link {
        min-height: 54px;
        display: flex;
        align-items: center;
        gap: 14px;

        padding: 10px 12px;
        margin-bottom: 5px;

        border-radius: 12px;
        text-decoration: none;
        color: #212529;
        font-weight: 600;
    }

    .mobile-account-link > i:first-child {
        width: 25px;
        color: #198754;
        text-align: center;
        font-size: 1.15rem;
    }

    .mobile-account-link.text-danger > i:first-child {
        color: #dc3545;
    }

    .mobile-account-link:active {
        background: #f3f6f4;
    }

    /* Le contenu ne doit jamais être caché par la barre basse */
    .app-main {
        padding-bottom: 88px !important;
    }
}

/* ------------------------------------------------------------
   MODAL MOBILE
   ------------------------------------------------------------ */
.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    font-size: 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
}

.mobile-menu-link i {
    font-size: 22px;
}


/* =========================================================
   LISTE CLIENTS — RESPONSIVE
   ========================================================= */

.client-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.client-search-wrapper {
    flex: 1;
    max-width: 380px;
    margin-left: auto;
}

.client-new-btn {
    flex-shrink: 0;
}

.client-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.client-contact-detail {
    font-size: .85rem;
}


/* MOBILE */
@media (max-width: 767.98px) {

    .client-list-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px;
        align-items: center;
    }

    .client-list-header .section-title {
        grid-column: 1 / -1;
    }

    .client-search-wrapper {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .client-search-wrapper input {
        width: 100%;
        min-width: 0;
    }

    .client-new-btn {
        min-height: 42px;
        padding-left: 16px;
        padding-right: 16px;
        white-space: nowrap;
    }

    .client-list-table {
        width: 100%;
        table-layout: fixed;
        font-size: .82rem;
    }

    .client-list-table th,
    .client-list-table td {
        padding: 12px 6px;
        vertical-align: middle;
    }

    /* 3 colonnes réellement utiles */
    .client-list-table th:nth-child(1),
    .client-list-table td:nth-child(1) {
        width: 27%;
    }

    .client-list-table th:nth-child(5),
    .client-list-table td:nth-child(5) {
        width: 43%;
    }

    .client-list-table th:nth-child(6),
    .client-list-table td:nth-child(6) {
        width: 30%;
    }

    .client-mobile-commercial {
        margin-top: 3px;
        font-size: .75rem;
        line-height: 1.25;
    }

    .client-contact-cell {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .client-contact-detail {
        font-size: .75rem;
        line-height: 1.35;
    }

    .client-actions {
        flex-wrap: wrap;
        gap: 2px;
    }

    .client-actions .btn {
        width: 30px;
        height: 30px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* =========================================================
   LISTE DEVIS — RESPONSIVE
   ========================================================= */

.draft-list-header {
    width: 100%;
}

.draft-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.draft-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.draft-filters #draftSearch {
    flex: 1;
    min-width: 180px;
}

.draft-date-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.draft-date-filters input {
    width: 130px;
    font-size: 12px;
}

.draft-status-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 999px;
}

.draft-status-filters .btn {
    font-size: 11px;
}

.draft-new-btn {
    flex-shrink: 0;
}


/* MOBILE */
@media (max-width: 767.98px) {

    .draft-title-row {
        margin-bottom: 12px;
    }

    .draft-title-row .section-title {
        margin-bottom: 0;
    }

    .draft-new-btn {
        min-height: 40px;
        padding-left: 14px;
        padding-right: 14px;
        white-space: nowrap;
    }

    .draft-filters {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .draft-filters #draftSearch {
        width: 100%;
        min-width: 0;
    }

    .draft-date-filters {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 7px;
    }

    .draft-date-filters input {
        width: 100%;
        min-width: 0;
    }

    .draft-status-filters {
        width: 100%;
        justify-content: center;
        padding: 5px;
    }

    .draft-status-filters .btn {
        flex: 1;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .draft-row td,
    .draft-row th {
        white-space: nowrap;
    }

    .draft-row td:nth-child(3) {
        white-space: normal;
        min-width: 90px;
    }

    .draft-convert-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .action-icon-btn {
        width: 32px;
        height: 32px;
        padding: 0;
    }
}


/* =========================================================
   LISTE FACTURES — RESPONSIVE
   ========================================================= */

.invoice-list-header {
    width: 100%;
}

.invoice-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
}

.invoice-new-btn {
    flex-shrink: 0;
}

.invoice-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.invoice-search-row #invoiceSearch {
    flex: 1;
}

.invoice-date-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.invoice-date-filters input {
    width: 130px;
    font-size: 12px;
}

.invoice-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.invoice-payment-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 999px;
}

.invoice-payment-filters .btn {
    font-size: 11px;
}

.invoice-pdp-filter {
    width: auto;
    font-size: 11px;
}

.invoice-sync-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* MOBILE */
@media (max-width: 767.98px) {

    .invoice-title-row {
        margin-bottom: 12px;
    }

    .invoice-title-row .section-title {
        margin-bottom: 0;
    }

    .invoice-new-btn {
        min-height: 40px;
        padding-left: 14px;
        padding-right: 14px;
        white-space: nowrap;
    }

    .invoice-search-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .invoice-search-row #invoiceSearch {
        width: 100%;
        min-width: 0;
    }

    .invoice-date-filters {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 7px;
        width: 100%;
    }

    .invoice-date-filters input {
        width: 100%;
        min-width: 0;
    }

    .invoice-filter-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 8px;
        align-items: center;
    }

    .invoice-payment-filters {
        grid-column: 1 / -1;
        width: 100%;
        padding: 5px;
    }

    .invoice-payment-filters .btn {
        flex: 1;
    }

    .invoice-pdp-filter {
        width: 100%;
        min-width: 0;
    }

    .invoice-sync-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        flex-shrink: 0;
    }

    .invoice-row td {
        white-space: nowrap;
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Le nom du client peut revenir sur deux lignes */
    .invoice-row td:nth-child(2) {
        white-space: normal;
        min-width: 80px;
    }

    .invoice-fe-column {
        width: 34px;
    }
}

/* =========================================================
   DÉPENSES — RESPONSIVE
   ========================================================= */

.expense-list-header {
    width: 100%;
}

.expense-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.expense-main-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expense-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.expense-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.expense-search-row #receivedSearch {
    flex: 1;
}

.expense-date-filters {
    display: flex;
    align-items: center;
    gap: 6px;
}

.expense-date-filters input {
    width: 130px;
    font-size: 12px;
}

.expense-reset-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.expense-status-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    border-radius: 999px;
    width: fit-content;
}

.expense-status-filters .btn {
    font-size: 11px;
}

.expense-source-column {
    width: 55px;
}


/* MOBILE */
@media (max-width: 767.98px) {

    .expense-title-row {
        margin-bottom: 12px;
    }

    .expense-title-row .section-title {
        margin-bottom: 0;
    }

    .expense-action-btn {
        width: 38px;
        height: 38px;
        padding: 0;
        flex-shrink: 0;
    }

    .expense-search-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .expense-search-row #receivedSearch {
        width: 100%;
        min-width: 0;
    }

    .expense-date-filters {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        gap: 7px;
        width: 100%;
    }

    .expense-date-filters input {
        width: 100%;
        min-width: 0;
    }

    .expense-status-filters {
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 5px;
        scrollbar-width: none;
    }

    .expense-status-filters::-webkit-scrollbar {
        display: none;
    }

    .expense-status-filters .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .received-row td {
        white-space: nowrap;
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Fournisseur : autorise deux lignes */
    .received-row td:nth-child(3) {
        white-space: normal;
        min-width: 95px;
    }

    .expense-source-column {
        width: 38px;
    }
}

/* =========================================================
   TVA — HEADER RESPONSIVE
   ========================================================= */

.tva-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tva-page-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tva-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* MOBILE */
@media (max-width: 767.98px) {

    .tva-page-header {
        align-items: flex-start;
        gap: 12px;
    }

    .tva-page-title {
        flex: 1;
        min-width: 0;
    }

    .tva-page-title .section-title {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .tva-page-title p {
        font-size: 0.82rem;
    }

    .tva-page-actions {
        gap: 6px;
    }

    .tva-action-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        flex-shrink: 0;
    }
}

@media (max-width: 767.98px) {

    .movement-cell {
        width: 44px;
        min-width: 44px;
        text-align: center;
    }

    .movement-badge {
        width: 30px;
        height: 30px;
        padding: 0;
        border-radius: 50%;
        justify-content: center;
        gap: 0;
    }

    .movement-badge i {
        margin: 0;
    }
}

/* =========================================================
   SIMULATEUR COTISATIONS — MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .simulation-results .card-body {
        padding: 1rem !important;
    }

    .simulation-results h2 {
        font-size: 1.35rem;
    }

    .simulation-results h3 {
        font-size: 1.15rem;
    }

    .simulation-results h5 {
        font-size: 1rem;
    }

    .simulation-results .table {
        font-size: 0.85rem;
    }

    .simulation-results .table th,
    .simulation-results .table td {
        padding: 0.6rem;
    }
}

/* =========================================================
   HEADER PUBLIC — MENU MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    /* Hamburger */
    .navbar-toggler {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Menu ouvert */
    #navbarGoppo {
        margin-top: 10px;
        padding: 12px 0 16px;
        border-top: 1px solid #eef1ef;
    }

    #navbarGoppo .navbar-nav {
        align-items: stretch !important;
        gap: 2px;
    }

    /* Liens principaux */
    #navbarGoppo .nav-link {
        padding: 11px 12px !important;
        border-radius: 10px;
        font-weight: 500;
    }

    #navbarGoppo .nav-link:hover,
    #navbarGoppo .nav-link.active {
        background: #f1f8f4;
        color: #198754;
    }

    /* Dropdowns : intégrés au menu mobile */
    #navbarGoppo .dropdown-menu {
        position: static !important;
        float: none;
        width: 100% !important;
        min-width: 0 !important;
        margin: 2px 0 8px !important;
        padding: 6px !important;
        border: 0 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        background: #f8f9fa;
    }

    /* Mega-menu Fonctionnalités */
    #navbarGoppo .dropdown-mega {
        min-width: 0 !important;
        width: 100% !important;
    }

    #navbarGoppo .dropdown-mega .row {
        display: block;
    }

    #navbarGoppo .dropdown-mega .col-md-6 {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #navbarGoppo .dropdown-header {
        padding: 8px 10px 4px !important;
        font-size: 0.7rem;
    }

    #navbarGoppo .dropdown-item {
        padding: 9px 10px !important;
        white-space: normal;
        border-radius: 8px;
    }

    /* Connexion / création de compte */
    #navbarGoppo > .d-flex {
        width: 100%;
        padding-top: 10px;
        margin-top: 8px !important;
        border-top: 1px solid #eef1ef;
    }

    #navbarGoppo > .d-flex .btn {
        width: 100%;
        text-align: center;
    }
}






/* Bouton de rétractation : zone sans padding */
.sidebar-toggle {
    padding: 0 0.5rem; /* léger padding pour respirer */
}

/* En mode collapsed : centrer parfaitement */
.sidebar-custom.collapsed .sidebar-toggle {
    justify-content: center !important;
    padding: 0 !important;
}

#toggleSidebar i {
    transition: transform .3s ease;
}

.sidebar-custom.collapsed #toggleSidebar i {
    transform: rotate(180deg);
}

.sidebar-top {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-bottom {
    padding-bottom: 1rem;
}

.sidebar-custom.collapsed .sidebar-top nav {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Bouton flottant sur le bord droit */
.sidebar-floating-toggle {
    position: absolute;
    top: 20px;
    right: -12px; /* dépasse légèrement de la sidebar */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all .3s ease;
}

/* Icône */
.sidebar-floating-toggle i {
    transition: transform .3s ease;
}

/* Rotation en mode collapsed */
.sidebar-custom.collapsed .sidebar-floating-toggle i {
    transform: rotate(180deg);
}

/* Repositionner le bouton quand collapsed */
.sidebar-custom.collapsed .sidebar-floating-toggle {
    right: -12px; /* même position */
}

.sidebar-custom {
    position: relative;
}


.pricing-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.price-tag {
    font-size: 1.6rem;
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
}

.selected-plan {
    border: 2px solid #0d6efd !important;
}

.selected-plan-premium {
    border: 2px solid #198754 !important;
}


.auth-tab {
    border: none;
    background: #f1f3f5;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all .2s ease;
}

.auth-tab.active {
    background: #198754;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.auth-panel {
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* =====================================================
   GOPPO - HEADER
   ===================================================== */

.goppo-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #edf0ee;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.035);
    z-index: 1030;
}


/* Logo */

.goppo-logo {
    width: 155px;
    height: auto;
    display: block;
}


/* Navigation */

.goppo-nav-link {
    color: #495057 !important;
    font-size: 0.94rem;
    font-weight: 500;
    padding: 0.7rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.goppo-nav-link:hover,
.goppo-nav-link:focus {
    color: #198754 !important;
    background-color: #f4faf7;
}


/* Enlève un peu l'aspect Bootstrap classique
   de la flèche dropdown */

.goppo-nav-link.dropdown-toggle::after {
    margin-left: 0.4rem;
    vertical-align: 0.12em;
}


/* =====================================================
   DROPDOWNS
   ===================================================== */

.goppo-dropdown {
    width: 380px;
    padding: 0.65rem;
    margin-top: 0.7rem !important;

    border: 1px solid #edf0ee !important;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.03);
}


/* Dropdowns plus petits */

.goppo-dropdown-small {
    width: 290px;
}


/* Titre de catégorie */

.dropdown-section-title {
    display: block;

    font-size: 0.72rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.06em;

    color: #9aa2a8;
}


/* Ligne fonctionnalité */

.goppo-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    padding: 0.65rem 0.7rem;

    border-radius: 10px;

    white-space: normal;

    transition: background-color 0.2s ease;
}

.goppo-dropdown-item:hover,
.goppo-dropdown-item:focus {
    background-color: #f4faf7;
    color: inherit;
}


/* Texte fonctionnalité */

.goppo-dropdown-item strong {
    display: block;

    color: #212529;

    font-size: 0.9rem;
    font-weight: 600;
}


/* Petit descriptif */

.goppo-dropdown-item small {
    display: block;

    color: #8a9298;

    font-size: 0.76rem;

    margin-top: 2px;
}


/* Icônes */

.goppo-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 9px;

    background-color: #eaf6ef;
    color: #198754;

    font-size: 0.95rem;
    font-weight: 700;
}


/* Liens simples */

.goppo-simple-item {
    border-radius: 8px;

    padding: 0.65rem 0.8rem;

    font-size: 0.9rem;
    font-weight: 500;

    color: #495057;

    transition: all 0.2s ease;
}

.goppo-simple-item:hover,
.goppo-simple-item:focus {
    color: #198754;
    background-color: #f4faf7;
}


/* Bas du dropdown */

.goppo-dropdown-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0.7rem 0.8rem;

    border-radius: 8px;

    color: #198754;
    font-size: 0.86rem;
    font-weight: 600;
}

.goppo-dropdown-footer:hover {
    color: #146c43;
    background-color: #f4faf7;
}


/* =====================================================
   BOUTONS
   ===================================================== */

.goppo-login-btn {
    padding: 0.62rem 0.9rem;

    color: #343a40;

    font-size: 0.92rem;
    font-weight: 500;

    border: none;

    transition: all 0.2s ease;
}

.goppo-login-btn:hover {
    color: #198754;
    background-color: #f4faf7;
}


.goppo-signup-btn {
    padding: 0.65rem 1.25rem;

    border-radius: 9px;

    background-color: #198754;
    border-color: #198754;

    color: white;

    font-size: 0.92rem;
    font-weight: 600;

    box-shadow: 0 5px 14px rgba(25, 135, 84, 0.18);

    transition: all 0.2s ease;
}

.goppo-signup-btn:hover {
    background-color: #157347;
    border-color: #157347;

    color: white;

    transform: translateY(-1px);

    box-shadow: 0 7px 18px rgba(25, 135, 84, 0.24);
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 991.98px) {

    .navbar-collapse {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .goppo-nav-link {
        padding: 0.65rem 0.5rem !important;
    }

    .goppo-dropdown,
    .goppo-dropdown-small {
        width: 100%;

        margin-top: 0 !important;

        border: none !important;

        box-shadow: none;

        padding-left: 0.5rem;
    }

    .goppo-dropdown-item {
        padding-left: 0.5rem;
    }

    .goppo-signup-btn {
        width: 100%;
    }

    .goppo-login-btn {
        width: 100%;
    }
}

/* =====================================================
   HOME GOPPO
===================================================== */

:root {
    --goppo-green: #198754;
    --goppo-green-dark: #126c43;
    --goppo-green-light: #eaf6ef;

    --goppo-text: #17221d;
    --goppo-text-muted: #64706a;

    --goppo-bg-soft: #f7faf8;
    --goppo-border: #e7ece9;

    --goppo-radius: 18px;
}


/* =====================================================
   HERO
===================================================== */

.goppo-hero {
    position: relative;
    overflow: hidden;

    padding: 90px 0 100px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(25, 135, 84, 0.10),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbf9 100%
        );
}


.goppo-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    background: #edf8f2;

    color: var(--goppo-green-dark);

    border: 1px solid #dceee4;
    border-radius: 50px;

    font-size: 0.82rem;
    font-weight: 600;
}


.goppo-badge-dot {
    width: 7px;
    height: 7px;

    background: var(--goppo-green);

    border-radius: 50%;
}


.goppo-hero-title {
    color: var(--goppo-text);

    font-size: clamp(2.5rem, 5vw, 4.4rem);

    line-height: 1.05;

    font-weight: 600;

    letter-spacing: -0.04em;
}


.goppo-hero-title span {
    color: var(--goppo-green);
}


.goppo-hero-description {
    max-width: 590px;

    color: var(--goppo-text-muted);

    font-size: 1.15rem;

    line-height: 1.75;
}


.goppo-hero-primary {
    padding: 0.85rem 1.5rem;

    border-radius: 10px;

    background: var(--goppo-green);
    border: 1px solid var(--goppo-green);

    color: #ffffff;

    font-weight: 600;

    box-shadow: 0 8px 22px rgba(25, 135, 84, 0.2);

    transition: all 0.2s ease;
}


.goppo-hero-primary:hover {
    background: var(--goppo-green-dark);
    border-color: var(--goppo-green-dark);

    color: #ffffff;

    transform: translateY(-1px);
}


.goppo-hero-secondary {
    padding: 0.85rem 1.5rem;

    border-radius: 10px;

    background: #ffffff;

    border: 1px solid #dce4df;

    color: #37433d;

    font-weight: 600;

    transition: all 0.2s ease;
}


.goppo-hero-secondary:hover {
    border-color: #bac8c0;

    background: #f9fbfa;

    color: var(--goppo-green-dark);
}


.goppo-hero-reassurance {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;

    color: #7a847e;

    font-size: 0.82rem;
}


/* Capture hero */

.goppo-app-preview {
    position: relative;

    padding: 14px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.8);

    border: 1px solid rgba(223, 232, 226, 0.9);

    box-shadow:
        0 30px 70px rgba(28, 60, 43, 0.14),
        0 8px 22px rgba(28, 60, 43, 0.07);
}


.goppo-app-preview-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    right: -70px;
    bottom: -80px;

    background: rgba(25, 135, 84, 0.11);

    filter: blur(70px);

    border-radius: 50%;

    z-index: -1;
}


.goppo-dashboard-image {
    width: 100%;

    border-radius: 13px;

    display: block;
}


/* =====================================================
   BENEFITS BAR
===================================================== */

.goppo-benefits-bar {
    padding: 32px 0;

    border-top: 1px solid var(--goppo-border);
    border-bottom: 1px solid var(--goppo-border);

    background: #ffffff;
}


.goppo-mini-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.goppo-mini-icon {
    font-size: 1.3rem;

    margin-bottom: 6px;
}


.goppo-mini-benefit strong {
    color: var(--goppo-text);

    font-size: 0.92rem;
}


.goppo-mini-benefit small {
    color: #89928d;

    font-size: 0.75rem;
}


/* =====================================================
   SECTIONS
===================================================== */

.goppo-section {
    padding: 100px 0;
}


.goppo-section-heading {
    max-width: 760px;

    margin: 0 auto 55px;
}


.goppo-section-heading h2,
.goppo-pricing-preview h2,
.goppo-final-cta h2 {
    color: var(--goppo-text);

    font-size: clamp(2rem, 4vw, 3rem);

    font-weight: 720;

    letter-spacing: -0.035em;
}


.goppo-section-heading p {
    max-width: 640px;

    margin: 18px auto 0;

    color: var(--goppo-text-muted);

    font-size: 1.05rem;

    line-height: 1.7;
}


.goppo-eyebrow {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--goppo-green);

    font-size: 0.78rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.08em;
}


/* Grande capture */

.goppo-large-preview {
    padding: 14px;

    border: 1px solid var(--goppo-border);

    border-radius: 22px;

    background: #ffffff;

    box-shadow: 0 28px 70px rgba(37, 61, 49, 0.09);
}


.goppo-large-preview img {
    border-radius: 13px;

    width: 100%;
}


/* =====================================================
   FEATURE SECTIONS
===================================================== */

.goppo-feature-section {
    padding: 100px 0;
}


.goppo-feature-alt {
    background: var(--goppo-bg-soft);
}


.goppo-feature-image {
    padding: 12px;

    border-radius: var(--goppo-radius);

    border: 1px solid var(--goppo-border);

    background: #ffffff;

    box-shadow: 0 22px 55px rgba(28, 60, 43, 0.09);
}


.goppo-feature-image img {
    width: 100%;

    border-radius: 11px;
}


.goppo-feature-title {
    color: var(--goppo-text);

    font-size: clamp(2rem, 3.5vw, 2.8rem);

    line-height: 1.15;

    font-weight: 720;

    letter-spacing: -0.035em;

    margin-bottom: 20px;
}


.goppo-feature-description {
    color: var(--goppo-text-muted);

    font-size: 1.03rem;

    line-height: 1.75;
}


.goppo-feature-list {
    list-style: none;

    padding: 0;

    margin: 28px 0;
}


.goppo-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 13px;

    color: #3c4741;

    font-size: 0.96rem;
}


.goppo-feature-list li span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--goppo-green-light);

    color: var(--goppo-green);

    font-size: 0.7rem;

    font-weight: 700;
}


.goppo-text-link {
    display: inline-flex;

    gap: 8px;

    color: var(--goppo-green);

    text-decoration: none;

    font-weight: 600;
}


.goppo-text-link:hover {
    color: var(--goppo-green-dark);
}


/* =====================================================
   MICRO SECTION
===================================================== */

.goppo-micro-section {
    padding: 100px 0;
    margin: 0 20px; /* Ajoute de l'espace sur les côtés pour voir les arrondis */
    border-radius: 2rem; /* Arrondit les 4 coins (ou utilise 24px) */
    overflow: hidden; /* Évite que le contenu dépasse des coins arrondis */

    background:
        linear-gradient(
            135deg,
            #227751,
            #198754a2
        );

    color: #ffffff;
    
}


.goppo-eyebrow-light {
    color: #d0f1de;
}


.goppo-micro-section h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);

    font-weight: 720;

    letter-spacing: -0.035em;

    margin-bottom: 22px;
}


.goppo-micro-section p {
    max-width: 570px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 1.05rem;

    line-height: 1.75;
}


.goppo-light-button {
    margin-top: 14px;

    padding: 0.8rem 1.3rem;

    border-radius: 10px;

    font-weight: 600;
}


.goppo-micro-card {
    padding: 20px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.12);

    border: 1px solid rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(8px);
}


.goppo-micro-card-item {
    display: flex;
    gap: 14px;

    align-items: center;

    padding: 18px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}


.goppo-micro-card-item:last-child {
    border-bottom: none;
}


.goppo-micro-card-item > span {
    font-size: 1.4rem;
}


.goppo-micro-card-item strong {
    display: block;

    font-size: 0.95rem;
}


.goppo-micro-card-item small {
    color: rgba(255, 255, 255, 0.65);

    font-size: 0.78rem;
}


/* =====================================================
   PRICING PREVIEW
===================================================== */

.goppo-pricing-preview {
    padding: 90px 0;

    background: var(--goppo-bg-soft);
}


.goppo-pricing-preview p {
    max-width: 620px;

    margin: 18px auto 30px;

    color: var(--goppo-text-muted);

    font-size: 1.05rem;
}


/* =====================================================
   FINAL CTA
===================================================== */

.goppo-final-cta {
    padding: 90px 0;
}


.goppo-final-cta-box {
    max-width: 980px;

    margin: 0 auto;

    padding: 70px 40px;

    border-radius: 24px;

    background:
        radial-gradient(
            circle at top right,
            rgba(25, 135, 84, 0.09),
            transparent 40%
        ),
        #ffffff;

    border: 1px solid var(--goppo-border);

    box-shadow: 0 25px 65px rgba(28, 60, 43, 0.08);
}


.goppo-final-cta-box p {
    max-width: 620px;

    margin: 18px auto 30px;

    color: var(--goppo-text-muted);

    font-size: 1.02rem;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991.98px) {

    .goppo-hero {
        padding: 65px 0 75px;
    }

    .goppo-feature-section,
    .goppo-section,
    .goppo-micro-section {
        padding: 75px 0;
    }

}


@media (max-width: 575.98px) {

    .goppo-hero-title {
        font-size: 2.55rem;
    }

    .goppo-hero-description {
        font-size: 1rem;
    }

    .goppo-hero-reassurance {
        flex-direction: column;

        gap: 7px;
    }

    .goppo-final-cta-box {
        padding: 48px 22px;
    }

}

.kpi-card2 {
        border-radius: 18px;
        background: white;
        padding: 24px;
        box-shadow: var(--goppo-shadow);
        transition: all .25s ease;
        border-left: 4px solid var(--emerald-800);
    }

.kpi-card2:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    }

/* Version optimisée pour les captures avec beaucoup de texte */
.dashboard-capture {
    width: 100%;
    height: auto;
    
    /* Ces options forcent le navigateur à lisser le texte proprement sans le rendre flou */
    image-rendering: auto; 
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Un léger effet pour éviter que les petits textes "bavent" sur grand écran */
    transform: translateZ(0); 
}

.pricing-promo {
    padding: 12px 15px;

    background: #f0faf4;
    border: 1px solid #d8efe1;
    border-radius: 10px;

    color: #495057;

    font-size: 0.86rem;
    line-height: 1.45;
}

.pricing-promo strong {
    display: block;
    color: #198754;
    font-weight: 700;
    margin-bottom: 2px;
}

/* évite que le header sticky cache le début des sections */
.feature-anchor {
    scroll-margin-top: 95px;
}

.sticky-feature-nav {
    position: sticky;
    top: 72px;
    z-index: 1010;
}

/* =========================================
   COOKIES
========================================= */

.goppo-cookie-banner {
    display: none;

    position: fixed;

    left: 24px;
    right: 24px;
    bottom: 24px;

    max-width: 1100px;
    margin: auto;

    padding: 22px 24px;

    background: #ffffff;

    border: 1px solid #e5ebe7;
    border-radius: 18px;

    box-shadow:
        0 15px 50px rgba(30, 60, 45, 0.15);

    z-index: 9999;
}


.goppo-cookie-content {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;
}


.goppo-cookie-text {
    max-width: 650px;
}


.goppo-cookie-text h5 {
    font-weight: 700;
    margin-bottom: 6px;
}


.goppo-cookie-text p {
    color: #64706a;

    font-size: 0.9rem;

    margin-bottom: 5px;

    line-height: 1.55;
}


.goppo-cookie-text a {
    color: #198754;

    font-size: 0.85rem;

    font-weight: 600;

    text-decoration: none;
}


.goppo-cookie-buttons {
    display: flex;

    gap: 8px;

    flex-shrink: 0;
}


/* Personnalisation */

.goppo-cookie-settings {
    display: none;

    margin-top: 20px;
}


.cookie-setting {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid #edf1ef;
}


.cookie-setting p {
    margin: 3px 0 0;

    color: #6c757d;

    font-size: 0.85rem;
}


/* Mobile */

@media (max-width: 768px) {

    .goppo-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;

        padding: 20px;
    }


    .goppo-cookie-content {
        flex-direction: column;
        align-items: stretch;
    }


    .goppo-cookie-buttons {
        flex-direction: column;
    }


    .goppo-cookie-buttons .btn {
        width: 100%;
    }

}

/* =====================================================
   POLITIQUE DE CONFIDENTIALITE
===================================================== */

.privacy-hero {
    background:
        linear-gradient(
            135deg,
            #f4fbf7,
            #eef8f2
        );
}


.privacy-content {
    color: #64706a;
    line-height: 1.75;
}


.privacy-section {
    margin-bottom: 55px;
}


.privacy-section h2 {
    color: #17221d;

    font-size: 1.55rem;
    font-weight: 700;

    margin-bottom: 20px;
}


.privacy-section h3 {
    color: #25332c;

    font-size: 1.05rem;
    font-weight: 700;

    margin-top: 28px;
    margin-bottom: 12px;
}


.privacy-section p {
    color: #64706a;
}


.privacy-section li {
    margin-bottom: 7px;
}


/* Carte information */

.privacy-info-card {
    padding: 22px 24px;

    margin: 20px 0;

    background: #f7faf8;

    border: 1px solid #e4ece7;
    border-radius: 14px;
}


.privacy-info-card p {
    margin-bottom: 5px;
}


/* Table */

.privacy-table {
    margin-top: 20px;

    border: 1px solid #e7ece9;
}


.privacy-table th {
    background: #f4f9f6;

    color: #25332c;

    font-weight: 700;
}


.privacy-table td,
.privacy-table th {
    padding: 14px 16px;

    vertical-align: middle;

    border-color: #e7ece9;
}


/* Bloc à compléter */

.privacy-warning {
    padding: 18px 20px;

    margin-top: 20px;

    background: #fff9e8;

    border: 1px solid #f2e5b9;
    border-radius: 12px;

    color: #76652c;
}


.privacy-warning strong {
    display: block;

    margin-bottom: 4px;
}


/* Permet au menu déroulant de sortir du conteneur du tableau par le bas */
.table-responsive {
    overflow-x: auto;
    overflow-y: visible !important;
}


.goppo-document-toolbar {
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 12px 16px;

    background: #fff;
    border: 1px solid var(--goppo-border);
    border-radius: 16px;

    box-shadow: 0 4px 18px rgba(23, 34, 29, 0.05);
}

.goppo-document-toolbar .btn {
    font-weight: 500;
}

.goppo-document-toolbar .btn-sm {
    min-height: 36px;
}

.goppo-document-toolbar .rounded-circle {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background: var(--goppo-bg-soft);
}

.goppo-document-actions {
    position: fixed;

    right: 24px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 1030;

    display: flex;
    flex-direction: column;
    gap: 8px;

    min-width: 145px;
    padding: 12px;

    background: #fff;

    border: 1px solid var(--goppo-border);
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(23, 34, 29, 0.10);
}

.goppo-document-actions .btn {
    width: 100%;
    text-align: left;
    font-weight: 500;
}

.goppo-actions-separator {
    height: 1px;
    background: var(--goppo-border);
    margin: 3px 0;
}


/* Mobile */
@media (max-width: 768px) {

    .goppo-document-actions {
        left: 16px;
        right: 16px;
        top: auto;
        bottom: 16px;

        transform: none;

        min-width: 0;

        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .goppo-document-actions .btn {
        width: auto;
    }

    .goppo-actions-separator {
        display: none;
    }
}

.goppo-document-actions {
    position: fixed;

    right: 24px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 1030;

    display: flex;
    flex-direction: column;

    width: 190px;
    padding: 10px;

    background: #fff;

    border: 1px solid var(--goppo-border);
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(23, 34, 29, 0.10);
}


.goppo-action-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: var(--goppo-text);
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    text-align: left;

    transition: background 0.15s ease;
}


.goppo-action-item:hover {
    background: var(--goppo-bg-soft);
    color: var(--goppo-text);
}


.goppo-action-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}


.goppo-action-primary {
    background: var(--goppo-green-light);
    color: var(--goppo-green-dark);
}


.goppo-action-primary:hover {
    background: #dff2e7;
    color: var(--goppo-green-dark);
}


.goppo-action-status {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;

    color: var(--goppo-green-dark);
    background: var(--goppo-green-light);

    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;
}


.goppo-actions-separator {
    height: 1px;

    margin: 5px 4px;

    background: var(--goppo-border);
}


@media (max-width: 992px) {

    .goppo-document-actions {
        left: 16px;
        right: 16px;

        top: auto;
        bottom: 16px;

        width: auto;

        transform: none;

        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }


    .goppo-action-item {
        width: auto;
    }


    .goppo-actions-separator {
        display: none;
    }

}

.goppo-document-actions {
    position: fixed;

    right: 24px;
    top: 50%;
    transform: translateY(-50%);

    z-index: 1030;

    display: flex;
    flex-direction: column;

    width: 190px;
    padding: 10px;

    background: #fff;

    border: 1px solid var(--goppo-border);
    border-radius: 18px;

    box-shadow: 0 8px 30px rgba(23, 34, 29, 0.10);
}


.goppo-action-item {
    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 11px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: var(--goppo-text);
    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    text-align: left;

    transition: background 0.15s ease;
}


.goppo-action-item:hover {
    background: var(--goppo-bg-soft);
    color: var(--goppo-text);
}


.goppo-action-item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
}


.goppo-action-primary {
    background: var(--goppo-green-light);
    color: var(--goppo-green-dark);
}


.goppo-action-primary:hover {
    background: #dff2e7;
    color: var(--goppo-green-dark);
}


.goppo-actions-separator {
    height: 1px;

    margin: 5px 4px;

    background: var(--goppo-border);
}


.goppo-zoom-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 5px 3px;
}


.goppo-zoom-btn {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--goppo-border);
    border-radius: 50%;

    background: #fff;

    font-size: 17px;
    line-height: 1;
}


.goppo-zoom-btn:hover {
    background: var(--goppo-bg-soft);
}


.goppo-zoom-value {
    min-width: 42px;
    text-align: center;

    font-size: 12px;
    color: var(--goppo-text-muted);
}


@media (max-width: 992px) {

    .goppo-document-actions {
        left: 16px;
        right: 16px;

        top: auto;
        bottom: 16px;

        width: auto;

        transform: none;

        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }


    .goppo-action-item {
        width: auto;
    }


    .goppo-actions-separator {
        display: none;
    }


    .goppo-zoom-actions {
        width: 100%;
    }
}

.goppo-action-danger {
    color: #b42318;
}

.goppo-action-danger:hover {
    background: #fff1f0;
    color: #b42318;
}


.goppo-limit-warning {
    display: flex;
    gap: 9px;
    align-items: flex-start;

    padding: 10px 11px;

    background: #fff8e6;
    border-radius: 10px;

    color: #8a6100;

    font-size: 12px;
    line-height: 1.35;
}

.goppo-limit-warning a {
    color: var(--goppo-green-dark);
    font-weight: 600;
    text-decoration: none;
}

.action-icon-btn {
    width: 34px;
    height: 34px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-icon-btn:hover {
    background: var(--goppo-bg-soft);
}

.kpi-card-compact {
    background: rgb(255, 255, 255);
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: var(--goppo-shadow);
    border: 1px solid #e2e2e2;
}

.kpi-card-compact .kpi-value {
    font-size: 1.35rem;
}

.kpi-card-compact .kpi-label {
    font-size: 0.8rem;
}

.kpi-card-compact .kpi-trend {
    font-size: 0.75rem;
}


    /* ============================
       PAGE URSSAF — GOPPO
       ============================ */

    /* Bloc principal */
    .urssaf-current-card {
        background: linear-gradient(
            135deg,
            rgba(34, 119, 81, 0.08),
            rgba(25, 135, 84, 0.02)
        );
        border: 1px solid rgba(34, 119, 81, 0.12) !important;
    }

    /* KPI */
    .urssaf-kpi {
        background: #fff;
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .urssaf-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 .25rem .75rem rgba(0,0,0,.06);
    }

    .urssaf-kpi-ca {
        border-left: 4px solid #227751 !important;
        background: rgba(34, 119, 81, 0.04);
    }

    .urssaf-kpi-cotisations {
        border-left: 4px solid #0d6efd !important;
        background: rgba(13, 110, 253, 0.04);
    }

    .urssaf-kpi-impot {
        border-left: 4px solid #6f42c1 !important;
        background: rgba(111, 66, 193, 0.04);
    }

    /* Cartes détail */
    .urssaf-detail-card {
        border: 1px solid rgba(0,0,0,.06) !important;
        transition: transform .15s ease, box-shadow .15s ease;
    }

    .urssaf-detail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 .35rem 1rem rgba(0,0,0,.07) !important;
    }

    .urssaf-sales {
        border-top: 3px solid #227751 !important;
    }

    .urssaf-services {
        border-top: 3px solid #0d6efd !important;
    }

    .urssaf-other {
        border-top: 3px solid #6c757d !important;
    }

    /* Montants */
    .urssaf-amount-sales {
        color: #227751;
    }

    .urssaf-amount-services {
        color: #0d6efd;
    }

    /* Titres de section */
    .urssaf-section-title {
        position: relative;
        padding-left: 14px;
    }

    .urssaf-section-title::before {
        content: "";
        position: absolute;
        left: 0;
        top: 3px;
        bottom: 3px;
        width: 4px;
        border-radius: 4px;
        background: #227751;
    }
