/* apps-core 0.1.96 — module « free-months » : Super console › Offrir des mois gratuits (FreeMonthsUi::page) et bandeau du prochain login
   (FreeMonthsUi::notice). Avec sort-header.css. Clair / sombre (variables --btn-*, RULE_BUTTON_CONTRAST), cibles de 44 px, tableau en
   cartes sous 640 px, aucun défilement horizontal de 320 à 1920 px. */
.ac-fm{--fm-border:var(--border,#c9ced6);--fm-surface:var(--surface,#fff);--fm-text:var(--text,#1b2333);--fm-btn-bg:var(--btn-bg,#1d4ed8);--fm-btn-text:var(--btn-text,#fff);--fm-btn-border:var(--btn-border,#1d4ed8);--fm-btn-hover:var(--btn-bg-hover,#1e40af);display:flex;flex-direction:column;gap:1rem;min-width:0;color:var(--fm-text)}
html[data-theme=dark] .ac-fm,.ac-fm-dark .ac-fm{--fm-btn-bg:#22356b;--fm-btn-text:#fff;--fm-btn-border:#4a6fd6;--fm-btn-hover:#2a4182}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .ac-fm{--fm-btn-bg:#22356b;--fm-btn-text:#fff;--fm-btn-border:#4a6fd6;--fm-btn-hover:#2a4182}}
.ac-fm h2,.ac-fm h3,.ac-fm h4{margin:0}
.ac-fm-intro,.ac-fm-help{margin:0}
.ac-fm-form{display:flex;flex-direction:column;gap:1rem;min-width:0}
.ac-fm-card{border:1px solid var(--fm-border);border-radius:12px;padding:.8rem 1rem;margin:0;min-width:0;display:flex;flex-direction:column;gap:.75rem;background:transparent}
.ac-fm-card>legend{font-weight:700;padding:0 .3rem}
.ac-fm-row,.ac-fm-tools{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-end;min-width:0}
.ac-fm-field{display:flex;flex-direction:column;gap:.25rem;min-width:0;flex:1 1 14rem;border:0;padding:0;margin:0}
.ac-fm-field>label,.ac-fm-field>legend{font-weight:600;padding:0}
.ac-fm-months{flex:0 1 9rem}
.ac-fm-field input[type=text],.ac-fm-field input[type=search],.ac-fm-field input[type=number],.ac-fm-field select,.ac-fm-field textarea{min-height:44px;box-sizing:border-box;width:100%;font:inherit;padding:.45rem .6rem;border:1px solid var(--fm-border);border-radius:8px;background:var(--fm-surface);color:inherit}
.ac-fm-field textarea{min-height:6rem;resize:vertical}
.ac-fm-field.is-invalid input,.ac-fm-field.is-invalid textarea,.ac-fm-field.is-invalid select{border:2px solid #dc2626}
.ac-fm-err{margin:0;color:#b91c1c;font-weight:600}
html[data-theme=dark] .ac-fm-err{color:#fca5a5}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .ac-fm-err{color:#fca5a5}}
.ac-fm-radio,.ac-fm-check{display:inline-flex;align-items:center;gap:.5rem;min-height:44px;margin-right:1rem;cursor:pointer}
.ac-fm-radio input,.ac-fm-check input,.ac-fm-table input[type=checkbox]{width:22px;height:22px;margin:0;flex:0 0 auto}
.ac-fm-msgs{border:0;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem;min-width:0}
.ac-fm-msgs>legend{font-weight:600;padding:0}
.ac-fm-langs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem}
.ac-fm-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.ac-fm-send{justify-content:flex-end}
.ac-fm-btn{min-height:44px;padding:.45rem 1rem;border-radius:8px;border:1px solid var(--fm-border);background:var(--fm-surface);color:inherit;font:inherit;font-weight:600;cursor:pointer;max-width:100%;white-space:normal;overflow-wrap:break-word}
.ac-fm-btn:hover{border-color:var(--fm-btn-border)}
.ac-fm-btn:focus-visible,.ac-fm input:focus-visible,.ac-fm select:focus-visible,.ac-fm textarea:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.ac-fm-btn[disabled]{cursor:not-allowed;opacity:.55}
.ac-fm-primary{background:var(--fm-btn-bg);color:var(--fm-btn-text);border-color:var(--fm-btn-border)}
.ac-fm-primary:hover{background:var(--fm-btn-hover)}
.ac-fm-danger{background:#b91c1c;color:#fff;border-color:#991b1b}
.ac-fm-default{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px}
.ac-fm-count{margin:0;font-weight:700}
.ac-fm-count.is-invalid{color:#b91c1c}
.ac-fm-flash,.ac-fm-note{margin:0;padding:.55rem .8rem;border-radius:8px;border:1px solid var(--fm-border)}
.ac-fm-flash.is-ok{border:2px solid #16a34a}
.ac-fm-flash.is-warning{border:2px solid #d97706}
.ac-fm-flash.is-error{border:2px solid #dc2626}
.ac-fm-table-wrap{max-width:100%;overflow-x:auto}
.ac-fm-table{width:100%;border-collapse:collapse}
.ac-fm-table th,.ac-fm-table td{padding:.45rem .5rem;border-bottom:1px solid var(--fm-border);text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.ac-fm-table thead th{white-space:nowrap}
.ac-fm-table tbody th{font-weight:600}
.ac-fm-table tr.is-muted td,.ac-fm-table tr.is-muted th{font-style:italic}
.ac-fm-nothing{font-size:.9em}
.ac-fm-pager{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;justify-content:center}
.ac-fm-empty{margin:0}
.ac-fm-preview{border-width:2px;border-color:var(--fm-btn-border)}
.ac-fm-pv-msgs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.75rem}
.ac-fm-notice{border:2px solid var(--fm-btn-border,#1d4ed8);border-radius:12px;padding:.8rem 1rem;display:flex;flex-direction:column;gap:.5rem;background:var(--surface,#fff);color:var(--text,#1b2333)}
.ac-fm-notice h2,.ac-fm-notice p{margin:0}
.ac-fm-notice-title{font-weight:700}
.ac-fm-pv-lang{font-size:.85em;font-weight:600}
@media (max-width:640px){
  .ac-fm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%)}
  .ac-fm-table,.ac-fm-table tbody,.ac-fm-table tr,.ac-fm-table th,.ac-fm-table td{display:block;width:100%;box-sizing:border-box}
  .ac-fm-table tr{border:1px solid var(--fm-border);border-radius:10px;margin:0 0 .6rem;padding:.3rem .5rem}
  .ac-fm-table th,.ac-fm-table td{border:0;padding:.25rem 0;display:flex;gap:.6rem;align-items:center}
  .ac-fm-table [data-label]::before{content:attr(data-label);font-weight:600;flex:0 0 42%;max-width:42%;overflow-wrap:anywhere;font-style:normal}
  .ac-fm-send .ac-fm-btn,.ac-fm-actions .ac-fm-btn{flex:1 1 auto}
}
