/*
Theme Name: LeadGen Pro
Theme URI: https://fournisseurtextile.fr
Author: Claude
Description: Theme premium B2B leadgen — Template reutilisable Navy & Gold
Version: 4.0.0
Text Domain: textile-leadgen
*/

/* ============================================================
   DESIGN SYSTEM V3 — Navy & Gold Premium + Mega Menu + Rich Content
   ============================================================ */

:root {
  --n: #0d1b2a;
  --n2: #162535;
  --n3: #1e3a5f;
  --g: #c9a227;
  --gl: #e8c547;
  --gd: #a8851e;
  --w: #ffffff;
  --ow: #f8f7f4;
  --lt: #f0f2f6;
  --gr: #6b7a8d;
  --grd: #3d4f63;
  --tx: #1a2332;
  --bd: #e2e8f0;
  --sh: 0 4px 24px rgba(13,27,42,.08);
  --shl: 0 16px 60px rgba(13,27,42,.14);
  --r: 12px;
  --rl: 18px;
  --tr: .28s ease;
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--tx);
  background: var(--w);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--n); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--g); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* === TOPBAR === */
.topbar {
  background: var(--n);
  border-bottom: 1px solid rgba(201,162,39,.2);
  padding: 8px 0;
}
.topbar-i {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
}
.topbar-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; color: var(--g); font-weight: 600;
}
.topbar-links { display: flex; gap: 20px; }
.topbar-links a {
  font-size: .78rem; color: rgba(255,255,255,.55);
  display: flex; align-items: center; gap: 5px;
  transition: color .2s;
}
.topbar-links a:hover { color: var(--g); }

/* === HEADER === */
.site-header {
  background: var(--w);
  border-bottom: 1px solid var(--bd);
  position: sticky; top: 0; z-index: 1000;
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(13,27,42,.1);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  height: 68px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.3rem; font-weight: 800; color: var(--n);
  letter-spacing: -.5px; flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--n); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* === NAVIGATION + MEGA MENU === */
.main-nav { display: flex; align-items: center; gap: 0; }
.nav-list {
  display: flex; align-items: center; gap: 0;
  list-style: none; margin: 0; padding: 0;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 8px;
  font-weight: 500; font-size: .88rem; color: var(--grd);
  transition: all var(--tr); cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { background: var(--lt); color: var(--n); }
.dd-arrow { font-size: .6rem; transition: transform .2s; opacity: .5; }
.nav-item:hover .dd-arrow { transform: rotate(180deg); opacity: 1; }

/* Mega Menu Dropdown */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  display: none;
  background: var(--w);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  box-shadow: 0 20px 60px rgba(13,27,42,.15);
  padding: 28px 32px;
  z-index: 100;
  gap: 32px;
}
.mega-menu::before {
  content: "";
  position: absolute; top: -10px; left: 0; right: 0; height: 12px;
}
.nav-item:hover > .mega-menu { display: grid; }
.mega-menu.cols-2 { grid-template-columns: 1fr 1fr; min-width: 460px; }
.mega-menu.cols-3 { grid-template-columns: 1fr 1fr 1fr; min-width: 640px; }
.mega-col { display: flex; flex-direction: column; gap: 4px; }
.mega-title {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--g); margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--lt);
}
.mega-col a {
  font-size: .87rem; color: var(--grd);
  padding: 5px 8px; border-radius: 6px;
  transition: all .2s; display: block;
}
.mega-col a:hover {
  color: var(--n); background: var(--lt);
  padding-left: 12px;
}

.btn-nav {
  background: var(--g) !important;
  color: var(--n) !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: .87rem !important;
  margin-left: 12px !important;
  transition: all var(--tr) !important;
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--gl) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(201,162,39,.35) !important;
}
.nav-toggle {
  display: none; background: none; border: none;
  cursor: pointer; flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--n); border-radius: 2px; transition: all .3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* === BUTTONS === */
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g); color: var(--n) !important;
  padding: 14px 26px; border-radius: 9px;
  font-weight: 800; font-size: .93rem;
  transition: all .25s; border: none; cursor: pointer; font-family: var(--font);
}
.btn-gold:hover {
  background: var(--gl); color: var(--n) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201,162,39,.4);
}
.btn-navy {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--n); color: var(--w) !important;
  padding: 14px 26px; border-radius: 9px;
  font-weight: 700; font-size: .93rem;
  transition: all .25s; border: none; cursor: pointer; font-family: var(--font);
}
.btn-navy:hover {
  background: var(--n2); color: var(--w) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,27,42,.35);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  color: #fff !important;
  padding: 14px 26px; border-radius: 9px;
  font-weight: 600; font-size: .93rem;
  border: 1.5px solid rgba(255,255,255,.22);
  transition: all .25s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.4);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--n) !important;
  padding: 14px 26px; border-radius: 9px;
  font-weight: 600; font-size: .93rem;
  border: 1.5px solid var(--bd);
  transition: all .25s;
}
.btn-outline:hover {
  border-color: var(--g); color: var(--g) !important;
  transform: translateY(-1px);
}

/* === EYEBROW === */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gd); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; display: block;
  width: 22px; height: 2px;
  background: var(--g); border-radius: 2px;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.light { color: var(--gl); }

/* === TITRES === */
.t-h2 { font-size: 2.5rem; font-weight: 900; color: var(--n); letter-spacing: -1.2px; line-height: 1.12; margin-bottom: 16px; }
.t-h2.white { color: #fff; }
.t-h3 { font-size: 1.5rem; font-weight: 800; color: var(--n); letter-spacing: -.5px; margin-bottom: 12px; }
.t-p { font-size: 1.02rem; color: var(--gr); line-height: 1.78; max-width: 580px; }
.t-p.white { color: rgba(255,255,255,.6); }
.sec-head { margin-bottom: 56px; }
.sec-head.c { text-align: center; }
.sec-head.c .t-p { margin: 0 auto; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(145deg, var(--n) 0%, var(--n2) 55%, var(--n3) 100%);
  color: #fff; padding: 72px 0 68px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute; top: -120px; right: -60px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: 2.6rem; font-weight: 900;
  letter-spacing: -1.5px; line-height: 1.12;
  margin-bottom: 14px;
}
.page-hero h1 span { color: var(--g); }
.page-hero .hero-desc, .page-hero .hero-lead {
  font-size: 1.06rem; opacity: .7;
  max-width: 640px; margin: 0 auto 20px;
  line-height: 1.72;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 20px; font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.breadcrumb ol {
  display: flex; align-items: center; gap: 0;
  list-style: none; justify-content: center;
  flex-wrap: wrap;
}
.breadcrumb ol li { display: flex; align-items: center; }
.breadcrumb ol li::after {
  content: "\203A"; margin: 0 10px;
  color: rgba(255,255,255,.3);
}
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb a { color: var(--g); transition: opacity .2s; }
.breadcrumb a:hover { opacity: .7; color: var(--g); }
.breadcrumb span { margin: 0 8px; }

/* Hero Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 28px;
}
.hero-stat {
  font-size: .92rem; color: rgba(255,255,255,.7);
}
.hero-stat strong {
  display: block; font-size: 1.6rem;
  font-weight: 900; color: var(--g);
  letter-spacing: -1px;
}

/* === PAGE CONTENT === */
.page-content { padding: 64px 0; }
.page-content .container { max-width: 1300px; }

/* Content Grid (two column: content + sidebar) */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* === ENTRY CONTENT === */
.entry-content { max-width: none; }
.content-body.entry-content { max-width: none; }
.entry-content h2 {
  font-size: 1.55rem; font-weight: 800; color: var(--n);
  margin: 40px 0 16px; letter-spacing: -.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lt);
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--n);
  margin: 28px 0 12px;
}
.entry-content h4 {
  font-size: 1.05rem; font-weight: 700; color: var(--n);
  margin: 24px 0 10px;
}
.entry-content p {
  margin-bottom: 18px; line-height: 1.82;
  color: var(--grd); font-size: 1.01rem;
}
.entry-content ul, .entry-content ol {
  padding-left: 24px; margin-bottom: 20px;
}
.entry-content li {
  margin-bottom: 10px; line-height: 1.75;
  color: var(--grd); font-size: .98rem;
}
.entry-content li::marker { color: var(--g); }
.entry-content strong { color: var(--n); }
.entry-content a { color: var(--g); font-weight: 600; border-bottom: 1px solid rgba(201,162,39,.3); }
.entry-content a:hover { border-bottom-color: var(--g); }
.entry-content blockquote {
  border-left: 4px solid var(--g);
  background: var(--ow);
  padding: 24px 28px;
  margin: 28px 0;
  border-radius: 0 var(--r) var(--r) 0;
  font-style: italic; color: var(--grd);
}
.entry-content img {
  border-radius: var(--r); margin: 28px 0;
  box-shadow: var(--sh);
}

/* === SUB-CARD GRID (internal link cards) === */
.sub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.sub-card {
  display: block;
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all .28s;
  text-decoration: none !important;
}
.sub-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shl);
  border-color: var(--g);
}
.sub-card .sub-card-title,
.sub-card span.sub-card-title {
  display: block;
  font-size: 1.02rem; font-weight: 700;
  color: var(--n) !important; margin-bottom: 8px;
}
.sub-card p {
  font-size: .86rem !important; color: var(--gr) !important;
  line-height: 1.6; margin-bottom: 10px !important;
}
.sub-card .sub-card-link,
.sub-card span.sub-card-link {
  font-size: .82rem; font-weight: 700;
  color: var(--g) !important;
  border-bottom: none !important;
  transition: gap .2s;
}


/* === SUB-CARD-DESC (replaces <p> inside sub-cards to avoid wpautop) === */
.sub-card .sub-card-desc {
  display: block;
  font-size: .86rem;
  color: var(--gr);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* === PROCESS STEPS === */
.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
}
.process-step {
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px 20px;
  text-align: center;
}
.process-num {
  width: 44px; height: 44px;
  background: var(--n); color: var(--g);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 12px;
}
.process-step h3, .process-step h4 {
  font-size: 1rem !important; font-weight: 700;
  margin: 0 0 6px !important; color: var(--n);
}
.process-step p {
  font-size: .86rem !important; color: var(--gr) !important;
  margin-bottom: 0 !important;
}

/* === FAQ ACCORDION === */
.faq-list {
  margin-top: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item[open] { border-color: var(--g); }
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600; font-size: .95rem;
  color: var(--n); cursor: pointer;
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  list-style: none;
  transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(201,162,39,.04); }
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--gr);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--g); }
.faq-answer {
  padding: 0 24px 20px;
}
.faq-answer p {
  font-size: .92rem !important; color: var(--grd) !important;
  line-height: 1.75; margin-bottom: 0 !important;
}

/* === PAGE SIDEBAR === */
.page-sidebar { }
.sidebar-sticky {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-cta-card {
  background: linear-gradient(145deg, var(--n), var(--n2));
  border-radius: var(--rl);
  padding: 28px;
  color: #fff; text-align: center;
}
.sidebar-cta-card h3 {
  font-size: 1.1rem; font-weight: 800;
  margin-bottom: 10px; color: #fff;
}
.sidebar-cta-card p {
  font-size: .88rem; color: rgba(255,255,255,.65);
  margin-bottom: 18px; line-height: 1.6;
}
.sidebar-trust-card {
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  padding: 24px;
}
.sidebar-trust-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--n); margin-bottom: 14px;
}
.sidebar-trust-card ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.sidebar-trust-card li {
  font-size: .88rem; color: var(--grd);
  display: flex; align-items: center; gap: 8px;
}


/* === CARDS GRID (see-also / related links) === */
.cards-grid,
.see-also-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.cards-grid .card,
.see-also-grid .see-also-card {
  display: block;
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all .28s;
  text-decoration: none !important;
  color: inherit !important;
}
.cards-grid .card:hover,
.see-also-grid .see-also-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shl);
  border-color: var(--g);
}
.cards-grid .card h3,
.cards-grid .card .see-also-heading,
.see-also-grid .see-also-card .see-also-title {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--n) !important;
  margin-bottom: 8px;
  border-bottom: none;
  padding-bottom: 0;
}
.cards-grid .card p,
.see-also-grid .see-also-card p {
  font-size: .86rem !important;
  color: var(--gr) !important;
  line-height: 1.6;
  margin-bottom: 0 !important;
}

/* === SECTION TITLE (from static HTML) === */
.entry-content .section-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--n);
  margin: 48px 0 20px;
  letter-spacing: -.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--lt);
}

/* === FEATURE LIST === */
.entry-content .feature-list {
  padding-left: 24px;
  margin-bottom: 20px;
}
.entry-content .feature-list li {
  margin-bottom: 12px;
  line-height: 1.75;
  color: var(--grd);
  font-size: .98rem;
}
.entry-content .feature-list li::marker {
  color: var(--g);
}

/* === DEVIS SECTION === */
.page-devis-section {
  background: var(--ow);
  padding: 64px 0;
  border-top: 1px solid var(--bd);
}
.devis-wrapper {
  max-width: 700px; margin: 0 auto;
  text-align: center;
}
.devis-wrapper h2 {
  font-size: 1.8rem; font-weight: 900;
  color: var(--n); margin-bottom: 12px;
  letter-spacing: -.5px;
}
.devis-lead {
  font-size: 1rem; color: var(--gr);
  margin-bottom: 32px;
}

/* === CARDS === */
.card {
  background: var(--w);
  border-radius: var(--rl);
  padding: 32px 28px;
  border: 1px solid var(--bd);
  transition: all .28s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shl);
  border-color: transparent;
}

/* === BLOG GRID === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: var(--w);
  border-radius: var(--rl);
  overflow: hidden;
  border: 1px solid var(--bd);
  transition: all .28s;
  display: block;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shl);
  border-color: transparent;
}
.blog-card-img {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.blog-card-body { padding: 24px; }
.blog-cat {
  display: inline-block;
  background: rgba(201,162,39,.1);
  color: var(--gd);
  padding: 4px 11px; border-radius: 100px;
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--n); line-height: 1.4; margin-bottom: 10px; }
.blog-card h3 a { color: var(--n); }
.blog-card h3 a:hover { color: var(--g); }
.blog-card p { font-size: .85rem; color: var(--gr); line-height: 1.65; margin-bottom: 14px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: #a0aab8; }
.read-more { color: var(--g) !important; font-weight: 700; font-size: .84rem; display: inline-flex; align-items: center; gap: 4px; }
.read-more:hover { gap: 8px; }

/* === ARTICLE SIDEBAR === */
.article-sidebar {
  background: var(--ow); border-radius: var(--rl);
  padding: 32px; border: 1px solid var(--bd);
}
.article-sidebar h4 {
  font-size: .82rem; font-weight: 700; color: var(--gd);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.sidebar-cta {
  background: linear-gradient(145deg, var(--n), var(--n2));
  border-radius: var(--rl); padding: 28px;
  color: #fff; text-align: center;
}
.sidebar-cta h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.sidebar-cta p { font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 18px; line-height: 1.6; }

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(145deg, var(--n) 0%, var(--n2) 55%, var(--n3) 100%);
  padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,162,39,.1) 0%, transparent 60%);
  border-radius: 50%; pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: 2.4rem; font-weight: 900; color: #fff;
  letter-spacing: -1.2px; margin-bottom: 14px; line-height: 1.12;
}
.cta-banner h2 span { color: var(--g); }
.cta-banner p {
  font-size: 1.02rem; color: rgba(255,255,255,.6);
  margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto;
  line-height: 1.72;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* === FORMS CF7 === */
.wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.wpcf7 .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wpcf7 input[type=text], .wpcf7 input[type=email],
.wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--bd); border-radius: 9px;
  font-family: var(--font); font-size: .92rem;
  color: var(--tx); background: #fafbfc;
  transition: all .2s; outline: none;
}
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus {
  border-color: var(--n); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,27,42,.08);
}
.wpcf7 textarea { min-height: 100px; resize: vertical; }
.wpcf7 input[type=submit] {
  background: var(--n); color: #fff;
  border: none; padding: 15px 28px;
  border-radius: 9px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .25s; font-family: var(--font);
}
.wpcf7 input[type=submit]:hover {
  background: var(--n2); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(13,27,42,.35);
}

/* === HOMEPAGE FORM === */
.hpf { display: flex; flex-direction: column; gap: 11px; }
.hpf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hpf-inp, .hp-input {
  width: 100%; padding: 12px 15px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: .9rem; color: var(--tx);
  font-family: var(--font); outline: none;
  background: #fafbfc; transition: all .2s;
}
.hpf-inp:focus, .hp-input:focus {
  border-color: var(--n); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,27,42,.08);
}
.hpf-submit {
  background: var(--n); color: #fff; border: none;
  padding: 15px; border-radius: 8px;
  font-size: .97rem; font-weight: 800; cursor: pointer;
  font-family: var(--font); transition: all .25s; width: 100%;
}
.hpf-submit:hover { background: var(--n2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(13,27,42,.38); }
.hpf-note { font-size: .75rem; color: #a0aab8; text-align: center; margin-top: 6px; }
.hp .wpcf7 { display: none !important; }

/* === FOOTER === */
.site-footer {
  background: var(--n);
  color: rgba(255,255,255,.7);
  padding: 72px 0 0;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  margin-bottom: 16px;
}
.footer-brand .footer-logo .logo-icon {
  width: 38px; height: 38px; background: rgba(201,162,39,.15);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.footer-brand > p {
  font-size: .86rem; line-height: 1.72;
  margin-bottom: 20px; color: rgba(255,255,255,.55);
}
.footer-contact a {
  display: flex; align-items: center; gap: 10px;
  font-size: .86rem; color: rgba(255,255,255,.6);
  margin-bottom: 10px; transition: color .2s;
}
.footer-contact a:hover { color: var(--g); }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; color: var(--g);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a {
  color: rgba(255,255,255,.55); font-size: .87rem; transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.footer-col ul li a::before {
  content: ""; display: block; width: 4px; height: 4px;
  border-radius: 50%; background: rgba(201,162,39,.4);
  transition: background .2s;
}
.footer-col ul li a:hover { color: var(--g); padding-left: 4px; }
.footer-col ul li a:hover::before { background: var(--g); }
.footer-bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.35);
}

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.pagination .page-numbers {
  display: flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px;
  border-radius: 9px; font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--bd); color: var(--grd);
  transition: all .2s;
}
.pagination .page-numbers:hover { border-color: var(--g); color: var(--g); }
.pagination .page-numbers.current {
  background: var(--n); color: #fff; border-color: var(--n);
}

/* === ANIMATIONS === */
.anim { opacity: 0; transform: translateY(26px); transition: opacity .55s ease, transform .55s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }


/* === DATA TABLES (Type B pages) === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: var(--w);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
  font-size: .92rem;
}
.data-table thead {
  background: var(--n);
  color: #fff;
}
.data-table th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  border-bottom: 2px solid var(--g);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  color: var(--grd);
  line-height: 1.5;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}
.data-table tbody tr:nth-child(even) {
  background: var(--ow);
}
.data-table tbody tr:hover {
  background: rgba(201,162,39,.06);
}
.data-table td strong {
  color: var(--n);
  font-weight: 700;
}
.data-table td em {
  color: var(--gr);
  font-size: .88rem;
}

/* === CONTENT SECTIONS (Type B pages) === */
.content-section {
  margin-bottom: 40px;
}
.content-section:last-child {
  margin-bottom: 0;
}
.content-section h2:first-child {
  margin-top: 0;
}

/* === TABLE RESPONSIVE === */
@media(max-width:768px) {
  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: .84rem;
  }
  .data-table th,
  .data-table td {
    padding: 10px 12px;
    white-space: nowrap;
  }
}

/* === GENERIC TABLE STYLING (for any table in entry-content) === */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  background: var(--w);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  overflow: hidden;
}
.entry-content table thead {
  background: var(--n);
  color: #fff;
}
.entry-content table th {
  padding: 14px 16px;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  text-align: left;
  border-bottom: 2px solid var(--g);
}
.entry-content table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bd);
  color: var(--grd);
  line-height: 1.5;
}
.entry-content table tbody tr:last-child td {
  border-bottom: none;
}
.entry-content table tbody tr:nth-child(even) {
  background: var(--ow);
}
.entry-content table tbody tr:hover {
  background: rgba(201,162,39,.06);
}


/* === SEGMENT GRID (annuaire pages) === */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0 32px;
}
.segment-card {
  background: var(--ow);
  border: 1px solid var(--bd);
  border-radius: var(--r);
  padding: 24px 20px;
  transition: all .28s;
}
.segment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shl);
  border-color: var(--g);
}
.segment-card h3 {
  font-size: 1.02rem; font-weight: 700;
  color: var(--n); margin-bottom: 8px;
}
.segment-card p {
  font-size: .86rem; color: var(--gr);
  line-height: 1.6; margin-bottom: 8px;
}
.segment-card a {
  font-size: .82rem; font-weight: 700;
  color: var(--g) !important;
  border-bottom: none !important;
}

/* === HERO-SUB fallback (legacy class rendered as hero-lead) === */
.hero-sub {
  font-size: 1.06rem; opacity: .7;
  max-width: 640px; margin: 0 auto 20px;
  line-height: 1.72;
}

@media(max-width:768px) {
  .segment-grid { grid-template-columns: 1fr; }
}
@media(max-width:1024px) {
  .segment-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === RESPONSIVE === */
@media(max-width:1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .page-sidebar { display: none; }
  .sub-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 2.2rem; }
  .t-h2 { font-size: 2rem; }
  .mega-menu { position: static; transform: none; display: none !important;
    box-shadow: none; border: none; border-radius: 0;
    padding: 12px 0 12px 16px; background: var(--lt);
    min-width: 0;
  }
  .nav-item.mega-open > .mega-menu { display: grid !important; }
  .mega-menu.cols-2, .mega-menu.cols-3 { grid-template-columns: 1fr; gap: 16px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--w); padding: 16px 20px;
    box-shadow: var(--shl);
    border-top: 1px solid var(--bd);
    max-height: 80vh; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; width: 100%; gap: 0; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 16px; }
  .btn-nav { margin: 12px 0 0 !important; text-align: center; justify-content: center; }
}

@media(max-width:768px) {
  .sub-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero { padding: 48px 0 44px; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-stat strong { font-size: 1.3rem; display: inline; margin-right: 6px; }
  .t-h2 { font-size: 1.8rem; }
  .topbar { display: none; }
  .page-content { padding: 40px 0; }
  .entry-content h2 { font-size: 1.3rem; }
  .wpcf7 .form-row { grid-template-columns: 1fr; }
  .hpf-row { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.8rem; }
  .cta-banner { padding: 56px 0; }
  .page-devis-section { padding: 40px 0; }
  .devis-wrapper h2 { font-size: 1.5rem; }
  .content-grid { gap: 24px; }
}


/* === PRE-FOOTER CTA === */
.pre-footer-cta {
  background: linear-gradient(135deg, var(--n) 0%, var(--n2) 100%);
  padding: 48px 0;
  border-top: 3px solid var(--g);
}
.pf-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.pf-title {
  font-size: 1.8rem; font-weight: 900;
  color: var(--w); margin-bottom: 8px; letter-spacing: -.5px;
}
.pf-sub { color: rgba(255,255,255,.65); font-size: 1rem; }
.pf-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; flex-shrink: 0; }
.pf-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--g); font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.pf-phone:hover { color: var(--gl); }

/* === FOOTER CONTACT === */
.footer-logo { display: flex; align-items: center; margin-bottom: 14px; }
.footer-tagline { color: rgba(255,255,255,.5); font-size: .88rem; line-height: 1.6; margin-bottom: 16px; }
.footer-contact-block { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-link {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.55); font-size: .85rem;
  text-decoration: none; transition: color .2s;
}
.footer-contact-link:hover { color: var(--g); }

/* === WHATSAPP FLOAT === */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #25D366; border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}
