/*
 * Ressource « Anti no-show en concession » (5.54.0) : étapes de l'exemple, cinq rendez-vous, grille des intentions,
 * banc d'essai, garde-fous, suivi et grille à imprimer ; compléments de l'iPhone pour le scénario « no-show »
 * (boutons de réponse rapide, carte du point de vente façon plan, mention « Exemple illustratif »).
 * Chargée seulement sur la page qui porte data-wx-noshow (includes/anti-no-show.php), après walexia-da2.css.
 * Charte « Encre & aurore » : jetons de walexia-da2.css (thème sombre par les mêmes jetons, walexia-theme.css),
 * vert #34D36B pour les repères seulement, surlignage menthe #CFF5DB, aucun aplat vert.
 */

.wx-ns { --ns-mint: #CFF5DB; --ns-ok: #34D36B; --ns-no: #D14343; --ns-radius: 20px; }

/* Remise à zéro des marges des éléments écrits dans les blocs HTML (les sections ont leurs propres écarts). */
.wx .wx-ns :is(ol, ul, dl, dd, h3, p) { margin: 0; }
.wx .wx-ns :is(ol, ul).wx-ns-steps,
.wx .wx-ns :is(ol, ul).wx-ns-rdv,
.wx .wx-ns :is(ol, ul).wx-ns-cases,
.wx .wx-ns :is(ol, ul).wx-ns-rules { list-style: none; padding: 0; }

/* Numéros communs */
.wx .wx-ns-steps__num,
.wx .wx-ns-case__num,
.wx .wx-ns-rule__num { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--ns-mint); color: #121417; font: 700 .75rem/1 var(--wx-font-mono); letter-spacing: .06em; }

/* 1. Lecture de l'exemple : quatre étapes */
.wx .wx-ns-steps { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .wx .wx-ns-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .wx .wx-ns-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wx .wx-ns-steps__item { display: grid; align-content: start; gap: 14px; padding: 22px; border-radius: var(--ns-radius); background: var(--wx-color-surface); box-shadow: inset 0 0 0 1px var(--wx-color-border); }
.wx .wx-ns-steps__item p { color: var(--wx-color-text); line-height: 1.5; }
.wx .wx-ns-steps__item b { color: var(--wx-color-heading); }

/* Bulle de message (réponse du client) */
.wx .wx-ns-bubble { position: relative; display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #FFFFFF; color: #111B21; font-weight: 600; line-height: 1.4; box-shadow: 0 1px .5px rgba(11, 20, 26, .13), inset 0 0 0 1px rgba(11, 20, 26, .06); }

/* 2. Les cinq rendez-vous */
.wx .wx-ns-rdv { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .wx .wx-ns-rdv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .wx .wx-ns-rdv { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.wx .wx-ns-rdv__card { display: grid; align-content: start; gap: 16px; padding: 22px 20px; border-radius: var(--ns-radius); background: var(--wx-color-bg); box-shadow: inset 0 0 0 1px var(--wx-color-border); }
.wx .wx-ns-rdv__title { font: 800 1.1875rem/1.2 var(--wx-font-display); letter-spacing: -.01em; color: var(--wx-color-heading); }
.wx .wx-ns-rdv__list { display: grid; gap: 14px; }
.wx .wx-ns-rdv__list dt,
.wx .wx-ns-case__line b,
.wx .wx-ns-table thead th { font: 500 .6875rem/1.3 var(--wx-font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--wx-color-text-muted); }
.wx .wx-ns-rdv__list dd { margin-top: 6px; font-size: .9375rem; line-height: 1.45; color: var(--wx-color-text); }
.wx .wx-ns-rdv__list dd.wx-ns-bubble { color: #111B21; }

/* 3. La grille : tableau à l'écran large, cartes sous 900 px */
.wx .wx-ns-head .wx-actions { margin: 0; }
.wx .wx-ns-table-wrap { margin-top: 8px; border-radius: 22px; background: var(--wx-color-surface); box-shadow: inset 0 0 0 1px var(--wx-color-border), 0 30px 60px -44px rgba(18, 20, 23, .35); }
.wx .wx-ns-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; line-height: 1.45; color: var(--wx-color-text); }
.wx .wx-ns-table :is(th, td) { padding: 16px 18px; text-align: left; vertical-align: top; border: 0; }
.wx .wx-ns-table thead th { padding-top: 18px; padding-bottom: 14px; background: var(--wx-color-surface-muted); }
.wx .wx-ns-table thead th:first-child { border-top-left-radius: 22px; }
.wx .wx-ns-table thead th:last-child { border-top-right-radius: 22px; }
.wx .wx-ns-table tbody :is(th, td) { border-top: 1px solid var(--wx-color-border); }
/* Lignes alternées grisées du thème (Hello Elementor) : retirées, les lignes sont séparées par un filet. */
.wx .wx-ns-table tbody > tr > :is(th, td), .wx .wx-ns-table tbody > tr:nth-child(odd) > :is(th, td) { background-color: transparent; }
.wx .wx-ns-table tbody th { width: 14%; font: 800 1rem/1.3 var(--wx-font-display); color: var(--wx-color-heading); }
.wx .wx-ns-table__say { width: 21%; }
.wx .wx-ns-table__ok, .wx .wx-ns-table__no { width: 24%; }
.wx .wx-ns-table__val { width: 17%; }
.wx .wx-ns-table__say { font-style: italic; color: var(--wx-color-text-muted); }
.wx .wx-ns-mark { display: inline-block; flex: none; width: 16px; height: 16px; margin: 0 8px 0 0; vertical-align: -3px; }
.wx .wx-ns-mark--ok { color: var(--ns-ok); stroke-width: 2.4; }
.wx .wx-ns-mark--no { color: var(--ns-no); }
.wx .wx-ns-val { display: inline-block; margin-right: 4px; padding: 3px 10px; border-radius: 999px; font: 700 .75rem/1.4 var(--wx-font-text); }
.wx .wx-ns-val--yes { background: var(--wx-color-action); color: var(--wx-color-on-action); }
.wx .wx-ns-val--no { background: var(--wx-color-surface-muted); color: var(--wx-color-heading); box-shadow: inset 0 0 0 1px var(--wx-color-border-strong); }
@media screen and (max-width: 899px) {
  .wx .wx-ns-table-wrap { background: none; box-shadow: none; }
  .wx .wx-ns-table, .wx .wx-ns-table tbody, .wx .wx-ns-table tr, .wx .wx-ns-table :is(th, td) { display: block; width: auto; }
  .wx .wx-ns-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wx .wx-ns-table tbody { display: grid; gap: 14px; }
  .wx .wx-ns-table tr { padding: 6px 18px 10px; border-radius: var(--ns-radius); background: var(--wx-color-surface); box-shadow: inset 0 0 0 1px var(--wx-color-border); }
  .wx .wx-ns-table tbody th { padding: 14px 0 8px; border-top: 0; font-size: 1.125rem; }
  .wx .wx-ns-table tbody td { padding: 10px 0; }
  .wx .wx-ns-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 500 .6875rem/1.3 var(--wx-font-mono); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: var(--wx-color-text-muted); }
}

/* 4. Le banc d'essai */
.wx .wx-ns-cases { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .wx .wx-ns-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .wx .wx-ns-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx .wx-ns-case { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 20px; border-radius: var(--ns-radius); background: var(--wx-color-bg); box-shadow: inset 0 0 0 1px var(--wx-color-border); }
.wx .wx-ns-case__say { font-size: 1rem; }
.wx .wx-ns-case__say--event { padding: 7px 12px; border-radius: 999px; font-weight: 600; font-style: italic; color: var(--wx-color-heading); box-shadow: inset 0 0 0 1px var(--wx-color-border-strong); }
.wx .wx-ns-case__line { display: grid; gap: 4px; font-size: .9375rem; line-height: 1.45; color: var(--wx-color-text); }
.wx .wx-ns-case__line--do b { display: inline-flex; align-items: center; gap: 6px; color: var(--wx-color-heading); }
.wx .wx-ns-case__line--do b::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ns-ok); }

/* 5. Les garde-fous */
.wx .wx-ns-rules { display: grid; gap: 14px; margin-top: 8px; }
@media (min-width: 640px) { .wx .wx-ns-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .wx .wx-ns-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wx .wx-ns-rule { display: grid; align-content: start; justify-items: start; gap: 12px; padding: 24px; border-radius: 22px; background: var(--wx-color-surface); box-shadow: inset 0 0 0 1px var(--wx-color-border), 0 24px 48px -40px rgba(18, 20, 23, .4); }
.wx .wx-ns-rule__title { font: 800 1.125rem/1.25 var(--wx-font-display); letter-spacing: -.01em; color: var(--wx-color-heading); }
.wx .wx-ns-rule p { font-size: .9375rem; line-height: 1.5; color: var(--wx-color-text); }
.wx .wx-ns-rule a { color: var(--wx-color-heading); font-weight: 700; text-decoration: underline; text-decoration-color: var(--ns-ok); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* 6. Le suivi et la grille à imprimer */
.wx .wx-ns-follow { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .wx .wx-ns-follow { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; } }
.wx .wx-ns-follow__copy { display: grid; gap: 18px; }
.wx .wx-ns-follow__copy .wx-checklist { margin: 6px 0 0; padding: 0; }
.wx .wx-ns-print { display: grid; justify-items: center; gap: 10px; padding: 28px 24px; border-radius: 26px; text-align: center; background: var(--wx-color-bg); box-shadow: inset 0 0 0 1px var(--wx-color-border); }
.wx .wx-ns-print .wx-cover { width: min(100%, 210px); margin: 6px auto 18px; }
.wx .wx-ns-print .wx-cover__title { font-size: 1.375rem; }
.wx .wx-ns-print__title { font: 800 1.25rem/1.2 var(--wx-font-display); color: var(--wx-color-heading); }
.wx .wx-ns-print__text { max-width: 34ch; font-size: .9375rem; line-height: 1.5; color: var(--wx-color-text-muted); }
.wx .wx-ns-print__action { margin-top: 8px; }
.wx .wx-ns-print__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--wx-color-action); color: var(--wx-color-on-action); font-weight: 700; text-decoration: none; box-shadow: var(--wx-shadow-action); transition: background-color 200ms var(--wx-ease-soft, ease); }
.wx .wx-ns-print__btn:hover, .wx .wx-ns-print__btn:focus-visible { background: var(--wx-color-action-hover); color: var(--wx-color-on-action); }

/* 7. iPhone du scénario « no-show » : boutons de réponse rapide, carte du point de vente, mention */
.wx .wx-v2slots--reply span { color: #027EB5; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(2, 126, 181, .24); }
.wx .wx-v2msg--map { width: 84%; padding: 5px 5px 9px; }
.wx .wx-v2map { display: block; overflow: hidden; border-radius: 13px 13px 6px 6px; }
.wx .wx-v2map__img { display: block; width: 100%; height: auto; }
.wx .wx-v2map__txt { display: grid; gap: 2px; margin: 8px 9px 0 !important; line-height: 1.3; }
.wx .wx-v2map__txt b { font-size: .875rem; color: #111B21; }
.wx .wx-v2map__txt span { font-size: .75rem; color: #54656F; }
.wx .wx-v2map__btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 4px 0; padding: 8px 0 2px; border-top: 1px solid rgba(11, 20, 26, .1); font-size: .8125rem; font-weight: 700; color: #027EB5; }
.wx .wx-v2map__btn svg { width: 16px; height: 16px; }
.wx .wx-v2msg--map small { margin: 6px 9px 0; }
/* Encarts e-mail, SMS et CRM de cet iPhone : texte entier, sur deux lignes au besoin (pas de « … » sur mobile). */
.wx .wx-v2chat:has(.wx-v2msg--map) .wx-v2note__txt span { white-space: normal; }
.wx .wx-v2chat__mention { margin: 0; text-align: center; font: 500 .6875rem/1 var(--wx-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--wx-color-text-muted); }

/* Thème sombre : les cartes suivent les jetons ; seules les bulles de message gardent un fond de conversation. */
html[data-wx-theme="dark"] .wx .wx-ns-bubble { background: #1F2C33; color: #E9EDEF; box-shadow: inset 0 0 0 1px rgba(233, 237, 239, .08); }
html[data-wx-theme="dark"] .wx .wx-ns-rdv__list dd.wx-ns-bubble { color: #E9EDEF; }
html[data-wx-theme="dark"] .wx .wx-ns-steps__num,
html[data-wx-theme="dark"] .wx .wx-ns-case__num,
html[data-wx-theme="dark"] .wx .wx-ns-rule__num { background: #1D3B2A; color: #CFF5DB; }
html[data-wx-theme="dark"] .wx .wx-ns-table-wrap { box-shadow: inset 0 0 0 1px var(--wx-color-border); }

/* Mouvement réduit : rien ne bouge (les apparitions wx-reveal sont déjà neutralisées par la charte). */
@media (prefers-reduced-motion: reduce) { .wx .wx-ns-print__btn { transition: none; } }

/* Impression (et PDF de la grille) : fond clair, tableau conservé, blocs insécables. */
@media print {
  .wx .wx-ns-table-wrap { box-shadow: none; border: 1px solid #D9DCDF; }
  .wx .wx-ns-table { font-size: 9.5pt; }
  .wx .wx-ns-table :is(th, td) { padding: 7px 9px; }
  .wx .wx-ns-table tr, .wx .wx-ns-case, .wx .wx-ns-rule, .wx .wx-ns-rdv__card, .wx .wx-ns-steps__item { break-inside: avoid; }
  .wx .wx-ns-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wx .wx-ns-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wx .wx-ns-case, .wx .wx-ns-rule { padding: 12px 14px; box-shadow: none; border: 1px solid #D9DCDF; }
}
