/* =============================================================================
 * Charte "Logo AD" pour Yopass (DaisyUI v5)
 * Chargé par index.html (copie générée par branding/build-public.sh)
 * Surcharge les deux thèmes par défaut : emerald (clair) et dim (sombre)
 * 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 {
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { font-family: var(--font-sans); }
h1, h2, h3, .card-title { font-family: "Space Grotesk", var(--font-sans); letter-spacing: -0.01em; }

/* --- Thème clair --- */
html[data-theme=emerald] {
  --color-base-100: #ffffff;
  --color-base-200: #f2f5f7;          /* Ivoire */
  --color-base-300: #dce6ed;
  --color-base-content: #0b1e30;      /* Nuit */
  --color-primary: #0f5fa8;           /* Bleu signal */
  --color-primary-content: #ffffff;
  --color-secondary: #2a8fd4;         /* Bleu flux */
  --color-secondary-content: #ffffff;
  --color-accent: #5fd0e6;            /* Cyan */
  --color-accent-content: #0b1e30;
  --color-neutral: #0b1e30;
  --color-neutral-content: #f2f5f7;
  --color-info: #2a8fd4;
  --color-info-content: #ffffff;
}

/* --- Thème sombre --- */
html[data-theme=dim] {
  --color-base-100: #11283d;
  --color-base-200: #0b1e30;          /* Nuit */
  --color-base-300: #1a3148;
  --color-base-content: #f2f5f7;      /* Ivoire */
  --color-primary: #5fd0e6;           /* Cyan */
  --color-primary-content: #0b1e30;
  --color-secondary: #2a8fd4;
  --color-secondary-content: #ffffff;
  --color-accent: #5fd0e6;
  --color-accent-content: #0b1e30;
  --color-neutral: #07141f;
  --color-neutral-content: #f2f5f7;
  --color-info: #5fd0e6;
  --color-info-content: #0b1e30;
}

/* --- Logo d'en-tête : @D horizontal à la place de l'icône + texte "Yopass" --- */
header a[href="/"] > img {
  content: url("/brand/logo.svg");
  width: auto !important;
  height: 32px !important;
}
html[data-theme=dim] header a[href="/"] > img { content: url("/brand/logo-white.svg"); }
header a[href="/"] > img + span { display: none; }
