/* Extracteur de données Copilotr@ce */
:root { --bg:#f6f7f9; --surface:#fff; --ink:#111827; --ink2:#374151; --muted:#6b7280; --line:#e5e7eb; --accent:#F59E0B; --accent-h:#D48809; --accent-soft:#FEF3C7; --accent-ink:#B45309; --accent-active:#F97316; --on-accent:#1F1300; --danger:#b91c1c;
  --radius:18px; --shadow:0 1px 2px rgba(17,24,39,.06),0 6px 20px rgba(17,24,39,.06); --shadow-h:0 2px 4px rgba(17,24,39,.08),0 14px 32px rgba(17,24,39,.14); }
*,*::before,*::after { box-sizing:border-box; }
html,body { min-height:100%; }
body { margin:0; background:var(--bg); color:var(--ink); font-size:16px; line-height:1.55;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
h1,h2 { margin:0; line-height:1.2; letter-spacing:-.01em; }
p { margin:0 0 .8em; }
:focus-visible { outline:3px solid rgba(180,83,9,.6); outline-offset:2px; border-radius:8px; }
[hidden] { display:none !important; }
.dedans { width:100%; max-width:1000px; margin:0 auto; padding:0 20px; }

.barre { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.95); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.barre .dedans { display:flex; align-items:center; gap:12px; min-height:64px; flex-wrap:wrap; padding-top:8px; padding-bottom:8px; }
.marque { display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; }
.marque img { width:38px; height:38px; border-radius:10px; }
.marque span { display:flex; flex-direction:column; line-height:1.15; }
.marque b { font-size:17px; } .marque small { font-size:12px; color:var(--muted); }
.espace { flex:1 1 auto; }
.compte { display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; }
.avatar { width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--accent); color: var(--on-accent); font-weight:700; text-transform:uppercase; }
.nom { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.btn { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 22px; border-radius:999px; border:1px solid transparent; background:var(--accent); color: var(--on-accent);
  font:inherit; font-weight:700; cursor:pointer; text-decoration:none; transition:background .15s, box-shadow .15s; }
.btn:hover { background:var(--accent-h); box-shadow:0 6px 16px rgba(245,158,11,.28); }
.btn:active { box-shadow:0 0 0 3px var(--accent-active); }
.btn[disabled] { opacity:.6; cursor:progress; box-shadow:none; }
.btn.discret { background:#fff; color:var(--ink); border-color:var(--line); }
.btn.discret:hover { background:#f3f4f6; box-shadow:none; }
.btn.petit { min-height:36px; padding:0 14px; font-size:14px; }
.btn.large { min-height:50px; padding:0 28px; font-size:16px; }

.corps { padding-top:24px; padding-bottom:72px; }
.perimetre { display:flex; flex-wrap:wrap; gap:20px 32px; align-items:center; justify-content:space-between; padding:24px 26px; border-radius:22px; color:#fff;
  background:linear-gradient(135deg,#78350F,#B45309); box-shadow:var(--shadow); margin-bottom:18px; }
.perimetre.tout { background:linear-gradient(135deg,#111827,#374151); }
.perimetre > div { flex:1 1 320px; }
.perimetre h1 { font-size:clamp(20px,2.6vw,26px); font-weight:800; margin-bottom:6px; }
.perimetre p { margin:0; color:rgba(255,255,255,.86); font-size:15px; }
.perimetre dl { display:flex; gap:10px; margin:0; }
.perimetre dl div { min-width:92px; padding:10px 14px; border-radius:14px; background:rgba(255,255,255,.12); text-align:center; }
.perimetre dt { font-size:24px; font-weight:800; line-height:1.1; } .perimetre dd { margin:0; font-size:13px; color:rgba(255,255,255,.8); }

.alerte { padding:12px 16px; border-radius:12px; background:#fef2f2; border:1px solid #fecaca; color:#7f1d1d; font-size:15px; }
.note { color:var(--muted); font-size:15px; }
.aide { color:var(--muted); font-size:13px; margin:8px 0 0; }
.aide-bloc { background:#f0f7ff; border:1px solid #cfe3fb; border-radius:12px; margin-bottom:18px; }
.aide-bloc summary { cursor:pointer; padding:11px 16px; font-weight:700; font-size:15px; color:#1e3a5f; }
.aide-bloc p { padding:0 16px 14px; margin:0; font-size:15px; color:#24384f; }

.onglets { display:flex; gap:6px; overflow-x:auto; margin-bottom:14px; scrollbar-width:none; }
.onglets::-webkit-scrollbar { display:none; }
.onglets button { flex:0 0 auto; min-height:42px; padding:0 18px; border-radius:999px; border:1px solid var(--line); background:#fff; color:var(--ink2); font:inherit; font-weight:700; cursor:pointer; }
.onglets button:hover { background:#f3f4f6; }
.onglets button.actif { background:var(--ink); border-color:var(--ink); color:#fff; }

.carte { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px 26px; box-shadow:var(--shadow); }
.carte h2 { font-size:21px; font-weight:800; margin-bottom:4px; }
fieldset { border:0; border-top:1px solid var(--line); margin:18px 0 0; padding:16px 0 0; min-width:0; }
legend { padding:0 10px 0 0; font-weight:700; font-size:15px; color:var(--ink); float:left; width:100%; margin-bottom:10px; }
legend + * { clear:both; }
label { display:block; font-size:14px; font-weight:600; color:var(--ink2); margin-bottom:6px; }
input[type=text], input[type=password], input[type=number], input[type=datetime-local], select {
  width:100%; min-height:44px; padding:8px 14px; font:inherit; color:var(--ink); background:#fff; border:1px solid #d1d5db; border-radius:12px; outline:0; }
input:focus, select:focus { border-color:var(--accent); box-shadow:0 0 0 4px rgba(245,158,11,.25); }
.deux { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.case { display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; margin-bottom:8px; cursor:pointer; font-weight:600; color:var(--ink); }
.case:hover { background:#f9fafb; }
.case input { width:18px; height:18px; margin-top:3px; accent-color:var(--accent); flex:0 0 auto; }
.case small { display:block; font-weight:400; color:var(--muted); font-size:13px; }
.actions { display:flex; justify-content:flex-end; margin-top:20px; }

.auth { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px 16px; background:linear-gradient(160deg,#FFFBEB 0%,#f6f7f9 50%,#eef0f3 100%); }
.connexion { width:100%; max-width:410px; text-align:center; padding:32px 28px; border-radius:24px; box-shadow:var(--shadow-h); }
.connexion img { border-radius:20px; margin:0 auto 12px; display:block; }
.connexion h1 { font-size:24px; font-weight:800; margin-bottom:10px; }
.connexion label { text-align:left; margin-top:14px; }
.connexion .btn { width:100%; margin-top:20px; }
.connexion .alerte { text-align:left; }
.retour { display:inline-block; margin-top:16px; color: var(--accent-ink); font-weight:600; font-size:14px; text-decoration:none; }

@media (max-width:640px) {
  .dedans { padding:0 14px; } .nom { display:none; }
  .marque small { display:none; }
  .perimetre { padding:20px 18px; } .perimetre dl { width:100%; } .perimetre dl div { flex:1 1 0; min-width:0; }
  .carte { padding:20px 16px; } .deux { grid-template-columns:1fr; }
  .actions .btn { width:100%; }
}
