/* ==========================================================================
   CABINET BHB — Mini-site Loi Girardin
   Styles partagés — v1.0
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0E1628;
  line-height: 1.6;
  background: #F7F8FC;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== TOKENS ===== */
:root {
  --navy-900: #0E1628;
  --navy-800: #1B3B5F;
  --navy-700: #2A5887;
  --accent: #FF6B35;
  --accent-2: #F7931E;
  --gold: #C9A86B;
  --lime: #D4E84C;
  --taupe: #A69B7E;
  --bg: #F7F8FC;
  --white: #FFFFFF;
  --text: #0E1628;
  --text-secondary: #3E4960;
  --text-muted: #6B7690;
  --border: #E4E8F2;
  --green: #10B981;
  --red: #EF4444;
  --container: 1240px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TYPE ===== */
h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.03em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; }
p { color: var(--text-secondary); }

.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.tag.dark { background: rgba(255, 255, 255, 0.12); color: #FFB896; }
.tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border-radius: 14px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer; line-height: 1.2; text-align: center;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5); }
.btn-dark { background: var(--navy-900); color: white; border: 1.5px solid var(--navy-900); }
.btn-dark:hover { background: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--navy-800); background: white; }
.btn-large { padding: 1.15rem 2.2rem; font-size: 1.05rem; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 248, 252, 0.9);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-mark { width: auto; height: 32px; flex-shrink: 0; display: block; }
.footer .logo-mark { width: 140px; height: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.6rem; font-weight: 600;
  color: var(--taupe);
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-top: 3px;
}
.nav-primary {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-primary a {
  font-size: 0.92rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-primary a:hover, .nav-primary a.active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-phone {
  display: flex; align-items: center; gap: 0.4rem;
  font-weight: 600; color: var(--navy-800); font-size: 0.9rem;
  white-space: nowrap;
}
.header .btn { padding: 0.65rem 1.2rem; font-size: 0.88rem; }

.menu-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 24px; height: 24px; color: var(--navy-900); }

/* ===== HERO (Accueil) ===== */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(255, 107, 53, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(27, 59, 95, 0.06) 0%, transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14, 22, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 22, 40, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-headline { max-width: 920px; margin: 0 auto 2rem; text-align: center; }
.hero-headline .highlight {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hero-headline .underline { position: relative; display: inline-block; }
.hero-headline .underline::after {
  content: ''; position: absolute; bottom: 4px; left: 0;
  width: 100%; height: 18%; background: var(--lime);
  z-index: -1; border-radius: 4px; opacity: 0.7;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 760px; margin: 0 auto 2rem;
}
.hero-ctas { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust-inline {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted); font-weight: 500;
}
.hero-trust-inline .ti { display: flex; align-items: center; gap: 0.5rem; }
.hero-trust-inline .ti svg { color: var(--green); }

/* ===== SIMULATOR ===== */
.sim-hero {
  margin-top: 3rem;
  max-width: 1100px; margin-left: auto; margin-right: auto;
  background: white; border-radius: 28px; padding: 2.5rem;
  box-shadow: 0 40px 100px rgba(14, 22, 40, 0.08), 0 8px 30px rgba(14, 22, 40, 0.04);
  border: 1px solid var(--border); position: relative;
}
.sim-hero::before {
  content: 'Simulez en temps réel';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--navy-900); color: white;
  padding: 0.4rem 1rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; line-height: 1; z-index: 3;
}
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sim-input label {
  display: block; font-size: 0.85rem; color: var(--text-muted);
  font-weight: 500; margin-bottom: 0.6rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sim-input .big-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700; color: var(--navy-900);
  margin-bottom: 1.5rem; letter-spacing: -0.03em; line-height: 1;
}
.sim-input input[type="range"] {
  width: 100%; height: 8px;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--val, 20%), var(--border) var(--val, 20%), var(--border) 100%);
  border-radius: 100px; outline: none; margin-bottom: 0.5rem;
}
.sim-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; border-radius: 50%;
  background: white; border: 3px solid var(--accent);
  cursor: pointer; box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}
.sim-input input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%;
  background: white; border: 3px solid var(--accent); cursor: pointer;
}
.sim-range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }
.sim-presets { display: flex; gap: 0.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.sim-preset {
  padding: 0.5rem 0.9rem; background: var(--bg);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.sim-preset:hover, .sim-preset.active {
  background: var(--navy-900); color: white; border-color: var(--navy-900);
}
.sim-output {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: white; border-radius: 20px; padding: 2rem;
  position: relative; overflow: hidden;
}
.sim-output::before {
  content: ''; position: absolute; top: -40%; right: -20%;
  width: 70%; height: 160%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.25) 0%, transparent 70%);
}
.sim-output > * { position: relative; z-index: 2; }
.sim-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sim-row:last-child { border-bottom: none; padding-bottom: 0; }
.sim-row .lbl { font-size: 0.88rem; color: rgba(255, 255, 255, 0.75); }
.sim-row .val { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; color: white; }
.sim-row.final { margin-top: 0.5rem; padding-top: 1.25rem; }
.sim-row.final .lbl { color: #FFB896; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }
.sim-row.final .val { font-size: 2.4rem; color: #FF9F70; font-weight: 700; letter-spacing: -0.02em; }
.sim-cta { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 2px dashed var(--border); display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sim-cta .btn { flex: 1; min-width: 200px; }
.sim-disclaimer { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 1rem; }

/* ===== PROOF BAR ===== */
.proof-bar { padding: 3rem 0; background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-title {
  text-align: center; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 1.75rem;
}
.proof-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.proof-stat { text-align: center; }
.proof-stat .big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 700; color: var(--navy-900);
  letter-spacing: -0.02em; line-height: 1; margin-bottom: 0.3rem;
}
.proof-stat .big span { color: var(--accent); }
.proof-stat .lbl { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* ===== GENERIC SECTIONS ===== */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-dark { background: var(--navy-900); color: white; position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; top: 0; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}
.section-dark h2 { color: white; }
.section-dark p { color: rgba(255, 255, 255, 0.85); }

/* ===== STEPS ===== */
.steps-modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step-card-mod {
  background: white; padding: 2rem; border-radius: 20px;
  border: 1px solid var(--border); transition: all 0.3s ease;
}
.step-card-mod:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(14, 22, 40, 0.08); }
.step-num-big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4.5rem; font-weight: 700; line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1rem; letter-spacing: -0.05em;
}
.step-card-mod h3 { margin-bottom: 0.8rem; color: var(--navy-900); }
.step-card-mod p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== FEATURES ===== */
.features-mod { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.feature-mod { background: white; padding: 1.75rem; border-radius: 18px; border: 1px solid var(--border); transition: all 0.3s ease; }
.feature-mod:hover { background: var(--navy-900); transform: translateY(-4px); }
.feature-mod:hover h4, .feature-mod:hover p { color: white; }
.feature-mod:hover .f-icon { background: rgba(255, 107, 53, 0.25); color: #FFB896; }
.f-icon {
  width: 44px; height: 44px;
  background: rgba(255, 107, 53, 0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-bottom: 1rem;
  transition: all 0.3s ease;
}
.feature-mod h4 { font-size: 1rem; margin-bottom: 0.4rem; color: var(--navy-900); transition: color 0.3s ease; }
.feature-mod p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; transition: color 0.3s ease; }

/* ===== FORM ===== */
.form-section { background: var(--bg); padding: 5rem 0; }
.form-wrapper {
  max-width: 580px; margin: 0 auto;
  background: white; border-radius: 24px; padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(14, 22, 40, 0.08);
  border: 1px solid var(--border);
}
.form-wrapper h2 { text-align: center; margin-bottom: 0.5rem; }
.form-wrapper .intro { text-align: center; color: var(--text-secondary); margin-bottom: 2rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--navy-900); margin-bottom: 0.4rem;
}
.form-field input, .form-field select {
  width: 100%; padding: 0.85rem 1rem;
  font-family: inherit; font-size: 0.95rem;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: white; color: var(--text);
  transition: all 0.2s;
}
.form-field input:focus, .form-field select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.12);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-consent {
  display: flex; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted);
  margin: 1rem 0; line-height: 1.5;
}
.form-consent input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); }
.form-wrapper .btn { width: 100%; padding: 1.1rem; font-size: 1.02rem; }
.form-foot { font-size: 0.78rem; color: var(--text-muted); text-align: center; margin-top: 1rem; line-height: 1.5; }

/* ===== COMPARE ===== */
.compare-mod { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; position: relative; }
.compare-col {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px; padding: 2rem; backdrop-filter: blur(10px);
}
.compare-col.highlight {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(247, 147, 30, 0.05) 100%);
  border: 1px solid rgba(255, 107, 53, 0.4);
}
.compare-col h3 { color: white; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
.compare-col ul { list-style: none; }
.compare-col li {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 0.7rem 0; color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.compare-col li:last-child { border-bottom: none; }
.compare-col li svg { flex-shrink: 0; margin-top: 3px; }
.compare-col.bad li svg { color: #FF8B8B; }
.compare-col.highlight li svg { color: #7EE8B8; }

/* ===== BLOG GRID (for blog.html and index) ===== */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.blog-card {
  background: white; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all 0.3s ease; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(14, 22, 40, 0.1); border-color: var(--accent); }
.blog-card-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-cat {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--accent); color: white;
  padding: 0.3rem 0.75rem; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.blog-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.blog-card-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--navy-900); line-height: 1.3; }
.blog-card p { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 1.25rem; flex: 1; }
.blog-card .read-more {
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}

/* ===== ARTICLE PAGE ===== */
.article-header {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, var(--bg) 0%, white 100%);
}
.article-breadcrumb {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.article-breadcrumb a { color: var(--accent); }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-cat {
  display: inline-block; background: var(--accent); color: white;
  padding: 0.3rem 0.8rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.article-meta { display: flex; gap: 1.5rem; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.88rem; }
.article-meta span { display: flex; align-items: center; gap: 0.4rem; }
.article-hero-img {
  max-width: 1000px; margin: 2rem auto 3rem;
  aspect-ratio: 16/9; border-radius: 20px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(14, 22, 40, 0.15);
}
.article-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.article-body {
  padding-bottom: 4rem;
}
.article-body .container-narrow { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body h2 { margin: 2.5rem 0 1rem; font-size: 1.8rem; color: var(--navy-900); scroll-margin-top: 100px; }
.article-body h3 { margin: 2rem 0 0.8rem; font-size: 1.35rem; color: var(--navy-900); scroll-margin-top: 100px; }
.article-body p { margin-bottom: 1.25rem; color: var(--text); }
.article-body ul, .article-body ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; color: var(--text); }
.article-body strong { color: var(--navy-900); font-weight: 700; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--accent-2); }
.article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem; margin: 1.5rem 0;
  background: rgba(255, 107, 53, 0.05); border-radius: 0 12px 12px 0;
  font-style: italic; color: var(--navy-900);
}
.article-body .callout {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: white; padding: 1.75rem 2rem; border-radius: 18px;
  margin: 2rem 0;
}
.article-body .callout h3 { color: white; margin-top: 0; }
.article-body .callout p { color: rgba(255, 255, 255, 0.9); margin-bottom: 0.5rem; }
.article-body .callout .btn { margin-top: 1rem; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  font-size: 0.95rem;
}
.article-body table th, .article-body table td {
  padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--border);
}
.article-body table th { background: var(--navy-900); color: white; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.article-body table tr:last-child td { border-bottom: none; }
.article-body table tr:nth-child(even) { background: var(--bg); }

.article-toc {
  background: white; border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  margin: 2rem 0;
}
.article-toc h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }
.article-toc ol { list-style: none; margin: 0; padding-left: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; padding: 0.4rem 0; font-size: 0.92rem; }
.article-toc li::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 600; margin-right: 0.6rem; }
.article-toc a { color: var(--text); transition: color 0.2s; }
.article-toc a:hover { color: var(--accent); }

.article-footer {
  background: var(--bg); padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.article-tag {
  padding: 0.35rem 0.9rem; background: white;
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.related-articles { margin-top: 3rem; }

/* ===== CTA FINAL (booking iframe) ===== */
.cta-final { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%); color: white; padding: 5rem 0; position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; top: -40%; left: -10%; width: 50%; height: 180%; background: radial-gradient(ellipse, rgba(255, 107, 53, 0.2) 0%, transparent 60%); }
.cta-final .inner { position: relative; z-index: 2; text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.cta-final h2 { color: white; margin-bottom: 1rem; }
.cta-final p { color: rgba(255, 255, 255, 0.85); font-size: 1.1rem; }
.booking-frame {
  max-width: 960px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 1rem; border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
  position: relative; z-index: 2;
}
.booking-frame iframe { width: 100%; min-height: 760px; border: none; border-radius: 16px; background: white; display: block; }

/* ===== FAQ ===== */
.faq-mod { max-width: 820px; margin: 3rem auto 0; }
.faq-mod .q {
  background: white; border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.2s;
}
.faq-mod .q.open { border-color: var(--accent); }
.faq-mod .q-btn {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; font-weight: 600; color: var(--navy-900);
  font-size: 1rem; font-family: inherit;
}
.faq-mod .q-icon {
  width: 28px; height: 28px; background: var(--bg); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-900); font-size: 1.2rem; flex-shrink: 0; transition: all 0.3s;
}
.faq-mod .q.open .q-icon { background: var(--accent); color: white; transform: rotate(45deg); }
.faq-mod .q-ans { max-height: 0; overflow: hidden; transition: max-height 0.4s; padding: 0 1.5rem; }
.faq-mod .q.open .q-ans { max-height: 500px; padding-bottom: 1.25rem; }
.faq-mod .q-ans p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== PAGE HERO (non-accueil) ===== */
.page-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, white 100%);
  text-align: center;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 1.1rem; }

/* ===== CABINET / CONTACT PAGES ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(14, 22, 40, 0.1); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.contact-info { background: white; padding: 2.5rem; border-radius: 20px; border: 1px solid var(--border); }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info ul { list-style: none; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info .ci-icon {
  width: 40px; height: 40px; background: rgba(255, 107, 53, 0.1);
  color: var(--accent); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info strong { display: block; color: var(--navy-900); font-size: 0.92rem; margin-bottom: 0.2rem; }
.contact-info a, .contact-info span { color: var(--text-secondary); font-size: 0.92rem; }
.contact-info a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-900); color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 1.5rem; font-size: 0.9rem;
}
.footer .logo-brand { color: white; }
.footer .logo-sub { color: var(--taupe); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer h5 {
  color: #FFB896; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 1rem; font-family: 'Inter', sans-serif;
}
.footer a { color: rgba(255, 255, 255, 0.8); transition: color 0.2s; }
.footer a:hover { color: #FFB896; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.5rem; }
.footer-legal {
  padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); line-height: 1.7;
}
.footer-legal p { color: inherit; font-size: inherit; margin-bottom: 0.75rem; }
.footer-bottom {
  margin-top: 1rem; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  color: rgba(255, 255, 255, 0.55); font-size: 0.78rem;
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 99;
  background: #25D366; color: white;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* ===== URGENCY BAR ===== */
.urgency-bar {
  background: var(--navy-900); color: white;
  text-align: center; padding: 0.55rem 1rem;
  font-size: 0.85rem; font-weight: 500;
}
.urgency-bar strong { color: var(--lime); }

/* ===== THANK YOU PAGE ===== */
.thankyou-hero {
  padding: 5rem 0; text-align: center;
  background: linear-gradient(135deg, var(--bg) 0%, white 100%);
}
.thankyou-check {
  width: 90px; height: 90px; margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--green) 0%, #059669 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
  animation: checkPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .sim-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-modern { grid-template-columns: 1fr; }
  .features-mod { grid-template-columns: repeat(2, 1fr); }
  .compare-mod { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3.5rem 0; }
  .sim-hero { padding: 1.75rem; }
  .sim-output { padding: 1.5rem; }
  .menu-toggle { display: flex; }
  .nav-primary {
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column; gap: 0;
    padding: 1rem; border-top: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(14, 22, 40, 0.08);
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: all 0.3s ease;
  }
  .nav-primary.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-primary a { padding: 0.8rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-primary a:last-child { border-bottom: none; }
  .header-phone { display: none; }
}
@media (max-width: 560px) {
  .header .btn { padding: 0.55rem 0.9rem; font-size: 0.82rem; }
  .features-mod { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .sim-cta .btn { flex: none; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-frame iframe { min-height: 720px; }
  .proof-grid { gap: 1.5rem; }
  .form-wrapper { padding: 1.75rem 1.25rem; }
  .article-body .container-narrow { font-size: 1rem; }
  .article-body h2 { font-size: 1.5rem; }

  /* ===== Simulateur mobile – pastille masquée pour éviter le chevauchement ===== */
  .sim-hero {
    margin-top: 1rem;
    padding: 1.5rem 1.15rem 1.5rem;
    border-radius: 22px;
  }
  .sim-hero::before {
    display: none !important;
  }
  .sim-grid { gap: 1.5rem; }
  .sim-input .big-value { font-size: 2.2rem; margin-bottom: 1.1rem; }
  .sim-presets { gap: 0.4rem; margin-top: 1rem; }
  .sim-preset { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
  .sim-output { padding: 1.4rem 1.2rem; border-radius: 16px; }
  .sim-row { padding: 0.7rem 0; }
  .sim-row .lbl { font-size: 0.82rem; }
  .sim-row .val { font-size: 1.1rem; }
  .sim-row.final .val { font-size: 2rem; }
  .sim-disclaimer { font-size: 0.72rem; }
}
@media (max-width: 380px) {
  .sim-hero { padding: 1.35rem 0.95rem 1.4rem; }
  .sim-input .big-value { font-size: 1.95rem; }
  .sim-row.final .val { font-size: 1.75rem; }
}
