/* Fenêtre « Demander un accès » à la plateforme / « Être prévenu » de l'essai gratuit (js/acces-plateforme.js) */
.ap-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(13, 15, 26, 0.55); }
.ap-overlay[hidden] { display: none; }
.ap-modal { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; border-radius: var(--radius-modal); background: var(--bg-card); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.ap-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-alt); color: var(--text-muted); cursor: pointer; }
.ap-k { margin: 0 0 6px; font-size: 0.8rem; font-weight: 600; color: var(--brand); }
.ap-modal h3 { margin: 0 0 6px; font-size: 1.3rem; }
.ap-sub { margin: 0 0 22px; font-size: 0.9rem; color: var(--text-muted); }
.ap-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.ap-modal.essai .ap-row { grid-template-columns: 1fr; }
.ap-modal.essai [data-only="acces"], .ap-modal.essai [data-only="acces-seul"] { display: none; }
.ap-modal:not(.agence) [data-only="agence"], .ap-modal.agence [data-only="acces-seul"] { display: none; }
.ap-chips-3 { grid-template-columns: repeat(3, 1fr); }
.ap-chips-3 .ap-chip span { height: auto; min-height: 44px; padding: 6px 8px; line-height: 1.2; font-size: 0.85rem; }
.ap-lab small { font-weight: 400; color: var(--text-muted); }
.ap-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ap-err { margin: 0 0 12px; font-size: 0.85rem; color: #E5484D; }
.ap-go { width: 100%; justify-content: center; }
.ap-note { margin: 10px 0 0; text-align: center; font-size: 0.76rem; color: var(--text-muted); }

.ap-modal .ap-lab { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text); }
.ap-modal .ap-in { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-alt); color: var(--text); font: 0.95rem var(--font); outline: none; box-sizing: border-box; }
.ap-modal .ap-in:focus { border-color: var(--brand); }
@media (max-width: 600px) { .ap-row { grid-template-columns: 1fr; } .ap-modal { padding: 26px 20px; } }
.ap-row-1 { grid-template-columns: 1fr; }
.ap-etab { margin: 0 0 18px; padding: 0; border: 0; }
.ap-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ap-chip { position: relative; cursor: pointer; }
.ap-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ap-chip span { display: flex; align-items: center; justify-content: center; height: 44px; padding: 0 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--bg-alt); font-size: 0.9rem; font-weight: 600; color: var(--text-muted); transition: border-color .15s, background .15s, color .15s; text-align: center; }
.ap-chip:hover span { border-color: rgba(48, 75, 254, 0.4); color: var(--text); }
.ap-chip input:checked + span { border-color: transparent; background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box, linear-gradient(135deg, #304BFE, #3ACF91) border-box; color: var(--brand); box-shadow: 0 6px 16px rgba(48, 75, 254, 0.14); }
.ap-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.ap-modal .ap-go { border-radius: 999px; padding: 14px 24px; font-weight: 600; background: linear-gradient(135deg, #304BFE, #3A5BFF); box-shadow: 0 10px 26px rgba(48, 75, 254, 0.28); }
.ap-modal .ap-in { border-radius: 12px; }
@media (max-width: 420px) { .ap-chips { grid-template-columns: 1fr 1fr; } }

/* Téléphone : choix du pays (js/lc-phone.js) */
.ap-modal .lc-cc { max-width: 96px; padding: 0 24px 0 8px; border: 1.5px solid var(--border); border-radius: 12px; background-color: var(--bg-alt); background-position: right 8px center; color: var(--text); font-size: 0.9rem; }
.ap-modal .lc-tel > .ap-in { padding-left: 10px; padding-right: 8px; }
.ap-modal .lc-cc:focus { border-color: var(--brand); outline: none; }
.ap-modal .ap-in.bad { border-color: #E0483F; }
.ap-modal .ap-telerr { display: none; margin: 5px 0 0; font-size: 0.78rem; color: #E0483F; line-height: 1.4; }
/* Email et téléphone (avec le pays) chacun sur toute la largeur : le numéro reste lisible en entier */
.ap-row:has(#ap-tel) { grid-template-columns: 1fr; }
