/* =========================================================================
 * Charte Nicomatic Senegal, partagee par les ecrans NicoHelper.
 *
 * Meme palette et meme typographie que le CRA et Geotrace : bleu de marque
 * #009EE0, gris « ink », Helvetica. Un seul fichier de jetons pour que la page
 * de presentation, la console client et la supervision se ressemblent enfin.
 *
 * La variable --preferred-color reste la couleur choisie par chaque client pour
 * SON chatbot : elle ne doit jamais colorer le site lui-meme.
 * ========================================================================= */

:root {
  /* La palette officielle, les dix paliers de chaque degrade et les quatre gris.
     Les noms suivent la convention du CRA pour qu un meme jeton designe la meme
     teinte d un produit a l autre. */
  --brand-50: #e5f5fc;
  --brand-100: #ccecf9;
  --brand-200: #b2e2f6;
  --brand-300: #99d8f3;
  --brand-350: #80cfef;
  --brand-375: #66c5ec;
  --brand-400: #4cbbe9;
  --brand-450: #33b1e6;
  --brand-475: #19a8e3;
  --brand-500: #009ee0;
  --brand-550: #008eca;
  --brand-600: #007eb3;
  --brand-650: #006f9d;
  --brand-700: #005f86;
  --brand-750: #004f70;
  --brand-800: #003f5a;
  --brand-850: #002f43;
  --brand-900: #00202d;
  --brand-950: #001016;

  --ink-50: #f8f9fa;
  --ink-200: #dddfe0;
  --ink-400: #b1b5b9;
  --ink-700: #4b4d4f;
  --ink-900: #00202d;

  --ok-bg: #dcfce7;
  --ok-fg: #166534;
  --warn-bg: #fef9c3;
  --warn-fg: #854d0e;
  --danger-bg: #fee2e2;
  --danger-fg: #991b1b;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 32, 45, 0.08);
  --font: "Helvetica Now Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.nm { font-family: var(--font); color: var(--ink-900); background: #fff; margin: 0; }
.nm *, .nm *::before, .nm *::after { box-sizing: border-box; }
/*
 * Les liens prennent le bleu de marque, SAUF les boutons : sinon cette regle
 * (specificite superieure) repeint le texte blanc des boutons en bleu, et on
 * obtient du bleu sur bleu illisible.
 */
.nm a:not(.nm-btn):not(.nm-btn-outline) { color: var(--brand-600); }
.nm h1, .nm h2, .nm h3, .nm h4 { margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
.nm h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 700; }
.nm h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; font-weight: 700; }
.nm h3 { font-size: 20px; font-weight: 700; }
.nm p { line-height: 1.6; }

.nm-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.nm-section { padding: 84px 0; }
.nm-section.alt { background: var(--ink-50); }
.nm-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px; }
.nm-lead { font-size: 18px; color: var(--ink-700); max-width: 62ch; }

/* ------------------------------------------------------------------ barre */
.nm-nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-200); }
.nm-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.nm-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-900); font-weight: 700; font-size: 20px; }
/* Le logo remplace le mot-symbole : la hauteur commande, la largeur suit le
   dessin, sans quoi le rapport du fichier serait ecrase. */
.nm-brand img { height: 32px; width: auto; display: block; }
.nm-brand span { font-size: 11px; letter-spacing: 0.28em; color: var(--brand-600); text-transform: uppercase; }
.nm-nav-links { display: flex; align-items: center; gap: 26px; }
/* Meme precaution que plus haut : la regle de lien ne doit pas repeindre les boutons. */
.nm-nav-links a:not(.nm-btn):not(.nm-btn-outline) { color: var(--ink-700); text-decoration: none; font-size: 15px; font-weight: 500; }
.nm-nav-links a:not(.nm-btn):not(.nm-btn-outline):hover { color: var(--brand-600); }
.nm-nav-links a.nm-btn { text-decoration: none; }
@media (max-width: 860px) { .nm-nav-links a:not(.nm-btn) { display: none; } }

/* --------------------------------------------------------------- boutons */
.nm-btn, .nm-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
/*
 * Le bleu de marque #009EE0 ne porte pas de texte blanc : le contraste tombe a
 * 3 pour 1, sous le seuil lisible. Les boutons pleins prennent donc le bleu
 * fonce de la meme gamme (#005F86, environ 7 pour 1), le bleu clair restant
 * reserve aux aplats, aux icones et aux liseres.
 */
.nm-btn { background: var(--brand-700); color: #fff; }
.nm-btn:hover { background: var(--brand-900); }
.nm-btn[disabled] { background: var(--ink-200); color: var(--ink-700); cursor: default; }
.nm-btn-outline { background: #fff; color: var(--brand-700); border-color: var(--brand-200); }
.nm-btn-outline:hover { border-color: var(--brand-500); }
.nm-btn-lg { min-height: 54px; padding: 15px 30px; font-size: 16px; }

/* ----------------------------------------------------------------- cartes */
.nm-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius); padding: 24px; }
.nm-grid { display: grid; gap: 20px; }
.nm-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.nm-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.nm-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.nm-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.nm-badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.nm-badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.nm-badge.danger { background: var(--danger-bg); color: var(--danger-fg); }
.nm-badge.muted { background: var(--ink-50); color: var(--ink-700); }

/* --------------------------------------------------------------- tableaux */
.nm-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.nm-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-700); background: var(--ink-50); padding: 10px 12px; }
.nm-table td { padding: 11px 12px; border-top: 1px solid var(--ink-50); }
.nm-table tbody tr:hover td { background: var(--ink-50); }
.nm-table-wrap { border: 1px solid var(--ink-200); border-radius: var(--radius); overflow: hidden; }
.nm-tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- jauges */
.nm-bar { height: 6px; border-radius: 999px; background: var(--ink-200); overflow: hidden; margin-top: 10px; }
.nm-bar > span { display: block; height: 100%; background: var(--brand-500); }
.nm-bar.over > span { background: #991b1b; }

/* -------------------------------------------------------------- formules */
.nm-plan { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.nm-plan .price { font-size: 32px; font-weight: 700; }
.nm-plan .price small { font-size: 14px; font-weight: 400; color: var(--ink-700); }
.nm-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; color: var(--ink-700); }
.nm-plan li::before { content: "\2713"; color: var(--brand-600); font-weight: 700; margin-right: 9px; }
.nm-plan li.off { color: var(--ink-400); }
.nm-plan li.off::before { content: "\2715"; color: var(--ink-200); }
.nm-plan .nm-btn, .nm-plan .nm-btn-outline { margin-top: auto; }
.nm-plan.featured { border-color: var(--brand-500); box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ pied */
.nm-footer { background: var(--brand-900); color: #fff; padding: 48px 0 32px; }
.nm-footer a:not(.nm-btn):not(.nm-btn-outline) { color: var(--brand-200); text-decoration: none; }
.nm-footer .fine { color: #b1b5b9; font-size: 13px; margin-top: 24px; }
