/* Support - espace client. Variables surchargeables par le Template : --sp-couleur, --sp-couleur-2, --sp-bord, --sp-rayon. */
.sp { --sp-couleur: #1d4ed8; --sp-couleur-2: #3b82f6; --sp-bord: #e2e8f0; --sp-rayon: 10px; max-width: 880px; margin: 0 auto; padding: 8px 4px; color: #1f2937; line-height: 1.55; }
.sp *, .sp *::before, .sp *::after { box-sizing: border-box; }
.sp-entete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; }
.sp .sp-titre { margin: 0; font-size: 1.5em; }
.sp .sp-meta { margin: 4px 0 0; color: #64748b; font-size: 0.92em; }
.sp .sp-lien { color: var(--sp-couleur) !important; text-decoration: none; font-weight: 600; }
.sp .sp-lien:hover { text-decoration: underline; }
.sp .sp-bouton, .sp a.sp-bouton { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 1em; font-weight: 600; cursor: pointer; text-decoration: none !important;
    color: #fff !important; background: linear-gradient(135deg, var(--sp-couleur), var(--sp-couleur-2)) !important; -webkit-text-fill-color: #fff; line-height: 1.2; }
.sp .sp-bouton:hover { filter: brightness(1.08); color: #fff !important; }
.sp .sp-bouton[disabled] { opacity: .6; cursor: wait; }
.sp .sp-secondaire { background: #fff !important; color: var(--sp-couleur) !important; -webkit-text-fill-color: var(--sp-couleur); border: 1px solid var(--sp-couleur); }
.sp .sp-secondaire:hover { color: var(--sp-couleur) !important; background: #eff6ff !important; }
.sp-flash { border-radius: var(--sp-rayon); padding: 10px 14px; margin: 0 0 14px; font-weight: 600; }
.sp-flash-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.sp-flash-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.sp-connexion, .sp-vide, .sp-info { background: #f8fafc; border: 1px solid var(--sp-bord); border-radius: var(--sp-rayon); padding: 14px 18px; }
.sp-liste { display: grid; gap: 10px; }
.sp .sp-carte { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "num sujet badge" "num meta badge"; gap: 2px 14px; align-items: center; padding: 12px 16px;
    border: 1px solid var(--sp-bord); border-radius: var(--sp-rayon); background: #fff; text-decoration: none !important; color: inherit !important; transition: box-shadow .15s, transform .15s; }
.sp .sp-carte:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .1); transform: translateY(-1px); }
.sp-carte-num { grid-area: num; font-family: monospace; color: #64748b; font-size: .85em; }
.sp-carte-sujet { grid-area: sujet; font-weight: 700; }
.sp-carte-meta { grid-area: meta; color: #64748b; font-size: .88em; }
.sp .sp-carte .sp-badge { grid-area: badge; }
.sp-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; color: #fff; font-size: .8em; font-weight: 700; white-space: nowrap; }
.sp-st-depose { background: #b45309; } .sp-st-en_cours { background: #1d4ed8; } .sp-st-attente_client { background: #6d28d9; } .sp-st-cloture { background: #166534; }
.sp-form .sp-label { display: block; font-weight: 700; margin: 14px 0 4px; }
.sp-form input[type=text], .sp-form select, .sp-form textarea { width: 100%; max-width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #fff; color: #111827; }
.sp-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sp-editeur { border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; }
.sp-editeur .sp-texte { border: 0 !important; }
.sp-barre { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--sp-bord); background: #f8fafc; border-radius: 8px 8px 0 0; }
.sp .sp-barre button { min-width: 34px; height: 32px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff !important; color: #1f2937 !important; -webkit-text-fill-color: #1f2937; cursor: pointer; font-size: 14px; padding: 0 8px; }
.sp .sp-barre button:hover { background: #eff6ff !important; }
.sp-zone { min-height: 150px; padding: 10px 12px; outline: none; overflow-wrap: anywhere; }
.sp-zone:focus { box-shadow: inset 0 0 0 2px #93c5fd; border-radius: 0 0 8px 8px; }
.sp-zone p { margin: 0 0 .7em; } .sp-zone blockquote, .sp-corps blockquote { border-left: 3px solid #cbd5e1; margin: .6em 0; padding: 2px 12px; color: #475569; }
.sp-pj { margin-top: 12px; }
.sp-pj-liste { list-style: none; padding: 0; margin: 6px 0 0; }
.sp-pj-liste li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .92em; }
.sp .sp-pj-retirer { border: 0; background: #fee2e2 !important; color: #991b1b !important; -webkit-text-fill-color: #991b1b; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.sp-aide { color: #64748b; font-size: .85em; display: block; margin-top: 4px; }
.sp-fil { display: grid; gap: 12px; margin: 16px 0; }
.sp-message { border: 1px solid var(--sp-bord); border-radius: var(--sp-rayon); padding: 12px 16px; background: #fff; max-width: 92%; }
.sp-msg-user { justify-self: end; background: #eff6ff; border-color: #bfdbfe; }
.sp-msg-admin { justify-self: start; }
.sp-message header { margin-bottom: 6px; font-size: .92em; }
.sp-date { color: #94a3b8; margin-left: 6px; font-weight: 400; }
.sp-corps { overflow-wrap: anywhere; } .sp-corps p { margin: 0 0 .7em; } .sp-corps p:last-child { margin-bottom: 0; }
.sp-evenement { text-align: center; color: #64748b; font-size: .85em; }
.sp-pieces { list-style: none; padding: 0; margin: 8px 0 0; }
.sp .sp-pj-lien { border: 0; background: none !important; color: var(--sp-couleur) !important; -webkit-text-fill-color: var(--sp-couleur); cursor: pointer; padding: 2px 0; font: inherit; text-align: left; }
.sp .sp-pj-lien:hover { text-decoration: underline; }
.sp-pieces form { margin: 0; }
.sp-reponse { margin-top: 18px; border-top: 1px solid var(--sp-bord); padding-top: 6px; }
.sp-cloturer { margin: 6px 0 0; }
.sp-satisf { border: 1px solid #fde68a; background: #fffbeb; border-radius: var(--sp-rayon); padding: 14px 18px; margin: 14px 0; }
.sp-satisf h3 { margin: 0 0 6px; }
.sp-notation { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.sp-notation input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sp-notation label { font-size: 2em; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .1s; }
.sp-notation input:checked ~ label, .sp-notation label:hover, .sp-notation label:hover ~ label { color: #f59e0b; }
.sp-notation input:focus-visible + label { outline: 2px solid var(--sp-couleur); outline-offset: 2px; }
.sp-etoiles { color: #f59e0b; letter-spacing: 2px; font-size: 1.2em; }
.sp-com { margin: 6px 0 0; color: #475569; }
@media (max-width: 560px) {
    .sp .sp-carte { grid-template-columns: 1fr; grid-template-areas: "num" "sujet" "meta" "badge"; justify-items: start; }
    .sp-message { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .sp .sp-carte { transition: none; } }
