/* =====================================================================
   Bailsecurity - fenêtre « Contacter l'assistance » (js/assistance.js), page d'accueil
   Reprend les jetons et composants de css/accueil.css (étiquette, champs, pastilles, boutons en ligne).
   ===================================================================== */
html.as-ouverte { overflow: hidden; }
/* les composants de l'accueil (.champ…) imposent un affichage : l'attribut hidden doit toujours l'emporter dans la fenêtre */
.as-fenetre [hidden] { display: none !important; }
.as-fond { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 16px; background: rgba(27,35,64,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: page-in .3s var(--ease); }
.as-fenetre { width: min(760px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); }
.as-tete { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px 14px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.as-tete h2 { font: 700 clamp(22px, 2.6vw, 28px)/1.1 var(--display); letter-spacing: -.02em; margin: 10px 0 0; }
.as-fermer { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); transition: background-color .25s var(--ease); }
.as-fermer:hover { background: var(--accent-soft); }
.as-corps { padding: 20px 26px 26px; }
.as-corps select { width: 100%; min-height: 50px; border: 1px solid var(--line-strong); background: #fff; border-radius: 12px; padding: 13px 40px 13px 14px; font-size: 15.5px; color: var(--ink); appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2340' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.as-corps select:has(option[value=""]:checked) { color: var(--ink-3); }
.as-corps select option { color: var(--ink); }
.as-corps select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,108,240,.16); }
.as-invite { margin: 4px 0 0; color: var(--ink-3); font-size: 14.5px; }
.as-num { display: inline-block; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); background: var(--accent-soft); border-radius: 999px; padding: 6px 10px; }
.as-aide h3, .as-form h3, .as-fin h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.01em; margin: 12px 0 8px; }
.as-aide > p { margin: 0 0 10px; color: var(--ink-2); }
.as-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.as-points li { position: relative; padding: 12px 14px 12px 40px; border-radius: 14px; background: var(--canvas); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.as-points li::before { content: ""; position: absolute; left: 15px; top: 19px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91,108,240,.15); }
.as-points b { color: var(--ink); }
.as-liens { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.as-encart { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--butter); font-size: 14.5px; line-height: 1.5; }
.as-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.as-actions .pastille { border: 0; }
.as-retour { margin: 0 0 8px; }
.as-lien { all: unset; cursor: pointer; color: var(--accent-2); font-weight: 700; font-size: 14px; }
.as-lien:hover { text-decoration: underline; }
.as-lien:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.as-sensible { margin: 6px 0 4px; padding: 12px 14px; border-radius: 14px; background: #FBE9E6; color: #7A2E25; font-size: 14px; line-height: 1.5; border-left: 4px solid var(--rose-ink); }
.as-groupe { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.as-groupe legend { padding: 0; margin-bottom: 12px; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 10px; width: 100%; }
.as-groupe legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.as-form .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.as-form .champ { margin-bottom: 6px; }
.as-form .champ input, .as-form .champ textarea { font-size: 15px; }
.as-form .champ textarea { min-height: 96px; }
.as-court { max-width: 260px; }
.as-q { margin: 0 0 18px; }
.as-q[hidden] { display: none; }
.as-libelle { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.as-requis { font-style: normal; color: var(--rose-ink); }
.as-q .champ { margin-bottom: 0; }
.as-court-l { max-width: 360px; }
.as-faux select, .as-faux .as-lm > summary { border-color: #E9A3A3 !important; background-color: #FFF7F7; }
/* liste déroulante à choix multiples */
.as-lm { position: relative; }
.as-lm > summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 50px; box-sizing: border-box; padding: 12px 40px 12px 14px; cursor: pointer;
	border: 1px solid var(--line-strong); border-radius: 12px; font-size: 15px; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2340' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px; }
.as-lm > summary::-webkit-details-marker { display: none; }
.as-lm[open] > summary, .as-lm > summary:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,108,240,.16); }
.as-lm-val { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-lm-val.vide { color: var(--ink-3); }
.as-lm-nb { flex: 0 0 auto; min-width: 22px; height: 22px; padding: 0 7px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: #fff; font: 700 12px/22px var(--font); text-align: center; }
.as-lm-menu { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow: auto; padding: 6px; background: #fff; border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: var(--shadow-lg); }
.as-lm-menu label { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--ink-2); }
.as-lm-menu label:hover { background: var(--canvas); }
.as-lm-menu label:has(input:checked) { background: var(--accent-soft); color: var(--ink); }
.as-lm-menu input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.as-options { display: flex; flex-wrap: wrap; gap: 8px; }
.as-option { position: relative; cursor: pointer; }
.as-option input { position: absolute; opacity: 0; pointer-events: none; }
.as-option span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-size: 14px; line-height: 1.35; color: var(--ink-2); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.as-option:hover span { border-color: var(--accent); }
.as-option input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-2); font-weight: 700; }
.as-option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.as-option input[type=checkbox]:checked + span::before { content: "✓ "; }
.as-precision { margin-top: 8px; }
.as-coche { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.as-coche input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.as-erreur { display: block; color: var(--rose-ink); font-size: 13px; font-weight: 600; }
.as-erreur:empty { display: none; }
.as-faux input:not([type=radio]):not([type=checkbox]), .as-faux textarea { border-color: #E9A3A3 !important; background: #FFF7F7; }
.as-faux .as-option span { border-color: #E9A3A3; }
.as-depot { display: grid; gap: 4px; place-items: center; text-align: center; padding: 22px 16px; border: 1.5px dashed var(--line-strong); border-radius: 16px; background: var(--canvas); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.as-depot:hover, .as-depot.survol, .as-depot:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.as-depot input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.as-depot b { font-size: 15px; color: var(--accent-2); }
.as-depot span { font-size: 13px; color: var(--ink-3); max-width: 54ch; }
.as-fichiers { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.as-fichiers li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; }
.as-fic-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.as-fichiers small { color: var(--ink-3); }
.as-mention { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.as-diag { margin: 20px 0 0; font-size: 13px; color: var(--ink-3); }
.as-diag summary { cursor: pointer; line-height: 1.5; }
.as-diag dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--canvas); }
.as-diag dt { font-weight: 700; color: var(--ink-2); }
.as-diag dd { margin: 0; word-break: break-word; }
.as-captcha { margin-top: 14px; }
.as-captcha .captcha-local { margin: 0; }
.as-message { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBE0E0; color: var(--rose-ink); font-weight: 600; font-size: 14.5px; }
.as-fin { text-align: center; padding: 18px 0 6px; }
.as-ok { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: #E3F4EA; color: #23744A; font-size: 30px; font-weight: 700; }
.as-fin p { color: var(--ink-2); max-width: 56ch; margin: 0 auto; }
.as-fin .as-actions { justify-content: center; }
@media (max-width: 640px) {
	.as-fond { padding: 0; align-items: end; }
	.as-fenetre { border-radius: 22px 22px 0 0; max-height: 96vh; max-height: 96dvh; }
	.as-tete { padding: 18px 18px 12px; }
	.as-corps { padding: 16px 18px 22px; }
	.as-form .duo { grid-template-columns: 1fr; gap: 0; }
	.as-actions .pastille, .as-actions .btn-ligne { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .as-fond { animation: none; } }
