/* skizoinvest.site — feuille de style partagée (chargée en dernier sur chaque page).
   Contient : polices hébergées localement, navigation mobile compacte, bouton « Partager »
   compact, lien d'évitement, focus clavier, cibles tactiles. Les couleurs/variables restent
   définies dans chaque page. */

/* ---------- Polices (hébergées ici : aucune requête vers Google) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/fraunces-latin-opsz.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-600.woff2") format("woff2"); }

/* ---------- Lien d'évitement ---------- */
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink, #142521); color: var(--paper, #f3f5f0);
  padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Focus clavier visible partout (les contrôles qui ont déjà leur propre style le gardent) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent, #246ec9); outline-offset: 2px; }
main:focus, #main:focus { outline: none; }

/* ---------- Navigation : groupe de liens (transparent en desktop) ---------- */
.nav-links { display: contents; }
.brand strong { white-space: nowrap; }

/* ---------- Mobile : en-tête compact (marque + FR/EN + thème, puis liens défilants) ---------- */
@media (max-width: 680px) {
  nav.topbar { position: static; }
  .topbar-inner { padding: 10px 16px 6px; gap: 8px 10px; flex-wrap: wrap; justify-content: flex-start; }
  .brand { display: block; flex: 1 1 0; min-width: 0; font-size: 11.5px; line-height: 1.25; letter-spacing: .03em; }
  .brand strong { font-size: 13px; }
  .site-nav { display: contents; }
  .lang-toggle { order: 1; }
  .theme-toggle-btn { order: 2; }
  .nav-links { order: 3; flex: 0 0 100%; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-padding: 0 16px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 30px), transparent 100%); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links .item { flex: 0 0 auto; }
  /* Bouton « Partager » : pastille d'icône seule, pour ne plus recouvrir le contenu */
  button.share-pill { right: 14px; bottom: 14px; width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; font-size: 0; }
  button.share-pill span { display: none; }
  button.share-pill::before { content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7.5 7.5 12 3l4.5 4.5M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3M7.5 7.5 12 3l4.5 4.5M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-7'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* ---------- Cibles tactiles confortables (écrans tactiles / petits écrans) ---------- */
@media (max-width: 680px), (pointer: coarse) {
  .segmented button { min-height: 38px; padding-left: 14px; padding-right: 14px; }
  .theme-toggle-btn { width: 40px; height: 40px; }
  .site-nav a.item, .site-nav span.item { padding: 10px 14px; }
  .back-link { display: inline-block; padding: 12px 0; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
  .site-footer a, .disclaimer a { display: inline-block; padding: 8px 0; }
  .pill, .chip, .g-link, .link-btn, #howItWorksBtn { min-height: 38px; }
  #howItWorksBtn { padding-top: 8px; padding-bottom: 8px; }
}
