/* ================================================
   TMBO – Thème 2026 (lot 6)
   Chargé en DERNIER sur toutes les pages, après style.css et les <style> de page.
   Même langage que l'accueil (css/home.css) : fond papier, anthracite,
   rouge du logo en accent, angles peu arrondis, aucun dégradé ni animation décorative.
   ================================================ */

/* Palette pastel (déc. 2026) : crème, bleu ardoise doux, rose poudré.
   Le logo garde ses couleurs d'origine ; seule l'interface change. */
:root {
  --paper: #fbf8f4;      /* fond crème */
  --paper-2: #f5efe9;    /* crème plus soutenu */
  --sky: #edf2f7;        /* bleu pastel (sections alternées, pied de page) */
  --rose: #f8e8e6;       /* rose poudré (appels à l'action) */
  --ink: #3e4652;        /* ardoise douce au lieu du presque noir */
  --line: #e6e0d9;
  --red: #b8545a;        /* corail brique : contraste suffisant pour un texte blanc */
  --red-dark: #9d474d;
  --red-light: #f8e8e6;
  --grey-900: #3e4652; --grey-800: #4b5361; --grey-700: #5d6472; --grey-600: #7a808b;
}
body { color: var(--grey-800); }
h1, h2, h3, h4 { color: var(--ink); }
body { background: var(--paper); }

/* ---------- Pas d'effets ---------- */
.fade-in, .fade-in.visible { opacity: 1 !important; transform: none !important; transition: none !important; }
.hero-scroll { display: none !important; }
.service-card:hover, .testi-card:hover, .presta-card:hover, .btn-primary:hover, .btn-outline:hover, .btn-secondary:hover { transform: none !important; box-shadow: none !important; }

/* ---------- En-tête ---------- */
.header-top { background: var(--paper-2); color: var(--grey-700); border-bottom: 1px solid var(--line); }
.header-top a, .header-top span, .header-top svg { color: var(--grey-700); }
.header-top-social a { background: transparent; border: 1px solid var(--line); color: var(--grey-700); }
.header-top-social a:hover { background: var(--ink); color: #fff; }
.header-main { border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.btn-nav, .btn-nav-mobile { border-radius: 4px; }

/* ---------- Étiquettes, titres, boutons ---------- */
.section-label { font-family: var(--font-body); font-size: .78rem; color: var(--red); letter-spacing: .14em; }
.section-header h2 { color: var(--ink); }
.btn-primary, .btn-secondary, .btn-outline, .btn-white, .btn-ol-white { border-radius: 4px; box-shadow: none; }
.btn-white { background: var(--red); color: #fff !important; }
.btn-white:hover { background: var(--red-dark); color: #fff !important; }

/* ---------- Bandeaux de titre des pages ---------- */
.page-hero, .page-hero.with-bg { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 44px 0 40px; text-align: left; }
.page-hero.with-bg::before, .page-hero.with-bg img.hero-bg-img { display: none; }
.page-hero h1 { color: var(--ink); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; }
.page-hero h1 span, .page-hero h1 em { color: var(--red); }
.page-hero p { color: var(--grey-700); max-width: 66ch; }
.page-hero .section-label, .page-hero .hero-label { color: var(--red); background: none; padding: 0; }
.page-hero .breadcrumb, .page-hero .breadcrumb a { color: var(--grey-600); }

/* ---------- Pages locales (gabarit geo-*) ---------- */
.geo-hero { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 56px 0 48px; }
.geo-num, .geo-hero::before, .geo-hero::after { display: none !important; }
.geo-hero p { color: var(--grey-700); }
.geo-label { background: none; color: var(--red); padding: 0; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; }
.geo-hero h1 { color: var(--ink); line-height: 1.05; }
.geo-hero h1 span { color: var(--red); }
.geo-hero p.lead { color: var(--grey-700); }
.geo-hero .btn-outline, .geo-hero .btn-secondary { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; }
.geo-hero .btn-outline:hover, .geo-hero .btn-secondary:hover { background: var(--ink) !important; color: #fff !important; }
.geo-stats { gap: 0; border-top: 1px solid var(--line); padding-top: 22px; margin-top: 36px; }
.geo-stat { background: none; border: 0; border-right: 1px solid var(--line); border-radius: 0; text-align: left; padding: 0 20px 0 0; margin-right: 20px; }
.geo-stat:last-child { border-right: 0; margin-right: 0; }
.geo-stat strong { color: var(--ink); font-size: 1.5rem; font-weight: 700; }
.geo-stat span { color: var(--grey-600); text-transform: none; letter-spacing: 0; font-size: .85rem; }
.geo-intro, .geo-zones { background: #fff; }
.geo-prestations, .geo-faq { background: var(--paper-2); }
.geo-intro ul li::before { content: ""; width: 10px; height: 6px; margin-top: 7px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.presta-card, .zone-item, .faq-item { border-radius: 4px; }
.presta-card .icon { background: none; width: auto; height: auto; justify-content: flex-start; }
.presta-card .icon svg { width: 30px; height: 30px; }
.zone-item { background: #fff; text-align: left; }
.zone-item:hover { background: #fff; border-color: var(--ink); }
.geo-cta { background: var(--ink); text-align: left; }
.geo-cta .container { display: block; }
.geo-cta p { margin-left: 0; }
.geo-cta h2 { color: #fff; }

/* ---------- Bandeaux d'appel et chiffres ---------- */
.cta-band, .stats-band { background: var(--ink) !important; }
.testi-card { border-radius: 4px; box-shadow: none; border: 1px solid var(--line); }
.testi-card.featured { background: #fff; }
.testi-card.featured p { color: var(--grey-700); }
.testi-card.featured strong { color: var(--grey-800); }
.testi-card p { font-style: normal; }
.service-card { border-radius: 4px; box-shadow: none; }
.service-card:hover .service-icon { background: var(--red-light); color: var(--red); }

/* ---------- Articles ---------- */
.article-meta .tag, .article-meta .tag.green, .article-meta .tag.blue, .article-meta .tag[style] { background: var(--paper-2) !important; color: var(--grey-800) !important; border-radius: 3px; }
.article-hero-img, .article-body img { border-radius: 4px; }
.article-body h1 { color: var(--ink); }
.offre-box { border-radius: 4px; }

/* ---------- Sections alternées et appels à l'action en pastel ---------- */
.h-sec--alt, .geo-prestations, .geo-faq { background: var(--sky); }
.h-final, .geo-cta, .cta-band, .stats-band { background: var(--rose) !important; color: var(--ink); }
.h-final h2, .geo-cta h2, .cta-band h2, .stats-band strong { color: var(--ink) !important; }
.h-final p, .geo-cta p, .cta-band p, .stats-band span { color: var(--grey-700) !important; }
.h-final .h-btn--ghost, .geo-cta .btn-ol-white { color: var(--ink) !important; border-color: var(--ink) !important; background: transparent !important; }
.h-final .h-btn--ghost:hover, .geo-cta .btn-ol-white:hover { background: var(--ink) !important; color: #fff !important; }
.h-hero { background: var(--paper); }
.h-facts strong, .geo-stat strong { color: var(--ink); }
.h-steps li { border-top-color: var(--red); }

/* ---------- Pied de page clair ---------- */
.site-footer { background: var(--sky); color: var(--grey-700); border-top: 1px solid var(--line); }
.footer-brand img { filter: none; }
.footer-brand p, .footer-col a, .footer-bottom p { color: var(--grey-700) !important; }
.footer-col h4 { color: var(--ink); border-bottom-color: var(--line); }
.footer-col a:hover { color: var(--red) !important; }
.footer-bottom { border-top-color: var(--line); }
.footer-bottom p a { color: var(--grey-700) !important; }
.social-links a { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.social-links a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.back-top { border-radius: 4px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.mobile-cta-bar { background: var(--ink) !important; }

/* ---------- Encadrés d'offre des articles en pastel ---------- */
.offre-box { background: var(--rose) !important; color: var(--ink) !important; border: 0 !important; }
.offre-box::before, .offre-box::after { display: none !important; }
.offre-box h3, .offre-box p, .offre-box strong { color: var(--ink) !important; }
.offre-box .badge, .offre-box .offre-badge, .offre-box span[class*="badge"] { background: var(--red) !important; color: #fff !important; }
.article-body .etapes-tmbo li { list-style: none; padding-left: 18px; }
.article-body .etapes-tmbo li::marker { content: none; }

/* ---------- Infographies refaites en HTML ---------- */
.article-body .etapes-tmbo { list-style: none; counter-reset: e; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 28px; padding: 0; }
.article-body .etapes-tmbo li { counter-increment: e; background: var(--sky); border-radius: 4px; padding: 18px 18px 16px; margin: 0; }
.article-body .etapes-tmbo li::before { content: counter(e); display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 10px; position: static; }
.article-body .etapes-tmbo strong { display: block; color: var(--ink); margin-bottom: 4px; }
.article-body .etapes-tmbo span { display: block; font-size: .92rem; color: var(--grey-700); line-height: 1.55; }
.bandeau-prestations { background: var(--sky); border-bottom: 1px solid var(--line); padding: 22px 0; }
.bandeau-prestations ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 10px; }
.bandeau-prestations li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 600; color: var(--ink); font-size: .9rem; }
.bandeau-prestations p { color: var(--grey-700); font-size: .92rem; margin: 0; }
.bandeau-prestations strong { color: var(--red); }
@media (max-width: 720px) { .article-body .etapes-tmbo { grid-template-columns: 1fr; } }

/* ---------- Encadré sombre de la colonne des articles, en pastel ---------- */
.sidebar-card.dark { background: var(--rose) !important; color: var(--ink) !important; }
.sidebar-card.dark h3, .sidebar-card.dark h4, .sidebar-card.dark p, .sidebar-card.dark a:not(.btn):not([class*="btn"]) { color: var(--ink) !important; }
