/* Secus Recrutement : bleu marine + or (couleurs de Secus Consulting) */
:root {
  --navy: #0b1730;
  --navy-2: #13254a;
  --navy-3: #1d3563;
  --gold: #c9a24b;
  --gold-2: #e2c27a;
  --gold-dark: #9f7c2c;
  --gold-soft: #faf4e6;
  --bg: #f3f5f9;
  --card: #ffffff;
  --text: #18213a;
  --muted: #627089;
  --border: #e1e6ef;
  --ok: #1d8a4e;      --ok-soft: #e4f4eb;
  --warn: #b57414;    --warn-soft: #fcf1de;
  --ko: #c23a2b;      --ko-soft: #fbe8e5;
  --info: #2c6cb0;    --info-soft: #e7f0fa;
  --violet: #6b46c1;  --violet-soft: #f3ecff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 23, 48, .05), 0 4px 16px rgba(11, 23, 48, .06);
  --shadow-lg: 0 10px 34px rgba(11, 23, 48, .14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--info); text-underline-offset: 2px; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: 1.65rem; margin: 0 0 .4rem; font-weight: 800; }
h2 { font-size: 1.2rem; margin: 1.8rem 0 .8rem; font-weight: 700; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; font-weight: 700; }
code { background: #eef1f6; padding: 2px 7px; border-radius: 6px; font-size: .84em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.container { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.container.wide { max-width: 1240px; }

/* ===== Site public ===== */
.topbar { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--gold-2), var(--gold-dark));
  color: var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; }
.brand-text small { color: var(--gold); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; }
.topbar nav a { color: #cfd7e6; text-decoration: none; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.topbar nav a:hover { color: var(--gold-2); }

.hero { position: relative; overflow: hidden; color: #fff; padding: 52px 0 84px;
  background: radial-gradient(1100px 420px at 88% -15%, rgba(201,162,75,.24), transparent 60%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(201,162,75,.15); color: var(--gold-2);
  border: 1px solid rgba(201,162,75,.35); padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: clamp(1.75rem, 5.5vw, 2.6rem); margin-bottom: 12px; }
.hero h1 .accent { color: var(--gold); }
.hero p { color: #c9d3e5; margin: 0; max-width: 610px; font-size: 1.05rem; }
.hero.compact { padding: 30px 0 70px; }
.hero.compact h1 { font-size: clamp(1.5rem, 4.6vw, 2.05rem); }
.hero .back { color: #c9d3e5; text-decoration: none; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 16px; }
.hero .back:hover { color: var(--gold-2); }
.hero-metier { display: flex; gap: 16px; align-items: center; }
.hero-metier .badge-ic { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; flex: 0 0 auto;
  background: rgba(201,162,75,.16); color: var(--gold-2); border: 1px solid rgba(201,162,75,.35); }
.hero-metier h1 { margin: 0; }
.hero .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; color: #c9d3e5; font-size: .88rem; }
.hero .meta i { color: var(--gold); margin-right: 6px; }

main { padding: 0 0 56px; }
main.public > .container { margin-top: -44px; position: relative; z-index: 2; }
main.plain { padding-top: 32px; }
footer.site-footer { color: var(--muted); font-size: .85rem; padding: 24px 0 34px; border-top: 1px solid var(--border); background: #fff; }
footer.site-footer a { color: var(--muted); }
footer.site-footer .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2.2rem 0 1rem; }
.section-title h2 { margin: 0; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.metier-card { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.metier-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); opacity: 0; transition: opacity .18s; }
.metier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dccb98; }
.metier-card:hover::before { opacity: 1; }
.metier-icon { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.25rem; background: var(--gold-soft); color: var(--gold-dark); }
.metier-card h3 { margin: 4px 0 0; font-size: 1.12rem; }
.metier-card p { margin: 0; color: var(--muted); font-size: .93rem; flex: 1; }
.metier-card .go { color: var(--navy); font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.metier-card:hover .go { color: var(--gold-dark); }
.metier-card:hover .go i { transform: translateX(3px); }
.metier-card .go i { transition: transform .18s; }

.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; }
.step strong { display: block; color: var(--navy); margin-bottom: 2px; }
.step span { color: var(--muted); font-size: .92rem; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.trust i { color: var(--ok); margin-right: 6px; }

/* Formulaire de candidature */
.form-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px; margin-bottom: 18px; }
.form-section-head { display: flex; gap: 13px; align-items: center; margin: -2px 0 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.num { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; }
.form-section-head h2 { margin: 0; font-size: 1.1rem; }
.form-section-head p { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
label .req { color: var(--ko); }
label .opt { color: var(--muted); font-weight: 400; font-size: .84rem; }
.hint { color: var(--muted); font-size: .84rem; margin-top: 5px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font: inherit; background: #fbfcfe; color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: #c9d1de; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
textarea { min-height: 120px; resize: vertical; }
.row2, .row3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.choices label { font-weight: 500; display: flex; gap: 11px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; cursor: pointer; background: #fbfcfe; transition: border-color .15s, background .15s; }
.choices label:hover { border-color: #c9d1de; }
.choices label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.choices input { accent-color: var(--gold-dark); width: 18px; height: 18px; margin: 0; flex: 0 0 auto; }
.inline-choices { display: flex; gap: 10px; }
.inline-choices label { flex: 1; justify-content: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--gold-dark); width: 17px; height: 17px; flex: 0 0 auto; }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .choices label { border-color: var(--ko); background: #fff9f8; }
.error-text { color: var(--ko); font-size: .86rem; margin-top: 6px; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; }
.error-text i { margin-top: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.file-drop { border: 1.5px dashed #c9d1de; border-radius: var(--radius-sm); padding: 14px; background: #fbfcfe; margin-bottom: 12px; }
.file-drop:last-child { margin-bottom: 0; }
.file-drop label { display: flex; align-items: center; gap: 9px; }
.file-drop label i { color: var(--gold-dark); width: 18px; text-align: center; }
input[type=file] { font-size: .88rem; max-width: 100%; }
.progress { position: sticky; top: 64px; z-index: 10; height: 4px; background: rgba(11,23,48,.08); }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: var(--navy); border: 1.5px solid transparent;
  border-radius: var(--radius-sm); padding: 11px 18px; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--gold-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; padding: 15px; font-size: 1.05rem; }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--navy); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-3); }
.btn.ghost { background: transparent; color: var(--muted); border-color: transparent; padding: 6px 9px; }
.btn.ghost:hover { background: #eef1f6; color: var(--navy); }
.btn.ghost:disabled:hover { background: transparent; color: var(--muted); }
.btn.danger { background: #fff; color: var(--ko); border-color: #efc5bf; }
.btn.danger:hover { background: var(--ko); color: #fff; border-color: var(--ko); }
.btn.success { background: var(--ok); color: #fff; }
.btn.success:hover { background: #17733f; }
.btn.violet { background: var(--violet); color: #fff; }
.btn.violet:hover { background: #5a37a8; }
.btn.small { padding: 7px 12px; font-size: .86rem; }
.btn.ai { background: linear-gradient(135deg, var(--navy-2), var(--navy-3)); color: #fff; }
.btn.ai i { color: var(--gold-2); }
.btn.ai:hover { background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); }

.alert { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: .95rem; }
.alert > i { margin-top: 4px; }
.alert.error { background: var(--ko-soft); border-color: #f0c4be; color: #8b2a1e; }
.alert.success { background: var(--ok-soft); border-color: #bfe3cc; color: #17673a; }
.alert.info { background: var(--info-soft); border-color: #c8daf0; color: #24548a; }
.alert.warn { background: var(--warn-soft); border-color: #efd9a8; color: #7a5212; }
.prose p { margin: 0 0 .9rem; }
.prose h3 { margin-top: 1.4rem; }

/* ===== Administration ===== */
body.admin { background: #f1f4f9; }
.admin-shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfd7e6; display: flex; flex-direction: column; padding: 18px 14px; gap: 4px; }
.sidebar .brand { padding: 4px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cfd7e6; text-decoration: none; font-weight: 500; font-size: .94rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.side-link i { width: 18px; text-align: center; color: #8d9bb7; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(201,162,75,.14); color: var(--gold-2); }
.side-link.active i { color: var(--gold); }
.side-link .count { margin-left: auto; background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 1px 8px; }
.side-sep { height: 1px; background: rgba(255,255,255,.08); margin: 8px 0; }
.side-bottom { margin-top: auto; }
.admin-main { padding: 22px 16px 48px; min-width: 0; }
.admin-main > .inner { max-width: 1180px; margin: 0 auto; }
@media (max-width: 899px) {
  .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; gap: 2px; position: sticky; top: 0; z-index: 30; }
  .sidebar .brand { border: 0; margin: 0 auto 0 0; padding: 0; }
  .sidebar .side-link { width: auto; padding: 9px 10px; }
  .side-link .label, .side-sep, .sidebar .brand-text, .side-link .count { display: none; }
  .side-bottom { margin: 0; display: flex; }
}
@media (min-width: 900px) {
  .admin-shell { grid-template-columns: 250px 1fr; }
  .sidebar { position: sticky; top: 0; height: 100vh; }
  .admin-main { padding: 30px 36px 56px; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.page-head h1 { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumb { font-size: .86rem; margin-bottom: 6px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--navy); }

.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit;
  display: flex; gap: 14px; align-items: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex: 0 0 auto; }
.stat .n { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat .l { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.stat.retenu .ic { background: var(--ok-soft); color: var(--ok); }
.stat.a_verifier .ic { background: var(--warn-soft); color: var(--warn); }
.stat.non_retenu .ic { background: var(--ko-soft); color: var(--ko); }
.stat.nouveau .ic { background: var(--info-soft); color: var(--info); }

.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.02rem; display: flex; align-items: center; gap: 9px; }
.panel-head h2 > i, .panel-head h3 > i { color: var(--gold-dark); }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: #f8f9fc; color: var(--muted); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #fafbfe; }
.person { display: flex; align-items: center; gap: 11px; }
.person a { color: var(--navy); font-weight: 600; text-decoration: none; }
.person a:hover { color: var(--info); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--navy-2); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex: 0 0 auto; }
.mini-icon { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--gold-soft); color: var(--gold-dark); flex: 0 0 auto; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.badge.retenu { background: var(--ok-soft); color: var(--ok); }
.badge.a_verifier { background: var(--warn-soft); color: var(--warn); }
.badge.non_retenu { background: var(--ko-soft); color: var(--ko); }
.badge.nouveau { background: var(--info-soft); color: var(--info); }
.badge.off { background: #edf0f4; color: var(--muted); }
.badge.draft { background: var(--violet-soft); color: var(--violet); }
.badge.gold { background: var(--gold-soft); color: var(--gold-dark); }
.score-pill { display: inline-grid; place-items: center; min-width: 44px; height: 28px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; background: #eef1f6; color: var(--muted); }
.score-pill.hi { background: var(--ok-soft); color: var(--ok); }
.score-pill.mid { background: var(--warn-soft); color: var(--warn); }
.score-pill.lo { background: var(--ko-soft); color: var(--ko); }

.filters { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); align-items: end; }
.filters label { font-size: .74rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .05em; }
.filters input, .filters select { padding: 9px 11px; }

.two-col { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .two-col { grid-template-columns: 1.45fr 1fr; } .sticky-col { position: sticky; top: 24px; align-self: start; } }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
dl.info dt { color: var(--muted); font-size: .9rem; }
dl.info dd { margin: 0; font-weight: 500; }
.qa { padding: 14px 0; border-bottom: 1px solid var(--border); }
.qa:first-child { padding-top: 0; }
.qa:last-child { border-bottom: 0; padding-bottom: 0; }
.qa .q { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.qa .a { white-space: pre-wrap; background: #f8f9fc; border-radius: 8px; padding: 10px 12px; }
.crit { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.crit:last-child { border-bottom: 0; }
.crit .ic { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; }
.crit .ic.satisfait { background: var(--ok-soft); color: var(--ok); }
.crit .ic.partiel { background: var(--warn-soft); color: var(--warn); }
.crit .ic.non_satisfait { background: var(--ko-soft); color: var(--ko); }
.crit .ic.inconnu { background: #edf0f4; color: var(--muted); }
.score-ring { --p: 0; --c: var(--navy); width: 92px; height: 92px; border-radius: 50%; flex: 0 0 auto;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), #e9edf3 0); display: grid; place-items: center; }
.score-ring > div { width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: var(--navy); }
ul.tight { margin: .3rem 0 .8rem; padding-left: 1.2rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.decision-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.decision-group .btn { padding: 12px 6px; flex-direction: column; gap: 5px; font-size: .84rem; white-space: normal; }
.decision-group .btn.on.retenu { background: var(--ok); color: #fff; border-color: var(--ok); }
.decision-group .btn.on.a_verifier { background: var(--warn); color: #fff; border-color: var(--warn); }
.decision-group .btn.on.non_retenu { background: var(--ko); color: #fff; border-color: var(--ko); }

/* Questions (admin) */
.q-card { border: 1.5px solid var(--border); border-radius: 12px; background: #fff; margin-bottom: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.q-card[open] { border-color: #cdd5e2; box-shadow: var(--shadow); }
.q-card.draft { border-style: dashed; border-color: #c8b6ef; background: #fdfbff; }
.q-card.has-error { border-color: var(--ko); border-style: solid; }
.q-card > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 14px; cursor: pointer; }
.q-card > summary::-webkit-details-marker { display: none; }
.q-num { flex: 0 0 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.q-card.draft .q-num { background: var(--violet); color: #fff; }
.q-title { flex: 1; min-width: 0; }
.q-title strong { display: block; color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-title span { font-size: .8rem; color: var(--muted); }
.q-tools { display: flex; gap: 2px; flex: 0 0 auto; align-items: center; }
.q-body { padding: 16px; border-top: 1px solid var(--border); background: #fcfdfe; }
.q-card.draft .q-body { background: #fdfbff; }
.chev { color: var(--muted); transition: transform .15s; }
.q-card[open] .chev { transform: rotate(180deg); }
.draft-banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(90deg, var(--violet-soft), #fdfbff);
  border: 1px solid #ddd0f7; border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.draft-banner strong { color: #4e2f98; }
.order-cell { display: flex; align-items: center; gap: 2px; }
.order-cell .n { min-width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: .85rem; margin-right: 4px; }
.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 8px; }
.icon-picker label { margin: 0; display: grid; place-items: center; height: 48px; border: 1.5px solid var(--border); border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 1.1rem; background: #fbfcfe; position: relative; }
.icon-picker label:hover { border-color: #c9d1de; color: var(--navy); }
.icon-picker input { position: absolute; opacity: 0; pointer-events: none; }
.icon-picker label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(201,162,75,.18); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #cfd6e2; position: relative; cursor: pointer; transition: background .15s; margin: 0; flex: 0 0 auto; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { left: 21px; }
.link-copy { display: flex; gap: 8px; align-items: center; }
.link-copy code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 9px; }
.empty { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty > i { font-size: 2rem; color: #c3cbd9; margin-bottom: 10px; display: block; }
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 16px; }
.danger-zone { border-color: #f0cfca; }
.danger-zone .panel-head h3 > i { color: var(--ko); }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(900px 420px at 82% -12%, rgba(201,162,75,.22), transparent 60%), linear-gradient(160deg, var(--navy), var(--navy-3)); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow-lg); }
.login-card .brand { margin-bottom: 24px; }
.login-card .brand-text { color: var(--navy); }

/* Photo du métier (admin) */
.photo-field { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.photo-preview { aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--border); background: #f5f6f8; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-vide { height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; padding: 10px; color: var(--muted); font-size: .78rem; }
.photo-vide i { font-size: 1.6rem; color: #0a2a66; }
@media (max-width: 640px) { .photo-field { grid-template-columns: 1fr; } }
