/* =============================================================================
 * Charte "Logo AD" pour BentoPDF (Tailwind v4)
 * Injecté dans chaque page par nginx (sub_filter, cf. branding/nginx.conf)
 * Les utilitaires Tailwind lisent --color-<teinte>-<n> : on redéfinit les échelles.
 * Palette : Nuit #0B1E30 · Bleu signal #0F5FA8 · Bleu flux #2A8FD4 · Cyan #5FD0E6 · Ivoire #F2F5F7
 * ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/brand/fonts/IBMPlexSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/brand/fonts/IBMPlexSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/brand/fonts/SpaceGrotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/brand/fonts/SpaceGrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root, :host {
  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;

  /* gris teintés "nuit" : fond = 900, cartes/barre = 800, bordures = 700 */
  --color-gray-50: #f2f5f7;
  --color-gray-100: #e8eef2;
  --color-gray-200: #dce6ed;
  --color-gray-300: #a8c4d6;
  --color-gray-400: #8fa9bc;
  --color-gray-500: #6a8497;
  --color-gray-600: #4a6072;
  --color-gray-700: #23405a;
  --color-gray-800: #11283d;
  --color-gray-900: #0b1e30;
  --color-gray-950: #07141f;

  /* accent (indigo d'origine) : Cyan / Bleu flux / Bleu signal */
  --color-indigo-50: #eef5fb;
  --color-indigo-100: #d6e7f5;
  --color-indigo-200: #b3d2ec;
  --color-indigo-300: #8fe0ee;
  --color-indigo-400: #5fd0e6;
  --color-indigo-500: #2a8fd4;
  --color-indigo-600: #0f5fa8;
  --color-indigo-700: #0c4d89;
  --color-indigo-800: #0b3a63;
  --color-indigo-900: #0b2c4a;
}

h1, h2, h3 { font-family: "Space Grotesk", var(--font-sans); letter-spacing: -0.01em; }

/* --- Logo : @D clair à la place de l'icône + "BentoPDF" --- */
#home-logo img {
  content: url("/brand/logo-white.svg");
  width: auto !important;
  height: 30px !important;
}
#home-logo img + span { display: none; }

/* --- Couleurs écrites en dur dans le CSS de BentoPDF (hors variables Tailwind) --- */
body { background-color: var(--color-gray-900); color: var(--color-gray-300); font-family: var(--font-sans); }
.tool-card, .feature-card, .testimonial-card, .pdf-panel, .compare-viewer-wrapper.overlay-mode {
  background-color: var(--color-gray-800);
  border-color: var(--color-gray-700);
}
.tool-card:hover { border-color: #5fd0e6; }
.pill, .shortcut-key { background-color: var(--color-gray-700); }
.cta-button, .btn-gradient { background: #0f5fa8; color: #fff; }
.cta-button:hover, .btn-gradient:hover { background: #2a8fd4; }
.marker-slanted:before { background: linear-gradient(120deg, #2a8fd4, #5fd0e6); }
.solid-spinner { border-color: var(--color-gray-700); border-bottom-color: #5fd0e6; }
.sortable-ghost { border-color: #5fd0e6; }
.saved-signature.selected { border-color: #5fd0e6; box-shadow: 0 0 10px rgba(95, 208, 230, 0.5); }
.faq-item.open .faq-question, .legal-content h3, .legal-content a { color: #5fd0e6; }
.legal-content a:hover { color: #8fe0ee; }
.shortcut-input:focus { border-color: #2a8fd4; box-shadow: 0 0 0 2px rgba(42, 143, 212, 0.2); }
::-webkit-scrollbar-track, #shortcuts-list::-webkit-scrollbar-track { background: var(--color-gray-800); }
::-webkit-scrollbar-thumb { background: #2a8fd4; }
::-webkit-scrollbar-thumb:hover { background: #0f5fa8; }
