/* ========================================================
   AsSoft — feuille de styles
   Version 1.0.0
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Marque — palette teal/menthe HopDoc (refonte v2.13.1) */
    --brand:           #0D9488;   /* Teal 600 — primaire (logo, KPI, FAB) */
    --brand-hover:     #0F766E;   /* Teal 700 — hover plein */
    --brand-strong:    #115E59;   /* Teal 800 — texte sur fond clair */
    --brand-soft:      #CCFBF1;   /* Teal 100 — fond doux pour les highlights */
    --brand-soft-text: #115E59;
    /* Accent secondaire chaud — orange HopDoc Pro */
    --accent:          #F97316;   /* Orange 500 — accents ponctuels */
    --accent-soft:     #FFEDD5;   /* Orange 100 */
    --accent-strong:   #C2410C;   /* Orange 700 — texte sur fond clair */
    /* CTA noir profond — pour les actions principales fortes (style HopDoc) */
    --cta-dark:        #0A0A0A;
    --cta-dark-hover:  #1F2937;
    /* Couleurs du dégradé italique teal → indigo → lavande (titres accentués) */
    --gradient-accent: linear-gradient(90deg, #0D9488 0%, #4F46E5 55%, #A78BFA 100%);

    /* Fonds — blancs avec très léger halo pastel */
    --bg-page:    #F9FAFB;       /* Gray 50 */
    --bg-surface: #FFFFFF;
    --bg-muted:   #F3F4F6;       /* Gray 100 */
    --bg-hover:   #F9FAFB;

    /* Texte — hiérarchie contemporaine (Tailwind gray) */
    --text-primary:   #0F172A;   /* Slate 900 — plus profond que Gray 900 */
    --text-secondary: #475569;   /* Slate 600 */
    --text-tertiary:  #94A3B8;   /* Slate 400 */

    /* Bordures */
    --border:        rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);

    /* Sémantique */
    --success-bg:   #DCFCE7;
    --success-text: #166534;
    --warning-bg:   #FEF3C7;
    --warning-text: #92400E;
    --danger-bg:    #FEE2E2;
    --danger-text:  #991B1B;

    /* Forme */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* Élévations */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.08);

    /* Typo */
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ========================================================
   Logo
   ======================================================== */
.logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}
/* Logo AsSoft — bicolore teal nuancé.
   "As" et "oft" en teal foncé (autorité), "S" central en teal moyen
   pour matérialiser visuellement la jointure entre Asso et Software,
   sans rupture de couleur agressive. */
.logo .brand-as,
.logo .brand-oft {
    color: var(--brand-strong);
}
.logo .brand-shared-s {
    color: var(--brand);
}
.logo-lg { font-size: 28px; }

/* ========================================================
   Boutons
   ======================================================== */
.btn {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    border: 0.5px solid var(--border-strong);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.btn:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
}
.btn-primary:hover:not(:disabled) {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-lg {
    font-size: 15px;
    padding: 12px 22px;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.btn-icon:hover:not(:disabled) {
    background: var(--bg-muted);
    color: var(--text-primary);
}
.btn-icon:disabled { opacity: 0.4; cursor: not-allowed; }

/* ========================================================
   HOMEPAGE
   ======================================================== */
.page-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.home {
    flex: 1;
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.home-header {
    padding: 16px 0 80px;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 20px;
    color: var(--text-primary);
}
.hero-title em {
    font-style: italic;
    color: var(--brand);
    font-weight: 600;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.home-footer {
    padding: 24px 0 0;
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    gap: 8px;
    align-items: center;
}
.home-footer .dot { opacity: 0.5; }

/* ========================================================
   APP — layout général
   ======================================================== */
.layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.org-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-soft-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ========================================================
   APP — page header
   ======================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
    gap: 12px;
}
.page-title {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0 0;
}

/* ========================================================
   APP — stats
   ======================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}
.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.stat-value {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-value.success { color: var(--success-text); }
.stat-value.warning { color: var(--warning-text); }

/* ========================================================
   APP — filtres
   ======================================================== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.search-wrap {
    position: relative;
    flex: 1;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    font-size: 14px;
    font-family: inherit;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}
.filter-select {
    padding: 9px 14px;
    font-size: 14px;
    font-family: inherit;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
}
.filter-select:hover { border-color: var(--text-tertiary); }
.filter-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}

/* ========================================================
   APP — tableau
   ======================================================== */
.table-wrap {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
table.adherents {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.adherents thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-bottom: 0.5px solid var(--border);
    background: var(--bg-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
table.adherents tbody td {
    padding: 14px 16px;
    border-bottom: 0.5px solid var(--border);
    vertical-align: middle;
}
table.adherents tbody tr:last-child td { border-bottom: none; }
table.adherents tbody tr {
    transition: background 0.12s ease;
}
table.adherents tbody tr:hover td { background: var(--bg-hover); }

.row-name {
    display: flex;
    align-items: center;
    gap: 12px;
}
.row-name span {
    font-weight: 500;
    color: var(--text-primary);
}

.email   { color: var(--text-secondary); }
.date    { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* Badges */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.badge-ok      { background: var(--success-bg); color: var(--success-text); }
.badge-late    { background: var(--warning-bg); color: var(--warning-text); }
.badge-expired { background: var(--danger-bg);  color: var(--danger-text);  }

/* ========================================================
   APP — pagination + footer + état vide
   ======================================================== */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-secondary);
}

.empty-state {
    background: var(--bg-surface);
    border: 0.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
}
.empty-title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 6px;
}
.empty-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.app-footer {
    margin-top: 32px;
    padding-top: 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
}

/* ========================================================
   Accessibilité
   ======================================================== */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ========================================================
   Responsive
   ======================================================== */
@media (max-width: 720px) {
    .layout { padding: 16px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; align-items: flex-start; }
    .topbar-right .org-name { display: none; }
    table.adherents thead th:nth-child(2),
    table.adherents tbody td:nth-child(2) { display: none; }
    .home-header { padding: 16px 0 32px; }
}

/* ========================================================
   Cellules cliquables (édition d'adhérent)
   ======================================================== */
.cell-clickable { cursor: pointer; }
.cell-actions { text-align: right; position: relative; }

/* ========================================================
   Menu contextuel par ligne
   ======================================================== */
.row-actions { position: relative; display: inline-block; }

.row-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 50;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(44, 44, 42, 0.08);
    min-width: 140px;
    padding: 4px;
    display: flex;
    flex-direction: column;
}
.row-menu[hidden] { display: none; }

.row-menu button {
    appearance: none;
    background: transparent;
    border: none;
    padding: 8px 12px;
    text-align: left;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: var(--radius-sm);
}
.row-menu button:hover { background: var(--bg-hover); }
.row-menu-danger { color: var(--danger-text) !important; }
.row-menu-danger:hover { background: var(--danger-bg) !important; }

/* ========================================================
   Modale (<dialog>)
   ======================================================== */
.dialog {
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 0;
    width: min(560px, calc(100% - 32px));
    background: var(--bg-surface);
    color: var(--text-primary);
    box-shadow: 0 12px 48px rgba(44, 44, 42, 0.20);
}
.dialog::backdrop {
    background: rgba(44, 44, 42, 0.50);
    backdrop-filter: blur(2px);
}
.dialog-sm { width: min(420px, calc(100% - 32px)); }

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 0.5px solid var(--border);
}
.dialog-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dialog-body { padding: 18px 20px; }

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    border-top: 0.5px solid var(--border);
    background: var(--bg-page);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ========================================================
   Formulaires
   ======================================================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}
.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}
.required { color: var(--brand); font-weight: 600; }

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--bg-surface);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--text-tertiary); }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.12);
}
.form-field textarea {
    resize: vertical;
    min-height: 72px;
    line-height: 1.5;
}

.form-field input.has-error,
.form-field textarea.has-error {
    border-color: var(--danger-text);
    background: var(--danger-bg);
}
.field-error {
    font-size: 12px;
    color: var(--danger-text);
    margin: 0;
    min-height: 1em;
}
.field-error:empty { display: none; }

.form-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin: 8px 0 0;
}

/* ========================================================
   Bouton danger
   ======================================================== */
.btn-danger {
    background: var(--danger-text);
    color: white;
    border-color: var(--danger-text);
}
.btn-danger:hover:not(:disabled) {
    background: #7A2222;
    border-color: #7A2222;
}

.btn-block { display: flex; width: 100%; justify-content: center; }

/* ========================================================
   PAGES D'AUTH (login, install)
   ======================================================== */
.page-auth { min-height: 100vh; display: flex; flex-direction: column; }

.auth-container {
    flex: 1;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 32px 24px 48px;
    display: flex;
    flex-direction: column;
}

.auth-header { padding: 16px 0 32px; }

.auth-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
}

.auth-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}
.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.55;
}

.auth-form { display: flex; flex-direction: column; gap: 4px; }

.auth-footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 24px 0 0;
}

.field-help { font-size: 12px; color: var(--text-secondary); margin: 4px 0 0; }

.form-success {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin: 0 0 16px;
}

.form-divider {
    border: none;
    border-top: 0.5px solid var(--border);
    margin: 12px 0 16px;
}
.form-section-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}
.auth-link-secondary {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 20px 0 0;
}
.auth-link-secondary a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}
.auth-link-secondary a:hover { text-decoration: underline; }

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================================================
   ESPACE ADMIN (sidebar + main)
   ======================================================== */
.page-admin { background: var(--bg-page); min-height: 100vh; }

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-surface);
    border-right: 0.5px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
}
.admin-sidebar .logo { font-size: 18px; padding: 0 8px 24px; }

.admin-nav { flex: 1; }

.admin-nav-section {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 8px 8px;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background 0.12s ease;
    margin-bottom: 2px;
}
.admin-nav-link:hover { background: var(--bg-hover); }
.admin-nav-link.is-active {
    background: var(--brand-soft);
    color: var(--brand-soft-text);
    font-weight: 500;
}
.admin-nav-link svg { flex-shrink: 0; opacity: 0.7; }
.admin-nav-link.is-active svg { opacity: 1; }

.admin-sidebar-footer {
    border-top: 0.5px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}
.user-block { display: flex; align-items: center; gap: 10px; padding: 0 8px 12px; }
.user-info { min-width: 0; }
.user-name { font-size: 13px; font-weight: 500; margin: 0; line-height: 1.3; }
.user-email {
    font-size: 11px;
    color: var(--text-secondary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-logout {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.admin-logout:hover { background: var(--bg-hover); color: var(--danger-text); }

.admin-main {
    padding: 32px 40px 48px;
    max-width: 980px;
    width: 100%;
}

.admin-page-header { margin-bottom: 32px; }
.admin-page-header .page-subtitle { max-width: 600px; }

.admin-section { margin-bottom: 36px; }
.section-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.admin-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
}
.admin-card-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}
.admin-card-value {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
    line-height: 1.1;
}
.admin-card-value.warning { color: var(--warning-text); font-size: 14px; font-weight: 500; }
.admin-card-value.small { font-size: 14px; font-weight: 500; }
.admin-card-meta { font-size: 12px; color: var(--text-secondary); margin: 0; }
.admin-card-meta a { color: var(--brand); text-decoration: none; }
.admin-card-meta a:hover { text-decoration: underline; }

.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.warning-text { color: var(--warning-text); }

/* ========================================================
   PAGE UPDATE
   ======================================================== */
.update-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}
@media (max-width: 880px) {
    .update-grid { grid-template-columns: 1fr; }
}

.update-status,
.update-zone {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
}
.update-status h3,
.update-zone h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-list {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.update-list dt {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.update-list dd {
    margin: 2px 0 0;
    font-size: 13px;
}
.update-list dd small { color: var(--text-tertiary); font-size: 11px; }

.update-hint { font-size: 13px; color: var(--text-secondary); margin: 0 0 16px; }
.update-hint code { background: var(--bg-muted); padding: 1px 6px; border-radius: 4px; }

/* Dropzone */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-page);
    cursor: pointer;
    transition: all 0.15s ease;
    margin-bottom: 16px;
}
.dropzone:hover,
.dropzone.is-dragover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.dropzone-icon {
    color: var(--text-tertiary);
    margin-bottom: 12px;
}
.dropzone:hover .dropzone-icon,
.dropzone.is-dragover .dropzone-icon {
    color: var(--brand);
}
.dropzone-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: center;
    word-break: break-all;
}
.dropzone-sub { font-size: 12px; color: var(--text-secondary); }
.dropzone-sub code { background: var(--bg-muted); padding: 1px 4px; border-radius: 3px; }

/* Journal d'update */
.update-log {
    margin-top: 20px;
    border-top: 0.5px solid var(--border);
    padding-top: 16px;
}
.update-log h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 8px;
}
#update-log-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 12px;
    background: var(--bg-page);
    border-radius: var(--radius-md);
    padding: 10px 12px;
}
.log-line { padding: 2px 0; line-height: 1.5; }
.log-time { color: var(--text-tertiary); margin-right: 8px; }
.log-info .log-msg { color: var(--text-primary); }
.log-success .log-msg { color: var(--success-text); }
.log-error .log-msg { color: var(--danger-text); }

/* ========================================================
   MENU UTILISATEUR (avatar du topbar)
   ======================================================== */
.user-menu { position: relative; }
.user-menu-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
}
.user-menu-trigger:hover .avatar-user {
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.15);
}
.avatar-user {
    width: 32px;
    height: 32px;
    background: var(--brand-soft);
    color: var(--brand-soft-text);
    transition: box-shadow 0.15s ease;
}
.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 100;
    min-width: 200px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(44, 44, 42, 0.10);
    padding: 6px;
}
.user-menu-panel[hidden] { display: none; }
.user-menu-header {
    padding: 8px 10px 10px;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 4px;
}
.user-menu-name { font-size: 13px; font-weight: 500; margin: 0; }
.user-menu-email { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0; }
.user-menu-link {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
}
.user-menu-link:hover { background: var(--bg-hover); }
/* ========================================================
   ZONE DÉMO (Beta dev — données de test)
   ======================================================== */
.demo-zone {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
@media (max-width: 880px) {
    .demo-zone { grid-template-columns: 1fr; }
}

.demo-zone h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}

.demo-hint {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 12px;
    line-height: 1.55;
}
.demo-hint code { background: var(--bg-muted); padding: 1px 5px; border-radius: 4px; }

.demo-list {
    margin: 0 0 16px;
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.7;
}
.demo-list li { margin-bottom: 6px; }
.demo-list small { color: var(--text-tertiary); }
.demo-list strong { font-weight: 600; }

.demo-warning {
    font-size: 12px;
    color: var(--warning-text);
    background: rgba(243, 175, 51, 0.10);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    margin: 12px 0 0;
    line-height: 1.5;
}
.demo-warning strong { font-weight: 600; }

.demo-status {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}
.demo-status-present {
    color: var(--success-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.demo-zone-actions { display: flex; flex-direction: column; }

/* ========================================================
   IMPERSONATION (BETA dev — bandeau super_admin)
   ======================================================== */
.impersonate-bar {
    background: #1F2937;
    color: #F9FAFB;
    border-bottom: 1px solid #111827;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.impersonate-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.impersonate-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    line-height: 1.4;
}
.impersonate-bar-info svg { flex-shrink: 0; opacity: 0.85; }
.impersonate-bar-info strong { font-weight: 600; }

.impersonate-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.10);
    color: #D1D5DB;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.impersonate-badge-write {
    background: rgba(216, 90, 48, 0.25);
    color: #FCA98A;
}

.impersonate-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-link {
    background: transparent;
    border: none;
    color: #93C5FD;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    text-decoration: underline;
    padding: 4px 8px;
    border-radius: 4px;
}
.btn-link:hover { background: rgba(255, 255, 255, 0.08); color: #BFDBFE; }

.btn-impersonate-stop {
    background: #FFFFFF;
    color: #1F2937;
    border-color: #FFFFFF;
    font-weight: 500;
}
.btn-impersonate-stop:hover:not(:disabled) {
    background: #F3F4F6;
    border-color: #F3F4F6;
}

/* Hint sous la liste des assos */
.impersonate-hint {
    margin-top: 24px;
    padding: 14px 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.impersonate-hint strong {
    color: var(--text-primary);
    font-weight: 600;
}
.impersonate-hint em { font-style: italic; }

/* ========================================================
   V2.5 — RELANCES, MAILING, BUG REPORTS
   ======================================================== */

/* Empty state (vide) — partagé entre relances et bug-reports admin */
.empty-state {
    text-align: center;
    padding: 40px 24px;
}
.empty-state h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
}
.empty-state p {
    color: var(--text-secondary);
    margin: 8px 0;
    line-height: 1.55;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Indicateurs / badges */
.stat-hint {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 4px 0 0;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}
.badge-late {
    background: var(--warning-bg);
    color: var(--warning-text);
}

/* Relances — toolbar et table */
.relances-section {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
}
.relances-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}
.adherents-table-wrap {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 480px;
    overflow-y: auto;
}
.adherents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.adherents-table th {
    background: var(--bg-muted);
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 0.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1;
}
.adherents-table td {
    padding: 8px 14px;
    border-bottom: 0.5px solid var(--border);
}
.adherents-table tr:last-child td { border-bottom: none; }
.mono-sm { font-family: var(--font-mono); font-size: 12px; }

textarea {
    width: 100%;
    padding: 10px 12px;
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.55;
    resize: vertical;
    min-height: 120px;
}
textarea:focus {
    outline: 2px solid var(--brand);
    outline-offset: -1px;
    border-color: transparent;
}

/* Mailing — radio cible */
.target-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.target-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.1s, background 0.1s;
}
.target-option:hover {
    border-color: var(--border-strong);
}
.target-option input[type="radio"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.target-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.target-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    font-size: 13px;
}
.target-label strong { font-weight: 600; }
.target-label .text-secondary { font-size: 12px; }

/* Result-box variant pour warning */
.result-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

/* Card générique */
.card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
}

/* ========================================================
   MODAL Bug Report (dialog)
   ======================================================== */
.modal-dialog {
    border: none;
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    max-width: 580px;
    width: 92%;
    background: var(--bg-surface);
}
.modal-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}
.modal-form { display: flex; flex-direction: column; max-height: 90vh; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 0.5px solid var(--border);
}
.modal-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.modal-close:hover { background: var(--bg-muted); }
.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 0.5px solid var(--border);
    background: var(--bg-muted);
}
.form-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    margin: 12px 0;
    line-height: 1.5;
}
.form-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.form-result-success {
    background: var(--success-bg);
    color: var(--success-text);
}
.form-result-error {
    background: var(--danger-bg);
    color: var(--danger-text);
}
.required { color: var(--danger-text); }

/* ========================================================
   ADMIN — Bug Reports
   ======================================================== */
.bug-stats {
    grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 720px) {
    .bug-stats { grid-template-columns: repeat(2, 1fr); }
}
.stat-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.1s, border-color 0.1s;
}
.stat-card-link:hover { border-color: var(--border-strong); }
.stat-card-link.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.stat-card-link.is-active .stat-value,
.stat-card-link.is-active .stat-label { color: var(--brand-soft-text); }

.bug-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bug-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
}
.bug-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bug-type, .bug-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bug-type-bug      { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }
.bug-type-feature  { background: rgba(34, 139, 230, 0.12); color: #1971c2; }
.bug-type-question { background: rgba(108, 117, 125, 0.15); color: #495057; }

.bug-status-new           { background: rgba(216, 90, 48, 0.12); color: var(--brand); }
.bug-status-acknowledged  { background: rgba(34, 139, 230, 0.12); color: #1971c2; }
.bug-status-in_progress   { background: rgba(243, 175, 51, 0.18); color: var(--warning-text); }
.bug-status-resolved      { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.bug-status-wontfix       { background: rgba(108, 117, 125, 0.15); color: #495057; }

.bug-date {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-tertiary);
}
.bug-title {
    margin: 4px 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}
.bug-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    line-height: 1.6;
}
.bug-meta .mono-sm {
    background: var(--bg-muted);
    padding: 1px 6px;
    border-radius: 3px;
}
.bug-description {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    margin-bottom: 12px;
}
.bug-admin-notes {
    background: rgba(243, 175, 51, 0.08);
    border-left: 3px solid var(--warning-text);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 12px;
}
.bug-admin-notes strong { display: block; margin-bottom: 4px; font-weight: 600; }
.bug-card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 0.5px solid var(--border);
    flex-wrap: wrap;
}
.bug-status-select {
    padding: 6px 10px;
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    font-family: inherit;
    font-size: 12px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.text-sm { font-size: 12px; }

@media (max-width: 720px) {
    .impersonate-bar-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ========================================================
   PAGE-ACTIONS (boutons groupés dans le header de page)
   ======================================================== */
.page-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* ========================================================
   IMPORT WIZARD (page /import.php)
   ======================================================== */
.import-step {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
}
.import-step .section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
}
.import-step .step-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.55;
}
.import-tips {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
}
.import-tips ul { margin: 6px 0 0 16px; padding: 0; }
.import-tips li { margin-bottom: 4px; }
.import-tips code {
    background: var(--bg-surface);
    padding: 1px 5px;
    border-radius: 3px;
}

.mapping-table-wrap {
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.mapping-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.mapping-table th {
    background: var(--bg-muted);
    padding: 10px 14px;
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    border-bottom: 0.5px solid var(--border);
}
.mapping-table td {
    padding: 10px 14px;
    border-bottom: 0.5px solid var(--border);
    vertical-align: top;
}
.mapping-table tr:last-child td { border-bottom: none; }
.preview-cell {
    color: var(--text-secondary);
    font-size: 12px;
    max-width: 280px;
    word-break: break-word;
}
.text-tertiary { color: var(--text-tertiary); font-style: italic; }

.mapping-select {
    width: 100%;
    min-width: 180px;
    padding: 6px 8px;
    border: 0.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    font-family: inherit;
    font-size: 13px;
}
.mapping-select.has-error {
    border-color: var(--danger-text);
    background: var(--danger-bg);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}
.checkbox-label input { width: 16px; height: 16px; cursor: pointer; }

.import-summary {
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    color: var(--brand-soft-text);
    font-size: 14px;
}
.import-summary strong { font-weight: 600; }

.import-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.form-warning {
    background: rgba(243, 175, 51, 0.10);
    color: var(--warning-text);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 12px;
}

.result-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.result-success {
    background: var(--success-bg);
    color: var(--success-text);
}
.result-error {
    background: var(--danger-bg);
    color: var(--danger-text);
}
.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 18px;
}
.result-box h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}
.result-box p {
    margin: 4px 0 0;
    font-size: 13px;
}
.text-secondary { color: var(--text-secondary); }

.error-list {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 12px;
}
.error-list h4 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
}
.error-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 280px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
}
.error-list li {
    padding: 4px 0;
    border-bottom: 0.5px solid var(--border);
}
.error-list li:last-child { border-bottom: none; }
.error-list strong { color: var(--text-primary); margin-right: 6px; }

/* ========================================================
   PAGE TARIFS (/pricing.php)
   ======================================================== */
.page-pricing { background: var(--bg-page); }

.pricing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
    padding: 24px 0 0;
}
.pricing-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 8px 0 16px;
}
.pricing-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}
@media (max-width: 880px) {
    .pricing-plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

.pricing-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card-featured {
    border: 1.5px solid var(--brand);
    box-shadow: 0 4px 12px rgba(216, 90, 48, 0.08);
}
.plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.plan-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 8px;
}
.plan-price {
    margin: 0 0 8px;
    line-height: 1;
}
.price-amount {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.price-period {
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 4px;
}
.plan-target {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 20px;
}
.plan-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    font-size: 14px;
    line-height: 1.7;
    flex: 1;
}
.plan-features li {
    padding-left: 22px;
    position: relative;
    margin-bottom: 6px;
}
.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--success-text);
    font-weight: 700;
}
.plan-features li strong { font-weight: 600; }
.plan-footnote {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 8px 0 0;
}

.pricing-section-title {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    text-align: center;
}
.pricing-section-intro {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
}

.pricing-compare {
    margin-bottom: 64px;
}
.compare-table-wrap {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
}
.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.compare-table th {
    background: var(--bg-muted);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.compare-table td {
    padding: 12px 16px;
    border-top: 0.5px solid var(--border);
}
.compare-row-highlight {
    background: var(--brand-soft);
}
.compare-row-highlight td {
    color: var(--brand-soft-text);
    font-weight: 500;
}
.pricing-disclaimer {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

.pricing-faq { margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-item {
    border-bottom: 0.5px solid var(--border);
    padding: 16px 0;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    padding: 4px 0;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-tertiary);
    transition: transform 0.15s ease;
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.pricing-cta {
    text-align: center;
    background: var(--brand-soft);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
}
.pricing-cta h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--brand-soft-text);
}
.pricing-cta p {
    color: var(--brand-soft-text);
    margin: 0 0 20px;
    font-size: 15px;
}

@media (max-width: 720px) {
    .pricing-title { font-size: 28px; }
    .pricing-intro { font-size: 15px; }
}

/* ========================================================
   PUBLIC TOPBAR & FOOTER (homepage, blog, articles)
   ======================================================== */
.public-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}
.public-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}
.public-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}
.public-nav a:hover { color: var(--text-primary); }
.public-nav a.is-active { color: var(--text-primary); font-weight: 500; }
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}
.public-footer {
    border-top: 0.5px solid var(--border);
    padding: 32px 24px;
    margin-top: 80px;
}
.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-nav a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}
.logo-sm { font-size: 16px; }

/* ========================================================
   BLOG LIST
   ======================================================== */
.page-blog,
.page-article { background: var(--bg-page); }

.blog-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.blog-header { margin-bottom: 40px; }
.blog-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 4px 0 16px;
    line-height: 1.1;
}
.blog-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
    margin: 0;
}

.blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.blog-card {
    border-bottom: 0.5px solid var(--border);
}
.blog-card:last-child { border-bottom: none; }
.blog-card-link {
    display: block;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s ease;
}
.blog-card-link:hover { opacity: 0.85; }
.blog-card-link:hover .blog-card-title { color: var(--brand); }

.blog-card-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 8px;
    color: var(--text-primary);
    transition: color 0.15s ease;
}

.blog-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 12px;
}

.blog-card-readmore {
    font-size: 13px;
    color: var(--brand);
    font-weight: 500;
    margin: 0;
}

.blog-list-compact .blog-card-link { padding: 16px 0; }
.blog-list-compact .blog-card-title { font-size: 17px; margin-bottom: 4px; }
.blog-list-compact .blog-card-desc { font-size: 13px; }

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0 0;
    margin-top: 24px;
    border-top: 0.5px solid var(--border);
}
.blog-pagination a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}
.blog-pagination span {
    font-size: 13px;
    color: var(--text-tertiary);
}

.empty-blog {
    text-align: center;
    padding: 60px 0;
    color: var(--text-tertiary);
}

/* ========================================================
   ARTICLE INDIVIDUEL
   ======================================================== */
.article-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}

.article-header { margin-bottom: 32px; }
.article-header .eyebrow {
    margin: 0 0 16px;
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-tertiary);
}
.article-header .eyebrow a {
    color: inherit;
    text-decoration: none;
}
.article-header .eyebrow a:hover { color: var(--brand); }

.article-title {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.article-meta {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Corps de l'article : typo soignée pour la lecture */
.article-body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
}
.article-body > * + * { margin-top: 1.2em; }

.article-body h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 2em 0 0.6em;
    scroll-margin-top: 24px;
}
.article-body h3 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 1.8em 0 0.5em;
    scroll-margin-top: 24px;
}
.article-body h4 {
    font-size: 17px;
    font-weight: 600;
    margin: 1.5em 0 0.4em;
}

.article-body p { margin: 0; }

.article-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.article-body a:hover { text-decoration-thickness: 2px; }

.article-body strong { font-weight: 600; color: var(--text-primary); }
.article-body em { font-style: italic; }

.article-body ul,
.article-body ol {
    padding-left: 1.5em;
}
.article-body li { margin-bottom: 0.4em; }
.article-body li::marker { color: var(--text-tertiary); }

.article-body blockquote {
    border-left: 3px solid var(--brand);
    padding: 4px 0 4px 20px;
    margin: 1.5em 0;
    color: var(--text-secondary);
    font-style: italic;
}
.article-body blockquote p { margin: 0; }

.article-body hr {
    border: none;
    border-top: 0.5px solid var(--border);
    margin: 2.5em 0;
}

.article-body code {
    background: var(--bg-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.9em;
}
.article-body pre {
    background: var(--bg-muted);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
    margin: 1.5em 0;
}
.article-body pre code {
    background: transparent;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5em auto;
    display: block;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}
.article-body table th,
.article-body table td {
    border-bottom: 0.5px solid var(--border);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.article-body table th {
    background: var(--bg-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}
.article-body table tr:hover td { background: var(--bg-hover); }

/* CTA en pied d'article */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 0.5px solid var(--border);
}
.article-cta {
    background: var(--brand-soft);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
}
.article-cta h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--brand-soft-text);
}
.article-cta p {
    color: var(--brand-soft-text);
    margin: 0 0 20px;
    font-size: 15px;
}

.article-related {
    max-width: 720px;
    margin: 60px auto 0;
    padding: 0 24px;
}
.article-related h2 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

@media (max-width: 720px) {
    .article-title { font-size: 28px; }
    .article-body { font-size: 16px; }
    .article-body h2 { font-size: 22px; }
    .article-body h3 { font-size: 18px; }
    .blog-title { font-size: 28px; }
}

/* ============================================================
 * V2.6 — Paiements & Reçus fiscaux
 * ============================================================ */

/* — Form layouts (paramètres asso, modaux, …) — */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 0;
}
.form-row .form-field {
    flex: 1;
    min-width: 0;
}
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.params-form .card {
    margin-bottom: 24px;
    padding: 24px;
}
.params-form .section-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 600;
}
.params-form .form-hint {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 16px;
    line-height: 1.5;
}
.params-form .form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}
.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-warning {
    background: #fff7ed;
    border: 1px solid #fb923c;
    color: #9a3412;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}
.form-warning a {
    color: #9a3412;
    font-weight: 600;
    text-decoration: underline;
}

.result-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.result-box.result-success {
    background: #ecfdf5;
    border: 1px solid #10b981;
    color: #065f46;
}
.result-box.result-error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #991b1b;
}
.result-box .result-icon {
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}
.result-box h3 { margin: 0 0 4px; font-size: 15px; }
.result-box p { margin: 0; font-size: 14px; }

/* — Toolbars et filtres année — */
.paiements-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 16px;
}
.year-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.year-filter .text-secondary {
    font-size: 13px;
}
.year-link {
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.1s;
}
.year-link:hover {
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-primary);
}
.year-link.is-active {
    background: var(--brand-color);
    color: #fff;
}

.recus-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* — Tables paiements/reçus — */
.paiements-table .mono { font-variant-numeric: tabular-nums; }
.paiements-table .mono-sm { font-size: 12px; color: var(--text-secondary); }
.paiements-table .text-right { text-align: right; }
.paiements-table .text-tertiary { color: var(--text-tertiary, #9ca3af); font-size: 13px; }
.paiements-table th.text-right { text-align: right; }

/* — Badges de type/mode — */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
}
.badge-type-cotisation { background: #dbeafe; color: #1e40af; }
.badge-type-don        { background: #fce7f3; color: #9d174d; }
.badge-type-autre      { background: #f3f4f6; color: #374151; }

.badge-recu {
    background: #d1fae5;
    color: #065f46;
    text-decoration: none;
    font-family: ui-monospace, monospace;
    padding: 3px 10px;
}
a.badge-recu:hover { background: #a7f3d0; }

/* — Boutons compacts — */
.btn-xs {
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-primary);
    border: 1px solid var(--border-color, #e5e7eb);
    cursor: pointer;
    transition: all 0.1s;
    text-decoration: none;
    display: inline-block;
}
.btn-xs:hover:not(:disabled) {
    background: var(--bg-hover, #e5e7eb);
}
.btn-xs:disabled { opacity: 0.5; cursor: not-allowed; }

/* — Modal dialog (paiements) — */
.modal-dialog {
    border: none;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    width: 90vw;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.modal-dialog::backdrop {
    background: rgba(0,0,0,0.4);
}
.modal-dialog .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.modal-dialog .modal-header h2 { margin: 0; font-size: 18px; }
.modal-dialog .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
}
.modal-dialog .modal-close:hover {
    background: var(--bg-soft, #f3f4f6);
    color: var(--text-primary);
}
.modal-dialog .modal-body {
    padding: 24px;
}
.modal-dialog .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    background: var(--bg-soft, #f9fafb);
    border-radius: 0 0 12px 12px;
}
.form-result {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
}
.form-result-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ============================================================
 * V2.7 — Inscription publique
 * ============================================================ */

/* Page publique (formulaire et confirmation) */
.page-public-form {
    background: linear-gradient(180deg, #fef9f6 0%, #fff 100%);
    min-height: 100vh;
}
.public-form-container {
    max-width: 540px;
    margin: 0 auto;
    padding: 40px 20px;
}
.public-form-header {
    text-align: center;
    margin-bottom: 32px;
}
.public-form-header .logo {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.7;
}
.public-form-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-primary);
}
.public-form-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}
.public-form-card {
    padding: 32px;
}
.public-form-intro {
    color: var(--text-secondary);
    margin: 0 0 24px;
    line-height: 1.6;
}
.public-form-message {
    text-align: center;
    padding: 40px 32px;
}
.public-form-message h2 {
    margin: 16px 0 12px;
    font-size: 22px;
}
.public-form-message p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 12px;
}
.public-form-message p:last-child { margin-bottom: 0; }
.public-form-success { background: #f0fdf4; border-color: #86efac; }
.public-form-error   { background: #fef2f2; border-color: #fca5a5; }
.success-icon, .error-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
}
.success-icon { background: #10b981; }
.error-icon   { background: #ef4444; }

.public-form-rgpd {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    font-size: 12px;
    color: var(--text-tertiary, #9ca3af);
    line-height: 1.5;
}

.public-form-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 13px;
}
.public-form-footer a { color: var(--brand-color); }

/* Honeypot : invisible aux humains, visible aux bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* URL publique affichée sur la page paramètres */
.url-publique-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    background: #fef9f6;
    border-color: var(--brand-color);
}
.url-publique-card h2 { margin: 0 0 4px; font-size: 16px; }
.url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.url-display code {
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e7eb);
    font-size: 14px;
    flex: 1;
    min-width: 200px;
    overflow-x: auto;
    white-space: nowrap;
}

/* Slug input avec préfixe/suffixe en ligne */
.slug-input-wrap {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.slug-input-wrap:focus-within {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(216, 90, 48, 0.1);
}
.slug-prefix, .slug-suffix {
    background: #f9fafb;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.slug-input-wrap input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    min-width: 100px;
}

/* Tableau de configuration des champs */
.champs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
}
.champs-table th {
    text-align: left;
    padding: 8px 12px;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.champs-table th.text-center { text-align: center; }
.champs-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.champs-table td.text-center { text-align: center; }
.champs-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.champs-table input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bouton "Inscriptions" avec badge */
.btn-attention {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}
.btn-attention:hover { background: #fde68a; }
.badge-count {
    background: #d97706;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
    line-height: 1.4;
}

/* ============================================================
 * V2.8 — Bureau multi-utilisateurs
 * ============================================================ */

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.6;
}
.role-admin {
    background: #fef3c7;
    color: #92400e;
}
.role-editeur {
    background: #dbeafe;
    color: #1e40af;
}
.role-lecteur {
    background: #f3f4f6;
    color: #374151;
}
.role-super {
    background: #fce7f3;
    color: #9f1239;
}

.role-select {
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color, #e5e7eb);
    background: #fff;
    cursor: pointer;
}
.role-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.badge-self {
    background: var(--brand-color);
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.badge-revoked {
    background: #fee2e2;
    color: #991b1b;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.row-revoked {
    opacity: 0.55;
    background: #fafafa;
}
.row-revoked td {
    text-decoration: line-through;
}
.row-revoked td:last-child {
    text-decoration: none;
    opacity: 1;
}

.roles-doc {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 24px;
    align-items: baseline;
}
.roles-doc dt {
    margin: 0;
    white-space: nowrap;
}
.roles-doc dd {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.form-info {
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

/* ============================================================
 * V2.8.1 — Navigation principale (mainnav)
 * ============================================================ */

.mainnav {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    /* Annule le margin du topbar quand la nav suit (rapproche les deux barres) */
    margin-top: -16px;
}

.mainnav-inner {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 6px;
}
.mainnav-inner::-webkit-scrollbar { display: none; }

.mainnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
    border-radius: 0;
}
.mainnav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.mainnav-link.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    background: transparent;
}
.mainnav-link svg {
    flex-shrink: 0;
    opacity: 0.85;
}
.mainnav-link.is-active svg {
    opacity: 1;
}

.mainnav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    background: var(--brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    line-height: 1;
}

@media (max-width: 480px) {
    .mainnav {
        margin-top: -8px;
        border-radius: var(--radius-md, 8px);
    }
    .mainnav-link {
        padding: 11px 10px;
        font-size: 13px;
    }
    .mainnav-link span {
        display: inline; /* afficher quand même le texte sur mobile, le scroll horizontal s'en occupe */
    }
}

/* ============================================================
 * V2.8.1 — Bouton ghost (action secondaire discrète)
 * ============================================================ */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================================
 * V2.9 — Page Santé (monitoring)
 * ============================================================ */

.health-alert {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg, 12px);
    margin-bottom: 24px;
    align-items: flex-start;
}
.health-alert-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}
.health-alert h2 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}
.health-alert p {
    margin: 0 0 8px;
    line-height: 1.5;
}
.health-alert-reasons {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 14px;
}
.health-alert-reasons li {
    margin: 2px 0;
}
.health-alert-red {
    background: #FEE2E2;
    border-left: 4px solid #DC2626;
    color: #7F1D1D;
}
.health-alert-red .health-alert-icon {
    background: #DC2626;
    color: #fff;
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 12px;
}

.health-card {
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    padding: 14px 16px;
    border-left-width: 3px;
}
.health-card-green  { border-left-color: #16A34A; }
.health-card-orange { border-left-color: #F59E0B; }
.health-card-red    { border-left-color: #DC2626; }

.health-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.health-card-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.health-pill {
    font-size: 14px;
    line-height: 1;
}
.health-card-value {
    font-size: 24px;
    font-weight: 600;
    margin: 6px 0 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.health-card-green .health-card-value  { color: #15803D; }
.health-card-orange .health-card-value { color: #B45309; }
.health-card-red .health-card-value    { color: #B91C1C; }

.health-sparkline-wrap {
    margin: 4px 0 8px;
    height: 36px;
    color: var(--brand);
    opacity: 0.85;
}
.health-card-green  .health-sparkline-wrap { color: #16A34A; }
.health-card-orange .health-sparkline-wrap { color: #F59E0B; }
.health-card-red    .health-sparkline-wrap { color: #DC2626; }

.sparkline {
    display: block;
    width: 100%;
    height: 100%;
}
.sparkline-empty {
    display: block;
    width: 100%;
    height: 100%;
    color: var(--text-secondary);
}

.health-card-help {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0 0;
    line-height: 1.4;
}

.empty-state-mini {
    padding: 16px;
    background: var(--bg-muted);
    border-radius: var(--radius-md, 8px);
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.code-block {
    background: var(--bg-muted);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-md, 8px);
    padding: 10px 14px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 12px;
    overflow-x: auto;
    margin: 8px 0;
}
.mono-sm {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================================
 * V2.10 — Sponsors & mécènes
 * ============================================================ */

/* Stat-card variant pour les alertes (J-30) */
.stat-card-warning {
    border-left: 3px solid var(--warning-text, #b45309);
    background: var(--warning-bg, #fffbeb);
}

/* Badges statut sponsor */
.badge-statut-prospect    { background: #f3f4f6; color: #374151; }
.badge-statut-actif       { background: #dcfce7; color: #166534; }
.badge-statut-archive     { background: #f3f4f6; color: #6b7280; }

/* Badges statut partenariat (8 valeurs) */
.badge-statut-negociation { background: #fef9c3; color: #854d0e; }
.badge-statut-signe       { background: #dbeafe; color: #1e40af; }
.badge-statut-en_cours    { background: #dcfce7; color: #166534; }
.badge-statut-honore      { background: #d1fae5; color: #065f46; }
.badge-statut-termine     { background: #f3f4f6; color: #6b7280; }
.badge-statut-renouvele   { background: #e0e7ff; color: #3730a3; }
.badge-statut-abandonne   { background: #fee2e2; color: #991b1b; }

/* Badges type partenariat */
.badge-type-mecenat_financier   { background: #fce7f3; color: #9d174d; }
.badge-type-mecenat_nature      { background: #fef3c7; color: #92400e; }
.badge-type-mecenat_competences { background: #ede9fe; color: #5b21b6; }
.badge-type-sponsoring          { background: #ffedd5; color: #9a3412; }

/* Badge alerte */
.badge-warning {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
}

/* Toolbar boutons */
.paiements-toolbar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Liens cliquables dans tableau */
.row-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
.row-link:hover {
    color: var(--brand);
}

/* Section toolbar (titre + bouton aligné à droite) */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 12px;
}
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* Fiche sponsor */
.sponsor-fiche {
    padding: 20px 24px;
}
.sponsor-fiche-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.sponsor-fiche-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin: 0 0 8px;
}
.sponsor-fiche-actions {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
    display: flex;
    gap: 8px;
}

@media (max-width: 700px) {
    .sponsor-fiche-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Cartes partenariat */
.partenariat-card {
    padding: 20px 24px;
    margin-bottom: 16px;
}
.partenariat-card-renouv {
    border-left: 3px solid var(--warning-text, #b45309);
}
.partenariat-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.partenariat-card-head h3 {
    margin: 4px 0 0;
    font-size: 17px;
}
.partenariat-card-eyebrow {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.partenariat-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.partenariat-promise {
    margin: 8px 0;
    font-size: 13px;
}

/* Sections dépliables (contreparties, documents) */
.partenariat-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e5e7eb);
}
.partenariat-section > summary {
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    margin-bottom: 8px;
}
.partenariat-section > summary .text-secondary {
    margin-left: 8px;
    font-weight: 400;
}

/* Liste des contreparties (checklist) */
.contreparties-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.contrepartie {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border, #e5e7eb);
}
.contrepartie.is-honoree .contrepartie-libelle {
    text-decoration: line-through;
    color: var(--text-secondary);
}
.contrepartie-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    cursor: pointer;
}
.contrepartie-libelle { flex: 1; }
.contrepartie-echeance {
    font-size: 12px;
    color: var(--text-secondary);
    margin-right: 8px;
}
.contrepartie-new {
    padding-top: 12px;
}
.cp-add-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.cp-add-form input[type="text"] {
    flex: 1;
    min-width: 200px;
}
.cp-add-form input[type="date"] {
    flex: 0 0 auto;
}

/* Bouton suppression compact */
.btn-icon-x {
    background: transparent;
    border: none;
    color: var(--text-tertiary, #9ca3af);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 2px 8px;
    border-radius: 4px;
}
.btn-icon-x:hover {
    background: #fee2e2;
    color: #991b1b;
}

/* Liste des documents émis */
.documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.documents-list li {
    padding: 4px 0;
}
.documents-list a {
    font-weight: 500;
}

/* Fieldset visuel (utilisé par modals sponsor / dossier) */
.fieldset-soft {
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}
.fieldset-soft legend {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    padding: 0 6px;
}

/* ============================================================
 * V2.11 — Bénévoles & heures valorisées
 * ============================================================ */

/* Badges statut bénévole */
.badge-statut-benevole-actif    { background: #dcfce7; color: #166534; }
.badge-statut-benevole-pause    { background: #fef9c3; color: #854d0e; }
.badge-statut-benevole-inactif  { background: #f3f4f6; color: #6b7280; }

/* Badges statut mission */
.badge-statut-mission-ouverte   { background: #dcfce7; color: #166534; }
.badge-statut-mission-fermee    { background: #f3f4f6; color: #6b7280; }
.badge-statut-mission-archivee  { background: #e5e7eb; color: #4b5563; }

/* ============================================================
 * V2.12 — Événements
 * ============================================================ */

/* Badges statut événement */
.badge-statut-evt-brouillon  { background: #f3f4f6; color: #6b7280; }
.badge-statut-evt-publie     { background: #dcfce7; color: #166534; }
.badge-statut-evt-complet    { background: #fef3c7; color: #92400e; }
.badge-statut-evt-annule     { background: #fee2e2; color: #991b1b; }
.badge-statut-evt-termine    { background: #e5e7eb; color: #4b5563; }

/* Badges statut inscription */
.badge-statut-insc-confirmee     { background: #dcfce7; color: #166534; }
.badge-statut-insc-liste_attente { background: #fef9c3; color: #854d0e; }
.badge-statut-insc-annulee       { background: #fee2e2; color: #991b1b; }

/* Lignes annulées : style barré */
.adherents-table tr.is-cancelled td {
    color: var(--text-tertiary, #9ca3af);
    text-decoration: line-through;
}

/* Image de couverture sur la page publique */
.public-form-cover {
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

/* Métadonnées de l'événement (page publique) */
.event-meta p {
    margin: 6px 0;
}
.event-description {
    line-height: 1.6;
    color: var(--text-secondary, #4b5563);
}

/* Carte d'erreur (page publique) */
.public-form-error-card {
    border-left: 3px solid var(--danger-text, #991b1b);
    background: #fef2f2;
}
.public-form-error-card h2 {
    color: #991b1b;
}

/* Bouton bloc full-width (formulaire public) */
.btn-block {
    display: block;
    width: 100%;
    margin-top: 16px;
}

/* Message d'erreur sous un input */
.form-error-msg {
    color: var(--danger-text, #991b1b);
    font-size: 12px;
    margin: 4px 0 0;
}

/* Checkbox label aligné */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* ============================================================
 * V2.13 — Dashboard + design refresh
 * ============================================================ */

/* ─── Header dashboard ─────────────────────────────────────── */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0 32px;
}
.dashboard-eyebrow {
    color: var(--text-tertiary);
    font-size: 13px;
    margin: 0 0 4px;
}
.dashboard-title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.dashboard-quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── KPI cards ─────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kpi-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.kpi-card-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-hover) 100%);
    color: #fff;
    border-color: transparent;
}
.kpi-card-primary .kpi-label,
.kpi-card-primary .kpi-hint { color: rgba(255, 255, 255, 0.85); }
.kpi-card-alert {
    border-color: var(--warning-text);
    background: var(--warning-bg);
}
.kpi-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0 0 8px;
}
.kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.kpi-card-primary .kpi-value { color: #fff; }
.kpi-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

/* ─── Sections heading ──────────────────────────────────────── */
.section-heading {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
    letter-spacing: -0.01em;
}

/* ─── Alertes ──────────────────────────────────────────────── */
.alerts-section { margin-bottom: 32px; }
.alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}
.alert-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-surface);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.alert-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.alert-icon { font-size: 20px; flex: 0 0 24px; }
.alert-body { flex: 1; min-width: 0; }
.alert-title {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px;
    font-size: 14px;
}
.alert-detail {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}
.alert-cta {
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.alert-danger {
    border-left: 3px solid var(--danger-text);
    background: linear-gradient(90deg, var(--danger-bg) 0%, var(--bg-surface) 60%);
}
.alert-warning {
    border-left: 3px solid var(--warning-text);
    background: linear-gradient(90deg, var(--warning-bg) 0%, var(--bg-surface) 60%);
}
.alert-info {
    border-left: 3px solid var(--brand);
    background: linear-gradient(90deg, var(--brand-soft) 0%, var(--bg-surface) 60%);
}

/* ─── Layout 2 colonnes ─────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
}
@media (min-width: 960px) {
    .dashboard-grid { grid-template-columns: 1.6fr 1fr; }
}

/* ─── Modules tiles ─────────────────────────────────────────── */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}
.module-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.module-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}
.module-emoji { font-size: 28px; flex: 0 0 32px; }
.module-text { flex: 1; min-width: 0; }
.module-label {
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 2px;
    font-size: 15px;
}
.module-desc {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0;
}
.module-arrow {
    color: var(--text-tertiary);
    font-size: 18px;
    transition: transform 0.15s ease, color 0.15s ease;
}
.module-tile:hover .module-arrow {
    color: var(--brand);
    transform: translateX(2px);
}

/* ─── Side cards ────────────────────────────────────────────── */
.dashboard-col-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.side-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px;
}
.side-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.side-card-stat {
    margin: 0 0 4px;
    font-size: 14px;
    color: var(--text-primary);
}
.side-card-stat strong {
    font-size: 22px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.02em;
}
.side-card-hint {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 13px;
}
.side-card-more {
    display: inline-block;
    color: var(--brand);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.side-card-more:hover { color: var(--brand-hover); }
.side-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.side-list li {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}
.side-list li:last-child { border-bottom: none; }
.side-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.side-list-date {
    font-weight: 700;
    color: var(--brand);
    font-size: 12px;
    flex: 0 0 50px;
    font-variant-numeric: tabular-nums;
}
.side-list-text {
    flex: 1;
    color: var(--text-primary);
    font-size: 13px;
}
.side-card-feedback {
    background: var(--brand-soft);
    border-color: transparent;
}

/* ─── Bouton flottant "Signaler" ────────────────────────────── */
.fab-feedback {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
}
.fab-feedback:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}
.fab-feedback:focus-visible {
    outline: 3px solid var(--brand-soft);
    outline-offset: 2px;
}
.fab-feedback-icon { font-size: 16px; line-height: 1; }
@media (max-width: 640px) {
    /* Sur mobile : icône seule en bas-droite, plus discret */
    .fab-feedback {
        bottom: 16px;
        right: 16px;
        padding: 12px 14px;
        font-size: 0;
    }
    .fab-feedback-icon { font-size: 18px; }
}

/* ─── Mobile : ajustements généraux dashboard ───────────────── */
@media (max-width: 640px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        margin: 16px 0 24px;
    }
    .dashboard-quick-actions { width: 100%; }
    .dashboard-quick-actions .btn { flex: 1; text-align: center; }
    .kpi-grid { gap: 10px; margin-bottom: 24px; }
    .kpi-card { padding: 16px; }
    .kpi-value { font-size: 26px; }
    .alerts-grid, .modules-grid { gap: 8px; }
    .module-tile { padding: 14px; }
    .module-emoji { font-size: 22px; flex: 0 0 24px; }
    .module-label { font-size: 14px; }
}

/* ============================================================
 * V2.13.1 — Affinement palette HopDoc : gradient italique + halo de fond
 * ============================================================ */

/* Texte avec dégradé teal → indigo → lavande, façon HopDoc.
   À appliquer sur des mots accentués dans les titres. Garder en italique
   pour ressembler à l'esthétique HopDoc. */
.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-weight: 700;
    /* Fallback pour navigateurs sans background-clip */
    -webkit-text-fill-color: transparent;
}

/* Halo pastel très subtil en arrière-plan de la page (signature HopDoc).
   Ne touche pas le bg-page de base, c'est un dégradé radial flou en
   coin haut-droit qui donne une touche de chaleur aux pages sans
   coût de lisibilité. */
body {
    background:
        radial-gradient(ellipse 800px 600px at 100% 0%, rgba(204, 251, 241, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 600px 800px at 0% 100%, rgba(238, 242, 255, 0.5) 0%, transparent 50%),
        var(--bg-page);
    background-attachment: fixed;
}

/* Sur la page publique de formulaire, on garde un fond plus sobre */
body.page-public-form {
    background:
        radial-gradient(ellipse 600px 400px at 50% 0%, rgba(204, 251, 241, 0.5) 0%, transparent 60%),
        var(--bg-page);
}

/* CTA noir pur, façon HopDoc (pour les actions principales fortes) */
.btn-dark {
    background: var(--cta-dark);
    color: #fff;
    border-color: var(--cta-dark);
}
.btn-dark:hover {
    background: var(--cta-dark-hover);
    border-color: var(--cta-dark-hover);
    color: #fff;
}

/* Tag/badge inline orange (l'accent secondaire HopDoc) */
.badge-accent {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

/* ============================================================
 * V2.13.2 — Champ slug d'asso avec validation temps réel
 * ============================================================ */

/* Affichage de l'URL active en haut du bloc */
.url-publique-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--brand-soft);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.url-publique-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-strong);
}
.url-publique-code {
    flex: 1;
    min-width: 200px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 13px;
    color: var(--text-primary);
    background: transparent;
    padding: 4px 0;
    word-break: break-all;
}

/* Input slug : groupe input + suffixe */
.slug-field { margin-bottom: 8px; }
.slug-input-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-surface);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.slug-input-row:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.slug-input-row input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 12px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 14px;
    background: transparent;
    text-align: right;
}
.slug-input-row input:disabled {
    background: var(--bg-muted);
    color: var(--text-tertiary);
    cursor: not-allowed;
}
.slug-suffix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 14px;
    border-left: 1px solid var(--border);
    white-space: nowrap;
}

/* États de validation */
.slug-input-row input.is-valid     ~ .slug-suffix { background: #ECFDF5; color: var(--success-text); }
.slug-input-row input.is-invalid   ~ .slug-suffix { background: var(--danger-bg); color: var(--danger-text); }
.slug-input-row input.is-checking  ~ .slug-suffix { background: var(--brand-soft); color: var(--brand-strong); }

.slug-input-row:has(input.is-valid)    { border-color: var(--success-text); }
.slug-input-row:has(input.is-invalid)  { border-color: var(--danger-text); }
.slug-input-row:has(input.is-checking) { border-color: var(--brand); }

.slug-feedback {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
}
.slug-feedback-success  { color: var(--success-text); font-weight: 500; }
.slug-feedback-error    { color: var(--danger-text); font-weight: 500; }
.slug-feedback-warning  { color: var(--warning-text); }
.slug-feedback-checking { color: var(--text-secondary); font-style: italic; }

/* Mobile : passer suffixe en dessous si trop étroit */
@media (max-width: 480px) {
    .slug-input-row {
        flex-direction: column;
    }
    .slug-input-row input { text-align: left; }
    .slug-suffix {
        border-left: none;
        border-top: 1px solid var(--border);
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ============================================================
 * V2.14 — Assemblées générales
 * ============================================================ */

/* ─── Badges statut AG ─────────────────────────────────────── */
.badge-statut-ag-preparation { background: var(--bg-muted); color: var(--text-secondary); }
.badge-statut-ag-convoquee   { background: var(--brand-soft); color: var(--brand-strong); }
.badge-statut-ag-en_cours    { background: var(--accent-soft); color: var(--accent-strong); }
.badge-statut-ag-terminee    { background: var(--success-bg); color: var(--success-text); }
.badge-statut-ag-annulee     { background: var(--danger-bg); color: var(--danger-text); }

/* ─── Badges statut participant ────────────────────────────── */
.badge-statut-part-attente    { background: var(--bg-muted); color: var(--text-secondary); }
.badge-statut-part-present    { background: var(--success-bg); color: var(--success-text); }
.badge-statut-part-emarge     { background: var(--success-bg); color: var(--success-text); font-weight: 700; }
.badge-statut-part-represente { background: var(--brand-soft); color: var(--brand-strong); }
.badge-statut-part-absent     { background: var(--danger-bg); color: var(--danger-text); }

/* ─── Badges type résolution ───────────────────────────────── */
.badge-statut-resol-ordinaire      { background: var(--bg-muted); color: var(--text-secondary); font-size: 11px; }
.badge-statut-resol-extraordinaire { background: var(--accent-soft); color: var(--accent-strong); font-size: 11px; }

/* ─── Cycle de vie visuel ──────────────────────────────────── */
.ag-cycle {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}
.ag-cycle li {
    padding: 6px 12px;
    margin-bottom: 4px;
    border-left: 3px solid var(--border);
    color: var(--text-tertiary);
    font-size: 13px;
}
.ag-cycle li.is-current {
    border-left-color: var(--brand);
    color: var(--brand-strong);
    font-weight: 700;
    background: var(--brand-soft);
}
.ag-cycle li.is-done {
    border-left-color: var(--success-text);
    color: var(--success-text);
}
.ag-cycle li.is-done.is-current {
    border-left-color: var(--success-text);
    background: var(--success-bg);
}

/* ─── Onglets ──────────────────────────────────────────────── */
.ag-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
}
.ag-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.ag-tab:hover { color: var(--text-primary); }
.ag-tab.is-active {
    color: var(--brand);
    border-bottom-color: var(--brand);
    font-weight: 700;
}
.ag-tab-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    background: var(--bg-muted);
    color: var(--text-secondary);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.ag-tab.is-active .ag-tab-count {
    background: var(--brand);
    color: #fff;
}
.ag-tab-panel { display: none; }
.ag-tab-panel.is-active { display: block; }

/* ─── Liste résolutions ────────────────────────────────────── */
.ag-resolutions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ag-resolution-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ag-resolution-num {
    font-size: 24px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
}
.ag-resolution-body { flex: 1; min-width: 0; }
.ag-resolution-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.ag-resolution-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 6px;
}
.ag-resolution-votes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ─── Stats votes ──────────────────────────────────────────── */
.ag-vote-stat {
    padding: 10px 12px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    text-align: center;
}
.ag-vote-pour { background: var(--success-bg); }
.ag-vote-contre { background: var(--danger-bg); }
.ag-vote-abstention { background: var(--bg-muted); }
.ag-vote-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2px;
}
.ag-vote-pour .ag-vote-label { color: var(--success-text); }
.ag-vote-contre .ag-vote-label { color: var(--danger-text); }
.ag-vote-value {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.ag-vote-pour .ag-vote-value { color: var(--success-text); }
.ag-vote-contre .ag-vote-value { color: var(--danger-text); }

.ag-vote-result {
    grid-column: 1 / -1;
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
}
.ag-vote-adopt { color: var(--success-text); font-weight: 700; margin-left: 8px; }
.ag-vote-rejet { color: var(--danger-text); font-weight: 700; margin-left: 8px; }

/* ─── Saisie de vote en direct ─────────────────────────────── */
.ag-vote-form {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    flex-wrap: wrap;
}
.ag-vote-form select {
    flex: 1;
    min-width: 200px;
}
.ag-vote-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.ag-vote-btn {
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: background 0.15s ease;
}
.ag-vote-btn:hover { background: var(--bg-muted); }
.ag-vote-btn-pour:hover    { background: var(--success-bg); border-color: var(--success-text); }
.ag-vote-btn-contre:hover  { background: var(--danger-bg);  border-color: var(--danger-text); }
.ag-vote-btn-abstention:hover { background: var(--bg-muted); }
.ag-vote-stats {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.ag-vote-stats .ag-vote-stat { flex: 1; padding: 6px 10px; }

/* ─── Page publique de réponse ─────────────────────────────── */
.ag-reponse-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ag-reponse-option {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.ag-reponse-option:hover {
    background: var(--bg-muted);
}
.ag-reponse-option:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.ag-reponse-option input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
}
.ag-reponse-option strong {
    display: block;
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ag-reponse-option p {
    margin: 0;
    font-size: 13px;
}

/* ─── Toolbar section ──────────────────────────────────────── */
.section-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}
.section-toolbar .section-title { margin: 0; }

/* ─── Mobile ───────────────────────────────────────────────── */
@media (max-width: 640px) {
    .ag-tabs { gap: 2px; }
    .ag-tab { padding: 8px 12px; font-size: 13px; }
    .ag-tab-count { padding: 1px 6px; font-size: 10px; }
    .ag-resolution-num { font-size: 20px; min-width: 24px; }
    .ag-resolution-votes { gap: 6px; }
    .ag-vote-stat { padding: 8px; }
    .ag-vote-value { font-size: 18px; }
    .ag-vote-form { flex-direction: column; align-items: stretch; }
}

/* ─── Utilitaires ──────────────────────────────────────────── */
.text-success { color: var(--success-text); }
.text-danger { color: var(--danger-text); }
.btn-block { display: block; width: 100%; }

/* ========================================================
   HOMEPAGE V2 — Refonte SEO & présentation produit (v2.14.0)
   ======================================================== */

/* Bandeau d'accueil : annonce du plan gratuit (sur toutes les pages publiques) */
.promo-banner {
    background: var(--brand-strong);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
}
.promo-banner-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
}
.promo-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}
.promo-banner strong { font-weight: 700; }
.promo-link {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    white-space: nowrap;
}
.promo-link:hover { text-decoration: none; }

@media (max-width: 640px) {
    .promo-banner { font-size: 13px; padding: 8px 12px; }
    .promo-banner-inner { gap: 8px; }
}

/* Conteneur principal de la home v2 */
.home-v2 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 0;
    width: 100%;
}

/* Hero v2 — plus généreux que la v1 */
.hero-v2 {
    text-align: center;
    padding: 60px 0 80px;
    max-width: 760px;
    margin: 0 auto;
}
.hero-v2 .eyebrow {
    margin-bottom: 20px;
}
.hero-title-v2 {
    font-size: clamp(40px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 24px;
    color: var(--text-primary);
}
.hero-title-v2 em {
    font-style: italic;
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-subtitle-v2 {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 auto 36px;
    max-width: 640px;
}
.hero-v2 .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
}
.hero-meta {
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-tertiary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.hero-meta svg {
    color: var(--brand);
    flex-shrink: 0;
}
.hero-meta .dot { opacity: 0.5; margin: 0 6px; }

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
}
.btn-ghost:hover {
    background: var(--bg-muted);
    border-color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .hero-v2 { padding: 32px 0 48px; }
    .hero-subtitle-v2 { font-size: 16px; }
    .hero-meta { font-size: 12px; }
}

/* Sections génériques de la home */
.home-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}
.home-section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 0 0 16px;
    text-align: center;
    color: var(--text-primary);
}
.home-section-title em {
    font-style: italic;
    font-weight: 600;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.home-section-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px;
}
.home-section .eyebrow {
    text-align: center;
    margin-bottom: 16px;
}

@media (max-width: 640px) {
    .home-section { padding: 56px 0; }
    .home-section-intro { font-size: 15px; margin-bottom: 32px; }
}

/* Pour qui — grille de cibles */
.targets-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.target-item {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.target-item:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}
.target-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}
.target-item h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text-primary);
}
.target-item p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

/* Fonctionnalités — grille de cartes */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.feature-icon {
    width: 44px;
    height: 44px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Comment ça marche — étapes */
.howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    counter-reset: howto;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}
.howto-step {
    text-align: center;
    padding: 0 16px;
}
.howto-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.howto-step h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.howto-step p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Pourquoi — grille de cartes valeur */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .why-grid { grid-template-columns: 1fr; max-width: 460px; }
}
.why-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.why-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text-primary);
}
.why-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Comparatif synthèse */
.home-compare-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}
.home-compare-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}
.home-compare-link a:hover { text-decoration: underline; }

/* FAQ home */
.home-faq { max-width: 760px; margin-left: auto; margin-right: auto; }
.home-faq .faq-item {
    border-top: 1px solid var(--border);
    padding: 18px 0;
}
.home-faq .faq-item:last-child { border-bottom: 1px solid var(--border); }
.home-faq .faq-item summary {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.home-faq .faq-item summary::-webkit-details-marker { display: none; }
.home-faq .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--text-tertiary);
    font-weight: 400;
    transition: transform 0.15s ease;
}
.home-faq .faq-item[open] summary::after {
    content: "−";
}
.home-faq .faq-item p {
    margin: 12px 0 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* CTA final */
.home-cta {
    text-align: center;
    background: var(--brand-soft);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    margin-bottom: 64px;
    border-top: none;
}
.home-cta h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--brand-strong);
}
.home-cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 28px;
}
.home-cta .hero-cta {
    justify-content: center;
}

@media (max-width: 640px) {
    .home-cta { padding: 40px 20px; }
}

/* ========================================================
   PRICING — éléments ajoutés en v2.14.3
   ======================================================== */

/* Bandeau de trial sous l'intro de pricing */
.pricing-trial-note {
    margin-top: 16px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}
.pricing-trial-note strong { font-weight: 700; }

/* Section "Tout est inclus" sur la page tarifs */
.pricing-included {
    margin: 80px 0 64px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
}
.pricing-included-grid {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px 24px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.pricing-included-grid li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 640px) {
    .pricing-included { padding: 28px 20px; margin: 48px 0; }
    .pricing-included-grid { gap: 10px 16px; }
}

/* ========================================================
   PAGE SÉCURITÉ & CONFIDENTIALITÉ (v3.0.2)
   ======================================================== */
.securite-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}
.securite-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 24px 0 0;
}
.securite-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin: 8px 0 16px;
    color: var(--text-primary);
}
.securite-intro {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}
.securite-section {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.securite-section:last-child { border-bottom: none; padding-bottom: 0; }
.securite-section h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 16px;
    color: var(--text-primary);
}
.securite-section p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 14px;
}
.securite-section p:last-child { margin-bottom: 0; }
.securite-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
}
.securite-list li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 8px 0 8px 24px;
    position: relative;
}
.securite-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--brand);
    font-weight: 600;
}
.securite-list strong { color: var(--text-primary); }
.securite-section a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.securite-section a:hover { color: var(--brand-hover); }
.securite-section code.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-muted);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}
.securite-update {
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

@media (max-width: 640px) {
    .securite-container { padding: 16px 16px 40px; }
    .securite-header { margin-bottom: 40px; }
    .securite-section { margin-bottom: 36px; padding-bottom: 24px; }
    .securite-section h2 { font-size: 19px; }
    .securite-section p { font-size: 15px; }
}

/* ========================================================
   SÉCURITÉ V3.1.0 — 2FA, paramètres sécurité, audit log
   ======================================================== */

/* Code 2FA — saisie large et lisible */
.input-2fa-code {
    text-align: center;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.4em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 12px 8px;
}

/* Checkbox style */
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--brand);
}

/* Formulaire secondaire (re-send code) */
.auth-form-secondary {
    margin-top: 16px;
    text-align: center;
}
.auth-form-secondary .btn-link {
    background: none;
    border: none;
    color: var(--brand);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    padding: 4px 8px;
}
.auth-form-secondary .btn-link:hover {
    color: var(--brand-hover);
}

/* Cartes de paramètres sécurité */
.card .card-status {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 12px;
}
.card .card-status.status-active {
    color: var(--text-primary);
    background: var(--brand-soft);
    padding: 12px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--brand);
}
.card .card-help {
    font-size: 13px;
    color: var(--text-tertiary, #6B7280);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Audit log : metadata JSON repliable */
.audit-metadata {
    background: var(--bg-muted);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    margin: 4px 0 0;
    max-width: 400px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Pagination */
.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Form-inline pour les filtres admin */
.form-inline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.form-inline .form-field {
    flex: 1 1 auto;
    min-width: 140px;
    margin: 0;
}

/* Form-stacked : empilement vertical avec espace */
.form-stacked .form-field {
    margin-bottom: 14px;
}
.form-stacked .form-help {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary, #6B7280);
    margin-top: 4px;
}

/* Texte neutre */
.text-muted { color: var(--text-tertiary, #6B7280); }
.small { font-size: 12px; }

/* Alertes */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}
.alert-success {
    background: var(--brand-soft);
    color: var(--brand-soft-text);
    border-left: 3px solid var(--brand);
}
.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 3px solid #DC2626;
}

/* ========================================================
   ANALYTICS DASHBOARD V3.2.0
   ======================================================== */

/* Sélecteur de période */
.analytics-period-bar {
    margin-bottom: 24px;
}
.period-form {
    display: flex;
    align-items: center;
    gap: 12px;
}
.period-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}
.period-form select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-surface);
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* KPIs grille */
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .analytics-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .analytics-kpi-grid { grid-template-columns: 1fr; }
}
.analytics-kpi {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.analytics-kpi-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.analytics-kpi-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.02em;
    line-height: 1;
}
.analytics-kpi-help {
    font-size: 12px;
    color: var(--text-tertiary, #6B7280);
    margin: 0;
}

/* Graphique en barres */
.analytics-chart {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 200px;
    padding: 16px 0 8px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}
.analytics-chart-bar {
    flex: 1 1 0;
    min-width: 8px;
    background: var(--brand);
    border-radius: 2px 2px 0 0;
    min-height: 2px;
    position: relative;
    transition: opacity 0.2s;
    cursor: pointer;
}
.analytics-chart-bar:hover {
    opacity: 0.85;
}
.analytics-chart-bar-value {
    display: none;
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: var(--text-primary);
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.analytics-chart-bar:hover .analytics-chart-bar-value {
    display: block;
}
.analytics-chart-axis {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    font-size: 12px;
    color: var(--text-tertiary, #6B7280);
}

/* Deux colonnes pour les sections */
.analytics-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 0;
}
@media (max-width: 900px) {
    .analytics-two-col { grid-template-columns: 1fr; }
}

/* Liste de barres horizontales (device, browser) */
.analytics-bar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.analytics-bar-list li {
    margin-bottom: 12px;
}
.analytics-bar-list li:last-child {
    margin-bottom: 0;
}
.analytics-bar-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px;
}
.analytics-bar-label {
    color: var(--text-primary);
    font-weight: 500;
}
.analytics-bar-value {
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.analytics-bar-track {
    height: 6px;
    background: var(--bg-muted);
    border-radius: 3px;
    overflow: hidden;
}
.analytics-bar-fill {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Cellules numériques alignées à droite */
.data-table th.num,
.data-table td.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Carte admin avec aide */
.admin-card-help {
    font-size: 13px;
    color: var(--text-tertiary, #6B7280);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Empty state simple */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-tertiary, #6B7280);
    font-size: 14px;
}

/* Mono helper si pas déjà défini */
.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ========================================================
   PAGE PLACEHOLDER SOUS-DOMAINE D'ASSO (V3.3.0)
   ======================================================== */
.page-asso-placeholder {
    min-height: 100vh;
    background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.placeholder-container {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.placeholder-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
}

.placeholder-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 12px;
}

.placeholder-asso-name {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0;
    color: var(--text-primary);
}

.placeholder-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px auto;
    width: 60px;
}

.placeholder-status-icon {
    font-size: 40px;
    margin: 0 0 12px;
    line-height: 1;
}

.placeholder-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.placeholder-message {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.placeholder-cta {
    margin-top: 8px;
}

.placeholder-footer {
    margin-top: 32px;
    font-size: 13px;
    color: var(--text-tertiary, #6B7280);
    text-align: center;
}
.placeholder-footer p {
    margin: 0;
}
.placeholder-footer a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.placeholder-footer a:hover {
    color: var(--brand);
}

@media (max-width: 480px) {
    .placeholder-card { padding: 32px 20px; }
}

/* ========================================================
   BILLING V3.4.0 — Sélecteur de plan + page abonnement
   ======================================================== */

/* Sélecteur de plan dans register.php */
.plan-picker {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.plan-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--bg-surface);
}
.plan-option:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.plan-option.is-checked {
    border-color: var(--brand);
    background: var(--brand-soft);
}
.plan-option input[type="radio"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--brand);
}
.plan-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}
.plan-option-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}
.plan-option-price {
    font-size: 14px;
    color: var(--brand);
    font-weight: 500;
}
.plan-option-max {
    font-size: 12px;
    color: var(--text-tertiary, #6B7280);
}

/* Page Mon abonnement : résumé en grille */
.abonnement-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 900px) {
    .abonnement-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .abonnement-summary { grid-template-columns: 1fr; }
}
.abonnement-summary-item {
    padding: 16px;
    background: var(--bg-muted);
    border-radius: var(--radius);
}
.abonnement-summary-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 6px;
}
.abonnement-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    line-height: 1.1;
}
.abonnement-summary-value small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}
.abonnement-summary-help {
    font-size: 12px;
    color: var(--text-tertiary, #6B7280);
    margin: 4px 0 0;
}
.abonnement-progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}
.abonnement-progress-fill {
    height: 100%;
    background: var(--brand);
    transition: width 0.3s ease;
}
.abonnement-actions {
    margin-top: 8px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.badge-success {
    background: var(--brand-soft);
    color: var(--brand-strong, #115E59);
}

/* ========================================================
   ADMIN — Paramètres Stripe (V3.4.1)
   ======================================================== */

.stripe-config-form .form-fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 0 0 20px;
    background: var(--bg-surface);
}
.stripe-config-form legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}
.stripe-config-form .form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}
.stripe-config-form .form-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
}
.stripe-config-form .form-radio:hover {
    border-color: var(--brand);
}
.stripe-config-form .form-radio input[type="radio"]:checked ~ span {
    color: var(--brand-strong, #115E59);
}
.stripe-config-form input.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-surface);
}
.stripe-config-form .form-actions {
    margin-top: 8px;
    text-align: right;
}

.admin-help-list {
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.65;
}
.admin-help-list li {
    margin-bottom: 12px;
}
.admin-help-list code {
    background: var(--bg-muted);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.admin-help-list code.copyable {
    display: inline-block;
    padding: 4px 10px;
    background: var(--brand-soft);
    color: var(--brand-strong, #115E59);
    margin-top: 4px;
    user-select: all;
}
.admin-help-list pre.webhook-events {
    background: var(--bg-muted);
    padding: 10px 12px;
    border-radius: 6px;
    margin: 8px 0 0;
    font-size: 12px;
    user-select: all;
    line-height: 1.5;
}

/* ============================================================
   PAGE STRIPE REDIRECT (V3.4.7)
   Page intermédiaire affichée pendant la redirection vers Stripe Checkout
   ============================================================ */

.page-stripe-redirect {
    background: var(--bg-app, #f8fafc);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.stripe-redirect-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stripe-redirect-card .spinner {
    display: inline-block;
    width: 36px;
    height: 36px;
    border: 3px solid #e5e7eb;
    border-top-color: var(--brand, #0D9488);
    border-radius: 50%;
    animation: stripe-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes stripe-spin {
    to { transform: rotate(360deg); }
}

.stripe-redirect-card h1 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--text-primary, #1f2937);
    line-height: 1.4;
}

.stripe-redirect-card p {
    color: var(--text-muted, #6b7280);
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 12px;
}

.stripe-redirect-card .btn {
    margin-top: 8px;
}

/* ============================================================
   V3.4.13 — Bouton "Signaler / suggérer" rendu beaucoup plus
   visible : taille augmentée, animation pulse au chargement,
   couleur soutenue avec halo orange pour attirer l'œil.
   ============================================================ */

.fab-feedback {
    /* Override v3.4.13 : plus gros, plus voyant */
    padding: 16px 22px;
    font-size: 15px;
    font-weight: 700;
    background: var(--brand);
    border: 2px solid #fff;
    box-shadow:
        0 6px 24px rgba(13, 148, 136, 0.45),
        0 0 0 4px rgba(13, 148, 136, 0.15);
    animation: fab-pulse 2.4s ease-in-out 0.5s 3;
}

.fab-feedback:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 10px 28px rgba(13, 148, 136, 0.55),
        0 0 0 6px rgba(13, 148, 136, 0.2);
}

.fab-feedback-icon {
    font-size: 18px;
}

/* Animation pulse pour attirer l'œil au chargement (3 fois) */
@keyframes fab-pulse {
    0%, 100% {
        box-shadow:
            0 6px 24px rgba(13, 148, 136, 0.45),
            0 0 0 4px rgba(13, 148, 136, 0.15);
    }
    50% {
        box-shadow:
            0 8px 32px rgba(13, 148, 136, 0.65),
            0 0 0 14px rgba(13, 148, 136, 0.08);
    }
}

@media (max-width: 640px) {
    .fab-feedback {
        bottom: 16px;
        right: 16px;
        padding: 14px 18px;
        font-size: 13px;
    }
    .fab-feedback-label {
        font-size: 13px;
    }
    .fab-feedback-icon {
        font-size: 18px;
    }
}

/* ============================================================
   V3.4.13 — Badge "Bientôt" pour items de menu désactivés
   ============================================================ */

.mainnav-badge-soon {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-left: 4px;
    /* Pas de taille forcée comme le badge numérique */
    min-width: 0;
    height: auto;
    line-height: 1.3;
}

/* ============================================================
   V3.4.13 — Page "Bientôt disponible" (placeholder fonctionnalité)
   ============================================================ */

.coming-soon-card {
    text-align: center;
    padding: 56px 40px;
    max-width: 640px;
    margin: 32px auto;
}

.coming-soon-illustration {
    color: var(--brand);
    margin-bottom: 16px;
    opacity: 0.85;
}

.coming-soon-badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #F59E0B;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.coming-soon-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.coming-soon-lead {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}

.coming-soon-features {
    list-style: none;
    padding: 0;
    margin: 0 auto 32px;
    text-align: left;
    max-width: 480px;
}

.coming-soon-features li {
    padding: 10px 0 10px 28px;
    position: relative;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    border-bottom: 1px solid var(--border-soft, #f1efe8);
}

.coming-soon-features li:last-child {
    border-bottom: none;
}

.coming-soon-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--brand);
    font-weight: 700;
    font-size: 16px;
}

.coming-soon-features strong {
    color: var(--text-primary);
    font-weight: 600;
}

.coming-soon-cta {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 24px 0 16px;
}

.coming-soon-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

@media (max-width: 640px) {
    .coming-soon-card {
        padding: 32px 20px;
    }
    .coming-soon-title {
        font-size: 18px;
    }
    .coming-soon-actions {
        flex-direction: column;
    }
    .coming-soon-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   V3.4.14 — Page admin bug-reports : fil de discussion et
   formulaire de réponse
   ============================================================ */

/* Compteur de messages dans l'entête */
.bug-message-count {
    background: var(--brand-soft, #ccfbf1);
    color: var(--brand-strong, #115E59);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

/* Fil de discussion */
.bug-thread {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bug-message {
    padding: 12px 16px;
    border-radius: 8px;
    background: #f9fafb;
    border-left: 3px solid #d1d5db;
}

.bug-message-user {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.bug-message-admin {
    background: #ecfdf5;
    border-left-color: var(--brand, #0D9488);
}

.bug-message-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
}

.bug-message-body {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Badge "envoyé par email" */
.bug-email-badge {
    display: inline-block;
    background: var(--brand-soft, #ccfbf1);
    color: var(--brand-strong, #115E59);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* Notes internes (visibles seulement par l'admin) */
.bug-admin-notes {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 12px 0;
    font-size: 13px;
}

.bug-admin-notes strong {
    color: #92400e;
    display: block;
    margin-bottom: 4px;
}

/* Formulaire de réponse (replié par défaut via <details>) */
.bug-reply-details {
    margin: 16px 0;
    border-top: 1px solid var(--border-soft, #f1efe8);
    padding-top: 16px;
}

.bug-reply-summary {
    cursor: pointer;
    list-style: none;
    /* Masquer la flèche par défaut */
}

.bug-reply-summary::-webkit-details-marker { display: none; }
.bug-reply-summary::marker { content: ''; }

.bug-reply-details[open] .bug-reply-summary {
    margin-bottom: 12px;
}

.bug-reply-form {
    background: #ffffff;
    padding: 16px;
    border: 1px solid var(--border-soft, #f1efe8);
    border-radius: 8px;
}

.bug-reply-form textarea {
    width: 100%;
    min-height: 100px;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft, #d1d5db);
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

.bug-reply-form textarea:focus {
    outline: 2px solid var(--brand, #0D9488);
    outline-offset: 0;
    border-color: var(--brand, #0D9488);
}

.bug-reply-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin: 12px 0;
    padding: 12px;
    background: #f9fafb;
    border-radius: 6px;
}

.bug-reply-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.bug-reply-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-left: auto;
}

.bug-reply-status select {
    padding: 6px 10px;
    border: 1px solid var(--border-soft, #d1d5db);
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    background: white;
}

.bug-reply-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bug-reply-feedback {
    font-size: 13px;
}

/* Footer avec actions rapides */
.bug-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft, #f1efe8);
    font-size: 13px;
}

.bug-status-quick {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary, #6b7280);
}

.bug-status-quick select {
    padding: 4px 8px;
    border: 1px solid var(--border-soft, #d1d5db);
    border-radius: 4px;
    font-family: inherit;
    font-size: 13px;
}

@media (max-width: 640px) {
    .bug-reply-options {
        flex-direction: column;
        align-items: flex-start;
    }
    .bug-reply-status {
        margin-left: 0;
        width: 100%;
    }
    .bug-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
