/* ============================================
   Profile — Éco Forêt (Bois & Nature)
   Tiny house, habitat alternatif, ossature bois
   Micro-variations : radius 12px, headings 700, hero left-align, spacing 1.0x
   ============================================ */

:root {
  --primary: #2C5F2E;
  --primary-dark: #1A3B1C;
  --accent: #EF8C2F;
  --accent-dark: #C4711F;
  --surface: #F9FBF7;
  --surface-alt: #EEF5EC;
  --text: #1A1A18;
  --text-muted: #6B7280;
  --border: #B7D8B3;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(44, 95, 46, 0.07), 0 1px 2px rgba(44, 95, 46, 0.05);
  --shadow-md: 0 4px 18px rgba(44, 95, 46, 0.11), 0 1px 5px rgba(44, 95, 46, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Karla', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--surface);
}

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 26px; }
h3 { font-size: 1.2rem; font-weight: 700; }

a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header {
  padding: 15px 0;
  background: var(--primary-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 2px 12px rgba(26, 59, 28, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.logo span { color: #86EFAC; }
.site-header nav ul { display: flex; gap: 22px; list-style: none; align-items: center; flex-wrap: wrap; }
.site-header nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.site-header nav a:hover { color: white; }
.btn-nav {
  background: var(--accent);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 700;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--accent-dark); }

/* Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(145deg, #0F2611 0%, #1A3B1C 45%, #2C5F2E 100%);
  color: white;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2386EFAC' fill-opacity='0.04'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; max-width: 800px; }
.badge {
  display: inline-block;
  background: rgba(134,239,172,0.15);
  border: 1px solid rgba(134,239,172,0.3);
  color: #86EFAC;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
  text-transform: uppercase;
}
.hero h1 { color: white; margin-bottom: 20px; }
.hero h1 strong { color: #86EFAC; }
.subtitle {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 0 34px;
  line-height: 1.7;
}
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Sora', sans-serif;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(239,140,47,0.38); }
.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.55); }
.hero-trust {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.65);
}
.hero-trust-item { display: flex; align-items: center; gap: 7px; }
.check { color: #86EFAC; font-weight: 700; font-size: 0.95rem; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface-alt); }

.section-title { text-align: center; margin-bottom: 50px; max-width: 640px; margin-left: auto; margin-right: auto; }
.section-title p { color: var(--text-muted); font-size: 1.03rem; margin-top: 12px; }

/* Grid */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .icon { font-size: 1.9rem; display: block; margin-bottom: 14px; }
.card h3 { margin-bottom: 9px; }
.card p { color: var(--text-muted); font-size: 0.94rem; }
.price {
  display: inline-block;
  margin-top: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.93rem;
  padding: 4px 13px;
  border-radius: 100px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: steps;
}
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: white;
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  counter-increment: steps;
  position: relative;
}
.step::before {
  content: counter(steps);
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--primary);
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 { margin-bottom: 9px; }
.step p { color: var(--text-muted); font-size: 0.93rem; }

/* Prix grid */
.prix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 12px;
}
@media (max-width: 700px) { .prix-grid { grid-template-columns: 1fr; } }
.prix-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}
.prix-card .amount {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1;
}
.prix-card h3 { margin-bottom: 10px; color: var(--text); }
.prix-card p { color: var(--text-muted); font-size: 0.92rem; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  text-align: center;
  color: white;
}
.cta-banner h2 { color: white; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,0.78); max-width: 540px; margin: 0 auto 26px; font-size: 1.03rem; }
.btn-light {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 13px 30px;
  border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.16); color: var(--primary-dark); }

/* Cities grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 9px;
}
.cities-grid a {
  display: block;
  padding: 9px 13px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.87rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s;
}
.cities-grid a:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 11px; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.97rem;
  padding: 17px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 16px; color: var(--text-muted); font-size: 0.94rem; line-height: 1.7; }

/* Page header (pages internes) */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 50px 0 42px;
}
.page-header h1 { color: white; margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.page-header p { color: rgba(255,255,255,0.78); font-size: 1.03rem; max-width: 640px; }
.breadcrumb { font-size: 0.84rem; color: rgba(255,255,255,0.5); margin-bottom: 12px; }
.breadcrumb a { color: rgba(255,255,255,0.68); text-decoration: none; }
.breadcrumb a:hover { color: white; }
.breadcrumb .sep { margin: 0 8px; }
.zip { display: inline-block; font-size: 0.84rem; background: rgba(255,255,255,0.1); border-radius: 100px; padding: 3px 11px; color: rgba(255,255,255,0.72); margin-bottom: 11px; }

/* Content block (pages internes) */
.content-block { max-width: 780px; }
.content-block h2 { margin-top: 34px; margin-bottom: 14px; }
.content-block p { color: var(--text-muted); margin-bottom: 14px; }
.content-block ul { color: var(--text-muted); padding-left: 20px; margin-bottom: 14px; }
.content-block ul li { margin-bottom: 7px; line-height: 1.65; }

/* Formulaire */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
@media (max-width: 540px) { .contact-form { padding: 1.75rem 1.25rem; } }

.contact-form h3 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  padding: 11px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  margin: 26px 0 18px;
}
.contact-form h3:first-of-type { margin-top: 0; }

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
  color: var(--text);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Karla', sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  background: white;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,95,46,0.09);
}
.contact-form textarea { min-height: 100px; resize: vertical; }

.contact-form input.is-valid,
.contact-form select.is-valid { border-color: #16A34A; }
.contact-form input.is-loading { border-color: var(--accent); }

.form-row { display: grid; gap: 14px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cp-ville { grid-template-columns: 155px 1fr; }
@media (max-width: 540px) { .form-row.cols-2, .form-row.cp-ville { grid-template-columns: 1fr; } }

.help {
  font-size: 0.81rem;
  color: var(--text-muted);
  margin-top: -12px;
  margin-bottom: 16px;
}

.error-box {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 15px 19px;
  margin-bottom: 20px;
  color: #991B1B;
}
.error-box ul { padding-left: 18px; margin-top: 7px; }
.error-box li { margin-bottom: 4px; font-size: 0.91rem; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.89rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: 22px;
}
.checkbox-row input { width: auto; margin: 3px 0 0; flex-shrink: 0; }
.checkbox-row a { color: var(--primary); }

.contact-form button[type="submit"] {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}
.contact-form button[type="submit"]:hover { background: var(--accent-dark); }
.contact-form button.is-submitting { opacity: 0.7; cursor: not-allowed; }

.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.is-submitting .spinner { display: inline-block; }
.is-submitting .label-default { display: none; }
.is-submitting .label-loading { display: inline !important; }
@keyframes spin { to { transform: rotate(360deg); } }

.reassure {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.reassure-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.81rem;
  color: var(--text-muted);
  text-align: center;
  gap: 2px;
}
.reassure-item strong { color: var(--text); font-size: 0.88rem; }

/* Footer */
.site-footer {
  background: #0A1A0B;
  color: #D1FAD4;
  padding: 50px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 38px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.93rem;
  color: #86EFAC;
  margin-bottom: 13px;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 7px; }
.site-footer a { color: rgba(209,250,212,0.6); text-decoration: none; font-size: 0.89rem; }
.site-footer a:hover { color: #B0F0B5; }
.footer-bottom {
  border-top: 1px solid rgba(134,239,172,0.1);
  padding-top: 18px;
  font-size: 0.82rem;
  color: rgba(209,250,212,0.38);
}

/* Responsive mobile */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .site-header nav ul { gap: 12px; }
  .cta-banner { padding: 34px 22px; }
}


/* ============================================
   SEO Text Block — place haut dans le DOM (apres <nav>)
   Repositionne visuellement en bas via CSS
   ============================================ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-header { order: 1; }
main { order: 2; flex: 1 0 auto; }
.site-footer { order: 3; }
.seo-text-block {
  order: 99; /* tout en bas visuellement */
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 24px 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: #4a5566;
}
.seo-text-block p {
  max-width: 820px;
  margin: 0 auto;
}
