/* Portail développeurs NS Consulting : à la charte de ns-consult.com. Aucune ressource extérieure. */

@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-display: swap; src: url("/polices/plus-jakarta-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-display: swap; src: url("/polices/plus-jakarta-sans-600.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url("/polices/plus-jakarta-sans-700.ttf") format("truetype"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url("/polices/plus-jakarta-sans-800.ttf") format("truetype"); }

:root {
  color-scheme: light;
  --fond: #f4f7fa;
  --carte: #ffffff;
  --fond-doux: #f8fafc;
  --bord: #dce4ec;
  --bord-champ: #c9d6e2;
  --texte: #1f3446;
  --titre: #142c3d;
  --doux: #4f6476;
  --nuit: #142c3d;
  --nuit-2: #1b3a50;
  --sur-nuit: #ffffff;
  --nuit-doux: #a9c1d4;
  --or: #f2b33d;
  --acier: #3b5c75;
  --primaire: #142c3d;
  --primaire-survol: #23465f;
  --sur-primaire: #ffffff;
  --focus: #7fa7c9;
  --code-fond: #0f2231;
  --code-texte: #e3edf5;
  --ok-fond: #e4f3ea; --ok: #126b3f;
  --av-fond: #fcefd8; --av: #7e4a00;
  --ko-fond: #fce9e7; --ko: #a61b12;
  --neutre-fond: #edf1f5; --neutre: #41566a;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #0d1b26;
    --carte: #13283a;
    --fond-doux: #102230;
    --bord: #24435a;
    --bord-champ: #33566f;
    --texte: #dbe6ef;
    --titre: #f3f7fa;
    --doux: #9db3c5;
    --primaire: #f2b33d;
    --primaire-survol: #f5c463;
    --sur-primaire: #142c3d;
    --code-fond: #091620;
    --ok-fond: #12382a; --ok: #7fd6a8;
    --av-fond: #3d2c0c; --av: #f5c97a;
    --ko-fond: #431b18; --ko: #f4a39b;
    --neutre-fond: #1c3346; --neutre: #b4c6d4;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--texte); font: 400 16px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; }
a { color: var(--acier); }
@media (prefers-color-scheme: dark) { a { color: #a9cbe3; } }
h1, h2, h3 { color: var(--titre); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.cache { display: none !important; }

/* Bandeau */
.bandeau { background: var(--nuit); color: var(--sur-nuit); }
.bandeau-int { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo img { height: 34px; width: auto; display: block; }
.logo span { font-size: .8rem; color: var(--nuit-doux); border-left: 1px solid #2f5470; padding-left: 12px; }
.bandeau nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.bandeau nav a { color: var(--sur-nuit); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.bandeau nav a:hover { background: var(--nuit-2); }
.bandeau nav a.bouton-or { background: var(--or); color: #142c3d; }
.bandeau nav a.bouton-or:hover { background: #f5c463; }

/* Accueil */
.heros { background: var(--nuit); color: var(--sur-nuit); padding: 56px 16px 72px; }
.heros-int { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.heros h1 { color: #fff; }
.heros p { color: #c5d5e2; font-size: 1.1rem; max-width: 34em; }
.heros .filet { width: 64px; height: 4px; background: var(--or); border-radius: 2px; margin: 0 0 20px; }
.heros pre { background: var(--code-fond); color: var(--code-texte); border: 1px solid #23465f; border-radius: 12px; padding: 18px; overflow-x: auto; margin: 0; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.section { max-width: 1120px; margin: 0 auto; padding: 56px 16px; }
.section > p.intro { color: var(--doux); max-width: 44em; }
.grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grille-4 { grid-template-columns: repeat(4, 1fr); }
.etapes { counter-reset: etape; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.etapes li { counter-increment: etape; background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 20px; }
.etapes li::before { content: counter(etape); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--nuit); color: #fff; font-weight: 800; margin-bottom: 10px; }
.pied { border-top: 1px solid var(--bord); color: var(--doux); font-size: .9rem; }
.pied-int { max-width: 1120px; margin: 0 auto; padding: 24px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Cartes, boutons, champs */
.carte { background: var(--carte); border: 1px solid var(--bord); border-radius: 14px; padding: 20px; }
.carte h3 { margin-bottom: .35em; }
.carte p:last-child { margin-bottom: 0; }
.carte .doux, .doux { color: var(--doux); }
.bouton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font-family: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none; background: var(--primaire); color: var(--sur-primaire); }
.bouton:hover { background: var(--primaire-survol); }
.bouton.or { background: var(--or); color: #142c3d; }
.bouton.or:hover { background: #f5c463; }
.bouton.second { background: transparent; color: var(--titre); border-color: var(--bord-champ); }
.bouton.second:hover { background: var(--fond-doux); }
.heros .bouton.second { color: #fff; border-color: #3b5c75; }
.heros .bouton.second:hover { background: var(--nuit-2); }
.bouton:disabled { opacity: .55; cursor: not-allowed; }
.petit { padding: 6px 12px; font-size: .85rem; }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--titre); margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--bord-champ); border-radius: 10px; background: var(--carte); color: var(--texte); font: inherit;
}
.avec-bouton { position: relative; }
.avec-bouton input { padding-right: 96px; }
.avec-bouton .voir { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); border: 0; background: transparent; color: var(--acier); font-family: inherit; font-weight: 600; font-size: .85rem; line-height: 1; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.avec-bouton .voir:hover { background: var(--fond-doux); }
.formulaire-plein { padding: 24px; margin-top: 8px; }
.formulaire-plein > label:first-child { margin-top: 0; }
.formulaire-plein .actions { margin-top: 22px; }
.bouton.large { width: 100%; padding: 14px 18px; font-size: 1rem; }
.centre { text-align: center; }
.bas-formulaire { text-align: center; color: var(--doux); margin: 14px 0 0; font-size: .95rem; }
.bas-formulaire a { font-weight: 700; }
.case { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.case input { margin-top: 5px; }
.aide { font-size: .85rem; color: var(--doux); margin-top: 6px; }

/* Espace du développeur */
.page { max-width: 1120px; margin: 0 auto; padding: 32px 16px 64px; }
.etroit { max-width: 460px; margin: 40px auto; }
.page > .carte, .page > .grille, .page > div > .secret { margin-top: 16px; }
.lecture { max-width: 760px; }
.message { border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: .95rem; }
.message.ok { background: var(--ok-fond); color: var(--ok); }
.message.ko { background: var(--ko-fond); color: var(--ko); }
.message.info { background: var(--neutre-fond); color: var(--neutre); }
.message.av { background: var(--av-fond); color: var(--av); }
.secret { background: var(--av-fond); border: 1px solid #e7c27a; border-radius: 12px; padding: 16px; margin: 16px 0; }
.secret code { display: block; background: var(--carte); color: var(--titre); padding: 10px 12px; border-radius: 8px; margin: 8px 0; word-break: break-all; font-size: .95rem; }
.onglets { display: flex; gap: 4px; border-bottom: 1px solid var(--bord); margin: 20px 0; overflow-x: auto; }
.onglets a { padding: 10px 14px; text-decoration: none; color: var(--doux); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.onglets a.on { color: var(--titre); border-bottom-color: var(--or); }
.ligne { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ligne > .pousse { margin-left: auto; }
.tableau { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tableau th { text-align: left; color: var(--doux); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--bord); }
.tableau td { padding: 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
.defile { overflow-x: auto; }
.pastille { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pastille.ok { background: var(--ok-fond); color: var(--ok); }
.pastille.ko { background: var(--ko-fond); color: var(--ko); }
.pastille.av { background: var(--av-fond); color: var(--av); }
.pastille.neutre { background: var(--neutre-fond); color: var(--neutre); }
.points { list-style: none; padding: 0; margin: 0; }
.points li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--bord); }
.points li:last-child { border-bottom: 0; }
.points .etat { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.etat.ok { background: var(--ok-fond); color: var(--ok); }
.etat.ko { background: var(--ko-fond); color: var(--ko); }
.etat.neutre { background: var(--neutre-fond); color: var(--neutre); }
.accord h3 { margin-top: 1.2em; }
.accord ol { padding-left: 1.2em; }
/* Page des formules (tarifs) */
.tarifs-tete { text-align: center; max-width: 640px; margin: 8px auto 28px; }
.tarifs-tete h2 { font-size: 1.9rem; }
.devises { display: inline-flex; gap: 4px; padding: 4px; margin-top: 6px; border: 1px solid var(--bord); border-radius: 999px; background: var(--carte); }
.devises button { border: 0; background: transparent; color: var(--doux); font-family: inherit; font-weight: 700; font-size: .9rem; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.devises button.on { background: var(--nuit); color: #fff; }
@media (prefers-color-scheme: dark) { .devises button.on { background: var(--or); color: #142c3d; } }
.tarifs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.tarif { position: relative; display: flex; flex-direction: column; background: var(--carte); border: 1px solid var(--bord); border-radius: 18px; padding: 28px 24px 24px; }
.tarif h3 { font-size: 1.2rem; margin: 0; }
.tarif .accroche { color: var(--doux); font-size: .92rem; margin: 4px 0 18px; min-height: 1.5em; }
.tarif .montant { display: flex; align-items: flex-end; gap: 8px; color: var(--titre); }
.tarif .chiffre { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.tarif .unite { font-size: .8rem; font-weight: 600; color: var(--doux); line-height: 1.25; padding-bottom: 3px; }
.tarif .facturation { margin: 12px 0 4px; font-weight: 600; color: var(--texte); font-size: .95rem; }
.tarif .economie-bloc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 20px; min-height: 28px; }
.tarif .economie-detail { font-size: .85rem; color: var(--doux); }
.tarif.vedette .economie-detail { color: #a9c1d4; }
.tarifs + .aide { margin-top: 18px; }
.tarif .economie { display: inline-block; padding: 3px 10px; white-space: nowrap; border-radius: 999px; background: var(--ok-fond); color: var(--ok); font-size: .82rem; font-weight: 700; }
.tarif .economie.vide { background: var(--neutre-fond); color: var(--neutre); }
.tarif .inclus { list-style: none; padding: 20px 0 0; margin: 22px 0 0; border-top: 1px solid var(--bord); display: grid; gap: 10px; font-size: .92rem; }
.tarif .inclus li { position: relative; padding-left: 26px; }
.tarif .inclus li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ok-fond); color: var(--ok); font-size: .72rem; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.tarif.vedette { background: var(--nuit); border: 2px solid var(--or); color: #dbe6ef; box-shadow: 0 18px 40px -18px rgba(20, 44, 61, .55); }
.tarif.vedette h3, .tarif.vedette .montant { color: #fff; }
.tarif.vedette .accroche, .tarif.vedette .unite { color: #a9c1d4; }
.tarif.vedette .facturation { color: #fff; }
.tarif.vedette .economie { background: var(--or); color: #142c3d; }
.tarif.vedette .inclus { border-top-color: #2f5470; }
.tarif.vedette .inclus li::before { background: var(--or); color: #142c3d; }
.ruban { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--or); color: #142c3d; font-size: .78rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.faq { max-width: 760px; margin: 48px auto 0; }
.faq h2 { text-align: center; margin-bottom: 18px; }
.faq details { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--titre); }
.faq details p { margin: 10px 0 0; color: var(--doux); }

@media (max-width: 860px) {
  .heros-int, .grille, .grille-4, .etapes, .tarifs { grid-template-columns: 1fr; }
  .tarifs { gap: 28px; }
  .heros { padding: 36px 16px 48px; }
  .logo span { display: none; }
  .bandeau nav a:not(.bouton-or) { display: none; }
  .bandeau nav a.toujours { display: inline-block; }
  .bandeau-int { gap: 10px; }
  .logo img { height: 26px; }
  .bandeau nav { gap: 4px; }
  .bandeau nav a { font-size: .85rem; padding: 7px 9px; }
}
@media (max-width: 480px) {
  /* Petit écran : un seul lien dans le bandeau ; « Créer un compte » reste dans la page. */
  .bandeau nav a.toujours + a.bouton-or { display: none; }
}
.secret-ligne { margin-top: 12px; }
.secret-ligne code { user-select: all; }
