/* Démo de l'API : invite de commande + carte (accueil et /apis.php) */
.api-demo { --term: #0f1320; --term-line: #2e3550; --term-text: #e6e9f2; --term-accent: #ffa94d; }
.api-map-wrap { position: relative; }
.api-prompt { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 6px 6px 16px; background: var(--term); border: 1px solid var(--term-line); border-radius: 12px; font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; transition: border-color .15s, box-shadow .15s; }
.api-prompt:focus-within { border-color: var(--term-accent); box-shadow: 0 0 0 3px rgba(255, 169, 77, .2); }
.prompt-sign { color: var(--term-accent); font-size: 22px; line-height: 1; font-weight: 700; }
.api-demo.is-loading .prompt-sign { animation: prompt-blink .8s steps(2) infinite; }
@keyframes prompt-blink { 50% { opacity: .2; } }
.api-prompt input { flex: 1; min-width: 0; margin: 0; padding: 10px 4px; font: inherit; font-size: 15px; color: var(--term-text); background: transparent; border: 0; outline: none; caret-color: var(--term-accent); }
.api-prompt input::placeholder { color: #6f7896; }
.prompt-rayon { display: flex; align-items: center; gap: 6px; margin: 0; width: auto; font-weight: normal; font-size: 12px; color: #6f7896; }
.prompt-rayon select { margin: 0; padding: 6px 4px; font: inherit; font-size: 13px; color: var(--term-text); background: #1b2133; border: 1px solid var(--term-line); border-radius: 6px; }
.api-prompt button { flex: none; width: 42px; height: 40px; color: var(--term); background: var(--term-accent); border: 0; border-radius: 8px; cursor: pointer; font-size: 15px; }
.api-prompt button:hover { filter: brightness(1.08); }
.api-demo .addr-list { position: absolute; z-index: 1000; left: 0; right: 0; top: 56px; margin: 0; padding: 4px 0; list-style: none; background: #fff; border: 1px solid #ccd; border-radius: 10px; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .5); font-family: "Inter", system-ui, sans-serif; }
.api-demo .addr-list li { padding: 8px 14px; color: #1d2230; cursor: pointer; }
.api-demo .addr-list li small { display: block; font-size: 12px; color: #889; }
.api-demo .addr-list li:hover, .api-demo .addr-list li.is-active { background: #fff4e6; }
.api-results { margin-top: 18px; }
.api-results table { width: 100%; margin: 0; border-collapse: collapse; text-align: left; background: #fff; font-size: 14px; }
.api-results th, .api-results td { padding: 9px 10px; border-bottom: 1px solid #e6e4de; width: auto; }
.api-results th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #5d6475; }
.api-results tbody tr { cursor: pointer; }
.api-results tbody tr:hover, .api-results tbody tr:focus { background: #fff4e6; outline: none; }
.api-map-wrap { display: flex; flex-direction: column; min-height: 380px; }
.api-map { flex: 1; min-height: 380px; border-radius: 14px; overflow: hidden; background: #2a3042; }
.api-map-placeholder { height: 100%; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 30px; text-align: center; color: #9aa1b5;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 60% 40%, rgba(232, 89, 12, .25), transparent 55%); }
.api-map-placeholder i { font-size: 48px; color: #ffa94d; }
.api-map-placeholder p { max-width: 300px; margin: 0; }
.api-map .leaflet-popup-content { font-family: var(--sans); font-size: 13px; line-height: 1.5; color: var(--dark); }
.api-status { min-height: 1.4em; margin: 10px 0 0 !important; font-size: 14px; color: #9aa1b5; }