/* Portail client : un seul fichier, deux thèmes via data-theme sur <html>. */

:root {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
  --ok: #1f8a4c;
  --warn: #b7791f;
  --danger: #c0392b;
  --info: #2a6fdb;
  --maxw: 1120px;
}

/* BLACKT : noir, panneaux crème, accent lavande, données en monospace */
html[data-theme="blackt"] {
  --bg: #0B0B0B;
  --bg-text: #F3EFE6;
  --bg-muted: #a39f95;
  --panel: #F3EFE6;
  --panel-2: #e9e4d8;
  --text: #111111;
  --muted: #6b675f;
  --border: #d9d3c5;
  --accent: #B9A8FF;
  --accent-text: #15102e;
  --accent-2: #B9A8FF;
  --link: #4b3bb3;
  --radius: 10px;
  --radius-sm: 6px;
  --data-font: var(--mono);
  --head-font: var(--font);
}

/* CAMILA : lilas clair, panneaux blancs, accents lavande pâle et jaune, cartes très arrondies */
html[data-theme="camila"] {
  --bg: #EAE2FA;
  --bg-text: #231b3a;
  --bg-muted: #6f6688;
  --panel: #ffffff;
  --panel-2: #f6f2ff;
  --text: #1f1a2e;
  --muted: #6f6a7d;
  --border: #e3dbf3;
  --accent: #DCCCFB;
  --accent-text: #2b2146;
  --accent-2: #F6F26A;
  --link: #5b3fbf;
  --radius: 24px;
  --radius-sm: 14px;
  --data-font: var(--font);
  --head-font: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bg-text);
  background: var(--bg);
}
a { color: inherit; }
.card a, .modal-box a, .flash a { color: var(--link); }
h1, h2, h3, h4 { font-family: var(--head-font); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: .95rem; margin-bottom: .25rem; }
p { margin: 0 0 .75rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--panel-2); padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); }
.page > .muted, .page > .small.muted, .section > .muted, .sample-caption, .foot { color: var(--bg-muted); }
.small { font-size: .85rem; }
.mono, .num, .kpi, .credits-big .num, .table-data td.num, .table-data td.nowrap { font-family: var(--data-font); }
.nowrap { white-space: nowrap; }
.eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .35rem; font-weight: 600; }
.card .eyebrow { color: var(--muted); }
.topbar .eyebrow { color: var(--bg-muted); }

/* Layout */
.page { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 48px; }
.page-narrow { max-width: 520px; padding-top: 48px; }
.page-admin { max-width: 1280px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
h3.sub { margin: 24px 0 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Top bar */
.brand-head { text-align: center; margin-bottom: 20px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-sm { height: 32px; }
.topbar { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid rgba(128, 128, 128, .25); }
.topbar-brand { display: flex; gap: 16px; align-items: center; }
.topbar-title { margin: 0; }
.topbar-site { font-size: .9rem; color: var(--bg-muted); }
.topbar-contact { text-align: right; }
.topbar-contact p { margin: 0; }
.topbar-contact .contact-name { font-weight: 600; }
.topbar-contact .inline-form { margin-top: 8px; }
.topbar-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 640px) { .topbar-contact { text-align: left; } }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.subnav a { font-size: .85rem; text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(128, 128, 128, .35); color: var(--bg-text); }
.subnav a:hover { background: var(--accent); color: var(--accent-text); border-color: transparent; }

/* Cards */
.card {
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  min-width: 0;
}
html[data-theme="blackt"] .card { box-shadow: none; }
.grid .card { margin-bottom: 0; }
.card-center { text-align: center; }
.card-center .form { align-items: stretch; }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { margin: 0; }
.card-accent { background: var(--accent); color: var(--accent-text); }
.card-accent .eyebrow, .card-accent .muted { color: var(--accent-text); opacity: .75; }
html[data-theme="camila"] .card-accent { background: var(--accent-2); }
.card-kpi .kpi { font-size: 1.6rem; font-weight: 700; margin: 0 0 6px; }
.card-new { border: 1px dashed var(--border); box-shadow: none; }
.card-request { position: relative; border-left: 4px solid var(--border); }
.card-request.status-nouvelle, .card-request.status-validee { border-left-color: var(--accent); }
.card-request.status-a_verifier { border-left-color: var(--warn); }
.credits-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 10px; }
.credits-big .num { font-size: 2rem; font-weight: 700; }
.meta { display: grid; gap: 4px; margin: 12px 0 0; font-size: .9rem; }
.meta div { display: flex; gap: 8px; }
.meta dt { color: var(--muted); min-width: 70px; }
.meta dd { margin: 0; }
.list-plain { margin: 0; padding-left: 18px; }
.list-plain li { margin-bottom: 6px; }
.foot { margin-top: 40px; text-align: center; }
.kpis { margin-top: 20px; }

/* Progress */
.progress { height: 10px; background: rgba(0, 0, 0, .08); border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress-sm { height: 6px; margin: 4px 0; }
.progress-bar { height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
html[data-theme="camila"] .progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
html[data-theme="blackt"] .progress-bar { background: var(--accent); }
.progress-bar.is-over { background: var(--danger); }

/* Pills */
.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--text); white-space: nowrap; vertical-align: middle; border: 1px solid transparent; }
.pill-ok { background: #dff3e6; color: #176a3a; }
.pill-info { background: #e3ecfb; color: #1d4ea0; }
.pill-nouvelle { background: var(--accent); color: var(--accent-text); }
.pill-estimee { background: #fff1cc; color: #7a5300; }
.pill-validee { background: #dff3e6; color: #176a3a; }
.pill-en_cours { background: #e3ecfb; color: #1d4ea0; }
.pill-a_verifier { background: #ffe3c2; color: #8a4a00; }
.pill-terminee { background: #e6e6e6; color: #444; }
.pill-refusee { background: #f8d9d5; color: #8c2a20; }
.pill-preventive { background: #e3ecfb; color: #1d4ea0; }
.pill-evolutive { background: var(--accent); color: var(--accent-text); }
.pill-bug { background: #f8d9d5; color: #8c2a20; }
.pill-urgence { background: #ffd6d6; color: #a30000; border-color: #e3a8a8; }
.pill-design { background: #fff1cc; color: #7a5300; }
.pill-estimation { background: var(--panel-2); color: var(--muted); border-color: var(--border); }
.pill-atteint { background: #dff3e6; color: #176a3a; }
.pill-abandonne { background: #e6e6e6; color: #444; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: .95rem; font-weight: 600; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(.95); }
html[data-theme="camila"] .btn-primary { background: var(--accent-2); color: #262200; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .85; }
.btn-ghost:hover { opacity: 1; background: rgba(128, 128, 128, .12); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { font-size: .85rem; padding: 7px 14px; }
.btn-xs { font-size: .75rem; padding: 4px 10px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.inline-form { display: inline; margin: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-inline-col { align-items: stretch; text-align: left; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.field > span { font-weight: 600; }
.field input, .field textarea, .field select, .table-edit input {
  font: inherit; font-size: .95rem; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-width: 0;
}
html[data-theme="blackt"] .field input, html[data-theme="blackt"] .field textarea, html[data-theme="blackt"] .field select, html[data-theme="blackt"] .table-edit input { background: #fffdf8; }
.field input:focus, .field textarea:focus, .field select:focus, .table-edit input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field input[readonly] { background: var(--panel-2); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--link); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.row-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.row-form .field { flex: 0 1 150px; }
.row-form .field.grow { flex: 1 1 220px; }
.row-form .btn { margin-bottom: 2px; }
.form-delete { display: block; margin-top: 8px; }
.notice { padding: 12px 14px; border-radius: var(--radius-sm); margin: 12px 0; font-size: .95rem; }
.notice-error { background: #fbe4e1; color: #8c2a20; }
.table-edit input { padding: 6px 8px; font-size: .85rem; }
.table-edit .w-s { width: 72px; }
.table-edit td { padding: 6px 8px; }
.row-new td { background: var(--panel-2); }
.token-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; word-break: break-all; font-family: var(--mono); font-size: .85rem; }
.actions-wrap .btn { flex: 0 0 auto; }
.request-admin { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

/* Disclosure (details) used as inline toggles */
.disclosure > summary { list-style: none; display: inline-flex; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > .form { margin-top: 12px; padding: 14px; background: var(--panel-2); border-radius: var(--radius-sm); }
.disclosure-inline { display: inline-block; }
.disclosure-inline > .form { min-width: min(360px, 100%); }
.disclosure-plain > summary { cursor: pointer; font-weight: 600; padding: 8px 0; border-bottom: 1px solid var(--border); display: block; }
.disclosure-plain > .grid { padding: 12px 0; }
.card-head .disclosure { flex: 1 1 100%; display: flex; flex-direction: column; align-items: flex-start; }
.card-head .disclosure > .form { width: 100%; }
@media (min-width: 640px) { .card-head .disclosure { flex: 0 1 auto; align-items: flex-end; } .card-head .disclosure[open] { flex: 1 1 100%; align-items: stretch; } }

/* Requests */
.request-list { list-style: none; margin: 0; padding: 0; }
.request { padding: 14px 0; border-top: 1px solid var(--border); display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.request:first-child { border-top: 0; }
.request-main { flex: 1 1 320px; min-width: 0; }
.request-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.request-desc { margin: 6px 0; font-size: .95rem; white-space: pre-wrap; }
.request-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; flex: 0 1 auto; }
.note { font-size: .9rem; background: var(--panel-2); padding: 8px 12px; border-radius: var(--radius-sm); margin: 6px 0; }
.verify-note { font-size: .85rem; font-weight: 600; color: var(--warn); margin: 0; width: 100%; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
.table-dense th, .table-dense td { padding: 8px 10px; font-size: .88rem; }
.card-flush .table th:first-child, .card-flush .table td:first-child { padding-left: 16px; }
.card-flush .table th:last-child, .card-flush .table td:last-child { padding-right: 16px; }
.delta-up { color: var(--ok); font-weight: 600; }
.delta-down { color: var(--danger); font-weight: 600; }
.delta-new { color: var(--info); font-size: .8rem; font-weight: 600; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.report-list li:first-child { border-top: 0; }

/* Service non souscrit : aperçu grisé */
.section-off .sample { opacity: .45; filter: grayscale(.6); pointer-events: none; user-select: none; }
.sample-caption { font-size: .9rem; margin-top: 10px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.modal-box { position: relative; background: var(--panel); color: var(--text); border-radius: var(--radius); padding: 28px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-box .price { font-size: 1.25rem; font-weight: 700; margin: 12px 0; }
html[data-theme="camila"] .modal-box .price { background: var(--accent-2); display: inline-block; padding: 4px 12px; border-radius: 999px; }
html[data-theme="blackt"] .modal-box .price { color: #4b3bb3; }

/* Flash */
.flash { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; font-size: .95rem; }
.flash-success { background: #dff3e6; color: #176a3a; }
.flash-error { background: #fbe4e1; color: #8c2a20; }
.flash-close { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: inherit; line-height: 1; }

/* Onglets de services (Sécurité / Évolution / Visibilité) : sans JS, toutes les sections s'affichent à la suite */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.tab { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 600; text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(128, 128, 128, .35); color: var(--bg-text); transition: background .15s ease; }
.tab:hover { background: rgba(128, 128, 128, .12); }
.tab.is-active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
html[data-theme="camila"] .tab.is-active { background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.tab-off { opacity: .75; }
.tab-badge { font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: rgba(128, 128, 128, .18); }
html.js .tab-panel:not(.is-active) { display: none; }
html.js .tab-panel { margin-top: 24px; }

/* Évolution : bouton pleine largeur et formulaire de demande */
.btn-block { display: flex; width: 100%; padding: 14px 20px; font-size: 1rem; margin-bottom: 16px; }
.modal-box .btn-block { margin: 4px 0 0; }
.check-top { align-items: flex-start; }
.check-top input { margin-top: 3px; flex: 0 0 auto; }
.check-hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* Sécurité */
.period-big { font-size: 1.15rem; margin: 6px 0 8px; }
.list-check { list-style: none; margin: 0 0 8px; padding: 0; }
.list-check li { position: relative; padding-left: 26px; margin-bottom: 6px; }
.list-check li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ok); }

/* Visibilité */
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.next-steps { margin: 10px 0 0; padding: 8px 12px; background: var(--panel-2); border-radius: var(--radius-sm); font-size: .9rem; }

/* Popups des offres */
.offer-options { display: grid; gap: 10px; margin: 16px 0; }
.offer-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.offer-option .price { margin: 0; }
.offer-label { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.offer-contact { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--border); }
.tab-panel > .grid { margin-bottom: 16px; }
.table .btn { font-family: var(--font); }
.objectives-head { font-size: .9rem; font-weight: 600; color: var(--bg-muted); margin: 0 0 10px; }
.offer-contact .actions { margin-top: 0; }
.offer-contact .disclosure-inline[open] { flex: 1 1 100%; }
.btn-whatsapp { background: #25D366; color: #0b2e17; }
.btn-whatsapp:hover { filter: brightness(.95); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-whatsapp { width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.offer-saving { margin: 2px 0 0; font-size: .78rem; font-weight: 700; color: var(--ok); }
.offer-note { font-size: .88rem; background: var(--panel-2); padding: 10px 12px; border-radius: var(--radius-sm); margin: 12px 0 0; }
.cancel-line { text-align: right; font-size: .85rem; margin: -4px 0 16px; color: var(--bg-muted); }
.warn-box { background: #fff1cc; color: #5c3d00; padding: 12px 14px; border-radius: var(--radius-sm); }

/* CAMILA : violet vif et noir pour les éléments à faire ressortir (boutons, onglet actif, chiffres, statuts) */
html[data-theme="camila"] { --violet: #7B3CF5; --ink: #1b1b18; --link: #6a2fe0; }
html[data-theme="camila"] .btn-primary { background: var(--violet); color: #fff; }
html[data-theme="camila"] .btn-primary:hover { background: #6a2fe0; filter: none; }
html[data-theme="camila"] .tab.is-active { background: var(--ink); color: #fff; box-shadow: none; }
html[data-theme="camila"] .tab-badge { background: var(--violet); color: #fff; }
html[data-theme="camila"] .tab.is-active .tab-badge { background: rgba(255, 255, 255, .2); }
html[data-theme="camila"] .progress-bar { background: var(--violet); }
html[data-theme="camila"] .pill-ok { background: var(--ink); color: #fff; }
html[data-theme="camila"] .pill-nouvelle, html[data-theme="camila"] .pill-evolutive { background: var(--violet); color: #fff; }
html[data-theme="camila"] .credits-big .num { color: var(--ink); }
html[data-theme="camila"] .modal-box .price { background: none; padding: 0; color: var(--violet); }
html[data-theme="camila"] .offer-option:has(.offer-saving) { border-color: var(--violet); border-width: 2px; }
html[data-theme="camila"] .list-check li::before { color: var(--violet); }
html[data-theme="camila"] .check input { accent-color: var(--violet); }
html[data-theme="camila"] .field input:focus, html[data-theme="camila"] .field textarea:focus { outline-color: var(--violet); }
html[data-theme="camila"] .card-accent { background: var(--ink); color: #fff; }
html[data-theme="camila"] .card-accent .eyebrow, html[data-theme="camila"] .card-accent .muted { color: #fff; }

/* Fiche client (admin) : un bloc par service, titre noir, champs dépliés par la case */
.svc-block { border: 0; border-top: 1px solid var(--border); margin: 18px 0 0; padding: 22px 0 0; min-width: 0; }
.svc-title { font-size: 1.05rem; font-weight: 700; color: #111; }
.svc-title > span:first-of-type { color: #111; }
.svc-hint { font-size: .8rem; font-weight: 500; color: var(--muted); }
.svc-fields { margin-top: 14px; }
html.js .svc-fields[hidden] { display: none; }

/* Visibilité (admin) : objectifs et expressions clés */
.svc-sub { font-weight: 700; color: #111; margin: 22px 0 10px; font-size: .95rem; }
.svc-goals { align-items: end; }
.field-hint { font-size: .8rem; color: var(--muted); align-self: center; }
.table-kw td { vertical-align: top; }
.table-kw textarea { font: inherit; font-size: .85rem; width: 100%; min-width: 220px; padding: 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fffdf8; resize: vertical; }
.table-edit .w-m { width: 96px; }
.table-kw input[type="text"]:not(.w-m) { min-width: 150px; }
.pill-potential { background: var(--accent); color: var(--accent-text); font-size: .8rem; padding: 5px 12px; }
html[data-theme="camila"] .pill-potential { background: var(--violet); color: #fff; }
.table-goals td:first-child { min-width: 240px; }
.pos-top4 { color: var(--ok); }
.pos-top10 { color: var(--link); }

/* Objectifs (admin) : une ligne par objectif, début de mission puis objectif à 12 mois */
.goals-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: center; }
.goals-col { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.goals-label { display: flex; flex-direction: column; gap: 2px; }
.goals-label strong { color: #111; font-size: .92rem; }
.goals-grid input { font: inherit; font-size: .95rem; color: var(--text); background: #fffdf8; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-width: 0; }
.goals-grid input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
@media (max-width: 640px) { .goals-grid { grid-template-columns: 1fr 1fr; } .goals-grid > span:first-child { display: none; } .goals-label { grid-column: 1 / -1; } }
.goal-start { font-size: .88rem; margin: 6px 0 4px; }
.goals-label .field-hint { align-self: flex-start; }
.goals-grid + .small { margin-top: 10px; }
.goal-start strong, .credits-big .num { white-space: nowrap; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }

/* Statut du service : point vert (actif) ou rouge (inactif) */
.pill-status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; padding: 5px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.dot-off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
/* Actif et inactif : même pastille, seuls le texte et la couleur du point changent */
.pill-off { background: #dff3e6; color: #176a3a; border: 0; cursor: pointer; font-family: inherit; }
html[data-theme="camila"] .pill-status-dot { background: var(--ink); color: #fff; }
.pill-off { line-height: inherit; letter-spacing: inherit; }
.pill-off { border: 1px solid transparent; }
