/*
 * CPX AI Platform — Diagnostic IA gratuit (25/09/2026).
 * Toutes les regles vivent ici (aucun <style> inline) : aucune empreinte CSP
 * a enregistrer, donc aucun redemarrage requis quand la page change.
 *
 * ⚠️ `.hidden` est declaree EN DERNIER et aucune classe combinee avec elle ne
 * declare `display` avec une specificite superieure — voir
 * tests/test_hidden_specificity.py (piege rencontre cinq fois sur ce depot).
 */
* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  margin: 0;
  color: #1f2937;
  line-height: 1.6;
}
a { color: var(--cpx-blue); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #7db8e8;
  outline-offset: 2px;
}

header.site-header { background: var(--cpx-blue); color: white; padding: 20px 32px; }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-brand h1 { margin: 0; font-size: 20px; font-weight: 700; }
.header-badge {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3);
  padding: 7px 16px; border-radius: 999px; font-size: 12px; font-weight: 600;
}

.hero { max-width: 820px; margin: 0 auto; padding: 48px 20px 16px; text-align: center; }
.hero h2 { font-size: 32px; font-weight: 800; color: var(--cpx-blue); margin: 0 0 14px; line-height: 1.25; }
.hero .lead { font-size: 17px; color: #4b5563; margin: 0; }

.page-body { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; }
.card { background: white; border-radius: 10px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 20px; }
.card h3 { margin: 0 0 12px; font-size: 19px; color: var(--cpx-blue); }
section + section { margin-top: 24px; }
.help { color: #4b5563; font-size: 14px; margin: 0 0 12px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field span { font-weight: 600; font-size: 14px; }
.field input { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; margin-top: 4px; }
.field small { color: #6b7280; font-size: 12px; }

.area { display: grid; grid-template-columns: 1fr 90px auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.area-text strong { display: block; font-size: 15px; }
.area-text small { color: #6b7280; font-size: 13px; }
.area input { width: 90px; padding: 8px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; text-align: right; }
.unit { color: #6b7280; font-size: 13px; white-space: nowrap; }

.check, .consent { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; }
.check input, .consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.consent { font-size: 13px; color: #4b5563; margin-top: 12px; }

.btn {
  display: inline-block; border: 0; border-radius: 8px; padding: 12px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; margin-top: 16px;
}
.btn:disabled { opacity: .6; cursor: wait; }
.btn-primary { background: var(--cpx-green); color: white; }
.btn-secondary { background: white; color: var(--cpx-blue); border: 2px solid var(--cpx-blue); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.status { color: #4b5563; }
.status-error { color: #b91c1c; font-weight: 600; }
.status-ok { color: #166534; font-weight: 600; }
.warning { background: #fff7ed; border-left: 4px solid #d97706; padding: 10px 14px; border-radius: 6px; color: #7c2d12; }

.maturity { margin: 0 0 6px; }
.score { font-size: 30px; font-weight: 800; color: var(--cpx-blue); }
.level { font-size: 18px; font-weight: 700; color: #374151; margin-left: 8px; }

.priorities { padding-left: 20px; margin: 0; }
.priority { margin-bottom: 14px; }
.priority strong { display: block; font-size: 16px; }
.priority .meta, .priority .module { display: block; font-size: 14px; color: #4b5563; }
.priority .module { color: var(--cpx-blue); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
.kpi { background: #f5f7fa; border-radius: 8px; padding: 12px; text-align: center; }
.kpi-value { display: block; font-size: 22px; font-weight: 800; color: var(--cpx-blue); }
.kpi-label { font-size: 12px; color: #6b7280; }

details { margin-top: 12px; font-size: 14px; }
summary { cursor: pointer; font-weight: 600; color: var(--cpx-blue); }
.disclaimer { font-size: 12px; color: #6b7280; margin-top: 12px; }

/* Honeypot : visuellement masque par clip, jamais display:none ni decalage
   negatif — un bot doit pouvoir le remplir, et un decalage a gauche casse la
   mise en page en RTL (incident deja paye sur recruitment-apply.html). */
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-footer { text-align: center; padding: 20px; font-size: 13px; color: #6b7280; }

@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .area { grid-template-columns: 1fr 80px; }
  .unit { display: none; }
  .hero h2 { font-size: 26px; }
}

.hidden { display: none; }
