/* ===================================================================
   Gestion Magasin Poulet - theme professionnel
   =================================================================== */
:root {
    --bg: #f3f4f6;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --primary: #2563eb;
    --primary-d: #1d4ed8;
    --primary-l: #eff6ff;
    --accent: #f59e0b;
    --ok: #16a34a;
    --danger: #dc2626;
    --side: #0f172a;
    --side-h: #1e293b;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ---------- structure : menu lateral + contenu ---------- */
body.app { display: flex; min-height: 100vh; }
.side { width: 244px; flex: none; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #0f172a, #241f1c); color: #e2e8f0; padding: 16px 12px; overflow-y: auto; z-index: 5; }
.side .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.2; padding: 6px 8px 18px; text-decoration: none; }
.side .brand .logo { width: 40px; height: 40px; flex: none; border-radius: 12px; background: linear-gradient(135deg, #60a5fa, #1d4ed8); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.side nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #cbd5e1; font-weight: 500; text-decoration: none; }
.side nav a i { font-style: normal; width: 24px; text-align: center; font-size: 18px; flex: none; }
.side nav a:hover { background: var(--side-h); color: #fff; }
.side nav a.active { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, .45); }
.side nav a.cta { background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-weight: 700; margin-bottom: 8px; }
.side nav a.cta:hover { filter: brightness(1.08); }
.side nav a.cta.active { box-shadow: 0 0 0 2px #fff3; }
.side-foot { border-top: 1px solid #3a332f; padding-top: 12px; margin-top: 10px; font-size: 14px; }
.side-foot .langs { display: flex; gap: 6px; margin-bottom: 10px; }
.side-foot .langs a { flex: 1; text-align: center; padding: 5px 0; border-radius: 8px; background: var(--side-h); color: #e2e8f0; font-size: 13px; text-decoration: none; }
.side-foot .langs a.on { background: var(--primary); color: #fff; }
.side-foot .who { display: flex; align-items: center; gap: 10px; padding: 4px 4px 8px; color: #fff; }
.side-foot .who .av { width: 34px; height: 34px; border-radius: 50%; background: #44403c; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.side-foot .who a { color: #fff; font-weight: 600; }
.side-foot button.link { display: block; width: 100%; text-align: start; background: none; border: 0; color: #fca5a5; cursor: pointer; padding: 6px 4px; font-size: 14px; }
.side-foot button.link:hover { color: #fff; }

main.content { flex: 1; min-width: 0; padding: 26px 30px; }
main.content:not(.wide) > * { max-width: 1280px; }

/* menu reduit (ecran de caisse) */
body.compact .side { width: 72px; padding: 14px 8px; }
body.compact .side .brand .txt, body.compact .side nav a span, body.compact .side-foot .who span.nm, body.compact .side-foot button.link span { display: none; }
body.compact .side .brand { justify-content: center; padding-inline: 0; }
body.compact .side nav a { justify-content: center; padding: 11px 0; }
body.compact .side-foot .langs { flex-direction: column; }
body.compact .side-foot .who { justify-content: center; }
body.compact .side-foot button.link { text-align: center; }

/* page de connexion */
body.anon { min-height: 100vh; background: radial-gradient(1200px 600px at 20% 0%, #bfdbfe 0%, transparent 60%), linear-gradient(135deg, #1e3a8a, #0f172a); }

/* ---------- titres ---------- */
h1 { font-size: 26px; font-weight: 700; margin: 0 0 18px; letter-spacing: -.3px; }
h2 { font-size: 17px; font-weight: 700; margin: 26px 0 10px; color: #374151; }
p { margin: 0 0 12px; }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--primary); color: #fff; border: 0; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-size: 14.5px; font-weight: 600; font-family: inherit; box-shadow: var(--shadow); transition: background .12s, transform .06s; }
.btn:hover { background: var(--primary-d); text-decoration: none; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.sec { background: #fff; color: #374151; border: 1px solid #d1d5db; box-shadow: none; }
.btn.sec:hover { background: #f3f4f6; color: #111827; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #b91c1c; }
.btn.ok { background: var(--ok); }
.btn.big { font-size: 17px; padding: 12px 22px; }
button.link { background: none; border: 0; cursor: pointer; font-family: inherit; }
form.inline { display: inline; }
form.inline.row { display: flex; gap: 4px; align-items: center; }

/* ---------- tableaux ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: middle; }
th { background: #f9fafb; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
tbody tr:hover td { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }
tfoot th, tfoot td { background: #f9fafb; font-weight: 700; }
tr.low td { background: #fffbeb; }
tr.cancel td { color: #9ca3af; text-decoration: line-through; }
td.neg { color: var(--danger); font-weight: 600; }
td.pos { color: var(--ok); font-weight: 600; }
.badge { display: inline-block; background: #fef3c7; color: #92400e; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 700; }
img.thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: #fff; border: 1px solid var(--line); vertical-align: middle; }
img.thumb.big { width: 180px; height: 130px; display: block; margin: 6px 0 12px; }

/* ---------- cartes / KPI ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 18px; }
.card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border-inline-start: 4px solid var(--accent); }
.card span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.card b { font-size: 24px; display: block; margin-top: 4px; font-variant-numeric: tabular-nums; }
.card small { color: var(--muted); }
.card.good { border-inline-start-color: var(--ok); }
.card.good b { color: var(--ok); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi .ic { width: 50px; height: 50px; flex: none; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: color-mix(in srgb, var(--c) 16%, #fff); }
.kpi .lbl { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi b { display: block; font-size: 22px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12px; }

.panel { background: var(--card); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 14px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.panel h2 a { font-size: 13px; font-weight: 600; }
.panel table { box-shadow: none; border-radius: 0; }
.dash-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-bottom: 16px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.warn-banner { display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 12px; padding: 10px 16px; margin-bottom: 16px; font-weight: 600; }

/* graphique en barres */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 215px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar .col { width: 100%; max-width: 54px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #60a5fa, #2563eb); min-height: 3px; }
.bar.today .col { background: linear-gradient(180deg, #60a5fa, #1d4ed8); }
.bar .v { font-size: 11px; color: var(--muted); margin-bottom: 3px; white-space: nowrap; }
.bar-days { display: flex; gap: 12px; margin-top: 6px; }
.bar-days span { flex: 1; text-align: center; font-size: 12px; color: var(--muted); }

/* classement / stock */
.rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rank li .top { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.rank li .top small { color: var(--muted); font-weight: 500; }
.meter { height: 8px; background: #f3f4f6; border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); }
.meter.ok i { background: linear-gradient(90deg, #4ade80, #16a34a); }
.meter.low i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.meter.out i { background: #ef4444; }
.stk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.stk li { display: flex; align-items: center; gap: 12px; }
.stk li .info { flex: 1; min-width: 0; }
.stk li .info .nm { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.stk li .info .nm small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.empty-note { color: var(--muted); text-align: center; padding: 22px 0; }

/* ---------- formulaires ---------- */
.form { background: var(--card); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 480px; }
.form.wide { max-width: 100%; }
.form label { display: block; margin: 12px 0 5px; font-weight: 600; font-size: 13.5px; color: #374151; }
.form label:first-child { margin-top: 0; }
.form label.check { display: flex; align-items: center; gap: 8px; }
.form .btn { margin-top: 16px; }
input, select, textarea { padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 15px; width: 100%; font-family: inherit; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
input.short { width: 90px; }
input[type=checkbox] { width: auto; }
input[type=file] { padding: 8px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; background: var(--card); padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.filter input, .filter select { width: auto; }
.filter label { font-weight: 600; font-size: 13.5px; }
.alert { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; font-weight: 500; }
.ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 11px 14px; border-radius: 10px; margin: 0 0 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }

table.lignes input, table.lignes select { width: 100%; }
table.lignes .del { background: var(--danger); color: #fff; border: 0; border-radius: 8px; cursor: pointer; padding: 5px 11px; }
.totalbox { font-size: 22px; margin: 14px 0; }

/* ---------- connexion ---------- */
.login { max-width: 400px; margin: 9vh auto 0; background: #fff; padding: 30px 28px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.login h1 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login label { display: block; margin: 14px 0 5px; font-weight: 600; font-size: 13.5px; }
.login .btn { width: 100%; margin-top: 20px; padding: 12px; font-size: 16px; }
.login .langs { text-align: center; color: var(--muted); }

/* ---------- mobile ---------- */
@media (max-width: 1000px) {
    .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    body.app { flex-direction: column; }
    .side, body.compact .side { width: 100%; height: auto; position: static; flex-direction: row; align-items: center; padding: 8px 10px; gap: 8px; overflow-x: auto; }
    .side .brand, body.compact .side .brand { padding: 0; }
    .side .brand .txt { display: none; }
    .side nav, body.compact .side nav { flex-direction: row; gap: 4px; }
    .side nav a, body.compact .side nav a { padding: 8px 10px; white-space: nowrap; }
    .side nav a span, body.compact .side nav a span { display: inline; font-size: 13px; }
    .side-foot, body.compact .side-foot { border: 0; margin: 0; padding: 0; display: flex; gap: 8px; align-items: center; }
    .side-foot .who span.nm { display: none; }
    main.content { padding: 14px; }
    table { font-size: 13px; }
    th, td { padding: 8px; }
}

/* ---------- pages de vente (detail / liste) ---------- */
.st { display: inline-block; vertical-align: middle; margin-inline-start: 8px; padding: 3px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .2px; }
.st.ok { background: #dcfce7; color: #166534; }
.st.warn { background: #fef3c7; color: #92400e; }
.st.cancel { background: #fee2e2; color: #991b1b; }
td .st, .st-cell .st { margin-inline-start: 0; }
.num { text-align: end; font-variant-numeric: tabular-nums; }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.muted { color: var(--muted); font-weight: 500; font-size: 13px; margin-inline-start: 6px; }
.bad-t { color: var(--danger); font-weight: 700; }
.good-t { color: var(--ok); font-weight: 700; }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.panel table.plain { box-shadow: none; border-radius: 0; }
.panel table.plain tbody tr:hover td { background: transparent; }
.panel table.plain tfoot td { font-size: 15px; background: #eff6ff; }
.big-num { font-size: 20px; color: var(--primary-d); font-weight: 800; }
.prod-cell { display: flex; align-items: center; gap: 12px; }
.pay-panel { background: linear-gradient(160deg, #0f172a, #172554); color: #fff; }
.pay-panel h2 { color: #bfdbfe; }
.pay-total { font-size: 34px; font-weight: 800; margin-bottom: 10px; color: #e0f2fe; font-variant-numeric: tabular-nums; }
.pay-panel .meter { background: #ffffff26; }
.pay-panel .info-list dt { color: #94a3b8; }
.pay-panel .info-list dd { color: #fff; }
.pay-panel .good-t { color: #86efac; }
.pay-panel .bad-t { color: #fca5a5; }
.info-list { margin: 12px 0 0; display: flex; flex-direction: column; }
.info-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pay-panel .info-list > div { border-bottom-color: #ffffff22; }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.info-list dd { margin: 0; font-weight: 700; text-align: end; }

@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }

/* ===== Pages Stock / Achats / Clients / Fournisseurs ===== */
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; font-weight: 700; font-size: 16px; }
.avatar.lg { width: 56px; height: 56px; font-size: 24px; }
.stock-cell { min-width: 190px; }
.stock-cell .meter { margin: 6px 0 3px; max-width: 170px; }
.adj summary { list-style: none; cursor: pointer; }
.adj summary::-webkit-details-marker { display: none; }
.adj-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; min-width: 170px; }
.adj-form input, .adj-form select { width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 480px)); gap: 16px; align-items: start; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-title { margin: 0 0 8px; font-size: 16px; }
.pay-form { margin-top: 14px; }
.pay-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; opacity: .85; }
.pay-form input { width: 100%; margin-bottom: 10px; }
input[type=search] { min-width: 260px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }

/* ===== Formulaires professionnels ===== */
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13.5px; color: #374151; }
.field label small { font-weight: 500; }
.req { color: #dc2626; font-weight: 600; }
.btn.block { width: 100%; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.form-actions .btn { margin-top: 0; }
.form-card { padding: 26px; }
.preview-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.preview-card h2 { align-self: stretch; justify-content: flex-start; }
.preview-card .pv-name { font-size: 20px; font-weight: 700; }
table.lignes td { padding: 8px 10px; vertical-align: middle; }
table.lignes .tot { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.lignes .del { width: 32px; height: 32px; padding: 0; font-size: 18px; line-height: 1; }
table.lignes .poids, table.lignes .prix { min-width: 90px; }

/* ===== Page de connexion ===== */
body.anon { background: #fff; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-brand { background: radial-gradient(900px 500px at 15% 0%, #2563eb 0%, transparent 60%), linear-gradient(145deg, #1e3a8a, #0f172a); color: #fff; padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.auth-logo span { width: 42px; height: 42px; border-radius: 12px; background: #ffffff22; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; }
.auth-hero h2 { font-size: 34px; line-height: 1.2; margin: 0 0 10px; max-width: 460px; }
.auth-hero p { color: #bfdbfe; font-size: 16px; margin: 0 0 26px; max-width: 460px; }
.auth-imgs { display: flex; gap: 14px; margin-bottom: 26px; }
.auth-imgs img { width: 110px; height: 110px; object-fit: cover; border-radius: 18px; background: #ffffff1a; border: 1px solid #ffffff30; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.auth-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.auth-feats li { background: #ffffff14; border: 1px solid #ffffff1f; border-radius: 12px; padding: 10px 14px; max-width: 420px; }
.auth-foot { color: #94a3b8; font-size: 13px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 30px 20px; background: #f8fafc; }
.auth-card { width: 100%; max-width: 410px; background: #fff; border-radius: 20px; padding: 34px 32px; box-shadow: 0 20px 50px rgba(15, 23, 42, .12); position: relative; }
.auth-langs { position: absolute; top: 16px; inset-inline-end: 16px; display: flex; gap: 4px; background: #f1f5f9; border-radius: 999px; padding: 3px; }
.auth-langs a { padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #475569; }
.auth-langs a.on { background: var(--primary); color: #fff; }
.auth-badge { width: 56px; height: 56px; border-radius: 16px; background: #eff6ff; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.auth-card h1 { margin: 0 0 4px; font-size: 26px; }
.auth-sub { color: var(--muted); margin: 0 0 20px; }
.inp { position: relative; display: flex; align-items: center; }
.inp .ico { position: absolute; inset-inline-start: 12px; font-size: 15px; opacity: .7; pointer-events: none; }
.inp input { padding-block: 12px; padding-inline-start: 38px; padding-inline-end: 42px; }
.inp .eye { position: absolute; inset-inline-end: 6px; background: none; border: 0; cursor: pointer; font-size: 16px; padding: 6px 8px; opacity: .7; }
.inp .eye:hover { opacity: 1; }
.auth-card .btn.big { margin-top: 6px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-brand { display: none; } .auth-form { min-height: 100vh; background: linear-gradient(135deg, #1e3a8a, #0f172a); } }
body.anon main.content { padding: 0; max-width: none; }
body.anon main.content:not(.wide) > * { max-width: none; }

/* ===== Multi-magasins / inscription ===== */
.auth-card.wide { max-width: 560px; }
.auth-card .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-sec { margin: 6px 0 12px; font-size: 14px; color: #475569; text-transform: uppercase; letter-spacing: .4px; padding-top: 10px; border-top: 1px solid #f1f5f9; }
.auth-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.alert.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.side .store { margin: 0 12px 6px; padding: 8px 12px; border-radius: 10px; background: #ffffff14; color: #bfdbfe; font-size: 13px; font-weight: 600; display: flex; gap: 6px; align-items: center; overflow: hidden; }
.side .store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.compact .side .store span { display: none; }
body.compact .side .store { justify-content: center; margin-inline: 6px; }
@media (max-width: 640px) { .auth-card .two { grid-template-columns: 1fr; } }

.btn.block { display: flex; width: 100%; justify-content: center; align-items: center; text-align: center; }
/* ===== A propos ===== */
.about { max-width: 640px; margin: 0 auto; }
body.anon .about { margin: 8vh auto; padding: 0 16px; }
.about-card { background: var(--card); border-radius: 20px; box-shadow: 0 20px 50px rgba(15, 23, 42, .10); overflow: hidden; }
.about-top { background: linear-gradient(145deg, #1e3a8a, #0f172a); color: #fff; padding: 34px 28px; text-align: center; }
.about-top .logo { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 20px; background: #ffffff1f; display: flex; align-items: center; justify-content: center; font-size: 38px; }
.about-top h1 { margin: 0 0 4px; font-size: 24px; }
.about-top p { margin: 0; color: #bfdbfe; }
.about-body { padding: 26px 28px; }
.about-by { text-align: center; margin-bottom: 20px; }
.about-by small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.about-by b { font-size: 21px; letter-spacing: .3px; color: #0f172a; }
.contact { display: grid; gap: 10px; }
.contact a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; background: #f8fafc; transition: border-color .12s, background .12s; }
.contact a:hover { border-color: var(--primary); background: #eff6ff; text-decoration: none; }
.contact .ci { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #dbeafe; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.contact .cl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.contact .cv { display: block; font-weight: 700; font-size: 16px; direction: ltr; unicode-bidi: plaintext; word-break: break-all; }
.about-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 28px 24px; }
.auth-link { text-align: center; margin-top: 14px; font-size: 13px; }

/* ===== Lisibilite sur les fonds sombres (titres) ===== */
.auth-brand h1, .auth-brand h2, .auth-brand h3, .auth-brand .auth-logo { color: #ffffff; }
.auth-hero h2 { color: #ffffff; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.auth-hero p { color: #dbeafe; }
.auth-feats li { color: #f1f5f9; background: #ffffff1f; border-color: #ffffff33; }
.auth-foot { color: #cbd5e1; }
.about-top h1 { color: #ffffff; }
.about-top p { color: #dbeafe; }
.pay-panel h2 { color: #bfdbfe; }
.pay-panel, .pay-panel .pay-form label { color: #f1f5f9; }
.side .store { color: #e0f2fe; background: #ffffff1f; }

/* ===== Theme connexion DOUX (sans photo : clair et reposant ; avec photo : voile sombre leger) ===== */
.auth-brand:not(.has-photo) { background: linear-gradient(160deg, #f8fafc 0%, #e8eef5 100%); color: #0f172a; border-inline-end: 1px solid #e2e8f0; }
.auth-brand:not(.has-photo) .auth-logo, .auth-brand:not(.has-photo) h2 { color: #0f172a; text-shadow: none; }
.auth-brand:not(.has-photo) .auth-logo span { background: #dbeafe; }
.auth-brand:not(.has-photo) .auth-hero p { color: #475569; }
.auth-brand:not(.has-photo) .auth-feats li { background: #ffffff; border: 1px solid #dbe3ee; color: #1e293b; box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.auth-brand:not(.has-photo) .auth-foot { color: #64748b; }
.auth-brand.has-photo .auth-feats li { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(4px); }
.auth-imgs img { width: 132px; height: 100px; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(15, 23, 42, .2); }
.auth-form { background: #f1f5f9; }
.auth-card { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); border: 1px solid #e8edf3; }
@media (max-width: 860px) { .auth-form { background: #e8eef5; } }
