/* ========================================================
   HopAsso — 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: 2px;
    text-decoration: none;
}
.logo .hop {
    color: var(--brand);
    position: relative;
}
.logo .hop::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    opacity: 0.25;
}
.logo-lg { font-size: 28px; }
.logo-lg .hop::after { height: 3px; }

/* ========================================================
   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);
}
