/* PHP Launcher — Annuaire template */
:root {
  --primary: #F4A261;
  --secondary: #E9C46A;
  --primary-dark: color-mix(in srgb, #F4A261 75%, black);
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ───── Header ───── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-weight: 800; font-size: 18px;
}
.brand-logo { display: block; border-radius: 8px; }
.brand-name { font-size: 17px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--text); font-weight: 500; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* ───── Breadcrumb ───── */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 14px; }
.breadcrumb { color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }
.breadcrumb span:last-child { color: var(--text); font-weight: 500; }

/* ───── Main ───── */
.site-main { padding: 32px 0 64px; min-height: 60vh; }

/* ───── Hero ───── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  border-radius: 16px;
  margin-bottom: 32px;
}
.hero h1 { font-size: 42px; margin: 0 0 12px; line-height: 1.2; font-weight: 800; }
.hero .lede { font-size: 18px; opacity: 0.95; max-width: 700px; margin: 0 auto 24px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 32px; font-weight: 800; }
.hero-stat-label { font-size: 13px; opacity: 0.85; }

/* ───── Search Bar ───── */
.search-bar {
  display: flex; gap: 8px; max-width: 600px; margin: 0 auto;
  background: #fff; border-radius: 12px; padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.search-bar input {
  flex: 1; border: none; padding: 12px 16px; font-size: 16px; border-radius: 8px;
  outline: none; color: var(--text);
}
.search-bar button {
  background: var(--primary); color: #fff; border: none; padding: 12px 24px;
  border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 16px;
}
.search-bar button:hover { background: var(--primary-dark); }

/* ───── Cards & Grids ───── */
.enriched-intro {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  box-shadow: var(--shadow);
}

.section { margin: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 8px; font-weight: 800; }
.section .subtitle { color: var(--text-muted); margin: 0 0 24px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: all .2s; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.card-empty { opacity: 0.65; background: #fafafa; }
.card-empty:hover { opacity: 1; }
.card-empty .card-meta { color: #94a3b8; font-style: italic; }
.card a { color: inherit; text-decoration: none; display: block; }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--text); }
.card-meta { color: var(--text-muted); font-size: 14px; }
.card-count { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-top: 8px; }

/* ───── Listing items ───── */
.item-list { display: flex; flex-direction: column; gap: 12px; }
.item {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; display: flex; gap: 16px; align-items: flex-start;
}
.item:hover { border-color: var(--primary); }
.item-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--primary); font-weight: 800;
}
.item-content { flex: 1; }
.item-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.item-subtitle { color: var(--text-muted); font-size: 14px; }
.item-cta { flex-shrink: 0; }

/* ───── Affiliation block ───── */
.affiliate-block {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, white) 0%, color-mix(in srgb, var(--secondary) 8%, white) 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 20%, white);
  border-radius: 16px; padding: 28px; margin: 32px 0; text-align: center;
}
.affiliate-block h3 { font-size: 22px; margin: 0 0 8px; font-weight: 700; }
.affiliate-block p { color: var(--text-muted); margin: 0 0 16px; }
.btn-cta {
  display: inline-block; background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 10px; font-weight: 700; font-size: 16px;
  text-decoration: none; transition: all .2s;
}
.btn-cta:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }

/* ───── Fiche page ───── */
.fiche-header {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; margin-bottom: 24px;
}
.fiche-header h1 { font-size: 32px; margin: 0 0 8px; }
.fiche-meta { color: var(--text-muted); font-size: 15px; }
.fiche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 768px) { .fiche-grid { grid-template-columns: 1fr; } }
.info-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.info-box h3 { font-size: 14px; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; letter-spacing: 0.5px; }

/* ───── Tags / Badges ───── */
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: var(--text); }

/* ───── Footer ───── */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; margin-top: 64px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { background: var(--primary); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-tagline { color: #94a3b8; font-size: 14px; margin: 12px 0 0; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #94a3b8; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #64748b; font-size: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; text-align: center; color: #64748b; font-size: 13px; }

/* ───── Widget ViteUnDevis (mode Clone) ───── */
.vud-widget-wrapper {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin: 24px auto 0;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.20);
  color: var(--text);
}
/* Forcer la couleur du texte interne (le hero a color:#fff qui ferait du blanc-sur-blanc) */
.vud-widget-wrapper, .vud-widget-wrapper * { color: var(--text); }
.vud-widget-wrapper a { color: var(--primary); }
.vud-widget-wrapper iframe { border: none; width: 100%; }
.vud-widget-wrapper input,
.vud-widget-wrapper select,
.vud-widget-wrapper button {
  font-family: inherit;
  font-size: 14px;
}

/* ───── HERO 2 colonnes (style annuaire-jardinier) ─────
 * Fond sombre dégradé, info riche à gauche (badge note + H1 + intro + cards stats),
 * widget VUD à droite. Sortie pleine largeur (déborde du .container parent). */
.hero-2-cols {
  position: relative;
  margin: -32px calc(50% - 50vw) 32px;
  padding: 56px calc(50vw - 600px);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 60%, #000) 0%,
    color-mix(in srgb, var(--primary) 20%, #000) 100%);
  color: #fff;
  overflow: hidden;
}
/* Halo subtil derrière (effet "spotlight") */
.hero-2-cols::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.hero-2-cols-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-2-cols .hero-info { min-width: 0; }
.hero-2-cols .hero-info h1 {
  font-size: 44px;
  margin: 16px 0 16px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
}
.hero-2-cols .hero-info h1 .accent { color: var(--primary); }
.hero-2-cols .hero-info .hero-intro {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 560px;
}
.hero-2-cols .hero-info .hero-intro strong { color: #fff; font-weight: 600; }
.hero-2-cols .hero-aside { width: 100%; max-width: 540px; justify-self: end; }

/* Badge note (étoiles + 4.9/5 + Recommandé à X) */
.hero-badge-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.95);
}
.hero-badge-note .stars {
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hero-badge-note .stars-icon { color: #fbbf24; }

/* Cards stats (Expertise locale, Rapidité…) */
.hero-stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
  max-width: 540px;
}
.hero-stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-stat-card .stat-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.hero-stat-card .stat-text { line-height: 1.3; }
.hero-stat-card .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 700;
  margin-bottom: 2px;
}
.hero-stat-card .stat-value {
  font-size: 15px;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 960px) {
  .hero-2-cols { padding: 40px 0; margin: 0 calc(50% - 50vw) 24px; }
  .hero-2-cols-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-2-cols .hero-aside { width: 100%; justify-self: stretch; }
  .hero-2-cols .hero-info h1 { font-size: 32px; }
}

/* CTA sticky bottom-right (mini bloc avec gradient + bouton) */
.vud-cta-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 320px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(120%);
  transition: transform 0.3s ease-out;
}
.vud-cta-sticky.visible { transform: translateY(0); }
.vud-cta-sticky h4 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.vud-cta-sticky p  { font-size: 13px; opacity: 0.9; margin: 0 0 14px; line-height: 1.4; }
.vud-cta-sticky .btn-cta-sticky {
  display: block;
  background: #fff;
  color: var(--primary);
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s;
}
.vud-cta-sticky .btn-cta-sticky:hover {
  text-decoration: none;
  transform: scale(1.03);
}
.vud-cta-sticky .vud-cta-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
}
.vud-cta-sticky .vud-cta-close:hover { color: #fff; }
@media (max-width: 600px) {
  .vud-cta-sticky { width: calc(100vw - 32px); left: 16px; right: 16px; }
}

/* Carte du widget en sidebar : header avec titre + intro avant le formulaire JS */
.vud-card {
  background: #fff;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  border: 1px solid var(--border);
  overflow: hidden;
}
.vud-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 20px 24px;
}
.vud-card-header h3 { font-size: 18px; margin: 0 0 4px; font-weight: 700; }
.vud-card-header p  { font-size: 13px; opacity: 0.9; margin: 0; line-height: 1.5; }
.vud-card-body { padding: 16px; }
.vud-card-body .vud-widget-wrapper {
  margin: 0; max-width: none; box-shadow: none; padding: 0;
}

/* ───── Intro section (homepage) ───── */
.intro-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: var(--shadow);
}
.intro-section h2 { font-size: 24px; margin: 0 0 16px; font-weight: 700; }
.intro-section p { font-size: 16px; line-height: 1.75; color: var(--text); margin: 0; }

/* ───── Services grid (homepage) ───── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: all .2s;
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.service-icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: inline-flex;
  width: 56px; height: 56px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  align-items: center; justify-content: center;
}
.service-title { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text); }
.service-desc { font-size: 14px; line-height: 1.6; color: var(--text-muted); margin: 0; }

/* ───── FAQ accordion ───── */
.faq-section { background: #fff; border-radius: 16px; padding: 32px; box-shadow: var(--shadow); }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  transition: all .2s;
}
.faq-item[open] {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.faq-question {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
}
.faq-item[open] .faq-question::after { content: '−'; }
.faq-answer {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ───── Pagination ───── */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 500; min-width: 40px; text-align: center; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); text-decoration: none; }
