/* ==========================================================================
   Design system — Site Builder v2 "Craft & Trust"
   Client : Entreprise Tamietti Sarl — chauffage / plomberie / énergies
   ========================================================================== */

:root {
  --color-ink: #14181f;
  --color-text: #3f4757;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f2;      /* chaud, pas gris froid */
  --color-border: #e7e3dc;

  --color-accent: #c2410c;      /* brique/orange chauffagiste, moins criard que #ea580c */
  --color-accent-dark: #9a3412;
  --color-accent-light: #fdece1;

  --shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 24, 31, 0.08);
  --shadow-lg: 0 24px 48px -16px rgba(20, 24, 31, 0.22);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --space-section: 6rem;
  --space-section-mobile: 3.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  color: var(--color-ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.15rem, 3.4vw + 1rem, 3.1rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 1.6vw + 1rem, 2.1rem); line-height: 1.18; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 650; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }

dl { margin: 0; }
dt { font-weight: 700; color: var(--color-ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 1.4rem; }
dt:first-child { margin-top: 0; }
dd { margin: 0.25rem 0 0; color: var(--color-text); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-mark { font-weight: 800; font-size: 1.05rem; color: var(--color-ink); }
.brand-trade { font-size: 0.72rem; color: var(--color-muted); }
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { color: var(--color-ink); font-weight: 500; font-size: 0.92rem; }
.main-nav a:hover { color: var(--color-accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-border); }
.btn-outline:hover { background: var(--color-bg-alt); color: var(--color-ink); border-color: var(--color-ink); }
.btn-light { background: #fff; color: var(--color-ink); }
.btn-light:hover { background: var(--color-bg-alt); color: var(--color-ink); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.02rem; }
.btn-call { white-space: nowrap; }

/* ---------- Hero (asymmetric, not centered) ---------- */
.hero {
  padding: var(--space-section) 0 4rem;
  background: var(--color-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3rem;
  align-items: start;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.hero-lede { font-size: 1.15rem; color: var(--color-muted); max-width: 560px; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.75rem; }

/* Trust panel replaces a fake stock photo with real facts */
.trust-panel {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.trust-panel h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-muted); margin-bottom: 1rem; font-weight: 700; }
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--color-border);
}
.trust-item:first-of-type { border-top: none; padding-top: 0; }
.trust-item .icon {
  width: 22px; height: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.trust-item strong { display: block; color: var(--color-ink); font-size: 0.95rem; }
.trust-item span { color: var(--color-muted); font-size: 0.87rem; }

/* ---------- Content sections ---------- */
.content { padding: 0.5rem 1.5rem 2rem; }
.section-lede { color: var(--color-muted); font-size: 1.05rem; max-width: 620px; margin-bottom: 2rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 3rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-card .icon-badge {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.service-card .icon-badge .icon { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: 0.4rem; }
.service-card p { color: var(--color-muted); font-size: 0.94rem; }

/* signature/primary service gets quiet emphasis via border + tint, not a rail */
.service-card.is-primary {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-accent-light) 0%, #fff 38%);
}
.service-card.is-primary .icon-badge { background: var(--color-accent); color: #fff; }

/* ---------- Trust / RGE band ---------- */
.trust-band {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin: 2.5rem 0 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  gap: 2rem;
  align-items: center;
}
.trust-band .badge-row { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem; font-weight: 600; color: var(--color-ink);
}
.badge-pill .icon { width: 16px; height: 16px; color: var(--color-accent); }
.trust-band-visual {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.stat-block { text-align: left; }
.stat-block + .stat-block { padding-top: 1.1rem; border-top: 1px solid var(--color-border); }
.stat-block strong { display: block; color: var(--color-accent-dark); font-size: 1.15rem; font-weight: 800; }
.stat-block span { color: var(--color-muted); font-size: 0.85rem; }

/* ---------- Contact block ---------- */
.contact-block {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}
.contact-block .btn { margin-top: 1.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-ink); color: #fff; padding: 3.5rem 0; margin-top: var(--space-section); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-eyebrow { color: #fdba9c; font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.cta-title { color: #fff; margin: 0; font-size: 1.55rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); padding: 3rem 0 1.25rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.75rem; }
.footer-col p { margin: 0 0 0.45rem; color: var(--color-muted); font-size: 0.92rem; }
.footer-brand { color: var(--color-ink); font-weight: 700; font-size: 1.02rem; }
.footer-trade { font-size: 0.82rem; color: var(--color-muted); }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.6rem; }
.footer-bottom { border-top: 1px solid var(--color-border); margin-top: 2.25rem; padding-top: 1.1rem; font-size: 0.82rem; color: var(--color-muted); }

/* ---------- Mobile call FAB ---------- */
.mobile-call-fab {
  display: none;
  position: fixed;
  bottom: 1.25rem; right: 1.25rem;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  align-items: center; justify-content: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-lg);
  z-index: 60;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --space-section: var(--space-section-mobile); }
  .header-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .main-nav { justify-content: center; }
  .brand { justify-content: center; }
  .btn-call { justify-content: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .mobile-call-fab { display: flex; }
}
