/*
 Theme Name:   Relevage Eaux
 Theme URI:    https://relevage-eaux.fr
 Description:  Thème expert pompe de relevage — génération de leads BTP. Child theme de GeneratePress.
 Author:       relevage-eaux.fr
 Author URI:   https://relevage-eaux.fr
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  relevage-eaux
*/

/* ──────────────────────────────────────
   DESIGN SYSTEM — Variables
   ────────────────────────────────────── */
:root {
  --white: #ffffff;
  --bg: #f6f7f9;
  --bg2: #eef1f5;
  --card: #ffffff;
  --text: #1a1f2e;
  --text2: #4a5168;
  --text3: #6b7280;
  --line: #dde1e9;
  --line2: #e8ecf1;
  --blue: #1b4f8a;
  --blue2: #2563a8;
  --blue3: #e8f0fb;
  --blue4: #1a3d6e;
  --orange: #e65100;
  --orange2: #ff6d00;
  --orange3: #fff3e0;
  --orange4: #bf360c;
  --green: #2e7d32;
  --green3: #e8f5e9;
  --red: #c62828;
  --red3: #ffebee;
  --yellow3: #fffde7;
  --yellow: #f57f17;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 14px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --radius: 12px;
  --radius2: 16px;
  --max: 1140px;
  --content: 760px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
}

/* ──────────────────────────────────────
   RESET & BASE
   ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 140px }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; display: block }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px }

/* ──────────────────────────────────────
   BANDEAU URGENCE
   ────────────────────────────────────── */
.urgence-bar {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.urgence-bar a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .5px;
}
.urgence-bar a:hover { opacity: .85 }
.pulse-dot {
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,255,255,.3);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 3px rgba(255,255,255,.3) }
  50% { opacity: .6; transform: scale(1.3); box-shadow: 0 0 0 6px rgba(255,255,255,.1) }
}

/* ──────────────────────────────────────
   HEADER
   ────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 15px; color: var(--blue) }
.brand-icon {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(27,79,138,.25);
}
.brand-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.brand small { font-weight: 500; color: var(--text3); font-size: 12px; display: block; margin-top: -2px }

/* Nav */
.main-nav { display: none; gap: 4px; align-items: center }
.main-nav a {
  font-weight: 600; font-size: 14px; color: var(--text2);
  padding: 8px 14px; border-radius: 8px; transition: .15s;
}
.main-nav a:hover { background: var(--bg); color: var(--text) }
.main-nav a[aria-current="page"] { background: var(--blue3); color: var(--blue) }

.header-actions { display: flex; gap: 8px; align-items: center }

@media (min-width: 960px) {
  .main-nav { display: flex }
  .menu-toggle { display: none !important }
}

/* Tel button */
.tel-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--orange);
  padding: 8px 14px; border-radius: 10px;
  border: 2px solid var(--orange); background: var(--orange3); transition: .15s;
}
.tel-btn:hover { background: var(--orange); color: white }
.tel-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round }

/* Mobile menu */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
  background: white;
}
.mobile-nav.open { display: block }
.mobile-nav a {
  display: block; padding: 12px 14px; border-radius: 10px;
  font-weight: 600; color: var(--text2);
}
.mobile-nav a:hover { background: var(--bg); color: var(--text) }
.mob-actions { display: flex; gap: 8px; padding: 12px 14px; flex-wrap: wrap }

/* ──────────────────────────────────────
   BUTTONS
   ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--white); color: var(--text);
  cursor: pointer; transition: .15s; white-space: nowrap;
  font-family: var(--font);
}
.btn:hover { border-color: var(--blue2); color: var(--blue2); box-shadow: var(--shadow-sm) }
.btn-blue { background: var(--blue); border-color: var(--blue); color: white }
.btn-blue:hover { background: var(--blue4); border-color: var(--blue4); color: white; box-shadow: 0 4px 12px rgba(27,79,138,.3) }
.btn-orange { background: var(--orange); border-color: var(--orange); color: white }
.btn-orange:hover { background: var(--orange4); border-color: var(--orange4); color: white; box-shadow: 0 4px 12px rgba(230,81,0,.3) }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 8px }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px }

/* ──────────────────────────────────────
   BREADCRUMB
   ────────────────────────────────────── */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px; font-weight: 600; color: var(--text3);
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue2) }
.breadcrumb a:hover { text-decoration: underline }
.breadcrumb .sep { opacity: .4 }

/* ──────────────────────────────────────
   SECTIONS
   ────────────────────────────────────── */
.section-label {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--blue2); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15; letter-spacing: -.3px;
  font-weight: 800; margin-bottom: 8px;
}
.section-title em { font-family: var(--serif); font-style: italic; color: var(--blue2); font-weight: 400 }
.section-desc { color: var(--text2); font-size: 16px; max-width: 65ch; margin-bottom: 32px }

/* ──────────────────────────────────────
   ARTICLE LAYOUT (single.php)
   ────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
@media (min-width: 960px) {
  .article-layout { grid-template-columns: 1fr 320px }
}

.article-main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Article header */
.article-header {
  padding: 32px 28px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, white 0%, var(--bg) 100%);
}
.article-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px }
.abadge {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px;
  padding: 5px 12px; border-radius: 6px;
}
.abadge-urgent { background: var(--red3); color: var(--red); border: 1px solid rgba(198,40,40,.12) }
.abadge-depannage { background: var(--orange3); color: var(--orange4); border: 1px solid rgba(230,81,0,.12) }
.abadge-guide { background: var(--blue3); color: var(--blue); border: 1px solid rgba(27,79,138,.12) }
.abadge-achat { background: var(--green3); color: var(--green); border: 1px solid rgba(46,125,50,.12) }

.article-header h1 {
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.15; letter-spacing: -.3px;
  font-weight: 800; color: var(--text); margin-bottom: 12px;
}
.article-header h1 em { font-family: var(--serif); font-style: italic; color: var(--orange); font-weight: 400 }
.article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: var(--text3);
}

/* Article body */
.article-body { padding: 28px }
.article-body h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text); margin: 36px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--line2);
}
.article-body h2:first-child { margin-top: 0 }
.article-body h2 .hnum {
  color: var(--blue2); font-family: var(--serif);
  font-weight: 400; font-style: italic; margin-right: 6px;
}
.article-body h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 24px 0 10px }
.article-body p { color: var(--text2); font-size: 15px; line-height: 1.75; margin-bottom: 14px }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px }
.article-body li { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 6px }
.article-body strong { color: var(--text) }
.article-body a { color: var(--blue2); text-decoration: underline; text-underline-offset: 3px }
.article-body a:hover { color: var(--blue4) }
.article-body img { border-radius: var(--radius); margin: 16px 0; box-shadow: var(--shadow-sm) }

/* ──────────────────────────────────────
   ALERT BOXES
   ────────────────────────────────────── */
.alert-box {
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px; line-height: 1.6;
  margin: 20px 0;
}
.alert-box strong { display: block; margin-bottom: 2px }
.alert-danger { background: var(--red3); border: 1px solid rgba(198,40,40,.15); color: #7f1d1d }
.alert-info { background: var(--blue3); border: 1px solid rgba(27,79,138,.12); color: var(--blue4) }
.alert-tip { background: var(--green3); border: 1px solid rgba(46,125,50,.12); color: #1b5e20 }
.alert-warning { background: var(--yellow3); border: 1px solid rgba(245,127,23,.12); color: #7c4b00 }
.alert-icon { font-size: 20px; flex-shrink: 0; line-height: 1.4 }

/* ──────────────────────────────────────
   TL;DR BOX (AI Overview optimized)
   ────────────────────────────────────── */
.tldr-box {
  background: var(--blue3);
  border: 2px solid var(--blue2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}
.tldr-box h3 {
  font-size: 15px; font-weight: 800; color: var(--blue);
  margin: 0 0 8px; display: flex; align-items: center; gap: 8px;
}
.tldr-box p {
  font-size: 14px; color: var(--blue4); line-height: 1.7; margin: 0;
}

/* ──────────────────────────────────────
   CAUSE CARDS (dépannage articles)
   ────────────────────────────────────── */
.cause-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 16px 0;
}
.cause-header { display: flex; gap: 12px; align-items: center; margin-bottom: 10px }
.cause-num {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.cause-num-elec { background: var(--yellow3); color: var(--yellow); border: 1px solid rgba(245,127,23,.15) }
.cause-num-meca { background: var(--orange3); color: var(--orange4); border: 1px solid rgba(230,81,0,.12) }
.cause-num-hydro { background: var(--blue3); color: var(--blue); border: 1px solid rgba(27,79,138,.12) }
.cause-header h3 { margin: 0; font-size: 16px }
.cause-card p { font-size: 14px; color: var(--text2); margin-bottom: 10px; line-height: 1.65 }
.cause-solution {
  padding: 12px 14px; border-radius: 8px;
  background: var(--green3); border: 1px solid rgba(46,125,50,.1);
  font-size: 13px; font-weight: 600; color: #1b5e20;
  display: flex; gap: 8px; align-items: flex-start;
}
.cause-diag {
  padding: 12px 14px; border-radius: 8px;
  background: var(--blue3); border: 1px solid rgba(27,79,138,.1);
  font-size: 13px; font-weight: 600; color: var(--blue4);
  display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 8px;
}

/* ──────────────────────────────────────
   DIAGNOSTIC STEPS
   ────────────────────────────────────── */
.diag-steps {
  background: var(--card); border: 2px solid var(--blue2);
  border-radius: var(--radius); padding: 24px; margin: 20px 0;
}
.diag-steps h3 {
  font-size: 17px; font-weight: 800; color: var(--blue);
  margin: 0 0 16px; display: flex; gap: 8px; align-items: center;
}
.diag-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--line2);
}
.diag-step:first-of-type { border-top: none; padding-top: 0 }
.ds-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue3); color: var(--blue);
  font-weight: 800; font-size: 13px;
  display: grid; place-items: center; flex-shrink: 0;
}
.ds-content { font-size: 14px; color: var(--text2); line-height: 1.6 }
.ds-content strong { color: var(--text); display: block; margin-bottom: 2px }

/* ──────────────────────────────────────
   CTA INLINE
   ────────────────────────────────────── */
.cta-inline {
  background: linear-gradient(135deg, var(--orange3), #fff8f0);
  border: 2px solid var(--orange);
  border-radius: var(--radius);
  padding: 24px; margin: 28px 0; text-align: center;
}
.cta-inline h3 { font-size: 18px; font-weight: 800; color: var(--orange4); margin: 0 0 6px }
.cta-inline p { font-size: 14px; color: var(--text2); margin-bottom: 14px }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }

/* ──────────────────────────────────────
   PRICE TABLE
   ────────────────────────────────────── */
.price-table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.price-table th {
  background: var(--blue4); color: white;
  padding: 12px 14px; text-align: left;
  font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .5px;
}
.price-table td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--text2) }
.price-table tr:nth-child(even) td { background: var(--bg) }
.price-table td strong { color: var(--text) }

/* ──────────────────────────────────────
   FAQ ACCORDION
   ────────────────────────────────────── */
.faq-container { max-width: 780px }
.faq-item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 8px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-q {
  width: 100%; border: none; background: none;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 700; font-size: 15px; color: var(--text);
  cursor: pointer; text-align: left; font-family: var(--font);
}
.faq-q:hover { color: var(--blue2) }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; transition: .2s transform }
.faq-item.open .faq-chevron { transform: rotate(180deg) }
.faq-a {
  display: none;
  padding: 0 20px 18px; color: var(--text2);
  font-size: 15px; line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 14px; margin: 0 20px;
}
.faq-item.open .faq-a { display: block }

/* ──────────────────────────────────────
   INTERNAL LINKS
   ────────────────────────────────────── */
.internal-links {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin: 24px 0;
}
.internal-links h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--text) }
.il-grid { display: grid; gap: 8px }
.il-link {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--line); background: white;
  font-size: 14px; font-weight: 600; color: var(--blue2); transition: .15s;
}
.il-link:hover { border-color: var(--blue2); box-shadow: var(--shadow-sm); text-decoration: none }
.il-link .il-icon { font-size: 16px; flex-shrink: 0 }
.il-link .il-type {
  margin-left: auto; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text3); padding: 2px 8px; border-radius: 4px; background: var(--bg);
}

/* ──────────────────────────────────────
   SIDEBAR
   ────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 16px }
@media (min-width: 960px) { .sidebar { position: sticky; top: 100px; align-self: start } }

.sidebar-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius2); padding: 22px; box-shadow: var(--shadow-sm);
}
.sidebar-card h3 {
  font-size: 15px; font-weight: 800; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line2);
}

.sidebar-cta {
  background: var(--orange3); border: 2px solid var(--orange);
  border-radius: var(--radius2); padding: 22px; text-align: center;
}
.sidebar-cta .cta-emoji { font-size: 32px; margin-bottom: 8px }
.sidebar-cta h3 { font-size: 17px; font-weight: 800; color: var(--orange4); margin-bottom: 6px; border: none; padding: 0 }
.sidebar-cta p { font-size: 14px; color: var(--text2); margin-bottom: 14px }

/* TOC */
.toc-list { list-style: none; padding: 0 }
.toc-list li { padding: 8px 0; border-top: 1px solid var(--line2); font-size: 13px; font-weight: 600 }
.toc-list li:first-child { border-top: none; padding-top: 0 }
.toc-list a { color: var(--text2); display: flex; gap: 8px; align-items: center; text-decoration: none }
.toc-list a:hover { color: var(--blue2) }
.toc-num { color: var(--blue2); font-weight: 800; font-size: 12px; min-width: 20px }

/* Quick info */
.qi-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line2); font-size: 13px;
}
.qi-row:first-child { border-top: none; padding-top: 0 }
.qi-label { color: var(--text3); font-weight: 600 }
.qi-value { font-weight: 700; color: var(--text) }
.qi-badge { padding: 3px 8px; border-radius: 5px; font-size: 11px; font-weight: 800; text-transform: uppercase }
.qi-badge-high { background: var(--red3); color: var(--red) }
.qi-badge-med { background: var(--orange3); color: var(--orange4) }
.qi-badge-low { background: var(--green3); color: var(--green) }

/* Related sidebar */
.related-link {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0; border-top: 1px solid var(--line2); font-size: 13px;
}
.related-link:first-of-type { border-top: none; padding-top: 0 }
.rl-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; flex-shrink: 0; font-size: 16px;
}
.rl-icon-orange { background: var(--orange3) }
.rl-icon-blue { background: var(--blue3) }
.rl-icon-green { background: var(--green3) }
.related-link a { text-decoration: none }
.related-link strong { font-weight: 700; color: var(--text); font-size: 13px; display: block }
.related-link span { font-size: 12px; color: var(--text3) }

/* ──────────────────────────────────────
   SERVICES GRID (accueil)
   ────────────────────────────────────── */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr) } }

.service-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius2); padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  transition: .2s; position: relative; overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-lg); border-color: var(--blue2); transform: translateY(-2px) }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px }
.service-card-install::before { background: var(--blue) }
.service-card-depannage::before { background: var(--orange) }
.service-card-entretien::before { background: var(--green) }

.service-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
}
.service-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round }
.service-icon-blue { background: var(--blue3) }
.service-icon-blue svg { stroke: var(--blue) }
.service-icon-orange { background: var(--orange3) }
.service-icon-orange svg { stroke: var(--orange) }
.service-icon-green { background: var(--green3) }
.service-icon-green svg { stroke: var(--green) }

/* ──────────────────────────────────────
   PROBLEMS GRID
   ────────────────────────────────────── */
.problems {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius2); box-shadow: var(--shadow);
  padding: 32px; margin-top: 16px;
}
.problems h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; color: var(--orange) }
.problem-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) }
.problem-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  font-weight: 600; font-size: 14px; color: var(--text2); transition: .15s;
}
.problem-item:hover { border-color: var(--orange); color: var(--orange); text-decoration: none }

/* ──────────────────────────────────────
   GUIDES GRID
   ────────────────────────────────────── */
.guides-grid { display: grid; gap: 16px; grid-template-columns: 1fr }
@media (min-width: 768px) { .guides-grid { grid-template-columns: repeat(3, 1fr) } }
.guide-card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius2); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s;
}
.guide-card:hover { box-shadow: var(--shadow); border-color: var(--blue2); transform: translateY(-2px) }

/* ──────────────────────────────────────
   CONTACT FORM
   ────────────────────────────────────── */
.form-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius2); padding: 28px 24px; box-shadow: var(--shadow-lg);
}
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--text2); margin-bottom: 6px }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg);
  font-size: 14px; color: var(--text); font-family: var(--font); transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(37,99,168,.1);
}
.field textarea { min-height: 100px; resize: vertical }

.urgence-select { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.urgence-opt {
  padding: 10px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--bg);
  font-weight: 600; font-size: 13px; cursor: pointer;
  text-align: center; transition: .15s; color: var(--text2);
}
.urgence-opt:hover { border-color: var(--blue2) }
.urgence-opt.active { border-color: var(--orange); background: var(--orange3); color: var(--orange4) }

/* ──────────────────────────────────────
   ZONES STRIP
   ────────────────────────────────────── */
.zones-strip { background: var(--blue4); padding: 36px 0; color: white }
.zones-strip h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; opacity: .9 }
.zones-tags { display: flex; flex-wrap: wrap; gap: 8px }
.zone-tag {
  padding: 6px 14px; border-radius: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); transition: .15s;
}
.zone-tag:hover { background: rgba(255,255,255,.18) }

/* ──────────────────────────────────────
   FOOTER
   ────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0; background: white;
}
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr } }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: 12px }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: var(--text2); font-weight: 500 }
.footer-col a:hover { color: var(--blue2) }
.footer-brand { font-weight: 800; font-size: 16px; color: var(--blue); margin-bottom: 8px }
.footer-brand small { display: block; font-weight: 500; font-size: 13px; color: var(--text3); margin-top: 4px }
.footer-bottom {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text3);
}
.footer-bottom a { color: var(--text3) }
.footer-bottom a:hover { color: var(--blue2) }

/* ──────────────────────────────────────
   FLOATING CTA MOBILE
   ────────────────────────────────────── */
.float-cta {
  display: flex;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: white; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding: 10px 16px; gap: 8px;
}
.float-cta a { flex: 1; text-align: center; font-size: 14px; padding: 12px 8px }
@media (min-width: 960px) { .float-cta { display: none } }
body { padding-bottom: 64px }
@media (min-width: 960px) { body { padding-bottom: 0 } }

/* ──────────────────────────────────────
   UTILITIES
   ────────────────────────────────────── */
.hide-mobile { display: none }
@media (min-width: 768px) { .hide-mobile { display: initial } }
.hide-desktop { display: initial }
@media (min-width: 960px) { .hide-desktop { display: none } }
.text-center { text-align: center }
.mt-0 { margin-top: 0 }
.mb-0 { margin-bottom: 0 }
.full-width { width: 100% }
/* ──────────────────────────────────────
   HOMEPAGE — ADDITIONS
   (ajouter à la fin de style.css)
   ────────────────────────────────────── */

/* Hero section responsive */
.hero-section .btn { transition: .15s }
.hero-section .btn:hover { transform: translateY(-1px) }

/* Comment ça marche — responsive grid */
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr) !important }
}

/* Page content spacing for homepage sections */
.page-content section:first-child { margin-top: 0 }
.page-content { padding: 0 }

/* Override GP default content area padding on homepage */
body.home .page-content,
body.page-template-default .page-content {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Ensure full-width sections break out of GP container */
.page-content .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.site-content .entry-content {
    max-width: 1140px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ─── Formulaire Contact ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.1);
}
.form-field textarea {
  min-height: 100px;
  resize: vertical;
}
.form-field-full {
  grid-column: 1 / -1;
}
.form-submit {
  text-align: center;
  margin-top: 8px;
}
.form-submit .wpcf7-submit {
  cursor: pointer;
  border: none;
}
.wpcf7-response-output {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Fix bouton formulaire CF7 ─── */
.form-submit .wpcf7-submit {
  background: var(--orange);
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit .wpcf7-submit:hover {
  background: var(--orange4);
}

