:root { color-scheme: light dark;
  --fond: #f4f4f5; --carte: #fff; --texte: #18181b; --doux: #71717a; --filet: #e4e4e7; --rouge: #dc2626; --anneau: rgba(124,58,237,.16);
  --violet: #7c3aed; --degrade: linear-gradient(120deg, #ff5a5f 0%, #ff4fa3 45%, #7c3aed 100%); }
@media (prefers-color-scheme: dark) { :root {
  --fond: #09090b; --carte: #131316; --texte: #fafafa; --doux: #a1a1aa; --filet: #27272a; --rouge: #f87171; --anneau: rgba(167,139,250,.2); --violet: #8b5cf6; } }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; display: grid; place-items: center; padding: 24px 16px;
       background: var(--fond); color: var(--texte);
       font: 14px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
       -webkit-font-smoothing: antialiased; }
.porte { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }
.haut { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
/* LA CHARTE (2026-09-28) : le dégradé de la marque une fois, sur le logo ; le seul bouton en violet. */
.pastille { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
            background: var(--degrade); color: #fff; font-size: 13px; font-weight: 700; }
.carte { background: var(--carte); border: 1px solid var(--filet); border-radius: 14px; padding: 24px;
         display: flex; flex-direction: column; gap: 16px;
         box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12); }
h1 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
p { margin: 0; color: var(--doux); }
p b { color: var(--texte); font-weight: 600; word-break: break-all; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--doux); }
input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--filet); border-radius: 9px;
        background: var(--carte); color: var(--texte); font: inherit; font-size: 15px; }
input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--anneau); }
input.code { font: 600 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .42em;
             text-align: center; padding-left: .42em; height: 56px; }
button { height: 44px; border: 0; border-radius: 9px; background: var(--violet); color: #fff;
         font: inherit; font-weight: 600; cursor: pointer; transition: opacity .15s; }
button:hover { opacity: .88; }
/* Le bouton-lien de la page du lien court (2026-10-20, `views/lien_court.php`) : un lien qui a l'air du bouton de la porte. */
a.bouton { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 9px; background: var(--violet);
           color: #fff; font-weight: 600; text-decoration: none; }
a.bouton:hover { opacity: .88; }
button:disabled { opacity: .5; cursor: default; }
/* Clic pris en compte à l'instant (2026-09-29) : PHP répond après un aller-retour, et sans retour visuel on reclique. */
button.attente { opacity: 1; cursor: progress; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button.attente::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor;
                         border-top-color: transparent; animation: tourne .7s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
form.envoi input { opacity: .6; pointer-events: none; }
.lien { background: none; color: var(--doux); height: auto; padding: 0; font-weight: 500; font-size: 13px; }
.lien:hover { color: var(--texte); opacity: 1; }
.lien:disabled { opacity: .6; }
.bas { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.erreur { color: var(--rouge); font-size: 13px; margin: -4px 0 0; }
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.langue-choix select { height: 32px; padding: 2px 6px; border: 1px solid var(--filet); border-radius: 7px;
                      background: var(--carte); color: var(--texte); font: inherit; font-size: 18px; cursor: pointer; }
.discret { font-size: 12px; text-align: center; }
.juridique { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 14px; font-size: 11px; }
.juridique a { color: var(--doux); text-underline-offset: 3px; }
