/* « Supprimer mon compte » de Kontan Driver : page publique (exigée par Google Play), même famille que /connexion/.
   Aucun style en ligne : CSP style-src 'self'. Pensée d'abord pour 390 px ; carte centrée de 460 px au plus. */
:root {
  --anthra: #1C1C1C; --brass: #B68A3E; --brass-ink: #8A6526; --gold: #C9A84C; --cream: #F9F7F2; --paper: #fff; --ink: #1C1C1C;
  --muted: #6E675B; --line: #DDD6C8; --soft: #F6ECD9; --err-bg: #FBEAEA; --err: #8A1F1F; --ok-bg: #E6F2EA; --ok: #2A6B45;
  --danger: #A11D1D; --danger-dark: #7F1414;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background-color: var(--anthra);
  background-image: radial-gradient(1200px 600px at 50% -10%, #2c2c2c 0%, var(--anthra) 55%, #141414 100%);
  line-height: 1.5;
}
.wrap { width: 100%; max-width: 460px; min-width: 0; }

/* La marque */
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; }
.brand .mark { flex: 0 0 auto; width: 46px; height: 46px; border: 1.5px solid var(--brass); border-radius: 9px; display: flex;
  align-items: center; justify-content: center; font-family: Georgia, "Times New Roman", serif; font-weight: 700; color: var(--brass); font-size: 18px; }
.brand .nm { font-family: Georgia, "Times New Roman", serif; font-size: 22px; letter-spacing: 1.5px; color: #fff; line-height: 1; }
.brand .nm small { display: block; font-family: "Manrope", system-ui, sans-serif; font-size: 9.5px; letter-spacing: 3px; color: var(--brass); margin-top: 5px; }

/* La carte */
.card { background: var(--paper); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.card .top { height: 3px; background: linear-gradient(90deg, var(--gold), var(--brass)); }
.pad { padding: 30px 28px 24px; }

h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 24px; line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
h1:focus { outline: none; }
h1:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 4px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 16.5px; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.sub.strong { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.who { font-size: 14.5px; margin: -6px 0 18px; overflow-wrap: anywhere; }

/* Les deux blocs lus avant toute action */
.box { border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; border: 1px solid var(--line); }
.box ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.box li + li { margin-top: 4px; }
.box.gone { background: #FDF5F4; border-color: #EBCFCB; }
.box.gone h2 { color: var(--danger-dark); }
.box.kept { background: var(--cream); }
.box.kept { margin-bottom: 22px; }

/* Les champs : 16 px et 48 px de haut (pas de zoom sur iPhone, assez grands au doigt) */
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.control { display: block; width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 13px;
  font-size: 16px; font-family: inherit; color: var(--ink); background: #fff; }
.control::placeholder { color: #9A9284; }
.control:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(182, 138, 62, .25); }
.control:disabled { background: var(--cream); color: var(--muted); }
.control[aria-invalid="true"] { border-color: var(--err); }
.control.code { font-size: 26px; letter-spacing: 10px; text-indent: 10px; text-align: center; font-weight: 700;
  font-variant-numeric: tabular-nums; min-height: 58px; }
.help { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* La case « Je comprends » : toute la ligne se touche, 44 px au moins */
.recap { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.chk { display: flex; align-items: center; gap: 12px; min-height: 48px; font-size: 15px; font-weight: 600; margin: 0 0 14px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--cream); }
.chk input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--danger); cursor: pointer; }
.chk:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(182, 138, 62, .25); }

/* Les boutons */
.btn { display: block; width: 100%; min-height: 50px; border: 0; border-radius: 10px; padding: 13px 14px; font-size: 16px; font-weight: 700;
  font-family: inherit; line-height: 1.3; cursor: pointer; background: var(--anthra); color: #fff; margin: 0 0 8px; }
.btn:hover { background: #000; }
.btn:focus-visible, .link:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.btn.danger { background: var(--danger); color: #fff; }            /* blanc sur #A11D1D : 7,3:1 */
.btn.danger:hover { background: var(--danger-dark); }
.btn:disabled, .btn.danger:disabled { background: #ECE8DF; color: #5E584D; cursor: not-allowed; }   /* éteint mais lisible : 6:1 */
.btn.busy:disabled { cursor: wait; }
.link { display: block; width: 100%; min-height: 44px; margin: 2px 0 0; color: var(--brass-ink); font-size: 15px; font-weight: 600;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: center; padding: 10px 6px; border-radius: 8px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { color: var(--ink); }
.link:disabled { color: #9A9284; cursor: not-allowed; text-decoration: none; }
.link.strong { font-weight: 700; }

/* Les messages */
.msg { background: var(--err-bg); color: var(--err); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; margin: 0 0 14px; overflow-wrap: anywhere; }
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.info { background: var(--soft); color: #4f4220; }
.hint { background: var(--soft); border-radius: 10px; padding: 13px 14px 6px; font-size: 14.5px; color: #4f4220; margin: 0 0 14px; }
.hint p { margin: 0 0 10px; }

/* Le chargement : court et discret */
.loading { padding: 18px 0 6px; text-align: center; }
.loading .sub { margin: 10px 0 0; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); opacity: .35; animation: kd-blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes kd-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* C'est fait */
.done-mark { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid var(--brass); color: var(--brass); display: flex;
  align-items: center; justify-content: center; font-size: 24px; margin: 0 0 14px; }

/* Le contact, toujours en bas de la carte */
.contact { margin: 20px -28px -24px; padding: 14px 28px 16px; border-top: 1px solid var(--line); background: var(--cream);
  font-size: 14px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.contact a { color: var(--brass-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  display: inline-block; padding: 10px 4px; min-height: 44px; }
.contact a:focus-visible { outline: 3px solid var(--brass); outline-offset: 1px; border-radius: 4px; }
.contact .sep { color: #B3AB9C; padding: 0 2px; }
/* La carte est étroite sur tous les écrans : le numéro et l'e-mail ont chacun leur ligne (toute la largeur sous le doigt), sans
   point de séparation qui pend en fin de ligne. */
.contact .sep { display: none; }
.contact a { display: block; padding: 6px 4px; line-height: 32px; }

@media (max-width: 400px) {
  body { padding: 18px 16px; align-items: flex-start; }
  .pad { padding: 24px 18px 20px; }
  .contact { margin: 18px -18px -20px; padding: 12px 18px 14px; }
  .brand .nm { font-size: 20px; }
  h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dots i { opacity: .6; }
}
