/* ==========================================================================
   Outils : cartes, calculateur de vente, sondages, formulaires (et leurs pages publiques)
   ========================================================================== */

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
/* Cartes de même hauteur : la règle générale .card + .card ajouterait une marge en haut des suivantes */
.tools-grid > .card + .card, .form-cards > .card + .card { margin-top: 0; }
.tool-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.tool-card:hover { color: var(--text); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.tool-card h2 { font-size: 1.1rem; margin: .6rem 0 0; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: .92rem; flex: 1; }
.tool-card.is-locked { opacity: .75; }
/* Recherche et réorganisation des cartes */
.tools-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.tools-search { position: relative; display: flex; align-items: center; flex: 1 1 280px; max-width: 420px; }
.tools-search .icon { position: absolute; left: .8rem; color: var(--text-faint); pointer-events: none; }
.tools-search input { width: 100%; padding-left: 2.3rem; }
.tools-hint { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-faint); font-size: .85rem; }
.tool-card { position: relative; }
.tool-card[hidden] { display: none; }
.tool-handle { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--text-faint); cursor: grab; touch-action: none; }
.tool-handle:hover { background: var(--surface-muted); color: var(--text); }
.tool-card.is-dragging .tool-handle { cursor: grabbing; }
.tool-card.is-ghost { opacity: .35; border-style: dashed; }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.tool-icon .icon { width: 24px; height: 24px; }
.tool-icon.green { background: var(--success-soft); color: var(--success); }
.tool-icon.blue { background: var(--info-soft); color: var(--info); }
.tool-icon.amber { background: var(--warning-soft); color: var(--warning); }
.tool-cta { display: inline-flex; align-items: center; gap: .25rem; margin-top: .8rem; color: var(--primary); font-weight: 600; font-size: .9rem; }

/* Calculateur */
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.chip:hover { border-color: var(--primary); background: var(--primary-soft); }
.calc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.25rem; }
.calc-presets > span { color: var(--text-muted); font-size: .9rem; margin-right: .25rem; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 980px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-sale { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 560px) { .calc-sale { grid-template-columns: 1fr; } }
.calc-field { display: grid; gap: .35rem; font-size: .87rem; font-weight: 600; }
.calc-field.wide { grid-column: 1 / -1; }
.calc-field small { font-weight: 400; color: var(--text-muted); font-size: .8rem; }
.calc-field input[type=range] { width: 100%; accent-color: var(--primary); }
.calc-field strong { color: var(--primary); }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 1.8rem; }
.input-suffix em { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--text-muted); pointer-events: none; }
.calc-lines { padding: 0 1.35rem; }
.calc-line { display: grid; grid-template-columns: minmax(0, 1fr) 80px 110px 90px 34px; gap: .5rem; align-items: center; padding: .35rem 0; }
.calc-line-head { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); padding-bottom: 0; }
.calc-line output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-line-head span:nth-child(4) { text-align: right; }
.calc-line-cell { display: contents; }
.calc-line-caption { display: none; }
@media (max-width: 640px) {
    /* Exemples : invite sur sa ligne, puis les quatre choix en grille 2 × 2 */
    .calc-presets { display: grid; grid-template-columns: 1fr 1fr; }
    .calc-presets > span { grid-column: 1 / -1; margin: 0; }
    .calc-presets .chip { justify-content: center; text-align: center; }
    /* Dépenses : libellé, puis quantité et prix unitaire sur deux colonnes pleines, puis total et corbeille ; un filet sépare chaque dépense */
    .calc-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--border); }
    [data-sale-calculator-target="lines"] > .calc-line:last-child { border-bottom: 0; }
    .calc-line > [data-field="label"] { grid-column: 1 / -1; font-weight: 600; }
    .calc-line-cell { display: grid; gap: .25rem; min-width: 0; }
    .calc-line-cell input { width: 100%; min-width: 0; }
    .calc-line-caption { display: block; font-size: .75rem; font-weight: 600; color: var(--text-muted); }
    .calc-line-total { display: flex; align-items: baseline; gap: .4rem; }
    .calc-line-total .calc-line-caption::after { content: " :"; }
    .calc-line output { text-align: left; }
    .calc-line > .btn-icon { justify-self: end; }
    .calc-line-head { display: none; }
}
.calc-add { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.calc-add small { color: var(--text-muted); }
.calc-results { position: sticky; top: 1rem; overflow: hidden; order: 2; }
.calc-verdict { padding: 1.4rem 1.35rem 1.1rem; background: var(--surface-muted); transition: background .25s ease; }
.calc-verdict small { font-weight: 600; color: var(--text-muted); }
.calc-verdict strong { display: block; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc-verdict p { margin: .4rem 0 0; font-size: .88rem; }
.calc-verdict[data-state="profit"] { background: var(--success-soft); color: #14532d; }
.calc-verdict[data-state="loss"] { background: var(--danger-soft); color: #8f1d22; }
.calc-bar { display: flex; height: 8px; background: var(--surface-muted); }
.calc-bar span { transition: width .35s ease; }
.calc-bar-cost { background: var(--border-strong); }
.calc-bar-profit { background: var(--success); }
.calc-bar-profit.loss { background: var(--danger); }
.calc-kpis { margin: 0; padding: .6rem 1.35rem; }
.calc-kpis div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.calc-kpis div:last-child { border-bottom: 0; }
.calc-kpis dt { color: var(--text-muted); }
.calc-kpis dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hint { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--surface-muted); color: var(--text-muted); font-size: .7rem; font-weight: 700; cursor: help; }
.calc-goal { padding: 1rem 1.35rem; border-top: 1px solid var(--border); background: var(--surface-muted); }
.calc-goal p { margin: .6rem 0 0; font-size: .9rem; font-weight: 600; color: var(--primary-ink); }
.calc-goal p:empty { display: none; }
.calc-actions { padding: .5rem 1rem; border-top: 1px solid var(--border); text-align: right; }
@media print {
    .sidebar, .topbar, .no-print, .billing-banner, .cookie-banner { display: none !important; }
    .main { margin: 0 !important; }
    /* Ni grille ni flex à l'impression : le navigateur ne les coupe pas d'une page à l'autre et saute une page.
       Les résultats (placés avant les saisies dans la page) forment un bandeau en haut, sur toute la largeur,
       pour que le tableau des dépenses garde des colonnes assez larges. */
    .calc-grid { display: block; }
    .calc-results { position: static; margin-bottom: 1rem; break-inside: avoid; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
    .calc-verdict { grid-column: 1; grid-row: 1; padding: .9rem 1.1rem; }
    .calc-verdict strong { font-size: 1.6rem; }
    .calc-bar { display: none; }
    .calc-kpis { grid-column: 2; grid-row: 1; padding: .2rem 1.1rem; }
    .calc-kpis div { padding: .35rem 0; }
    .calc-goal { grid-column: 1 / -1; padding: .6rem 1.1rem; }
    .calc-goal .calc-field { display: flex; align-items: center; gap: 1rem; }
    .calc-goal .input-suffix { width: 10rem; }
    .calc-field small { display: none; }
    .calc-grid .stack > .card:first-child { break-inside: avoid; }
    .calc-grid .card-header, .calc-line-head { break-after: avoid; }
    .calc-grid .card-header { padding: .6rem 1.1rem; }
    .calc-grid .card-body { padding: .8rem 1.1rem; }
    .calc-lines { padding: 0 1.1rem .4rem; }
    .calc-sale { grid-template-columns: 2fr 1fr 1fr; gap: .6rem 1rem; }
    .calc-sale .calc-field.wide:first-child { grid-column: auto; }
    .calc-grid input:not([type=range]) { padding-top: .35rem; padding-bottom: .35rem; min-height: 0; }
    .card { box-shadow: none; }
    .calc-line { grid-template-columns: minmax(0, 1fr) 90px 120px 96px; padding: .2rem 0; break-inside: avoid; }
    .app { min-height: 0; }
    .content { padding-bottom: 0; }
    .calc-line-head span:last-child { display: none; }
}

/* Sondages */
.poll-form .field { margin-bottom: 1.1rem; }
.option-list { display: grid; gap: .45rem; margin-bottom: .5rem; }
.option-row { display: flex; align-items: center; gap: .55rem; }
.option-row > input { flex: 1; }
.option-bullet { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; }
.poll-description { margin: -.75rem 0 1.25rem; color: var(--text-muted); max-width: 760px; }
.poll-results { display: grid; gap: 1rem; }
.poll-result { font-size: .93rem; }
.poll-result small { font-weight: 500; color: var(--text-muted); }
.poll-bar { height: 10px; margin-top: .4rem; border-radius: 6px; background: var(--surface-muted); overflow: hidden; }
.poll-bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--primary); transform-origin: left; animation: finance-grow .7s ease both; }
.poll-result.is-top .poll-bar span { background: var(--primary); }
.poll-result.is-top > div:first-child span { font-weight: 700; }

/* Formulaires : liste et partage */
.form-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.form-card { display: grid; gap: .5rem; padding: 1.25rem; color: var(--text); transition: box-shadow .2s ease, transform .2s ease; }
.form-card:hover { color: var(--text); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.form-card h2 { font-size: 1.05rem; margin: .2rem 0 0; }
.form-card .meta { margin: 0; color: var(--text-muted); font-size: .85rem; display: flex; align-items: center; gap: .3rem; }
.form-card-count { margin: 0; color: var(--text-muted); font-size: .88rem; }
.form-card-count strong { color: var(--text); font-size: 1.1rem; }
.share-card { margin-bottom: 1.25rem; background: var(--primary-soft); border-color: var(--border); }
.share-card .card-body { display: grid; gap: 1rem; }
.share-text h2 { font-size: 1rem; margin: 0; }
.share-text p { margin: .25rem 0 0; color: var(--text-muted); font-size: .9rem; }
.share-link { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-link input { flex: 1 1 280px; font-family: ui-monospace, monospace; font-size: .85rem; background: var(--surface); }
.responses-table td { vertical-align: top; max-width: 280px; overflow-wrap: anywhere; }

/* Formulaires : éditeur de questions */
.fb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 1.25rem; align-items: start; }
@media (max-width: 980px) { .fb-layout { grid-template-columns: minmax(0, 1fr); } .fb-palette { order: -1; } }
.fb-intro { border-top: 6px solid var(--primary); }
.fb-title-input { font-size: 1.25rem !important; font-weight: 700; }
.fb-list { display: grid; gap: .9rem; }
.fb-card { display: grid; gap: .6rem; padding: 1rem 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.fb-card:focus-within { border-left-color: var(--primary); box-shadow: var(--shadow); }
.fb-head { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--text-muted); }
.fb-head .fb-type { min-width: 0; max-width: 100%; }
.fb-head .spacer { flex: 1; }
.fb-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-size: .78rem; font-weight: 700; flex: none; }
.fb-type { width: auto !important; padding: .3rem 2.1rem .3rem .65rem !important; font-size: .85rem !important; background-position: right .6rem center !important; background-size: 14px !important; }
.fb-danger:hover { color: var(--danger); }
.fb-label { font-size: 1rem !important; font-weight: 600; }
.fb-help { font-size: .85rem !important; color: var(--text-muted); border-style: dashed !important; }
.fb-preview { padding: .5rem .75rem; border-bottom: 1px dotted var(--border-strong); color: var(--text-faint); font-size: .88rem; max-width: 320px; }
.fb-options { display: grid; gap: .4rem; }
.fb-option { display: flex; align-items: center; gap: .5rem; }
.fb-option input { flex: 1; }
.fb-bullet { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-radius: 50%; flex: none; }
.fb-options.is-multiple .fb-bullet { border-radius: 4px; }
.fb-options.is-select .fb-bullet { border: 0; width: auto; height: auto; }
.fb-options.is-select .fb-bullet::before { content: "▸"; color: var(--text-faint); }
.fb-add-option { justify-self: start; border: 0; background: none; padding: .3rem 0 .3rem 1.6rem; font: inherit; font-size: .88rem; color: var(--primary); cursor: pointer; }
.fb-add-option:hover { text-decoration: underline; }
.fb-required { display: flex; justify-content: flex-end; align-items: center; gap: .45rem; padding-top: .55rem; border-top: 1px solid var(--border); font-size: .85rem; font-weight: 600; cursor: pointer; }
.fb-required input { width: 16px; height: 16px; accent-color: var(--primary); }
.fb-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); border-style: dashed; }
.fb-palette { position: sticky; top: 1rem; }
.fb-palette-list { display: grid; padding: .35rem; }
.fb-palette-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border: 0; border-radius: var(--radius); background: none; font: inherit; text-align: left; cursor: pointer; color: var(--text); }
.fb-palette-item:hover { background: var(--primary-soft); }
.fb-palette-item strong { display: block; font-size: .9rem; }
.fb-palette-item small { display: block; color: var(--text-muted); font-size: .78rem; }
.fb-palette-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-muted); color: var(--primary); flex: none; }
@media (max-width: 980px) {
    .fb-palette { position: static; }
    .fb-palette-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .fb-palette-item small { display: none; }
}
.fb-actions { position: sticky; bottom: 0; padding: .8rem 0; background: linear-gradient(transparent, var(--bg) 35%); }

/* Pages publiques : sondage et formulaire */
.public-head { margin-bottom: 1.25rem; }
.public-head small { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }
.public-head h1 { margin: .3rem 0 .4rem; font-size: 1.5rem; }
.public-head p { margin: 0; color: var(--text-muted); }
.public-flash { animation: none; box-shadow: none; margin-bottom: 1rem; }
.public-form { display: grid; gap: 1.1rem; }
.public-field { display: grid; gap: .35rem; }
.public-field > label, .public-field legend { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.public-field .req { color: var(--danger); }
.public-field.has-error input, .public-field.has-error textarea, .public-field.has-error select { border-color: var(--danger); }
.field-error { margin: 0; color: var(--danger); font-size: .84rem; }
.choice-list { display: grid; gap: .45rem; margin-top: .2rem; }
.choice { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.choice:hover { border-color: var(--primary); }
.choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.choice input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; margin: 0; }
.public-note { font-size: .82rem; text-align: center; margin: 0; }
.public-closed { padding: 1rem; border-radius: var(--radius); background: var(--surface-muted); text-align: center; }
.public-done { text-align: center; }
.public-done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 2rem; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.public-answer { display: grid; gap: .2rem; margin: 1.25rem auto; padding: .9rem 1rem; max-width: 420px; border-radius: var(--radius); background: var(--primary-soft); text-align: center; }
.public-answer small { color: var(--text-muted); }
.public-answer strong { color: var(--primary-ink); font-size: 1.05rem; }

/* Outils › SumUp */
.sumup-connect .field input { font-family: ui-monospace, monospace; }
.sumup-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .55rem; font-size: .92rem; }
.sumup-period { margin-bottom: 1.25rem; }
.sumup-period .card-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.sumup-presets { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-ink); }
.sumup-dates { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text-muted); }
.sumup-dates label { display: flex; align-items: center; gap: .4rem; }
.sumup-dates input { width: auto; }
.sumup-days { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding: 1rem 1.35rem .75rem; overflow-x: auto; }
.sumup-day { flex: 1 0 22px; max-width: 46px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .3rem; }
.sumup-day-bar { width: 100%; height: max(var(--h), 3px); border-radius: 6px 6px 2px 2px; background: var(--pin-green); transform-origin: bottom; animation: sumup-grow .6s ease both; }
.sumup-day small { font-size: .66rem; color: var(--text-faint); white-space: nowrap; }
.sumup-day:hover .sumup-day-bar { filter: brightness(1.1); }
@keyframes sumup-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .sumup-day-bar { animation: none; } }
.sumup-type { padding: .5rem 0; border-bottom: 1px dashed var(--border); font-size: .92rem; }
.sumup-type:last-child { border-bottom: 0; }
.sumup-to-event { display: grid; gap: .75rem; }
.sumup-to-event p { margin: 0; font-size: .9rem; }

/* Outils › HelloAsso : campagnes, ventes par tarif, adhérents */
.ha-campaign-list td:last-child { white-space: nowrap; }
.ha-tiers tfoot th { border-top: 2px solid var(--border-strong); font-size: .92rem; }
.ha-linked { gap: .5rem; padding: .35rem 0 .6rem; margin-bottom: .6rem; border-bottom: 1px dashed var(--border); }
.ha-linked a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.ha-members .ha-check { width: 2.5rem; text-align: center; }
.ha-members .ha-check input { width: 1.1rem; height: 1.1rem; }
.ha-members tr.is-muted td { color: var(--text-muted); }
.ha-members .ha-email { word-break: break-all; }
.ha-import { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; border-top: 1px solid var(--border); }
.ha-import > label:not(.check) { display: flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--text-muted); }
.ha-import select { width: auto; }
.ha-event-sales .dl { margin-bottom: .75rem; }
.ha-event-sales-tiers { display: grid; gap: .3rem; margin: 0 0 .75rem; padding: 0; list-style: none; font-size: .88rem; }
.ha-event-sales-tiers li { display: flex; justify-content: space-between; gap: .75rem; }

/* Outils › SumUp et HelloAsso sur mobile */
@media (max-width: 640px) {
    /* Période : raccourcis sur deux colonnes, dates côte à côte, bouton « Afficher » sur toute la largeur */
    .sumup-presets { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .sumup-presets .chip { justify-content: center; text-align: center; }
    .sumup-dates { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .sumup-dates label { flex-direction: column; align-items: stretch; gap: .25rem; min-width: 0; }
    .sumup-dates input { width: 100%; min-width: 0; }
    .sumup-dates .btn { grid-column: 1 / -1; justify-content: center; }

    /* Chiffres clés : l'icône au-dessus, pour laisser toute la largeur aux montants */
    .kpi-grid .stat { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
    .kpi-grid .stat-icon { width: 36px; height: 36px; border-radius: 10px; }
    .kpi-grid .stat > div { min-width: 0; }
    .kpi-grid .stat-value { font-size: 1.5rem; white-space: nowrap; }

    /* Tableaux HelloAsso : chaque ligne devient une petite fiche, sans défilement horizontal */
    .ha-campaigns thead, .ha-payments thead { display: none; }
    .ha-campaigns tr, .ha-payments tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
    .ha-campaigns tr:last-child, .ha-payments tr:last-child { border-bottom: 0; }
    .ha-campaigns td, .ha-payments td { padding: 0; border: 0; text-align: left; }
    /* Campagne : titre et montant net sur la 1re ligne, type et nombre de paiements dessous */
    .ha-campaigns td:nth-child(1) { grid-area: 1 / 1; }
    .ha-campaigns td:nth-child(2) { grid-area: 2 / 1; color: var(--text-muted); }
    .ha-campaigns td:nth-child(3) { grid-area: 2 / 2; text-align: right; font-size: .82rem; color: var(--text-muted); }
    .ha-campaigns td:nth-child(3)::before { content: attr(data-label) " : "; }
    .ha-campaigns td:nth-child(4) { grid-area: 1 / 2; text-align: right; }
    /* Paiement : payeur et campagne à gauche, montant à droite, puis date et état */
    .ha-payments td:nth-child(1) { grid-area: 2 / 1; color: var(--text-muted); }
    .ha-payments td:nth-child(2) { grid-area: 1 / 1; }
    .ha-payments td:nth-child(3) { grid-area: 1 / 2; text-align: right; }
    .ha-payments td:nth-child(4) { grid-area: 2 / 2; justify-self: end; }
    .ha-campaigns + .empty-sm, .ha-payments + .empty-sm { border-top: 1px solid var(--border); }

    /* Campagnes : titre et bouton sur la 1re ligne, statut et commission dessous */
    .ha-campaign-list thead, .ha-members thead { display: none; }
    .ha-campaign-list tr, .ha-members tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
    .ha-campaign-list td, .ha-members td { padding: 0; border: 0; text-align: left; }
    .ha-campaign-list td:nth-child(1) { grid-area: 1 / 1; }
    .ha-campaign-list td:nth-child(2) { grid-area: 1 / 2; justify-self: end; }
    .ha-campaign-list td:nth-child(3) { grid-area: 2 / 1; font-size: .85rem; }
    .ha-campaign-list td:nth-child(3)::before { content: attr(data-label) " : "; color: var(--text-muted); }
    .ha-campaign-list td:nth-child(4) { grid-area: 2 / 2; justify-self: end; }
    /* Adhérents : case à cocher à gauche, nom, email et classe empilés, état à droite */
    .ha-members tr { grid-template-columns: 1.8rem minmax(0, 1fr) auto; }
    .ha-members td.ha-check { grid-area: 1 / 1 / 4 / 2; width: auto; text-align: left; }
    .ha-members td:nth-child(2) { grid-area: 1 / 2; }
    .ha-members td:nth-child(3) { grid-area: 2 / 2; font-size: .85rem; }
    .ha-members td:nth-child(4) { grid-area: 3 / 2; font-size: .85rem; }
    .ha-members td:nth-child(5) { grid-area: 1 / 3; justify-self: end; }
    .ha-import { flex-direction: column; align-items: stretch; }
    .ha-import > label:not(.check) { flex-direction: column; align-items: stretch; }
    .ha-import select { width: 100%; }
}

/* Page publique : inscription aux créneaux d'une commission */
.signup-event-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: 0 0 .5rem !important; font-weight: 600; color: var(--text) !important; }
.signup-event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.signup-group { margin-top: .9rem; }
.signup-group h2 { margin: 0 0 .45rem; font-size: 1rem; }
.signup-choice .grow { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.signup-choice small { color: var(--text-muted); font-size: .82rem; }
.signup-choice.is-disabled { opacity: .55; cursor: not-allowed; background: var(--surface-muted); }
.signup-choice.is-disabled:hover { border-color: var(--border-strong); }
.signup-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px) { .signup-identity { grid-template-columns: 1fr; } }

/* Tranches horaires d'un nouveau créneau */
.slot-list { display: grid; gap: .45rem; margin-bottom: .5rem; }
.slot-times { display: flex; align-items: center; gap: .55rem; }
.slot-times > input { flex: 1; min-width: 0; max-width: 9.5rem; }
