/* ===========================================================
   Hausfix Romandie — styles.css
   Feuille de style partagée, mobile-first, sans dépendances lourdes
   =========================================================== */

:root {
  --navy: #0f1e33;
  --navy-light: #16294a;
  --orange: #ff6a2c;
  --orange-dark: #e0551b;
  --white: #ffffff;
  --grey-50: #f7f8fa;
  --grey-100: #eef0f3;
  --grey-300: #cfd5dd;
  --grey-600: #5b6472;
  --grey-800: #26303d;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 30, 51, 0.12);
  --shadow-lg: 0 16px 40px rgba(15, 30, 51, 0.18);
  --max-width: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--grey-600); }

ul { padding-left: 0; list-style: none; margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--grey-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.logo span { color: var(--orange); }

.main-nav {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a { color: var(--grey-800); transition: color .15s; }
.main-nav a:hover { color: var(--orange); }

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}
.phone-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(255, 106, 44, 0.35);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { border-color: var(--white); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-light); }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--navy-light), var(--navy) 60%);
  color: var(--white);
  padding: 64px 0 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 106, 44, 0.15);
  color: #ffb28c;
  border: 1px solid rgba(255, 106, 44, 0.4);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); max-width: 720px; }
.hero .lead { color: #c8d0dc; font-size: 1.15rem; max-width: 600px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-trust .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbe1ea;
  font-size: 0.92rem;
  font-weight: 600;
}
.hero-trust svg { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }

/* ---------- Section ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--grey-50); }
.section-header { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.eyebrow {
  display: block;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid-2 {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 106, 44, 0.12);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }

.card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}
.card a.card-link:hover { color: var(--orange); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}
.step { position: relative; padding-top: 8px; }
.step .num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

/* ---------- Coverage list ---------- */
.city-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-chip {
  background: var(--white);
  border: 1px solid var(--grey-300);
  color: var(--grey-800);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  color: var(--white);
  padding: 48px 0;
  text-align: center;
  border-radius: var(--radius);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.9); }
.cta-band .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.6); }
.cta-band .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--grey-300);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--grey-50);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.85rem; color: var(--grey-600); margin-top: -6px; }
.form-success {
  display: none;
  background: #e6f6ec;
  border: 1px solid #9fd8b3;
  color: #1e6b3a;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-error {
  display: none;
  background: #fdeceb;
  border: 1px solid #f3b4ae;
  color: #a52a20;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #c8d0dc;
  padding: 48px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-grid h4 { color: var(--white); font-size: 1rem; }
.footer-grid a { color: #c8d0dc; display: block; margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #8b97a8;
}

/* ---------- Floating call button (mobile) ---------- */
.floating-call {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  background: var(--orange);
  color: var(--white);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(255, 106, 44, 0.45);
}
.floating-call svg { width: 26px; height: 26px; }
@media (min-width: 900px) {
  .floating-call { display: none; }
}

/* ---------- Page hero (sous-pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}
.page-hero h1 { color: var(--white); }
.breadcrumb {
  font-size: 0.85rem;
  color: #9aa6b6;
  margin-bottom: 14px;
}
.breadcrumb a { color: #c8d0dc; }
.breadcrumb a:hover { color: var(--orange); }

/* ---------- Legal page ---------- */
.legal-content h2 { margin-top: 32px; }
.legal-content p, .legal-content li { color: var(--grey-600); }
.legal-content li { margin-bottom: 8px; }
.legal-content ul { list-style: disc; padding-left: 20px; }
