/* Emplacement : /assets/css/support.css — Centre d'aide, suivi d'une demande (ticket) et formulaire de retour / réclamation. */

.afl-support-card { background: var(--afl-white); border-radius: var(--afl-radius-lg); box-shadow: var(--afl-shadow); padding: 2.2rem; border: 1px solid var(--afl-line); }
.afl-support-card h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.afl-support-card > p { color: var(--afl-muted); }
.afl-support-card label { font-weight: 600; font-size: 0.88rem; color: var(--afl-dark); margin-bottom: 0.35rem; display: block; }
.afl-support-card .form-control, .afl-support-card .form-select { background: var(--afl-light); border-color: transparent; min-height: 50px; }
.afl-support-card .form-control:focus, .afl-support-card .form-select:focus { background: var(--afl-white); border-color: var(--afl-dark); box-shadow: 0 0 0 3px rgba(201, 238, 60, 0.12); }
.afl-support-card textarea.form-control { min-height: 150px; }

.afl-help-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.afl-help-topic { display: flex; flex-direction: column; gap: 0.6rem; background: var(--afl-white); border: 1px solid var(--afl-line); border-radius: var(--afl-radius); padding: 1.5rem; color: var(--afl-text); transition: var(--afl-transition); height: 100%; }
.afl-help-topic:hover { border-color: var(--afl-dark); transform: translateY(-4px); box-shadow: var(--afl-shadow); color: var(--afl-text); }
.afl-help-topic i { width: 52px; height: 52px; border-radius: var(--afl-radius-sm); background: var(--afl-primary-soft); color: var(--afl-primary-text); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.afl-help-topic strong { color: var(--afl-dark); font-size: 1.02rem; }
.afl-help-topic span { font-size: 0.88rem; color: var(--afl-muted); }

.afl-support-aside { display: grid; gap: 1rem; }
.afl-support-aside__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--afl-light); border-radius: var(--afl-radius); padding: 1.2rem; }
.afl-support-aside__item i { width: 44px; height: 44px; border-radius: 50%; background: var(--afl-primary); color: var(--afl-on-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.afl-support-aside__item strong { display: block; color: var(--afl-dark); }
.afl-support-aside__item span, .afl-support-aside__item a { font-size: 0.9rem; }

.afl-ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--afl-line); }
.afl-ticket-head h2 { margin: 0; font-size: 1.35rem; }
.afl-ticket-head small { color: var(--afl-muted); }
.afl-ticket-status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 50px; font-size: 0.82rem; font-weight: 700; background: var(--afl-primary-soft); color: var(--afl-dark); }
.afl-ticket-status--resolu, .afl-ticket-status--ferme { background: #E5F7EE; color: #016B38; }
.afl-ticket-status--en_attente_client { background: #FEF1E8; color: #B5561C; }
.afl-thread { display: flex; flex-direction: column; gap: 1.1rem; }
.afl-thread__msg { max-width: 85%; }
.afl-thread__msg--client { margin-left: auto; }
.afl-thread__meta { font-size: 0.78rem; color: var(--afl-muted); margin-bottom: 0.3rem; }
.afl-thread__meta strong { color: var(--afl-dark); }
.afl-thread__bubble { padding: 1rem 1.2rem; border-radius: 4px var(--afl-radius) var(--afl-radius) var(--afl-radius); background: var(--afl-light); line-height: 1.65; word-break: break-word; }
.afl-thread__msg--client .afl-thread__bubble { background: var(--afl-primary-soft); border-radius: var(--afl-radius) 4px var(--afl-radius) var(--afl-radius); }
.afl-thread__msg--client .afl-thread__meta { text-align: right; }

.afl-return-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; counter-reset: etape; }
.afl-return-step { position: relative; background: var(--afl-white); border: 1px solid var(--afl-line); border-radius: var(--afl-radius); padding: 1.4rem 1.2rem 1.2rem; }
.afl-return-step::before { counter-increment: etape; content: counter(etape); position: absolute; top: -14px; left: 1.2rem; width: 30px; height: 30px; border-radius: 50%; background: var(--afl-primary); color: var(--afl-on-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }
.afl-return-step strong { display: block; color: var(--afl-dark); margin: 0.4rem 0 0.25rem; }
.afl-return-step span { font-size: 0.88rem; color: var(--afl-muted); }
.afl-success-box { text-align: center; padding: 2.5rem 1.5rem; }
.afl-success-box > i { font-size: 3rem; color: var(--afl-new); margin-bottom: 1rem; }

@media (max-width: 575.98px) {
  .afl-support-card { padding: 1.4rem; }
  .afl-thread__msg { max-width: 100%; }
}
