/*
Theme Name:   Val-Débarras Child
Theme URI:    https://www.val-debarras.ch
Description:  Thème enfant Val-Débarras — migration depuis prototype statique Vercel
Author:       Val-Débarras
Author URI:   https://www.val-debarras.ch
Template:     storefront
Version:      1.0.0
License:      Proprietary
Text Domain:  val-debarras
*/

/* ============================================================
   VARIABLES — identiques au prototype Vercel
   ============================================================ */
:root {
  --vert:       #2e7d5c;
  --vert-fonce: #1c5440;
  --vert-dark:  #0e2e1e;
  --vert-card:  #163d28;
  --vert-clair: #e4f2ea;
  --gris-fonce: #1f2937;
  --gris:       #6b7280;
  --gris-bg:    #f3f4f6;
  --blanc:      #ffffff;
  --font:       'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
}

/* ============================================================
   RESET PARTIEL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  background: var(--gris-bg);
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumb-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gris);
  flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--vert); font-weight: 600; }
.breadcrumb-inner a:hover { text-decoration: underline; }
.canton-shield { width: 18px; height: 22px; flex-shrink: 0; }

/* ============================================================
   HERO CANTON
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--vert) 0%, var(--vert-fonce) 55%, var(--vert-dark) 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-canton-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 24px;
  padding: 6px 14px;
  width: fit-content;
}
.hero-canton-badge img { width: 22px; height: 27px; }
.hero-canton-badge span { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); }
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.12; margin-bottom: 10px; letter-spacing: -1px; }
.hero-text { font-size: 18px; color: rgba(255,255,255,.88); line-height: 1.65; margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 15px;
  background: white;
  color: var(--vert-fonce);
  border: 2px solid transparent;
  transition: all .22s;
  cursor: pointer;
}
.btn-white:hover { background: var(--vert-clair); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 24px;
  font-weight: 800;
  font-size: 15px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.5);
  transition: all .22s;
  cursor: pointer;
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: white; }
.hero-img {
  border-radius: 16px;
  height: 320px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { background: var(--vert-dark); }
.trust-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.tstat { padding: 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.tstat:last-child { border-right: none; }
.tstat-n { font-size: 34px; font-weight: 900; color: var(--vert-clair); line-height: 1; }
.tstat-l { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ============================================================
   COMMUNES PILLS
   ============================================================ */
.villes-section { background: #f8fafc; padding: 48px 0; border-top: 1px solid #eff0f2; }
.villes-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.villes-inner h3 { font-size: 20px; font-weight: 800; color: var(--gris-fonce); margin-bottom: 16px; }
.cpill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-fonce);
  transition: all .2s;
}
.cpill:hover { border-color: var(--vert); color: var(--vert); }
.cpill img { width: 18px; height: 22px; object-fit: contain; }

/* ============================================================
   MAIN CONTENT + SIDEBAR
   ============================================================ */
.lp-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}
.section-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vert);
  margin-bottom: 10px;
}
.section-h2 { font-size: 32px; font-weight: 900; color: var(--gris-fonce); margin-bottom: 16px; letter-spacing: -.5px; }
.section-text { font-size: 16.5px; color: #374151; line-height: 1.75; margin-bottom: 36px; }
.av-list { margin-bottom: 40px; }
.av-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.av-check { color: var(--vert); font-weight: 900; font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* SIDEBAR */
.lp-sidebar {}
.sidebar-card { background: var(--gris-bg); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.sidebar-card h3 { font-size: 16px; font-weight: 800; color: var(--gris-fonce); margin-bottom: 16px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { margin-bottom: 4px; }
.sidebar-card a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-fonce);
  transition: all .2s;
}
.sidebar-card a:hover { background: var(--vert-clair); color: var(--vert); }
.sidebar-card a img { width: 22px; height: 28px; object-fit: contain; }
.sidebar-card li.current a { background: var(--vert); color: white; font-weight: 800; border-radius: 8px; }
.sidebar-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: var(--vert);
  border-radius: 12px;
  padding: 24px;
  color: white;
}
.sidebar-phone .phone-num { font-size: 22px; font-weight: 900; }
.sidebar-phone .phone-sub { font-size: 12px; opacity: .8; }

/* ============================================================
   AUTRES SERVICES
   ============================================================ */
.other-section { background: #f4f7f5; padding: 48px 0; }
.other-inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.other-inner h2 { font-size: 22px; font-weight: 800; color: var(--gris-fonce); margin: 0 0 6px; }
.other-subtitle { font-size: 13px; color: var(--gris); margin: 0 0 28px; }
.other-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.other-card {
  background: white;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all .25s;
}
.other-card:hover { border-color: var(--vert); box-shadow: 0 4px 16px rgba(46,125,92,.12); transform: translateY(-3px); }
.other-card-title { font-size: 15px; font-weight: 700; color: var(--gris-fonce); margin: 0; }
.other-card-cta {
  display: block;
  width: 100%;
  background: var(--vert);
  color: white;
  padding: 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-top: auto;
  text-align: center;
  transition: background .2s;
}
.other-card:hover .other-card-cta { background: var(--vert-fonce); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 64px 0; background: var(--gris-bg); }
.faq-inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.faq-section h2 { font-size: 28px; font-weight: 900; color: var(--gris-fonce); margin-bottom: 32px; text-align: center; }
.faq-item { background: white; border-radius: 12px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--gris-fonce);
}
.faq-arr { font-size: 12px; color: var(--vert); transition: transform .2s; flex-shrink: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding: 0 22px; font-size: 14.5px; color: #374151; line-height: 1.7; }
.faq-a.open { max-height: 300px; padding: 0 22px 18px; }

/* ============================================================
   CONTACT FORM (CF7 overrides)
   ============================================================ */
.form-section { background: var(--vert-dark); padding: 72px 0; }
.form-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 10px;
  font-size: 17px;
  color: white;
  font-family: var(--font);
  margin-bottom: 12px;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(255,255,255,.4); }
.wpcf7-form select { color: rgba(255,255,255,.8); }
.wpcf7-form select option { background: var(--vert-dark); color: white; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  background: white;
  color: var(--vert-dark);
  border: none;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  transition: all .22s;
  margin-top: 6px;
}
.wpcf7-form input[type="submit"]:hover { background: var(--vert-clair); transform: translateY(-2px); }
.wpcf7-response-output { color: white; margin-top: 12px; font-size: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { display: none; }
  .lp-content { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .form-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 30px; }
  .other-grid { grid-template-columns: repeat(2, 1fr); }
  .other-card { flex-direction: row; text-align: left; gap: 12px; }
  .other-card-cta { width: auto; margin-left: auto; padding: 8px 12px; }
  .cpill-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cpill { width: 100%; }
}

@media (max-width: 480px) {
  .other-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 16px; }
  .lp-content { padding: 40px 16px; }
}


/* ============================================================
   ESTANDARIZACIÓN GLOBAL — Igualar al home (2026-06)
   ============================================================ */

/* ── MOBILE DRAWER ── */
.mobile-drawer { background: #ffffff; }
.drawer-body   { background: #ffffff; color: var(--gris-fonce); }
.drawer-nav-item > a,
.drawer-nav-item > button { color: var(--gris-fonce); font-weight: 600; }

/* ── STICKY BAR MOBILE ── */
.sticky-mobile {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 10px 12px 12px;
}
.sticky-mobile__call {
  background: var(--vert) !important;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 700;
}
.sticky-mobile__devis {
  background: var(--gris-fonce) !important;
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 700;
}

/* ── HERO BUTTONS (pages de service) ── */
.hero-btn--primary  { background: var(--vert); color: #ffffff; }
.hero-btn--secondary{ background: transparent; border: 2px solid var(--vert); color: var(--vert); }

/* ── FORM INFO SECTION ── */
.form-info { background: var(--gris-fonce); color: #ffffff; }

/* ============================================================
   PAGES DE SERVICE — Remplacer stat 24h par section médias
   ============================================================ */

/* Cacher le tstat "24h" sur les pages de service */
.tstat--delai,
.tstat[data-label="24h"],
.tstat:has(.tstat-number[data-value="24h"]) { display: none !important; }

/* Section médias : visible dès le haut sur mobile */
@media (max-width: 768px) {
  .media-section,
  section.media-section { order: -1; }

  /* Réordonner : 500+ en 1er, médias en 2e sur mobile */
  .trust { display: flex; flex-direction: column; }
  .trust .tstat--logements { order: 1; }
  .trust .trust-media      { order: 2; }
  .trust .tstat--devis     { order: 3; }
}