/* TiKamp — refonte graphique 2026-10 : styles d'ORIGINE de la page « signup ».
   FICHIER PRODUIT par scripts/refonte-feuille-origine.js — NE PAS MODIFIER À LA MAIN.
   Il reprend, sous la garde html[data-refonte], les règles de la page d'origine et
   celles que ses scripts posent eux-mêmes. L'habillage refondu est écrit à la main
   dans tk-refonte-public.css (chargée après). */

/* ── signup.html — <style> n° 1 ── */
html[data-refonte] body.page-inscription { --paper:#FAFAF7; --surface-2:#F4F3EE; --border-strong:#D4D8D1; --vert:#0F7C3C; --vert-d:#0A5F2D; --vert-l:#E6F4EB; --err:#E84747; --txt:#0A0F0A; --shadow:0 4px 14px rgba(10,31,20,.08), 0 1px 3px rgba(10,31,20,.05) }
html[data-refonte] main.origine * { box-sizing:border-box; }
html[data-refonte] main.origine ::selection { background:var(--accent); color:var(--ink); }
html[data-refonte] body.page-inscription { margin:0; font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; background:var(--paper); color:var(--txt); line-height:1.55; -webkit-font-smoothing:antialiased; min-height:100vh; display:flex; flex-direction:column; }
html[data-refonte] main.origine .skip { position:absolute; left:-9999px; }
html[data-refonte] main.origine .skip:focus { left:.5rem; top:.5rem; z-index:50; background:var(--surface); color:var(--vert-d); padding:.6rem .9rem; border-radius:8px; border:2px solid var(--vert); }
html[data-refonte] main.origine .o-entete { position:relative; padding:2.2rem 1.5rem 2.6rem; color:var(--ink); overflow:hidden; background: radial-gradient(ellipse 50% 70% at 85% 25%, rgba(243,167,36,.13) 0%, transparent 60%), radial-gradient(ellipse 80% 100% at 20% 90%, rgba(31,105,64,.14) 0%, transparent 60%), linear-gradient(160deg,#EAF3F7 0%,#F2F5EE 55%,var(--surface-2) 100%); }
html[data-refonte] main.origine .o-entete::after { content:''; position:absolute; right:-20px; top:-20px; width:130px; height:130px; border-radius:50%; background:radial-gradient(circle at 35% 35%, #FFE9C4 0%, #FFD89A 50%, #F3A724 100%); box-shadow:0 0 50px rgba(243,167,36,.22); pointer-events:none; }
html[data-refonte] main.origine .header-inner { max-width:640px; margin:0 auto; position:relative; z-index:2; }
html[data-refonte] main.origine .o-entete h1 { margin:.9rem 0 .25rem; font-size:1.7rem; font-weight:600; letter-spacing:-.028em; line-height:1.15; max-width:26rem; }
html[data-refonte] main.origine .o-entete h1 .it { font-style:italic; font-weight:400; color:var(--vert-d); }
html[data-refonte] main.origine .o-entete p.sub { margin:.3rem 0 0; color:var(--ink-2); font-size:.95rem; max-width:32rem; }
html[data-refonte] main.origine { max-width:640px; margin:2rem auto; padding:0 1.5rem; flex:1; width:100%; }
html[data-refonte] main.origine .card { background:var(--surface); border:1px solid var(--border); border-radius:16px; padding:1.8rem 1.6rem; box-shadow:var(--shadow); }
html[data-refonte] main.origine h2 { color:var(--ink); font-size:1.25rem; font-weight:600; letter-spacing:-.022em; margin:0 0 .8rem; }
html[data-refonte] main.origine h2 .it { font-style:italic; font-weight:400; color:var(--vert-d); }
html[data-refonte] main.origine fieldset { border:0; padding:0; margin:0 0 .4rem; }
html[data-refonte] main.origine legend { font-size:.74rem; font-weight:600; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); padding:0; margin-bottom:.8rem; }
html[data-refonte] main.origine label { display:block; font-weight:600; font-size:.88rem; margin-bottom:.35rem; color:var(--ink-2); }
html[data-refonte] main.origine input,
html[data-refonte] main.origine select { width:100%; padding:.7rem .8rem; border:1px solid var(--border-strong); border-radius:10px; font-size:1rem; font-family:inherit; background:var(--surface); color:var(--txt); transition:border-color .15s, box-shadow .15s; min-height:44px; }
html[data-refonte] main.origine select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236B7670' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M3 4.5 L6 7.5 L9 4.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .8rem center; background-size:14px; padding-right:2.2rem; }
html[data-refonte] main.origine input:focus-visible,
html[data-refonte] main.origine select:focus-visible { outline:none; border-color:var(--vert); box-shadow:0 0 0 3px var(--vert-l); }
html[data-refonte] main.origine input[aria-invalid="true"] { border-color:var(--err); }
html[data-refonte] main.origine .field { margin-bottom:1rem; }
html[data-refonte] main.origine .row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:520px) {
  html[data-refonte] main.origine .row { grid-template-columns:1fr; gap:0; }
}
html[data-refonte] main.origine .hint { color:var(--ink-3); font-size:.82rem; margin-top:.3rem; }
html[data-refonte] main.origine .req { color:var(--err); }
html[data-refonte] main.origine label .opt { font-weight:400; color:var(--ink-3); margin-left:.25rem; }
html[data-refonte] main.origine .req-note { color:var(--ink-3); font-size:.82rem; margin:0 0 1rem; }
html[data-refonte] main.origine .field-err { color:var(--err); font-size:.82rem; margin-top:.3rem; display:none; }
html[data-refonte] main.origine .field-err.on { display:block; }
html[data-refonte] main.origine button.primary { width:100%; background:var(--vert); color:var(--paper); border:0; padding:.9rem; border-radius:10px; font-size:1rem; font-weight:600; cursor:pointer; font-family:inherit; min-height:48px; transition:background .18s ease, transform .15s ease; }
html[data-refonte] main.origine button.primary:hover:not([disabled]) { background:var(--vert-d); transform:translateY(-1px); }
html[data-refonte] main.origine button.primary:focus-visible { outline:3px solid var(--vert); outline-offset:2px; }
html[data-refonte] main.origine button.primary[disabled] { opacity:.55; cursor:wait; transform:none; }
html[data-refonte] main.origine .info { background:var(--vert-l); border-left:3px solid var(--vert); padding:.85rem 1rem; border-radius:8px; font-size:.92rem; margin-bottom:1.4rem; color:var(--vert-d); }
html[data-refonte] main.origine .msg { padding:.75rem 1rem; border-radius:10px; margin-top:1rem; display:none; font-size:.92rem; }
html[data-refonte] main.origine .msg.ok { display:block; background:var(--vert-l); border:1px solid #A5C5AC; color:var(--vert-d); }
html[data-refonte] main.origine .msg.err { display:block; background:#FEECEC; border:1px solid #E5BBBB; color:var(--err); }
html[data-refonte] main.origine .msg a { color:inherit; }
html[data-refonte] main.origine .muted { color:var(--ink-3); font-size:.86rem; }
html[data-refonte] main.origine .legal { margin-top:1.1rem; font-size:.82rem; color:var(--ink-3); line-height:1.5; }
html[data-refonte] main.origine .legal a { color:var(--vert-d); }
html[data-refonte] main.origine .done { text-align:center; padding:.6rem 0 .2rem; }
html[data-refonte] main.origine .done .mark { width:56px; height:56px; margin:0 auto 1rem; border-radius:50%; background:var(--vert-l); color:var(--vert-d); display:flex; align-items:center; justify-content:center; }
html[data-refonte] main.origine .done .mark svg { width:28px; height:28px; }
html[data-refonte] main.origine .done h2 { text-align:left; }
html[data-refonte] main.origine .done p { text-align:left; color:var(--ink-2); font-size:.95rem; }
html[data-refonte] main.origine .actions-inline { display:flex; gap:.6rem; flex-wrap:wrap; margin-top:1rem; }
html[data-refonte] main.origine .btn-ghost { display:inline-flex; align-items:center; min-height:44px; padding:.6rem 1rem; border-radius:10px; border:1px solid var(--border-strong); background:var(--surface); color:var(--ink); font-weight:600; font-size:.9rem; text-decoration:none; cursor:pointer; font-family:inherit; transition:background .18s ease, border-color .18s ease; }
html[data-refonte] main.origine .btn-ghost:hover { background:var(--surface-2); border-color:var(--ink-3); }
html[data-refonte] main.origine .btn-ghost:focus-visible { outline:3px solid var(--vert); outline-offset:2px; }
html[data-refonte] main.origine footer { text-align:center; padding:1.5rem 1rem; color:var(--ink-3); font-size:.82rem; }
html[data-refonte] main.origine footer a { color:var(--ink-3); }
@media (prefers-reduced-motion:reduce) {
  html[data-refonte] main.origine * { transition:none !important; }
}
