/* ============================================================
   SAPERE V6.3 — SAFE MODE
   Objectif :
   - Look éditorial SAPERE (Inter, noir, bleu)
   - ZÉRO conflit avec Elementor, tabs, modals, PDF, Jetpack
   ============================================================ */

/* ============================================================
   1. TYPOGRAPHIE GLOBALE
   ============================================================ */
html {
  font-size: clamp(17px, 1.2vw, 19px);
  scroll-behavior: smooth;
}

body {
  color: #111827;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  background: #ffffff;
}

/* ============================================================
   2. RESET SOFT (sans casser Elementor)
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  text-transform: none !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ============================================================
   3. TITRES SAPERE
   ============================================================ */

/* H1 */
h1, .elementor-heading-title.h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #000000;
  margin-bottom: 1.6rem;
}

/* H2 signature — barre noire */
.article-content h2,
.elementor-widget-html .article-content h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  color: #000000;
  margin-top: 3rem;
  margin-bottom: 1.4rem;
  padding-left: 1.2rem;
  border-left: 6px solid #000000;
  line-height: 1.2;
}

/* H3 — barre bleue */
.article-content h3,
.elementor-widget-html .article-content h3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  color: #1f2937;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #2563EB;
}

/* ============================================================
   4. TEXTE ÉDITORIAL
   ============================================================ */
.article-content {
  font-family: "Inter", sans-serif;
}

.article-content p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 1.5rem;
  text-align: left;
  font-weight: 300;
}

.article-content strong {
  color: #000000;
  font-weight: 700;
}

/* Citations */
.article-content blockquote {
  border-left: 4px solid #2563EB;
  background: #F9FAFB;
  padding: 2rem;
  font-style: italic;
  font-weight: 500;
  margin: 2.5rem 0;
}

/* ============================================================
   5. BADGES, CATEGORIES, META
   ============================================================ */
.ast-taxonomy-list a,
.entry-meta .cat-links a,
.post-categories a {
  background: #111827;
  color: #ffffff;
  border-radius: 2px;
  padding: 4px 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  border: none;
  font-family: "Inter", sans-serif;
  letter-spacing: .04em;
}

.ast-taxonomy-list a:hover,
.post-categories a:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

/* ============================================================
   6. LARGEURS — ne jamais casser Elementor
   ============================================================ */
.article-content,
.elementor-widget-html .article-content {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ============================================================
   7. SÉCURITÉ ELEMENTOR (ANTI-BUG VISUELS)
   NE JAMAIS TOUCHER display OU visibility
   ============================================================ */

.elementor-widget-html .article-content,
.elementor-widget-html .article-content * {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   8. FORMULAIRES / JETPACK
   ============================================================ */
.jetpack-subscribe-form,
.wp-block-jetpack-subscriptions {
  max-width: 520px;
  margin: 2rem auto;
  font-family: "Inter", sans-serif;
}

.jetpack-subscribe-form input,
.wp-block-jetpack-subscriptions input {
  font-family: "Inter", sans-serif;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  padding: 10px 14px;
}

/* ============================================================
   9. PRINT — compatible dossiers PDF
   ============================================================ */
@media print {
  body {
    background: white;
    color: black;
    font-size: 11pt;
  }

  .article-content h2 {
    border-left-color: black;
  }

  .article-content h3 {
    border-left-color: black;
  }

  .tabs-container,
  .btn-print {
    display: none !important;
  }
}