/*
 * L'infolettre côté client (D-185 suite 4) : la case de Mon compte et la carte « Infolettre » de Mes informations.
 * Chargé sur Mon compte seulement, quand Newsletter est active. Jetons du thème (--ink, --muted, --orange, --line).
 */
.mac-nl-case { margin: 4px 0 14px; }
.mac-nl-case label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink, #1b2425); cursor: pointer; }
.mac-nl-case input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange, #f17940); }
.mac-nl-case input[type="checkbox"]:focus-visible { outline: 3px solid var(--orange, #f17940); outline-offset: 2px; }

.mac-nl { margin-top: 18px; }
.mac-nl-carte .mac-nl-etat { margin: 0 0 12px; color: var(--ink, #1b2425); }
.mac-nl-carte .mac-nl-texte { margin: 12px 0 0; color: var(--muted, #5b6566); font-size: 14px; overflow-wrap: anywhere; }
.mac-nl-carte .martin-ui-notice { margin: 0 0 12px; }
.mac-nl-form { margin: 0; }
/* L'interrupteur, jamais un bouton orange : les boutons d'envoi de Mon compte (body.martin-sombre .martin-app-main
   button[type=submit]) le peindraient comme une action. Sélecteur plus fort, sur le fond sombre des cartes .mi-carte. */
body .martin-app-main .mac-nl-carte button.mac-nl-switch[type="submit"],
.mac-nl-switch { display: inline-flex; align-items: center; gap: 12px; width: auto; min-height: 44px; margin: 0; padding: 6px 16px 6px 6px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; background: transparent; color: #fff; font: 700 15px/1.2 Lato, Arial, sans-serif; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; }
body .martin-app-main .mac-nl-carte button.mac-nl-switch[type="submit"]::before,
body .martin-app-main .mac-nl-carte button.mac-nl-switch[type="submit"]::after { content: none; }
body .martin-app-main .mac-nl-carte button.mac-nl-switch[type="submit"]:hover,
.mac-nl-switch:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .5); color: #fff; }
.mac-nl-switch:focus-visible { outline: 3px solid var(--orange, #f17940); outline-offset: 2px; }
.mac-nl-piste { position: relative; flex: 0 0 auto; width: 46px; height: 28px; border-radius: 999px; background: #4a5556; transition: background-color .2s ease; }
.mac-nl-bouton { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(20, 30, 30, .3); transition: transform .2s ease; }
.mac-nl-switch[aria-checked="true"] .mac-nl-piste { background: var(--orange, #f17940); }
.mac-nl-switch[aria-checked="true"] .mac-nl-bouton { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) {
	.mac-nl-piste, .mac-nl-bouton { transition: none; }
}
@media (max-width: 600px) {
	body .martin-app-main .mac-nl-carte button.mac-nl-switch[type="submit"], .mac-nl-switch { width: 100%; }
}
