/*
 * Demande de démonstration allégée (App/Views/vitrine/demo.php), chargée après site.css et hero.css.
 * 1. .dm-wa    voie alternative WhatsApp (seulement si le numéro commercial est configuré)
 * 2. .dm-more  partie facultative repliée (<details> natif, aucun JavaScript nécessaire)
 * 3. .dm-send  réassurance + consentement + envoi
 * Mobile d'abord (360 px) : un champ par ligne, cibles ≥ 48 px. Jetons --sx-* de site.css uniquement.
 */

/* ---------- 1. WhatsApp ---------- */
.dm-wa { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .4rem .9rem; align-items: center; margin: 0 0 1rem; padding: 1rem 1.1rem;
    background: var(--sx-white); border: 1px solid var(--sx-line); border-left: 4px solid var(--sx-wa); border-radius: 0 var(--sx-r-sm) var(--sx-r-sm) 0; box-shadow: var(--sx-shadow-sm); }
.dm-wa-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sx-ok-bg); color: var(--sx-wa); font-size: 1.35rem; }
.sx .dm-wa h2 { font-family: var(--sx-sans); font-size: var(--sx-fs-16); font-weight: 800; letter-spacing: 0; color: var(--sx-navy); margin: 0 0 .15rem; line-height: 1.35; }
.dm-wa p { margin: 0; font-size: var(--sx-fs-14); color: var(--sx-text-mid); }
.sx .dm-wa-btn { grid-column: 1 / -1; width: 100%; margin-top: .5rem; background: var(--sx-wa); border-color: var(--sx-wa); color: var(--sx-white); }
.sx .dm-wa-btn:hover { background: var(--sx-wa-hover); border-color: var(--sx-wa-hover); color: var(--sx-white); }
@media (min-width: 640px) {
    .dm-wa { grid-template-columns: auto minmax(0, 1fr) auto; }
    .sx .dm-wa-btn { grid-column: auto; width: auto; margin-top: 0; white-space: nowrap; }
}

/* ---------- 2. partie facultative ---------- */
.sx .dm-more { padding: 0; }
.dm-more > summary { list-style: none; display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: 1rem 1.1rem; cursor: pointer; border-radius: var(--sx-r-card); }
.dm-more > summary::-webkit-details-marker { display: none; }
@media (min-width: 576px) { .dm-more > summary { padding: 1.2rem 1.8rem; } }
.dm-more > summary:hover .dm-more-t strong { text-decoration: underline; }
.dm-more > summary:focus-visible { outline: 3px solid var(--sx-action); outline-offset: 2px; }
.dm-more-t { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.dm-more-t strong { font-family: var(--sx-serif); font-size: var(--sx-fs-20); color: var(--sx-navy); line-height: 1.25; }
.dm-more-t span { font-size: var(--sx-fs-14); color: var(--sx-muted); }
.dm-more-chev { flex: 0 0 auto; font-size: 1.1rem; color: var(--sx-navy); transition: transform .2s; }
.dm-more[open] > summary { border-bottom: 1px solid var(--sx-line); border-radius: var(--sx-r-card) var(--sx-r-card) 0 0; }
.dm-more[open] .dm-more-chev { transform: rotate(180deg); }
.dm-more-in { padding: 1.1rem 1.1rem 1.4rem; }
@media (min-width: 576px) { .dm-more-in { padding: 1.4rem 1.8rem 1.8rem; } }
.dm-more-intro { margin: 0 0 .4rem; font-size: var(--sx-fs-14); color: var(--sx-muted); }
.sx .dm-h { font-family: var(--sx-sans); font-size: var(--sx-fs-16); font-weight: 800; letter-spacing: 0; color: var(--sx-navy); margin: 1.6rem 0 .8rem; padding-top: 1.2rem; border-top: 1px solid var(--sx-line); }
.sx .dm-more-intro + .dm-h { margin-top: .8rem; padding-top: 0; border-top: 0; }
.dm-more-in .sx-help + .sx-fieldset, .dm-more-in .sx-hint + .dm-h { margin-top: 1rem; }

/* ---------- 3. envoi ---------- */
.dm-reassure { margin: 0 0 1rem; }
.dm-send .sx-consent { margin-bottom: 0; }
.dm-send .sx-actions { margin-top: 1rem; }
