/* ============================================================
   DOAKEN — MOBILE BLOG (upgrade lecture article ≤ 768px)
   ------------------------------------------------------------
   Chargé APRÈS blog-styles.css + mobile-global.css sur les
   articles /blog/*. Aucun JS, aucune modif HTML. Surcharge CSS
   pure pour transformer la lecture article en expérience
   premium type Medium / Stripe blog.

   Tokens DOAKEN repris : --bleu-nuit:#001A3D, --bleu-glace:#DCE9F7,
   --dore:#F4DCB8, --accent:#FF6B35, --marine:#003D7A.
   ============================================================ */

@media (max-width: 768px) {

  /* ---------- 0. TOKENS LOCAUX (scope mobile-blog) ---------- */
  :root {
    --mb-bleu-nuit: #001A3D;
    --mb-bleu-glace: #DCE9F7;
    --mb-dore: #F4DCB8;
    --mb-accent: #FF6B35;
    --mb-marine: #003D7A;
    --mb-ink: #1a2433;
    --mb-ink-soft: #4a5563;
    --mb-bg: #FFFFFF;
    --mb-bg-soft: #FAFBFC;
    --mb-border: rgba(0, 26, 61, 0.08);
    --mb-shadow-sm: 0 2px 8px rgba(0, 26, 61, 0.06);
    --mb-shadow-md: 0 8px 24px rgba(0, 26, 61, 0.08);
    --mb-shadow-lg: 0 16px 48px rgba(0, 26, 61, 0.12);
  }

  /* ---------- 1. RESET DE FOND : marges horizontales propres ---------- */
  body.article-page,
  body {
    background: var(--mb-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  /* ---------- 2. TYPOGRAPHIE PREMIUM (lecture) ---------- */
  body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--mb-ink);
    letter-spacing: -0.003em;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: 'Sentient', 'Geist', Georgia, serif;
    font-weight: 500;
    color: var(--mb-bleu-nuit);
    text-wrap: balance;
    -webkit-hyphens: none;
    hyphens: none;
  }

  h1 {
    font-size: clamp(26px, 7vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em !important;
    margin-bottom: 16px;
  }
  h2 {
    font-size: clamp(22px, 5.8vw, 28px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin-top: 40px !important;
    margin-bottom: 14px;
  }
  h3 {
    font-size: clamp(18px, 4.8vw, 21px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin-top: 28px !important;
    margin-bottom: 10px;
  }
  h4 { font-size: 17px !important; line-height: 1.3 !important; }

  p, li {
    font-size: 16px;
    line-height: 1.68;
    color: var(--mb-ink);
  }
  p { margin-bottom: 18px; }

  /* Lead paragraphe : un cran au-dessus */
  .lead, p.lead {
    font-size: 18px !important;
    line-height: 1.55 !important;
    color: var(--mb-bleu-nuit) !important;
    font-weight: 450;
    margin-bottom: 22px;
  }

  /* Liens inline : soulignement discret + couleur accent au tap */
  .editorial a,
  article a,
  p a {
    color: var(--mb-marine);
    text-decoration: underline;
    text-decoration-color: rgba(0, 61, 122, 0.3);
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.15);
  }
  .editorial a:active,
  article a:active,
  p a:active {
    color: var(--mb-accent);
    text-decoration-color: var(--mb-accent);
  }

  strong, b { color: var(--mb-bleu-nuit); font-weight: 600; }

  /* ---------- 3. NAV : compact et lisible ---------- */
  #navbar {
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--mb-border);
  }
  #navbar .nav-logo-iso span {
    font-size: 18px !important;
  }

  /* Progress bar : plus visible */
  .progress, .reading-progress {
    height: 2.5px !important;
    background: var(--mb-accent) !important;
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
  }

  /* ---------- 4. HERO : recadrage mobile ---------- */
  .hero {
    min-height: 70vh !important;
    padding: 80px 20px 40px !important;
  }
  .hero-content {
    padding: 0 !important;
  }
  .hero h1 {
    font-size: clamp(28px, 7.5vw, 36px) !important;
    line-height: 1.1 !important;
    color: #fff !important;
  }
  .hero h1 .hl {
    color: var(--mb-accent) !important;
  }
  .hero-sub, .hero p {
    font-size: 16px !important;
    line-height: 1.55 !important;
    margin-top: 20px !important;
  }
  .hero-tag {
    font-size: 12px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px !important;
  }
  .hero-meta {
    font-size: 13px !important;
    margin-top: 18px;
    opacity: 0.85;
  }
  .hero-scroll { display: none !important; }

  /* Hero image article : full bleed sobre */
  .article-hero-image {
    margin: 0 !important;
  }
  .article-hero-image img {
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* ---------- 5. STAT STRIP : empilé, soigné ---------- */
  .stat-strip {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 28px 20px !important;
    background: var(--mb-bleu-glace) !important;
    border-top: 1px solid var(--mb-border);
    border-bottom: 1px solid var(--mb-border);
  }
  .stat-strip-item {
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(0, 26, 61, 0.08);
    text-align: center;
    width: 100%;
  }
  .stat-strip-item:last-child { border-bottom: none; }
  .stat-strip-item .stat-val {
    font-size: 32px !important;
    font-family: 'Sentient', serif !important;
    color: var(--mb-bleu-nuit) !important;
    display: block;
    margin-bottom: 4px;
  }
  .stat-strip-item .stat-label {
    font-size: 13px !important;
    color: var(--mb-ink-soft) !important;
    letter-spacing: 0.02em;
  }

  /* ---------- 6. SECTIONS EDITORIAL : marges 3% + air ---------- */
  .editorial,
  section.editorial,
  .article-content,
  article > section {
    padding: 28px 20px !important;
    max-width: 100% !important;
  }
  .editorial { padding-top: 32px !important; }

  /* Section header (sh) */
  .sh { margin-bottom: 20px !important; }
  .sh-num {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase;
    color: var(--mb-accent) !important;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
  }
  .sh h2 { margin-top: 0 !important; }

  /* ---------- 7. SPLIT (image + texte) : empilé ---------- */
  section.split,
  .split {
    display: block !important;
    padding: 24px 20px !important;
  }
  .split.reverse { flex-direction: column !important; }
  .split-img {
    width: 100% !important;
    height: 220px !important;
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--mb-shadow-md);
  }
  .split-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 14px;
  }
  .split-text { padding: 0 !important; }
  .split-text-inner { padding: 0 !important; }
  .split-text .tag {
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
    color: var(--mb-accent) !important;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
  }
  .split-text h3 { margin-bottom: 12px !important; }

  /* ---------- 8. QUOTES & CALLOUTS ---------- */
  blockquote,
  .fbleed-quote blockquote {
    font-family: 'Sentient', Georgia, serif !important;
    font-size: 20px !important;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4 !important;
    color: var(--mb-bleu-nuit) !important;
    padding: 0 !important;
    margin: 0 !important;
    text-wrap: balance;
  }
  .fbleed-quote {
    padding: 36px 24px !important;
    margin: 32px 16px !important;
    background: var(--mb-bleu-glace) !important;
    border-radius: 16px;
    border-left: 3px solid var(--mb-accent);
    position: relative;
  }
  .fbleed-quote blockquote::before {
    content: '"';
    position: absolute;
    top: 0px;
    left: 12px;
    font-size: 64px;
    font-family: 'Sentient', serif;
    color: var(--mb-accent);
    opacity: 0.25;
    line-height: 1;
  }
  .fbleed-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 13px !important;
    font-style: normal !important;
    color: var(--mb-ink-soft) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
  }

  /* Info callouts (.ic.tip, .ic.warn, .ic.danger) */
  .ic {
    padding: 18px 18px !important;
    border-radius: 14px !important;
    margin: 18px 0 !important;
    border-left-width: 3px !important;
    box-shadow: var(--mb-shadow-sm);
  }
  .ic-label {
    font-size: 11px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px !important;
  }
  .ic p { font-size: 15px !important; line-height: 1.55 !important; margin: 0; }
  .ic.tip { background: #F0F7FF !important; border-left-color: var(--mb-marine) !important; }
  .ic.tip .ic-label { color: var(--mb-marine) !important; }
  .ic.warn { background: #FFFAF0 !important; border-left-color: #D97706 !important; }
  .ic.warn .ic-label { color: #B45309 !important; }
  .ic.danger { background: #FEF2F2 !important; border-left-color: #DC2626 !important; }
  .ic.danger .ic-label { color: #B91C1C !important; }

  /* ---------- 9. LISTES : aération ---------- */
  ul, ol {
    padding-left: 22px !important;
    margin: 16px 0 !important;
  }
  ul li, ol li {
    margin-bottom: 10px;
    padding-left: 4px;
    font-size: 16px;
    line-height: 1.6;
  }
  ul li::marker { color: var(--mb-accent); }

  /* ---------- 10. IMAGES : ombre douce + radius ---------- */
  .editorial img,
  article img:not(.hero-bg img):not(.nav-logo-iso svg):not(.ftr-logo svg) {
    border-radius: 12px;
    box-shadow: var(--mb-shadow-md);
    margin: 16px 0;
  }

  /* ---------- 11. TEXT REVEAL ---------- */
  .text-reveal-section {
    padding: 48px 20px !important;
    background: var(--mb-bleu-nuit) !important;
  }
  .text-reveal-section h2 {
    font-size: clamp(20px, 5.5vw, 26px) !important;
    line-height: 1.35 !important;
    color: #fff !important;
    text-align: left !important;
  }

  /* ---------- 12. PARALLAX BREAK ---------- */
  .parallax-break {
    height: 240px !important;
    margin: 32px 0 !important;
  }
  .parallax-break .overlay {
    padding: 20px !important;
  }
  .parallax-break .overlay-num {
    font-size: 36px !important;
    color: var(--mb-accent) !important;
  }
  .parallax-break .overlay-text {
    font-size: 15px !important;
  }

  /* ---------- 13. HSCROLL : neutralisé en empilé vertical ---------- */
  .hscroll { height: auto !important; }
  .hscroll-wrapper {
    height: auto !important;
    overflow: visible !important;
    position: static !important;
  }
  .hscroll-track {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    gap: 16px;
    padding: 16px;
  }
  .hp {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--mb-shadow-md);
  }
  .hp-bg {
    position: absolute !important;
    inset: 0;
    z-index: 0;
  }
  .hp-content {
    position: relative;
    z-index: 1;
    padding: 24px 20px !important;
  }
  .hp-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px;
  }
  .hp-visual {
    width: 100% !important;
    border-radius: 10px;
    overflow: hidden;
  }
  .hp-visual img {
    width: 100% !important;
    height: auto !important;
    border-radius: 10px;
    box-shadow: var(--mb-shadow-sm);
  }
  .hp-text { padding: 0 !important; }
  .hp-text h3 {
    font-size: 20px !important;
    color: inherit !important;
    margin-bottom: 8px;
  }
  .hp-text p { font-size: 15px !important; line-height: 1.55 !important; }
  .hp.dark, .hp.blue { color: #fff; }
  .hp.dark h3, .hp.blue h3 { color: #fff !important; }
  .hp-doaken {
    background: rgba(255, 107, 53, 0.12);
    border-left: 2px solid var(--mb-accent);
    padding: 10px 14px !important;
    border-radius: 6px;
    font-size: 14px !important;
    margin-top: 12px;
  }
  .step-badge {
    background: var(--mb-accent) !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.06em;
  }
  .hp-intro-content h2 {
    color: var(--mb-bleu-nuit) !important;
  }
  .section-label {
    color: var(--mb-accent) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em !important;
  }

  /* ---------- 14. CARDS GRIDS : 1 colonne ---------- */
  .chiffrage-grid,
  .decider-grid,
  .faq-grid,
  .comparison-grid,
  .cards-grid,
  [class*="-grid"]:not(.dropdown-grid):not(.footer-doaken-grid) {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Comparison cols : empilées */
  .comparison-section {
    padding: 28px 20px !important;
  }
  .comp-col {
    padding: 20px !important;
    border-radius: 14px;
    box-shadow: var(--mb-shadow-sm);
  }
  .comp-col-header {
    font-size: 14px !important;
    font-weight: 600;
    margin-bottom: 12px !important;
  }
  .comp-item {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding: 6px 0;
  }

  /* ---------- 15. TABLE : scroll horizontal natif ---------- */
  .table-section {
    padding: 28px 20px !important;
  }
  .table-section table,
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    border-radius: 10px;
    box-shadow: var(--mb-shadow-sm);
    font-size: 14px;
  }
  table th, table td {
    padding: 10px 14px !important;
  }
  .badge { font-size: 11px !important; padding: 3px 8px !important; }

  /* ---------- 16. CHECKLIST ---------- */
  .checklist-section { padding: 28px 20px !important; }
  .cl-block {
    padding: 18px !important;
    margin-bottom: 14px !important;
    border-radius: 12px;
    box-shadow: var(--mb-shadow-sm);
  }
  .cl-header {
    font-size: 14px !important;
    font-weight: 700;
    margin-bottom: 10px !important;
    color: var(--mb-bleu-nuit);
  }
  .cl-item {
    padding: 10px 0 !important;
    font-size: 15px !important;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }
  .cl-check {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px;
    border-radius: 6px;
    border: 2px solid var(--mb-border);
    flex-shrink: 0;
    margin-top: 1px;
  }
  .cl-check.on {
    background: var(--mb-accent) !important;
    border-color: var(--mb-accent) !important;
  }

  /* ---------- 17. FAQ ---------- */
  .faq-section { padding: 28px 20px !important; }
  .faq-item {
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    border: 1px solid var(--mb-border);
    overflow: hidden;
  }
  .faq-q {
    padding: 16px 18px !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: var(--mb-bleu-nuit) !important;
    font-weight: 500;
    min-height: 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: var(--mb-bg-soft);
  }
  .faq-q svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--mb-accent);
  }
  .faq-item.open .faq-q svg { transform: rotate(180deg); }
  .faq-a-inner {
    padding: 14px 18px 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--mb-ink) !important;
  }

  /* ---------- 18. STAT BREAKER ---------- */
  .statbreaker,
  .statbreaker-inner {
    flex-direction: column !important;
    gap: 22px !important;
    padding: 32px 20px !important;
    text-align: center;
  }
  .statbreaker .stat-big,
  .statbreaker-inner .stat-big {
    font-size: 44px !important;
    line-height: 1 !important;
  }

  /* ---------- 19. CTA FULL-WIDTH (mid + fin) ---------- */
  .fw-cta {
    margin: 40px 0 !important;
    border-radius: 0 !important;
    min-height: auto !important;
    padding: 48px 24px !important;
  }
  .fw-cta-content { padding: 0 !important; }
  .fw-cta h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
    color: #fff !important;
    line-height: 1.2 !important;
    margin-bottom: 14px;
  }
  .fw-cta p {
    font-size: 15px !important;
    line-height: 1.55 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 22px;
  }
  .cta-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background: var(--mb-accent) !important;
    color: #fff !important;
    padding: 14px 22px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600;
    min-height: 48px;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
    -webkit-tap-highlight-color: transparent;
  }
  .cta-btn:active { transform: scale(0.98); }
  .cta-btn svg { width: 16px; height: 16px; }

  /* CTA mid-page éventuel */
  .mid-cta, .cta-section {
    margin: 32px 16px !important;
    padding: 28px 22px !important;
    border-radius: 16px;
    background: var(--mb-bleu-nuit);
    color: #fff;
  }
  .mid-cta h2, .mid-cta h3,
  .cta-section h2, .cta-section h3 { color: #fff !important; }

  /* ---------- 20. ARTICLE NAV (prev / next) ---------- */
  .art-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 28px 20px !important;
    margin-top: 24px;
  }
  .art-nav a {
    padding: 18px 20px !important;
    background: var(--mb-bg-soft) !important;
    border: 1px solid var(--mb-border);
    border-radius: 12px;
    display: block;
    box-shadow: var(--mb-shadow-sm);
    -webkit-tap-highlight-color: rgba(255, 107, 53, 0.1);
  }
  .art-nav a:active { transform: scale(0.99); }
  .art-nav-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mb-accent);
    font-weight: 600;
    margin-bottom: 6px;
  }
  .art-nav-title {
    display: block;
    font-size: 15px !important;
    color: var(--mb-bleu-nuit);
    font-weight: 500;
    line-height: 1.35;
  }

  /* ---------- 21. SOMMAIRE / TOC : compact + collapsible visuel ---------- */
  .toc,
  [class*="sommaire"],
  .table-of-contents {
    margin: 20px 16px !important;
    padding: 18px 20px !important;
    background: var(--mb-bleu-glace) !important;
    border-radius: 12px !important;
    border-left: 3px solid var(--mb-accent);
    font-size: 14px !important;
  }
  .toc h2, .toc h3,
  [class*="sommaire"] h2, [class*="sommaire"] h3 {
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--mb-bleu-nuit) !important;
    margin: 0 0 10px 0 !important;
  }
  .toc ul, [class*="sommaire"] ul {
    margin: 0 !important;
    padding-left: 18px !important;
  }
  .toc li, [class*="sommaire"] li {
    margin-bottom: 6px;
    font-size: 14px;
  }

  /* ---------- 22. FOOTER : compact (laisse footer-doaken faire son job) ---------- */
  footer.footer {
    padding: 20px !important;
    font-size: 12px !important;
    color: var(--mb-ink-soft) !important;
    text-align: center;
  }

  /* ---------- 23. SCROLL : smooth + comportement natif ---------- */
  html { scroll-behavior: smooth; }

  /* Sélection : couleur DOAKEN */
  ::selection {
    background: rgba(255, 107, 53, 0.25);
    color: var(--mb-bleu-nuit);
  }
}
