/*
Theme Name: RMTB Dark — Ramonage & Tubage Besançon
Theme URI: https://ramonage-tubage-besancon.fr
Author: Seobooster Ltd
Author URI: https://seobooster.fr
Description: Thème custom premium pour Ramonage & Tubage Besançon (entreprise Montaclair). Mobile-first, SEO ultra-optimisé, JSON-LD schemas, maillage automatique.
Version: 1.0.0
Text Domain: rmtb-dark
License: GPL-2.0+
*/

/* ============================================================
   VARIABLES — palette "cheminée premium" : noir chaud + cuivre/terracotta
   ============================================================ */
:root {
  --rmtb-bg:          #FFFFFF;
  --rmtb-bg-alt:      #F5EFE6;   /* crème chaude sections alternées */
  --rmtb-bg-dark:     #14100D;   /* noir charbon hero/footer */
  --rmtb-bg-dark-2:   #1F1915;
  --rmtb-text:        #1C1917;
  --rmtb-text-mid:    #44403C;
  --rmtb-text-soft:   #78716C;
  --rmtb-text-invert: #F5EFE6;
  --rmtb-border:      #E7E5E4;
  --rmtb-border-dark: #2A221C;

  --rmtb-primary:      #C4502C;  /* terracotta/cuivre flamme */
  --rmtb-primary-dark: #9D3E20;
  --rmtb-primary-soft: #F4E0D5;
  --rmtb-gold:         #D6A25D;  /* or braise, trust signals */
  --rmtb-gold-dark:    #B8864A;
  --rmtb-danger:       #B91C1C;
  --rmtb-success:      #166534;

  --rmtb-font-display: "Playfair Display", Georgia, serif;
  --rmtb-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --rmtb-radius-sm:  4px;
  --rmtb-radius:     10px;
  --rmtb-radius-lg:  18px;
  --rmtb-radius-xl:  28px;

  --rmtb-shadow-sm:  0 1px 3px rgba(20, 16, 13, 0.06);
  --rmtb-shadow:     0 4px 16px rgba(20, 16, 13, 0.08);
  --rmtb-shadow-lg:  0 12px 40px rgba(20, 16, 13, 0.12);
  --rmtb-shadow-xl:  0 24px 60px rgba(20, 16, 13, 0.18);

  --rmtb-step:  8px;
  --rmtb-container: 1200px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--rmtb-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rmtb-text);
  background: var(--rmtb-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--rmtb-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rmtb-primary-dark); }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--rmtb-font-display);
  font-weight: 700;
  color: var(--rmtb-text);
  line-height: 1.2;
  margin: 0 0 .8em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1.1em; }
li { margin-bottom: .4em; }

.container {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 64px 0; }
.section--alt { background: var(--rmtb-bg-alt); }
.section--dark { background: var(--rmtb-bg-dark); color: var(--rmtb-text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--rmtb-text-invert); }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.rmtb-topbar {
  background: var(--rmtb-bg-dark);
  color: var(--rmtb-text-invert);
  font-size: .82rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--rmtb-border-dark);
}
.rmtb-topbar__inner {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.rmtb-topbar a { color: var(--rmtb-gold); text-decoration: none; }
.rmtb-topbar a:hover { color: #fff; }
.rmtb-topbar__badges { display: flex; gap: 16px; align-items: center; }
.rmtb-topbar__stars { color: var(--rmtb-gold); letter-spacing: 2px; }

.rmtb-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--rmtb-bg);
  border-bottom: 1px solid var(--rmtb-border);
  box-shadow: var(--rmtb-shadow-sm);
}
.rmtb-header__inner {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.rmtb-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--rmtb-font-display);
  font-weight: 700; font-size: 1.1rem;
  color: var(--rmtb-text);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.rmtb-logo svg { width: 40px; height: 40px; flex-shrink: 0; }
.rmtb-logo__label { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.rmtb-logo__label small {
  font-family: var(--rmtb-font-body);
  font-size: .68rem;
  color: var(--rmtb-primary);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.rmtb-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.rmtb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.rmtb-nav li { margin: 0; position: relative; }
.rmtb-nav a {
  padding: 9px 12px;
  font-weight: 500;
  color: var(--rmtb-text);
  border-radius: var(--rmtb-radius-sm);
  font-size: .92rem;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
}
.rmtb-nav a:hover { background: var(--rmtb-bg-alt); color: var(--rmtb-primary); }
.rmtb-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .7em; opacity: .6; }
.rmtb-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff;
  min-width: 260px;
  padding: 8px;
  border-radius: var(--rmtb-radius);
  box-shadow: var(--rmtb-shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rmtb-border);
}
.rmtb-nav li:hover > .sub-menu { display: flex; }
.rmtb-nav .sub-menu a { padding: 10px 14px; font-size: .88rem; white-space: normal; }

.rmtb-header__cta {
  background: var(--rmtb-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--rmtb-radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(196, 80, 44, 0.25);
}
.rmtb-header__cta:hover { background: var(--rmtb-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(196, 80, 44, 0.35); }

.rmtb-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-left: auto;
}
.rmtb-burger span { display: block; width: 26px; height: 3px; background: var(--rmtb-text); margin: 5px 0; border-radius: 2px; transition: all .3s; }
.rmtb-burger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.rmtb-burger.open span:nth-child(2) { opacity: 0; }
.rmtb-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Nav plus compacte entre 1024 et 1279 pour éviter le wrap */
@media (min-width: 1024px) and (max-width: 1279px) {
  .rmtb-header__inner { gap: 12px; }
  .rmtb-nav a { padding: 8px 9px; font-size: .86rem; }
  .rmtb-header__cta { padding: 9px 12px; font-size: .85rem; }
  .rmtb-logo__label { display: none; }
}

@media (max-width: 1023px) {
  .rmtb-burger { display: block; }
  .rmtb-nav {
    position: fixed; inset: 68px 0 0 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s;
    gap: 0;
  }
  .rmtb-nav.open { transform: translateX(0); }
  .rmtb-nav ul { flex-direction: column; width: 100%; gap: 2px; }
  .rmtb-nav a { padding: 14px 16px; font-size: 1rem; border-bottom: 1px solid var(--rmtb-border); border-radius: 0; white-space: normal; }
  .rmtb-nav .sub-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; display: flex; }
  .rmtb-header__cta { display: none; }
  .rmtb-logo { font-size: 1rem; }
  .rmtb-logo__label small { font-size: .62rem; }
}
@media (max-width: 420px) {
  .rmtb-logo__label small { display: none; }
}

/* ============================================================
   HERO — cœur de la page pilier
   ============================================================ */
.rmtb-hero {
  position: relative;
  background: linear-gradient(135deg, #14100D 0%, #1F1915 55%, #2A1F18 100%);
  color: var(--rmtb-text-invert);
  padding: 72px 0 80px;
  overflow: hidden;
}
.rmtb-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(196, 80, 44, 0.18) 0%, transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(214, 162, 93, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.rmtb-hero__inner {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.rmtb-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(214, 162, 93, 0.14);
  border: 1px solid rgba(214, 162, 93, 0.4);
  color: var(--rmtb-gold);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.rmtb-hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  margin: 18px 0 16px;
}
.rmtb-hero h1 em { font-style: normal; color: var(--rmtb-primary); }
.rmtb-hero__sub {
  font-size: 1.1rem;
  color: #D6D3D1;
  max-width: 52ch;
  margin-bottom: 28px;
}
.rmtb-hero__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rmtb-border-dark);
}
.rmtb-kpi { }
.rmtb-kpi__num { font-family: var(--rmtb-font-display); font-size: 2rem; font-weight: 700; color: var(--rmtb-gold); line-height: 1; }
.rmtb-kpi__label { font-size: .82rem; color: #A8A29E; margin-top: 4px; }

.rmtb-hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.rmtb-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: var(--rmtb-radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
}
.rmtb-btn--primary { background: var(--rmtb-primary); color: #fff; box-shadow: 0 6px 20px rgba(196, 80, 44, 0.4); }
.rmtb-btn--primary:hover { background: var(--rmtb-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(196, 80, 44, 0.5); }
.rmtb-btn--ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.rmtb-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; transform: translateY(-1px); }
.rmtb-btn--gold { background: var(--rmtb-gold); color: var(--rmtb-bg-dark); }
.rmtb-btn--gold:hover { background: var(--rmtb-gold-dark); color: #fff; }
.rmtb-btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.rmtb-btn--block { width: 100%; justify-content: center; }

@media (max-width: 767px) {
  .rmtb-hero { padding: 48px 0 56px; }
  .rmtb-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .rmtb-hero__kpis { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .rmtb-kpi__num { font-size: 1.5rem; }
}

/* ============================================================
   FORMULAIRE — hero et fin de page
   ============================================================ */
.rmtb-form-card {
  background: #fff;
  border-radius: var(--rmtb-radius-lg);
  padding: 28px;
  box-shadow: var(--rmtb-shadow-xl);
  color: var(--rmtb-text);
  position: relative;
}
.rmtb-form-card__title {
  font-family: var(--rmtb-font-display);
  font-size: 1.35rem;
  margin: 0 0 6px;
  color: var(--rmtb-text);
}
.rmtb-form-card__subtitle {
  font-size: .92rem;
  color: var(--rmtb-text-mid);
  margin-bottom: 18px;
}
.rmtb-form-card__badge {
  position: absolute;
  top: -14px; right: 20px;
  background: var(--rmtb-gold);
  color: var(--rmtb-bg-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.rmtb-form { display: grid; gap: 10px; }
.rmtb-form label { font-size: .82rem; color: var(--rmtb-text-mid); font-weight: 500; margin-bottom: -4px; }
.rmtb-form input[type="text"],
.rmtb-form input[type="tel"],
.rmtb-form input[type="email"],
.rmtb-form select,
.rmtb-form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .95rem;
  border: 1px solid var(--rmtb-border);
  border-radius: var(--rmtb-radius-sm);
  background: #fff;
  color: var(--rmtb-text);
  transition: border-color .2s, box-shadow .2s;
  min-height: 44px;
}
.rmtb-form input:focus,
.rmtb-form select:focus,
.rmtb-form textarea:focus {
  outline: 0;
  border-color: var(--rmtb-primary);
  box-shadow: 0 0 0 3px rgba(196, 80, 44, 0.15);
}
.rmtb-form input.valid { border-color: var(--rmtb-success); }
.rmtb-form input.invalid { border-color: var(--rmtb-danger); }
.rmtb-form textarea { min-height: 90px; resize: vertical; }
.rmtb-form__submit {
  background: var(--rmtb-primary);
  color: #fff;
  border: 0;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--rmtb-radius);
  min-height: 52px;
  box-shadow: 0 6px 18px rgba(196, 80, 44, 0.35);
  transition: background .2s, transform .2s;
  margin-top: 6px;
}
.rmtb-form__submit:hover { background: var(--rmtb-primary-dark); transform: translateY(-1px); }
.rmtb-form__reassure {
  font-size: .78rem;
  color: var(--rmtb-text-soft);
  text-align: center;
  margin: 10px 0 0;
  display: flex; justify-content: center; align-items: center; gap: 6px;
}
.rmtb-form__reassure::before { content: "🔒"; }
.rmtb-form__honeypot { position: absolute !important; left: -9999px !important; top: -9999px !important; }
.rmtb-form__success {
  padding: 18px;
  background: #dcfce7;
  color: var(--rmtb-success);
  border-radius: var(--rmtb-radius);
  text-align: center;
  font-weight: 600;
}

/* ============================================================
   CARDS SERVICES
   ============================================================ */
.rmtb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.rmtb-service-card {
  background: #fff;
  border: 1px solid var(--rmtb-border);
  border-radius: var(--rmtb-radius-lg);
  padding: 28px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  overflow: hidden;
}
.rmtb-service-card::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 4px; height: 0;
  background: var(--rmtb-primary);
  transition: height .3s;
}
.rmtb-service-card:hover { transform: translateY(-4px); box-shadow: var(--rmtb-shadow-lg); border-color: var(--rmtb-primary-soft); }
.rmtb-service-card:hover::before { height: 100%; }
.rmtb-service-card__num {
  font-family: var(--rmtb-font-display);
  font-size: 2.6rem;
  color: var(--rmtb-primary);
  line-height: 1;
  margin-bottom: 6px;
  opacity: .85;
}
.rmtb-service-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.rmtb-service-card p { color: var(--rmtb-text-mid); font-size: .95rem; margin: 0; }
.rmtb-service-card__link {
  margin-top: auto;
  color: var(--rmtb-primary);
  font-weight: 600;
  font-size: .92rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s;
}
.rmtb-service-card:hover .rmtb-service-card__link { gap: 10px; }

/* ============================================================
   STEPS — comment ça marche
   ============================================================ */
.rmtb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.rmtb-step {
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: var(--rmtb-radius-lg);
  border: 1px solid var(--rmtb-border);
}
.rmtb-step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--rmtb-primary);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--rmtb-font-display);
  font-size: 1.3rem; font-weight: 700;
  margin: 0 auto 14px;
}
.rmtb-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.rmtb-step p { color: var(--rmtb-text-mid); font-size: .92rem; margin: 0; }

/* ============================================================
   VILLES GRID
   ============================================================ */
.rmtb-villes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.rmtb-ville-link {
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rmtb-border);
  border-radius: var(--rmtb-radius-sm);
  text-decoration: none;
  color: var(--rmtb-text);
  font-size: .9rem;
  font-weight: 500;
  transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.rmtb-ville-link:hover { background: var(--rmtb-primary); color: #fff; border-color: var(--rmtb-primary); transform: translateX(2px); }
.rmtb-ville-link::before { content: "▸"; color: var(--rmtb-primary); transition: color .2s; }
.rmtb-ville-link:hover::before { color: #fff; }

/* ============================================================
   FAQ
   ============================================================ */
.rmtb-faq { max-width: 860px; margin: 0 auto; }
.rmtb-faq__item {
  background: #fff;
  border: 1px solid var(--rmtb-border);
  border-radius: var(--rmtb-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.rmtb-faq__item[open] { box-shadow: var(--rmtb-shadow); border-color: var(--rmtb-primary-soft); }
.rmtb-faq__question {
  padding: 18px 54px 18px 22px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--rmtb-text);
}
.rmtb-faq__question::-webkit-details-marker { display: none; }
.rmtb-faq__question::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--rmtb-primary);
  transition: transform .2s;
  line-height: 1;
}
.rmtb-faq__item[open] .rmtb-faq__question::after { transform: translateY(-50%) rotate(45deg); }
.rmtb-faq__answer {
  padding: 0 22px 20px;
  color: var(--rmtb-text-mid);
  line-height: 1.7;
}
.rmtb-faq__answer :last-child { margin-bottom: 0; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.rmtb-breadcrumb {
  padding: 16px 0 0;
  font-size: .85rem;
  color: var(--rmtb-text-soft);
}
.rmtb-breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rmtb-breadcrumb li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.rmtb-breadcrumb li:not(:last-child)::after { content: "›"; color: var(--rmtb-text-soft); margin-left: 6px; }
.rmtb-breadcrumb a { color: var(--rmtb-text-mid); }
.rmtb-breadcrumb a:hover { color: var(--rmtb-primary); }
.rmtb-breadcrumb li[aria-current] { color: var(--rmtb-text); font-weight: 500; }

/* ============================================================
   PAGE VILLE / GUIDE — contenu riche
   ============================================================ */
.rmtb-page {
  padding: 32px 0 80px;
}
.rmtb-page__hero {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, #14100D 0%, #1F1915 100%);
  color: var(--rmtb-text-invert);
}
.rmtb-page__hero h1 { color: #fff; }
.rmtb-page__hero p { color: #D6D3D1; font-size: 1.1rem; max-width: 62ch; }
.rmtb-page__hero .rmtb-breadcrumb { color: #A8A29E; }
.rmtb-page__hero .rmtb-breadcrumb a { color: var(--rmtb-gold); }
.rmtb-page__hero .rmtb-breadcrumb li:not(:last-child)::after { color: #A8A29E; }
.rmtb-page__hero .rmtb-breadcrumb li[aria-current] { color: #fff; }

.rmtb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1023px) {
  .rmtb-layout { grid-template-columns: 1fr; gap: 32px; }
  .rmtb-sidebar { order: 2; }
}
.rmtb-content { max-width: 760px; }
.rmtb-content h2 { margin-top: 2em; font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.rmtb-content h2:first-child { margin-top: 0; }
.rmtb-content h3 { margin-top: 1.6em; font-size: 1.25rem; }
.rmtb-content ul { list-style: none; padding-left: 0; }
.rmtb-content ul li { padding-left: 28px; position: relative; margin-bottom: .6em; }
.rmtb-content ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--rmtb-primary);
  color: #fff;
  border-radius: 50%;
  font-size: .72rem;
  display: grid; place-items: center;
  font-weight: 700;
}
.rmtb-content ol { padding-left: 1.3em; }
.rmtb-content blockquote {
  margin: 1.5em 0;
  padding: 20px 26px;
  background: var(--rmtb-bg-alt);
  border-left: 4px solid var(--rmtb-primary);
  border-radius: 0 var(--rmtb-radius) var(--rmtb-radius) 0;
  font-style: italic;
  color: var(--rmtb-text-mid);
}
.rmtb-callout {
  margin: 1.5em 0;
  padding: 22px 26px;
  background: var(--rmtb-primary-soft);
  border-radius: var(--rmtb-radius);
  position: relative;
  padding-left: 60px;
}
.rmtb-callout::before {
  content: "💡"; position: absolute; left: 22px; top: 22px; font-size: 1.4rem;
}
.rmtb-callout strong { color: var(--rmtb-primary-dark); }
.rmtb-callout--warn { background: #FEF3C7; }
.rmtb-callout--warn::before { content: "⚠️"; }
.rmtb-callout--success { background: #DCFCE7; }
.rmtb-callout--success::before { content: "✅"; }

.rmtb-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: #fff;
  border-radius: var(--rmtb-radius);
  overflow: hidden;
  box-shadow: var(--rmtb-shadow-sm);
}
.rmtb-table th {
  background: var(--rmtb-bg-dark);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  font-size: .95rem;
}
.rmtb-table td { padding: 14px 16px; border-bottom: 1px solid var(--rmtb-border); }
.rmtb-table tr:last-child td { border-bottom: 0; }
.rmtb-table tr:nth-child(even) td { background: var(--rmtb-bg-alt); }

/* Sidebar sticky */
.rmtb-sidebar {
  position: sticky;
  top: 84px;
}
.rmtb-sidebar .rmtb-form-card { padding: 22px; }

/* ============================================================
   MID-CTA BANNER
   ============================================================ */
.rmtb-midcta {
  margin: 40px 0;
  padding: 32px;
  border-radius: var(--rmtb-radius-lg);
  background: linear-gradient(120deg, var(--rmtb-bg-dark) 0%, #2A1F18 100%);
  color: var(--rmtb-text-invert);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.rmtb-midcta::before {
  content: "🔥"; position: absolute; right: -20px; bottom: -40px; font-size: 8rem; opacity: .1;
}
.rmtb-midcta h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.rmtb-midcta p { margin: 0; color: #D6D3D1; }
@media (max-width: 767px) { .rmtb-midcta { grid-template-columns: 1fr; text-align: center; } }

/* ============================================================
   VILLES VOISINES
   ============================================================ */
.rmtb-nearby {
  margin: 48px 0 24px;
  padding: 28px;
  background: var(--rmtb-bg-alt);
  border-radius: var(--rmtb-radius-lg);
}
.rmtb-nearby h3 { font-size: 1.3rem; margin: 0 0 16px; }
.rmtb-nearby p { color: var(--rmtb-text-mid); margin: 0 0 16px; }

/* ============================================================
   FOOTER
   ============================================================ */
.rmtb-footer {
  background: var(--rmtb-bg-dark);
  color: var(--rmtb-text-invert);
  padding: 64px 0 24px;
}
.rmtb-footer__grid {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 767px) { .rmtb-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .rmtb-footer__col--brand { grid-column: 1 / -1; } }
.rmtb-footer__col h4 {
  color: var(--rmtb-gold);
  font-family: var(--rmtb-font-body);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}
.rmtb-footer__col ul { list-style: none; padding: 0; margin: 0; }
.rmtb-footer__col li { margin-bottom: 8px; }
.rmtb-footer__col a { color: #D6D3D1; text-decoration: none; font-size: .92rem; transition: color .2s; }
.rmtb-footer__col a:hover { color: var(--rmtb-primary); }

.rmtb-footer__brand p { color: #A8A29E; font-size: .92rem; margin-top: 14px; line-height: 1.6; }
.rmtb-footer__contact { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: .92rem; }
.rmtb-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: #D6D3D1; }
.rmtb-footer__contact a strong { color: var(--rmtb-gold); }

.rmtb-footer__accordion details { margin-bottom: 10px; }
.rmtb-footer__accordion summary { color: var(--rmtb-gold); font-size: .88rem; cursor: pointer; padding: 6px 0; list-style: none; font-weight: 600; }
.rmtb-footer__accordion summary::-webkit-details-marker { display: none; }
.rmtb-footer__accordion summary::before { content: "▸ "; transition: transform .2s; display: inline-block; }
.rmtb-footer__accordion details[open] summary::before { transform: rotate(90deg); }
.rmtb-footer__accordion .rmtb-villes-grid { margin-top: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px; }
.rmtb-footer__accordion .rmtb-ville-link { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); color: #D6D3D1; font-size: .82rem; padding: 6px 10px; }
.rmtb-footer__accordion .rmtb-ville-link:hover { background: var(--rmtb-primary); color: #fff; }
.rmtb-footer__accordion .rmtb-ville-link::before { color: var(--rmtb-gold); }

.rmtb-footer__bar {
  max-width: var(--rmtb-container);
  margin: 40px auto 0;
  padding: 20px 20px 0;
  border-top: 1px solid var(--rmtb-border-dark);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: #78716C;
  font-size: .82rem;
}
.rmtb-footer__bar a { color: #A8A29E; margin-left: 16px; }
.rmtb-footer__bar a:hover { color: var(--rmtb-primary); }

/* ============================================================
   STICKY MOBILE BAR
   ============================================================ */
.rmtb-sticky-mobile {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 30;
  background: var(--rmtb-bg-dark);
  padding: 10px 12px;
  border-top: 1px solid var(--rmtb-border-dark);
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  box-shadow: 0 -4px 24px rgba(20, 16, 13, 0.35);
}
.rmtb-sticky-mobile a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px;
  border-radius: var(--rmtb-radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  min-height: 48px;
}
.rmtb-sticky-mobile__call { background: var(--rmtb-primary); color: #fff; }
.rmtb-sticky-mobile__devis { background: var(--rmtb-gold); color: var(--rmtb-bg-dark); }
@media (max-width: 767px) {
  .rmtb-sticky-mobile { display: grid; }
  body { padding-bottom: 68px; }
}

/* ============================================================
   TRUST BAND
   ============================================================ */
.rmtb-trust {
  background: var(--rmtb-bg-alt);
  padding: 32px 0;
  border-top: 1px solid var(--rmtb-border);
  border-bottom: 1px solid var(--rmtb-border);
}
.rmtb-trust__grid {
  max-width: var(--rmtb-container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: center;
}
.rmtb-trust__item {
  display: flex; align-items: center; gap: 14px;
}
.rmtb-trust__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  border: 1px solid var(--rmtb-border);
}
.rmtb-trust__text { font-size: .9rem; line-height: 1.3; }
.rmtb-trust__text strong { display: block; color: var(--rmtb-text); font-family: var(--rmtb-font-display); font-size: 1.05rem; }
.rmtb-trust__text span { color: var(--rmtb-text-soft); font-size: .82rem; }

/* ============================================================
   SOCIAL PROOF — avis
   ============================================================ */
.rmtb-reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rmtb-review {
  background: #fff;
  border-radius: var(--rmtb-radius-lg);
  padding: 24px;
  border: 1px solid var(--rmtb-border);
  display: flex; flex-direction: column; gap: 10px;
}
.rmtb-review__stars { color: var(--rmtb-gold); font-size: 1.1rem; letter-spacing: 2px; }
.rmtb-review__text { color: var(--rmtb-text-mid); font-style: italic; line-height: 1.6; }
.rmtb-review__author { font-weight: 600; color: var(--rmtb-text); font-size: .95rem; margin-top: auto; display: flex; align-items: center; gap: 10px; }
.rmtb-review__author::before {
  content: attr(data-initial);
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--rmtb-primary);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   TOP X — classement
   ============================================================ */
.rmtb-ranking { display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.rmtb-rank {
  background: #fff;
  border: 1px solid var(--rmtb-border);
  border-radius: var(--rmtb-radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.rmtb-rank__num {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--rmtb-primary), var(--rmtb-gold));
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--rmtb-font-display);
  font-size: 1.6rem; font-weight: 700;
  flex-shrink: 0;
}
.rmtb-rank__body h3 { margin: 0 0 6px; }
.rmtb-rank__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--rmtb-text-soft); margin: 4px 0 12px; }
.rmtb-rank__pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 12px; }
@media (max-width: 640px) { .rmtb-rank__pros-cons { grid-template-columns: 1fr; } .rmtb-rank { grid-template-columns: 1fr; } }
.rmtb-rank__pros, .rmtb-rank__cons { padding: 0; list-style: none; }
.rmtb-rank__pros li, .rmtb-rank__cons li { padding-left: 24px; position: relative; margin-bottom: 6px; font-size: .9rem; }
.rmtb-rank__pros li::before { content: "+"; position: absolute; left: 0; color: var(--rmtb-success); font-weight: 700; }
.rmtb-rank__cons li::before { content: "−"; position: absolute; left: 0; color: var(--rmtb-danger); font-weight: 700; }

/* ============================================================
   TOC — table of contents
   ============================================================ */
.rmtb-toc {
  background: var(--rmtb-bg-alt);
  padding: 20px 24px;
  border-radius: var(--rmtb-radius);
  margin-bottom: 32px;
  border-left: 4px solid var(--rmtb-primary);
}
.rmtb-toc h4 { margin: 0 0 10px; font-size: 1rem; font-family: var(--rmtb-font-body); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rmtb-text-mid); }
.rmtb-toc ol { margin: 0; padding-left: 20px; }
.rmtb-toc li { margin-bottom: 4px; font-size: .95rem; }
.rmtb-toc a { color: var(--rmtb-text); text-decoration: none; }
.rmtb-toc a:hover { color: var(--rmtb-primary); text-decoration: underline; }

/* ============================================================
   COMPARATIF TABLE
   ============================================================ */
.rmtb-compare { overflow-x: auto; }
.rmtb-compare table { min-width: 600px; }
.rmtb-compare .win { background: #DCFCE7 !important; font-weight: 600; }

/* ============================================================
   404
   ============================================================ */
.rmtb-404 { text-align: center; padding: 80px 20px; }
.rmtb-404__code { font-family: var(--rmtb-font-display); font-size: 8rem; line-height: 1; color: var(--rmtb-primary); }

/* ============================================================
   UTILITIES
   ============================================================ */
.rmtb-stars { color: var(--rmtb-gold); letter-spacing: 2px; }
.rmtb-tag {
  display: inline-block;
  background: var(--rmtb-primary-soft);
  color: var(--rmtb-primary-dark);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
}
.rmtb-text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Fade-in animations */
.rmtb-fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rmtb-fade.visible { opacity: 1; transform: translateY(0); }

/* Print */
@media print { .rmtb-sticky-mobile, .rmtb-header__cta, .rmtb-form-card, .rmtb-midcta { display: none !important; } }
