/* ============================================
   RénoConfiance — feuille de style principale
   ============================================ */

:root {
  --navy: #17213a;
  --navy-light: #24304f;
  --accent: #dd6b28;
  --accent-dark: #b9531c;
  --bg: #faf9f6;
  --bg-alt: #f2efe9;
  --text: #1f2430;
  --muted: #667085;
  --border: #e7e3dd;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(23, 33, 58, 0.08);
  --shadow-lg: 0 20px 50px rgba(23, 33, 58, 0.14);
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--text); }

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

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

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

section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(221, 107, 40, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(221, 107, 40, 0.35);
}
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }

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

.btn-outline-dark {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn-outline-dark:hover { background: var(--bg-alt); color: var(--navy); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
}
.logo .mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a.active { color: var(--accent-dark); }
.nav-cta { display: flex; align-items: center; gap: 20px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: 0.95rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 55%, #2c3a5e 100%);
  color: var(--white);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(221,107,40,0.35), transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.trust-row .trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.92rem; color: rgba(255,255,255,0.85);
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { margin-bottom: 4px; }
.hero-card .muted { color: var(--muted); font-size: 0.92rem; margin-bottom: 20px; }
.hero-stat {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.hero-stat:last-of-type { border-bottom: none; }
.hero-stat .num { font-family: "Poppins", sans-serif; font-weight: 700; color: var(--accent-dark); font-size: 1.4rem; }
.hero-stat .label { color: var(--muted); font-size: 0.9rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step { text-align: left; }
.step .step-num {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem;
  margin-bottom: 18px;
}
.step p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(221, 107, 40, 0.1);
  color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.why-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
}
.why-card .service-icon { margin-bottom: 20px; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 14px; font-size: 0.95rem; }
.testimonial-card p.quote { color: var(--text); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--bg-alt); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: "Poppins", sans-serif;
}
.testimonial-author .name { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.testimonial-author .role { font-size: 0.82rem; color: var(--muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius);
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-logo { color: var(--white); font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--navy); }
.field .hint { font-size: 0.82rem; color: var(--muted); margin-top: 5px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: 0.86rem; color: var(--muted); }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
  background: var(--white);
}
.chip input { display: none; }
.chip.checked, .chip:has(input:checked) {
  background: rgba(221,107,40,0.1);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

.form-msg { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.92rem; margin-bottom: 20px; display: none; }
.form-msg.success { background: #e8f5ee; color: #1f7a4d; display: block; }
.form-msg.error { background: #fdecea; color: #b3261e; display: block; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); }

/* ---------- Misc reusable ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.badge-list { list-style: none; padding: 0; margin: 0; }
.badge-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.badge-list .tick {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(221,107,40,0.12); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.placeholder-photo {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bg-alt), #e4dfd6);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.85rem; text-align: center;
  min-height: 220px; padding: 20px;
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-grid .placeholder-photo { min-height: 200px; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.value-grid .num { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 2.2rem; color: var(--accent-dark); }
.value-grid .label { color: var(--muted); font-size: 0.92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .steps, .services-grid, .why-grid, .testimonial-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .steps, .services-grid, .why-grid, .testimonial-grid, .gallery-grid, .value-grid, .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  section { padding: 60px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
