/* ==========================================================================
   ConfigOne Facturation — couche applicative
   Chargée juste après configone-ui.css (thème commun ConfigOne) et avant les
   styles de page. Propre à cette application : jetons complémentaires, anciennes
   variables de l'appli ramenées sur les jetons, composants partagés (formulaires,
   tableaux, modales, menus, en-tête et pied de page publics, bandeau cookies).

   ---------------------------------------------------------------------------
   TABLE DE CORRESPONDANCE DES COULEURS (restyle « configone.fr », nov. 2026)
   Appliquée par script aux blocs <style>, attributs style="", chatbot.css.
   Le rôle de la propriété compte : texte / fond / bordure / ombre, et les règles
   [data-theme="dark"] utilisent l'échelle inversée (clair = texte, foncé = fond).
   ---------------------------------------------------------------------------
   Bleus, cyans, sarcelles (#2563eb #3b82f6 #1d4ed8 #0891b2 #0ea5e9 #0d9488…)
        texte / remplissage ............ var(--brand)       #12708a
        foncés (#1e40af #1e3a8a #075985) var(--brand-ink)   #0d5669
        teintes (#eff6ff #dbeafe #ecfeff) var(--brand-tint) #e2eff1
        filets (#bfdbfe #93c5fd #a5f3fc) var(--brand-line)  #bcdbe2
        clairs sur fond sombre .......... var(--brand-light) #6cc4d8
   Violets, indigos (#7c3aed #6d28d9 #8b5cf6 #6366f1 #4f46e5 #667eea #764ba2)
        → famille bleu canard, nuance foncée var(--brand-ink) (plus de violet)
   Ancien bleu Facturation #2563eb → #12708a partout (y compris la couleur
        par défaut du tableau de bord ; une couleur choisie par l'utilisateur reste).
   Neutres (ardoise/gris Tailwind)
        texte  L<30 % (#0f172a #111827 #1f2937 #1f2a3a) ....... var(--ink)   #14171c
               L<45 % (#374151 #475569 #4b5563) ................ var(--ink-2) #3a3f47
               L<72 % (#6b7280 #64748b #94a3b8 #9ca3af) ........ var(--muted) #686d76
               texte clair sur fond foncé ...................... #fff / var(--night-text)
        fond   blanc ........................................... var(--card)  #fffffe
               #f9fafb #f8fafc #f8f9fa ......................... var(--paper) #f6f5f1
               #f3f4f6 #f1f5f9 ................................. var(--paper-2) #eeebe3
               #e5e7eb #e2e8f0 ................................. var(--line)  #e2ded4
               foncés (#1e293b #0f172a #0b1220) ................ var(--night-2) / var(--night)
        bordure #e5e7eb #e2e8f0 #eef2f7 ........................ var(--line)
                #d1d5db #cbd5e1 ................................ var(--line-2) #d1ccbf
                #9ca3af ........................................ var(--line-3) #b9b3a5
   Verts (#059669 #10b981 #16a34a #22c55e #198754 #24eb8e…) var(--ok) #1d8556,
        foncés var(--ok-ink), teintes (#d1fae5 #ecfdf5 #dcfce7) var(--ok-tint),
        filets (#a7f3d0 #bbf7d0) var(--ok-line)
   Rouges (#dc2626 #ef4444 #dc3545 #b91c1c #991b1b) var(--danger) = var(--signal) #d9512a,
        teintes (#fee2e2 #fef2f2) var(--danger-tint), filets (#fecaca) var(--danger-line)
   Oranges (#ea580c #f97316 #c2410c) → famille var(--signal)
   Ambres, jaunes (#f59e0b #d97706 #fbbf24 #92400e #ca8a04) var(--warn) #b7791f,
        texte var(--warn-ink), teintes (#fef3c7 #fffbeb) var(--warn-tint), filets var(--warn-line)
   rgba() colorés : color-mix(in srgb, <jeton> <alpha>%, transparent) (suit le mode sombre)
   rgba() ardoise : même alpha sur l'encre chaude (15,23,42 → 20,23,28 ; 148,163,184 → 163,169,178)
   Texte blanc sur un aplat coloré ....... var(--on-accent) (#fff, encre nuit en sombre)
   Dégradés → aplat du premier jeton ; halos décoratifs supprimés ; héros → var(--paper) ;
        bandeaux d'appel sombres → var(--night)
   Ombres : supprimées sur les surfaces posées (cartes), conservées et réchauffées sur
        les calques flottants (menus, modales, toasts) ; anneaux de focus → var(--brand).
   Polices : Inter / pile système → var(--font) (Schibsted Grotesk) ; monospace → var(--mono).
   Étiquettes en capitales → casse normale ; graisses 800/900 → 700 (titres 650).
   Rayons : ancien --radius-lg (12px) → var(--radius) 14px ; --radius-xl → 14px ;
        modales 22px (var(--radius-lg) du thème).

   Hors navigateur (e-mails, PDF dompdf, couleurs JS des graphiques) : même table,
   en valeurs hexadécimales littérales des jetons clairs (pas de var()).
   Restent volontairement inchangés : la couleur de document choisie par chaque
   entreprise (devis / factures / PDF), les drapeaux et logos de réseaux sociaux.

   Passe scriptée faite en deux temps : une première passe (autre session, 18/11/2026)
   a recoloré blocs <style> et attributs style="" ; elle a été reprise telle quelle car
   elle suit cette table, puis complétée et corrigée :
   - jetons qu'elle utilisait sans les définir (--on-accent, --brand-line, --ok-tint,
     --danger-*, --warn-tint, --line-3, --night-2, --night-ink…) : définis ci-dessous ;
   - fonds « doux » des pages légales mal convertis (--brand-light, --ok-light, --night-ink
     utilisés comme fonds) : une seule couleur d'accent, fonds var(--brand-tint) ;
   - anneaux / boutons mappés sur la palette « nuit » dans des contextes clairs
     (poignée de redimensionnement de l'éditeur, page de choix d'espace) : rétablis ;
   - capitales supprimées et graisses 800/900 → 700 : conservé (ligne du site), sauf
     dans les PDF où les libellés en capitales font partie de la mise en page du document ;
   - en plus : e-mails, PDF, couleurs JS (graphiques, Stripe), CSS injecté par
     country-select-flags.js / phone-input.js, custom.css, devis/factures publics.
   ========================================================================== */

/* ---------- Jetons complémentaires ---------- */

:root,
[data-bs-theme="light"] {
    --on-accent: #fff;           /* texte posé sur un aplat de marque, vert, rouge, encre */
    --faint: #9a9ea6;            /* icônes et textes très secondaires, textes d'exemple */
    --line-3: #b9b3a5;           /* filet appuyé (survol de champ) */
    --brand-line: #bcdbe2;
    --night-2: #1a1e24;
    --night-ink: #f1f2f4;        /* texte sur la bande « nuit » */
    --ok-tint: var(--ok-bg);
    --ok-light: #5fc796;
    --warn-tint: var(--warn-bg);
    --warn-light: #e0b45f;
    --signal-tint: var(--signal-bg);
    --signal-light: #f08a68;
    --danger: var(--signal);
    --danger-tint: var(--signal-bg);
    --danger-line: var(--signal-line);
    --danger-ink: var(--signal-ink);
    --danger-light: #f08a68;

    /* Anciennes variables de l'application → jetons */
    --primary: var(--brand);
    --primary-dark: var(--brand-ink);
    --primary-light: var(--brand-line);
    --primary-rgb: 18, 112, 138;
    --secondary: var(--muted);
    --success: var(--ok);
    --warning: var(--warn);
    --info: var(--brand);
    --gray-50: var(--paper);
    --gray-100: var(--paper-2);
    --gray-200: var(--line);
    --gray-300: var(--line-2);
    --gray-400: var(--faint);
    --gray-500: var(--muted);
    --gray-600: var(--muted);
    --gray-700: var(--ink-2);
    --gray-800: var(--ink);
    --gray-900: var(--ink);
    --radius-xl: var(--radius);
    --radius-full: 999px;
    --shadow-lg: var(--shadow-md);
    --shadow-xl: var(--shadow-md);
    --spacing-xs: .25rem;
    --spacing-sm: .5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
    --success-color: var(--ok);
    --danger-color: var(--signal);
    --text-muted: var(--muted);
    --border-color: var(--line);
    --card-bg: var(--card);
}

[data-bs-theme="dark"],
[data-theme="dark"],
.dark-mode,
.theme-dark {
    --on-accent: #121519;
    --faint: #6f7680;
    --line-3: #454d59;
    --brand-line: rgba(108, 196, 216, .3);
    --night-2: #1a1e24;
    --primary-rgb: 108, 196, 216;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
    background-color: var(--paper);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 650;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: var(--spacing-md);
}
h1 { font-size: 2.1rem; letter-spacing: -.035em; }
h2 { font-size: 1.75rem; letter-spacing: -.03em; }
h3 { font-size: 1.4rem; letter-spacing: -.025em; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.08rem; }
h6 { font-size: 1rem; }

p { margin-bottom: var(--spacing-md); color: var(--ink-2); }
strong, b { font-weight: 600; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-ink); }

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.btn-lg { --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.35rem; font-size: 1rem; }
.btn-sm { font-size: .82rem; }
.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -.5rem 0 0 -.5rem;
    border: 2px solid var(--muted);
    border-right-color: transparent;
    border-radius: 50%;
    animation: co-spin .6s linear infinite;
}
@keyframes co-spin { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cartes ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
}
.card-header {
    padding: 1rem 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
}
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 { letter-spacing: -.015em; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; background: var(--paper); border-top: 1px solid var(--line); }

/* ---------- Formulaires ---------- */

.form-label { display: block; margin-bottom: .45rem; color: var(--ink); font-size: .875rem; font-weight: 600; }
.form-control,
.form-select {
    padding: .62rem .85rem;
    font-size: .94rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-md);
    background-color: var(--card);
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-select { padding-right: 2.25rem; }
.form-control-sm, .form-select-sm { padding: .4rem .65rem; font-size: .85rem; border-radius: var(--radius-sm); }
.form-control-lg, .form-select-lg { padding: .8rem 1rem; font-size: 1.02rem; }
.form-control:focus,
.form-select:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus-ring); }
.form-control::placeholder { color: var(--faint); }
.form-text { margin-top: .3rem; color: var(--muted); font-size: .82rem; }
.input-group .form-control { border-radius: 0; }
.input-group .form-control:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group .form-control:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group .form-control:only-child { border-radius: var(--radius-md); }
.input-group-text { padding: .62rem .85rem; font-size: .94rem; }
.form-check-input { width: 1rem; height: 1rem; cursor: pointer; }
.form-check-label { color: var(--ink-2); font-size: .94rem; cursor: pointer; }
.form-switch .form-check-input { width: 2.4rem; height: 1.25rem; }
.form-control-color { padding: .3rem; }

/* TomSelect */
.ts-wrapper .ts-control,
.ts-wrapper.single .ts-control,
.ts-wrapper.form-select .ts-control,
.ts-wrapper.form-control .ts-control {
    border-color: var(--line-2);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--ink);
    box-shadow: none;
}
.ts-wrapper.focus .ts-control { border-color: var(--brand); box-shadow: var(--focus-ring); }
.ts-dropdown {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card);
    color: var(--ink-2);
    box-shadow: var(--shadow-md);
}
.ts-dropdown .active { background: var(--paper-2); color: var(--ink); }
.ts-dropdown .option, .ts-dropdown .optgroup-header { color: var(--ink-2); }
.ts-dropdown .optgroup-header { background: var(--card); color: var(--muted); font-weight: 600; }
.ts-wrapper.multi .ts-control > div { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; }

/* Indicatif téléphonique */
.iti__dropdown-content { border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-md); color: var(--ink-2); }
.iti__country.iti__highlight { background: var(--paper-2); }
.iti__dial-code { color: var(--muted); }
.iti__search-input { border-color: var(--line); background: var(--card); color: var(--ink); }

/* ---------- Badges et pastilles d'état ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .65rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: .005em;
}
.badge-outline-primary { background: var(--brand-tint); color: var(--brand-ink); border: 1px solid var(--brand-line); }
.badge-outline-success { background: var(--ok-bg); color: var(--ok-ink); border: 1px solid var(--ok-line); }
.badge-outline-neutral { background: var(--card); color: var(--ink-2); border: 1px solid var(--line-2); }
.badge.bg-secondary { border: 1px solid var(--line); }

/* ---------- Alertes ---------- */

.alert { display: flex; align-items: flex-start; gap: .75rem; padding: .95rem 1.1rem; border: 1px solid; border-radius: 12px; }
.alert i { font-size: 1.05rem; margin-top: .1rem; }
.alert p { color: inherit; }
.alert .btn-close { margin-left: auto; }

/* ---------- Tableaux ---------- */

.table { width: 100%; margin-bottom: 0; }
.table thead th {
    padding: .7rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line-2);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    white-space: nowrap;
}
.table tbody td {
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    font-size: .92rem;
    vertical-align: middle;
}
.table tbody tr { transition: background-color .15s ease; }
.table tbody tr:hover { background-color: var(--paper); }
.table tbody tr:last-child td { border-bottom: none; }
.table strong, .table .fw-bold, .table .fw-semibold { color: var(--ink); }

/* ---------- Modales ---------- */

.modal-content { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); cursor: grab; }
.modal-header:active { cursor: grabbing; }
.modal-title { font-size: 1.15rem; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.modal-backdrop { background-color: #14171c; }
.modal-backdrop.show { opacity: .45; }
.modal-content { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.modal-content > form { display: flex; flex-direction: column; height: 100%; width: 100%; min-height: 0; }
.modal-body { flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.modal-resize-handle {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1056;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 15px;
    background: transparent;
    color: var(--faint);
    font-size: 10px;
    cursor: ns-resize;
    transition: color .2s;
}
.modal-resize-handle:hover { color: var(--brand); background: rgba(20, 23, 28, .02); }
.btn-close:focus { box-shadow: var(--focus-ring); }

/* En-têtes de modales colorées (bg-primary text-white…) : surface claire, titre encre,
   la couleur ne reste qu'en filet supérieur et sur l'icône du titre. */
.modal-header[class*="bg-"] {
    --co-accent: var(--brand);
    background: var(--card) !important;
    color: var(--ink) !important;
    box-shadow: inset 0 3px 0 var(--co-accent);
}
.modal-header.bg-success { --co-accent: var(--ok); }
.modal-header.bg-danger { --co-accent: var(--signal); }
.modal-header.bg-warning,
.modal-header.bg-warning-subtle { --co-accent: var(--warn); }
.modal-header[class*="bg-"] .modal-title { color: var(--ink) !important; }
.modal-header[class*="bg-"] .modal-title > .bi:first-child,
.modal-header[class*="bg-"] .modal-title > i:first-child { color: var(--co-accent); }
.modal-header[class*="bg-"] .btn-close,
.modal-header[class*="bg-"] .btn-close-white { filter: none; }
.card.bg-primary.text-white { background: var(--night) !important; border-color: var(--night) !important; color: var(--night-text) !important; }
.card.bg-primary.text-white h1, .card.bg-primary.text-white h2, .card.bg-primary.text-white h3,
.card.bg-primary.text-white h4, .card.bg-primary.text-white h5 { color: #fff; }
.rounded-circle.bg-primary.text-white { background: var(--ink) !important; color: var(--paper) !important; }

/* ---------- Menus, pagination, fil d'Ariane ---------- */

.dropdown-menu { padding: .4rem; min-width: 12rem; border: 1px solid var(--line); border-radius: 12px; }
.dropdown-item { padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; color: var(--ink-2); }
.dropdown-item:hover, .dropdown-item:focus { background: var(--paper-2); color: var(--ink); }
.dropdown-item:active, .dropdown-item.active { background: var(--brand-tint); color: var(--brand-ink); }
.dropdown-item.text-danger:hover { background: var(--signal-bg); }
.dropdown-divider { margin: .4rem 0; border-color: var(--line); }
.dropdown-header { color: var(--muted); font-size: .78rem; font-weight: 600; }

.pagination { gap: .25rem; }
.page-link { padding: .45rem .75rem; border-radius: var(--radius-md) !important; font-size: .875rem; font-weight: 500; }

.breadcrumb { margin-bottom: var(--spacing-lg); padding: 0; background: transparent; font-size: .875rem; }
.breadcrumb-item { color: var(--muted); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--line-2); }
.breadcrumb-item.active { color: var(--ink); font-weight: 500; }
.breadcrumb-item a { color: var(--muted); }
.breadcrumb-item a:hover { color: var(--ink); }

.nav-tabs .nav-link { color: var(--muted); }
.nav-tabs .nav-link:hover { color: var(--ink); }
.nav-tabs .nav-link.active { color: var(--ink); background: transparent; }

/* ---------- Barres de défilement ---------- */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

/* ---------- Utilitaires ---------- */

.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.bg-light { background-color: var(--paper-2) !important; }
.border { border: 1px solid var(--line) !important; }
.border-top { border-top: 1px solid var(--line) !important; }
.border-bottom { border-bottom: 1px solid var(--line) !important; }
.fw-bold, .fw-bolder { font-weight: 650 !important; }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 { font-weight: 650; letter-spacing: -.04em; }
.lead { color: var(--ink-2); }
.font-monospace { font-family: var(--mono) !important; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .25s ease-out; }

/* ---------- En-tête public (comme configone.fr) ---------- */

.navbar-home {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(246, 245, 241, .88);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.navbar-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -.03em;
    text-decoration: none;
}
.navbar-logo:hover { color: var(--ink); }
.logo-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; }
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link-item {
    position: relative;
    padding: .5rem .75rem;
    border-radius: 8px;
    color: var(--ink-2);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.nav-link-item:hover { color: var(--ink); background: rgba(20, 23, 28, .05); }
.nav-link-item.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.nav-quick-actions, .nav-buttons { display: flex; align-items: center; gap: .5rem; }
.public-theme-btn, .public-lang-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.public-theme-btn i { font-size: 1.05rem; }
.language-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 23, 28, .12); }
.user-avatar-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ink);
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    font-size: .85rem;
    font-weight: 600;
}
.user-avatar-btn:hover, .user-avatar-btn:focus { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.navbar-toggler-public {
    padding: .45rem .7rem;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}
.navbar-toggler-public:hover { border-color: var(--ink); }
[data-theme="dark"] .navbar-home { background: rgba(18, 21, 25, .88); }

@media (max-width: 1199px) {
    .navbar-home .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 1px;
        padding: 1.25rem 1.5rem 1.75rem;
        background: var(--paper);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }
    .nav-quick-actions { justify-content: flex-start; margin-bottom: 1rem; }
    .nav-quick-actions > form, .nav-quick-actions > .dropdown { flex: 0 0 auto; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin-bottom: 1.25rem; }
    .nav-link-item {
        display: block;
        padding: .9rem 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        color: var(--ink);
        font-size: 1.25rem;
        font-weight: 600;
        letter-spacing: -.02em;
    }
    .nav-link-item:hover { background: none; }
    .nav-link-item.is-active { box-shadow: none; color: var(--brand-ink); }
    .nav-buttons { flex-direction: row; flex-wrap: wrap; width: 100%; gap: .5rem; justify-content: flex-start; }
    .nav-buttons > a.btn { flex: 1; justify-content: center; }
    .nav-buttons > form, .nav-buttons > .dropdown { flex: 0 0 auto; }
}
@media (min-width: 1200px) {
    .navbar-home .navbar-collapse {
        display: flex !important;
        align-items: center;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
        gap: 1rem;
    }
    .nav-links { order: 1; }
    .nav-quick-actions { order: 2; }
    .nav-buttons { order: 3; margin-left: .5rem; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    .nav-link-item { padding-inline: .5rem; font-size: .9rem; }
    .nav-buttons .btn { padding-inline: .9rem; }
}

/* ---------- Pied de page public : bande « nuit » du site ---------- */

.footer {
    padding: 4rem 0 2rem;
    background: var(--night);
    border-top: 1px solid var(--night-line);
    color: var(--night-text);
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    margin-bottom: 0;
}
.footer-brand { max-width: 22rem; }
.footer-logo { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; text-decoration: none; }
.footer-logo-text { color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.footer-description { margin-bottom: 1.5rem; color: var(--night-text); line-height: 1.6; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--night-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
    color: var(--night-text);
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.social-link:hover { border-color: #3b424d; background: rgba(255, 255, 255, .07); color: #fff; }
.footer-column h4 {
    margin-bottom: .9rem;
    color: #fff;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: var(--night-text); font-size: .93rem; text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: #fff; }
.footer-copyright { margin-top: .75rem; color: var(--night-text); font-size: .85rem; opacity: .85; }
.footer-copyright a:hover { color: #fff !important; }
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: span 2; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-brand { grid-column: span 1; }
}

/* ---------- Bandeau cookies : carte du site ---------- */

.cookie-banner {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1055;
    width: min(440px, calc(100% - 32px));
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    color: var(--ink-2);
    box-shadow: 0 24px 60px -20px rgba(20, 23, 28, .35);
}
.cookie-banner p { margin-bottom: .9rem; color: var(--ink-2); font-size: .92rem; }
.cookie-banner a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner-actions .btn { flex: 1 1 auto; }
.cookie-preferences-panel { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.cookie-preferences-title { margin: 0 0 .4rem; color: var(--ink); font-weight: 650; }
.cookie-preferences-hint { margin: 0 0 .8rem; color: var(--muted); font-size: .9rem; }
.cookie-preferences-item { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .7rem; color: var(--ink-2); font-size: .92rem; }
.cookie-preferences-item input[type="checkbox"] { margin-top: .2rem; accent-color: var(--brand); }
.cookie-preferences-item strong { display: block; line-height: 1.25; color: var(--ink); }
.cookie-preferences-item small { display: block; color: var(--muted); line-height: 1.3; }
.cookie-preferences-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }

/* ---------- Pages publiques « fonctionnalités », blog : rendu configone.fr ----------
   Les pages gardent leurs propres styles ; ces règles (spécificité html body …) ramènent
   les étiquettes, titres, pictogrammes et bandeaux au vocabulaire du site. */

html body .feature-hero-badge,
html body .feature-overview-badge,
html body .sc-eyebrow {
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0;
}
html body .feature-hero-badge > .bi,
html body .feature-overview-badge > .bi { display: none; }
html body .feature-hero-badge::after,
html body .feature-overview-badge::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
html body .feature-hero h1,
html body .feature-overview-hero h1 { font-weight: 650; letter-spacing: -.045em; line-height: 1.02; color: var(--ink); }
html body .feature-hero p,
html body .feature-overview-hero p { color: var(--ink-2); }
html body .feature-section:nth-child(even) { background: var(--paper-2); }
html body .feature-section h2,
html body .feature-section-header h2 { font-weight: 650; letter-spacing: -.035em; }
html body .feature-icon-lg {
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card) !important;
    color: var(--ink) !important;
    font-size: 1.35rem;
}
html body .kpi-card .kpi-number,
html body .feature-overview-stat strong { color: var(--ink); font-weight: 650; letter-spacing: -.04em; }
html body .cta-section { background: var(--night); color: var(--night-text); }
html body .cta-section h2 { color: #fff; font-weight: 650; letter-spacing: -.045em; }
html body .cta-section p { color: var(--night-text); opacity: 1; }
html body .cta-section .btn-primary,
html body .cta-section .btn-light,
html body .cta-section .btn-white { --bs-btn-color: #14171c; --bs-btn-bg: #f6f5f1; --bs-btn-border-color: #f6f5f1; --bs-btn-hover-color: #14171c; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; }
html body .cta-section .btn-outline-light,
html body .cta-section .btn-outline-primary,
html body .cta-section .btn-secondary { --bs-btn-color: #f1f2f4; --bs-btn-bg: transparent; --bs-btn-border-color: #3b424d; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .06); --bs-btn-hover-border-color: #f1f2f4; }

/* Liens des pages de connexion / paiement : encre, souligné fin, comme le site */
.forgot-link,
.payment-footer-links a,
.login-footer-links a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--line-2);
    text-underline-offset: 3px;
}
.forgot-link:hover,
.payment-footer-links a:hover,
.login-footer-links a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    .card-body { padding: 1rem; }
    .modal-body, .modal-header, .modal-footer { padding: 1rem; }
}

@media print {
    .navbar-home, .footer, .cookie-banner { display: none !important; }
    body { background: #fff; color: #000; }
}
