/* ==========================================================================
   PROTOKIN — MATRICE GRAPHIQUE (SYSTEME ÉPISTÉMIQUE)
   VERSION STABILISÉE (DOCSIFY FULL PAGE)
   ========================================================================== */

:root {
  /* ================================
     PALETTE
     ================================ */
  --theme-color: #1a2a3a;
  --text-color-main: #2c3e50;
  --text-color-muted: #7f8c8d;
  --border-color: #eef2f5;
  --accent-color: #3498db;

  /* ================================
     REGIMES
     ================================ */
  --regime-physique: #3498db;
  --regime-cognitif: #9b59b6;
  --regime-biologique: #2ecc71;
  --regime-normatif: #e67e22;
  --regime-meta: #e74c3c;

  /* ================================
     TYPOGRAPHIE
     ================================ */
  --font-global: 'Noto Serif', Georgia, serif;
  --font-interface: 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --base-font-size: 16px;
  --content-max-width: 850px;
}

/* ==========================================================================
   RESET DOCSIFY (CRUCIAL)
   ========================================================================== */

/* supprime layout sidebar docsify */
.sidebar {
  display: none !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* supprime nav haut */
.app-nav {
  display: none !important;
}

/* supprime zone search injectée */
.search {
  display: none !important;
}

/* force layout sans colonne */
body {
  display: block !important;
  overflow-x: hidden !important;
  background: #fff;
}

/* supprime offset layout docsify */
.content {
  left: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
  max-width: var(--content-max-width) !important;
  padding: 60px 40px !important;
}

/* wrapper docsify */
.markdown-section {
  max-width: var(--content-max-width) !important;
  margin: 0 auto !important;
}

/* ==========================================================================
   BASE TYPOGRAPHIE
   ========================================================================== */

body {
  font-family: var(--font-global);
  color: var(--text-color-main);
  font-size: var(--base-font-size);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TITRES
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-interface);
  color: var(--theme-color);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.65em;
  margin-top: 2.5rem;
  padding-left: 10px;
  border-left: 3px solid var(--theme-color);
}

h3 {
  font-size: 1.3em;
  margin-top: 2rem;
}

/* ==========================================================================
   LIENS
   ========================================================================== */

a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px dashed rgba(52,152,219,0.4);
}

a:hover {
  color: var(--theme-color);
  border-bottom-color: var(--theme-color);
}

/* ==========================================================================
   BLOCS CONCEPTUELS
   ========================================================================== */

blockquote {
  border-left: 4px solid var(--theme-color);
  background: #fcfdfe;
  padding: 15px 20px;
  margin: 2em 0;
  color: #4a5a6a;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   CODE
   ========================================================================== */

code {
  font-family: 'Fira Code', monospace;
  font-size: 0.95em;
}

pre {
  background: #f6f8fa;
  border-left: 3px solid var(--accent-color);
  padding: 12px;
  overflow-x: auto;
}

/* ==========================================================================
   BLOCS SÉMANTIQUES PROTOKIN
   ========================================================================== */

.tension {
  border-left: 4px solid var(--regime-meta);
  background: #fff5f5;
  padding: 12px 15px;
  margin: 1em 0;
}

.transition {
  border-left: 4px solid var(--regime-biologique);
  background: #f4fff7;
  padding: 12px 15px;
  margin: 1em 0;
}

.regime {
  border-left: 4px solid var(--regime-cognitif);
  background: #f8f7ff;
  padding: 12px 15px;
  margin: 1em 0;
}

/* ==========================================================================
   MATH
   ========================================================================== */

.katex-display {
  overflow-x: auto;
  padding: 15px 0;
  margin: 1.5em 0;
  background: #fafbfc;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   LOADER
   ========================================================================== */

#app {
  font-family: var(--font-interface);
  text-align: center;
  margin-top: 20%;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-color-muted);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  50% { opacity: 1; }
  100% { opacity: 0.5; }
}

/* ==========================================================================
   HEADER PROTOKIN
   ========================================================================== */

.protokin-logo-title {
  font-family: var(--font-interface);
  font-weight: 800;
  letter-spacing: 4px;
  font-size: 1.3em;
  color: var(--theme-color);
}

.protokin-logo-subtitle {
  font-family: var(--font-interface);
  font-size: 0.65em;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-color-muted);
}

/* ==========================================================================
   HR
   ========================================================================== */

hr {
  border: none;
  border-top: 1px solid #f0f2f5;
  margin: 2.5em 0;
}

/* ==========================================================================
   ACCESSIBILITÉ
   ========================================================================== */

a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media screen and (max-width: 768px) {
  :root {
    --base-font-size: 15px;
  }

  .content {
    padding: 25px 15px !important;
  }
}



.sidebar,
.sidebar-toggle,
.app-nav,
.navbar {
  display: none !important;
}

.content {
  max-width: 850px;
  margin: 0 auto !important;
  padding: 60px 40px !important;
}
