/* ===========================================================
   M2 Rénovation — feuille de style principale
   =========================================================== */

:root {
  --color-dark: #2b2f28;
  --color-dark-2: #383d33;
  --color-green: #6f8f4a;
  --color-green-dark: #4d6534;
  --color-green-light: #8bab5a;
  --color-cream: #f7f6f1;
  --color-grey: #8d8d85;
  --color-grey-light: #e9e8e1;
  --color-text: #2b2f28;
  --color-white: #ffffff;
  --color-accent: #c98a4b;
  --color-accent-light: #f0dcc2;
  --max-width: 1140px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(43, 47, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(43, 47, 40, 0.16);
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 16px;
}

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

p { margin: 0 0 16px; color: #4a4f44; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-green-dark);
  margin-bottom: 10px;
  display: inline-block;
}

/* 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;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-green-dark);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(77, 101, 52, 0.35);
}
.btn-primary:hover { background: var(--color-green); }

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

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

.btn-block { width: 100%; }

/* Header ----------------------------------------------------*/
.site-header {
  background: var(--color-dark);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}
.brand-mark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}
.brand-mark sup {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent-light);
  position: relative;
  top: -0.7em;
  left: 1px;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--color-green-light); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  display: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (min-width: 820px) {
  .header-phone { display: inline-flex; align-items: center; gap: 6px; }
}

@media (max-width: 819px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    display: none;
    padding: 10px 24px 26px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 16px; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
}

/* Hero --------------------------------------------------------*/
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(139,171,90,0.35), transparent 45%),
    linear-gradient(135deg, #2b2f28 0%, #3a4230 55%, #4d6534 100%);
  color: var(--color-white);
  padding: 100px 0 130px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.4;
  pointer-events: none;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-blob-1 {
  width: 420px; height: 420px;
  right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(201,138,75,0.35), transparent 70%);
}
.hero-blob-2 {
  width: 340px; height: 340px;
  right: 10%; bottom: -180px;
  background: radial-gradient(circle, rgba(139,171,90,0.4), transparent 70%);
}
.hero-ring {
  position: absolute;
  right: 8%;
  top: 22%;
  width: 130px;
  height: 130px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 720px; }
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.14); }
.hero-trust-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.78); font-size: 0.88rem; font-weight: 500; }
.hero-trust-item .icon-inline { color: var(--color-green-light); width: 18px; height: 18px; }
.hero-small { padding: 64px 0 76px; }

/* Stats strip -------------------------------------------------------*/
.stats-strip {
  position: relative;
  z-index: 1;
  margin-top: -56px;
  padding: 0 24px 0;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 30px 10px;
}
.stat { text-align: center; padding: 10px 14px; border-right: 1px solid var(--color-grey-light); }
.stat:last-child { border-right: none; }
.stat .stat-num {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-green-dark);
  display: block;
  margin-bottom: 4px;
}
.stat .stat-label { font-size: 0.82rem; color: var(--color-grey); font-weight: 600; }
@media (max-width: 760px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--color-grey-light); padding: 16px 10px; }
  .stat:nth-child(2n) { border-right: none; }
  .stats-strip { margin-top: -40px; }
}

/* Sections ------------------------------------------------------*/
section { padding: 76px 0; }
.section-cream { background: var(--color-cream); }
.section-grey { background: var(--color-grey-light); }
.section-dark { background: var(--color-dark); color: var(--color-white); }
.section-dark h2, .section-dark p { color: var(--color-white); }
.section-green {
  background: linear-gradient(120deg, var(--color-green) 0%, var(--color-green-dark) 100%);
  color: var(--color-white);
}
.section-green h2, .section-green p { color: var(--color-white); }

.section-head { max-width: 620px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: #5a5f52; }

/* Grid / cards ----------------------------------------------------*/
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green), var(--color-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(111,143,74,0.12);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card:nth-child(2n) .icon { background: rgba(201,138,75,0.14); color: var(--color-accent); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; }

/* Icon utility (inline SVG) --------------------------------------*/
.icon-inline { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; }
.icon-inline svg { width: 100%; height: 100%; }

/* Steps ----------------------------------------------------------*/
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 44px);
  right: calc(-50% + 44px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-grey-light) 0 8px, transparent 8px 14px);
}
@media (max-width: 900px) { .step:not(:last-child)::after { display: none; } }
.step .num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green-dark), var(--color-green));
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(77,101,52,0.3);
  position: relative;
  z-index: 1;
}
.step .num::before { content: counter(step); }

/* Trades list ------------------------------------------------------*/
.trades {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.trade-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--color-white);
  border: 1px solid var(--color-grey-light);
  border-radius: 999px;
  padding: 10px 20px 10px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-dark-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.trade-chip:hover { border-color: var(--color-green); transform: translateY(-2px); }
.trade-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
}
.trade-chip:nth-child(3n) .dot { background: var(--color-accent); }

/* Split CTA (particulier / artisan) --------------------------------*/
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.split .card .btn { margin-top: auto; }

/* Forms ------------------------------------------------------------*/
.form-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-dark-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #d8d8cf;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--color-cream);
  color: var(--color-text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-green);
  background: var(--color-white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-note { font-size: 0.82rem; color: var(--color-grey); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; }

/* Quick contact cards -----------------------------------------------*/
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}
@media (max-width: 900px) { .contact-methods { grid-template-columns: 1fr; } }
.contact-methods a.card { text-decoration: none; }

/* Footer -------------------------------------------------------------*/
.site-footer {
  background: var(--color-grey);
  color: var(--color-white);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: var(--font-heading);
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.site-footer p { color: rgba(255,255,255,0.85); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,255,255,0.85); }
.footer-links a:hover { color: var(--color-white); text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding: 20px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* Cookie banner ---------------------------------------------------------*/
#cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
  z-index: 999;
  display: none;
}
#cookie-banner.visible { display: block; }
#cookie-banner p { color: rgba(255,255,255,0.85); font-size: 0.9rem; margin-bottom: 14px; }
#cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner a { color: var(--color-green-light); }

/* Merci page ------------------------------------------------------------*/
.merci-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.merci-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(111,143,74,0.15);
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.merci-icon svg { width: 34px; height: 34px; }

/* Legal pages -------------------------------------------------------------*/
.legal h2 { margin-top: 40px; }
.legal ul { color: #4a4f44; }
.legal { max-width: 780px; margin: 0 auto; }

/* Utility ------------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  background: rgba(111,143,74,0.14);
  color: var(--color-green-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}
.badge-accent {
  background: rgba(201,138,75,0.16);
  color: var(--color-accent);
}
.split .card::before { transform: scaleX(1); }
.split .card:nth-child(2)::before { background: linear-gradient(90deg, var(--color-accent), var(--color-green-light)); }
