/* ============================================
   Profile 04 — Artisan Terracotta
   Chaleureux, fait-main, proximité, seniors
   Micro-variations : radius 8px, headings 700, hero centré, spacing 1.0
   ============================================ */

:root {
  --primary: #B45309;
  --primary-dark: #92400E;
  --accent: #65A30D;
  --surface: #FFFBF5;
  --surface-alt: #FEF3C7;
  --text: #44403C;
  --text-muted: #78716C;
  --border: #E7E5E4;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(68, 64, 60, 0.08), 0 1px 2px rgba(68, 64, 60, 0.04);
  --shadow-md: 0 4px 16px rgba(68, 64, 60, 0.10), 0 1px 4px rgba(68, 64, 60, 0.06);
}

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

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 28px; }
h3 { font-size: 1.35rem; }

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: 20px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
}
.logo span { color: var(--primary); }
.site-header nav ul { display: flex; gap: 24px; list-style: none; align-items: center; flex-wrap: wrap; }
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--primary); }
.btn-nav {
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--primary-dark); }

/* Hero */
.hero {
  padding: 80px 0;
  background: var(--surface);
  text-align: center;
}
.hero .container { max-width: 860px; }
.hero .badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 20px; color: var(--text); }
.hero h1 strong { color: var(--primary); }
.hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-trust-item .check {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Boutons */
.cta-group { display: flex; gap: 16px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
}
.btn-primary { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--surface-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-title p { color: var(--text-muted); font-size: 1.1rem; margin-top: 12px; }

/* Cards aides financières */
.aides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .aides-grid { grid-template-columns: 1fr; } }
.aide-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--primary);
}
.aide-card .amount {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.aide-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.aide-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* Cards modèles */
.grid { display: grid; gap: 24px; }
.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: 960px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card .price { font-weight: 700; color: var(--primary); font-size: 0.95rem; margin-top: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Cities */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.cities-grid a {
  display: block;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.cities-grid a:hover { border-color: var(--primary); background: var(--surface-alt); color: var(--primary); }

/* CTA banner */
.cta-banner {
  background: var(--primary);
  color: white;
  padding: 64px 48px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.cta-banner h2 { color: white; margin-bottom: 16px; }
.cta-banner p { color: rgba(255,251,245,0.85); font-size: 1.1rem; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-light {
  background: white;
  color: var(--primary);
  border: none;
  padding: 14px 32px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s;
}
.cta-banner .btn-light:hover { background: var(--surface-alt); transform: translateY(-1px); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--primary); border-bottom: 1px solid var(--border); }
.faq-item p {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-muted); }
.zip {
  display: inline-block;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

/* Page header */
.page-header {
  padding: 64px 0 40px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 640px; font-size: 1.1rem; }

/* Content block */
.content-block { max-width: 800px; margin: 0 auto; }
.content-block h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 16px; }
.content-block h2:first-child { margin-top: 0; }
.content-block p, .content-block ul, .content-block li { color: var(--text-muted); line-height: 1.75; }
.content-block ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.content-block li { margin-bottom: 6px; }

/* Footer */
.site-footer {
  background: #44403C;
  color: #FFFBF5;
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  font-family: 'Fraunces', serif;
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: rgba(255,251,245,0.7); text-decoration: none; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,251,245,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,251,245,0.5);
}

/* ============================================
   FORMULAIRE CONTACT
   ============================================ */

.contact-form {
  max-width: 660px;
  margin: 0 auto;
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--surface-alt);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

.contact-form > div + h3 { margin-top: 2rem; }

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover { border-color: var(--primary); }

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.1);
}

.contact-form input.is-valid { border-color: #65A30D; }
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-form .form-row { display: grid; gap: 1rem; }
.contact-form .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.contact-form .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.contact-form .form-row.cp-ville { grid-template-columns: 130px 1fr; }

@media (max-width: 540px) {
  .contact-form { padding: 1.75rem 1.25rem; }
  .contact-form .form-row.cols-2,
  .contact-form .form-row.cols-3,
  .contact-form .form-row.cp-ville { grid-template-columns: 1fr; }
}

.contact-form .help {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -0.5rem 0 1rem;
  line-height: 1.4;
}

.contact-form .checkbox-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
  cursor: pointer;
  padding: 0.85rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}

.contact-form .checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.contact-form .checkbox-row span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form .btn { width: 100%; padding: 1rem; font-size: 1.05rem; position: relative; }

.contact-form .btn .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 0.6rem;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.contact-form .btn.is-submitting .spinner { display: inline-block; }
.contact-form .btn.is-submitting .label-default { display: none; }

.contact-form .reassure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.contact-form .reassure-item { text-align: center; font-size: 0.8rem; color: var(--text-muted); }
.contact-form .reassure-item strong { display: block; color: var(--primary); font-size: 0.9rem; margin-bottom: 2px; }

/* Errors */
.error-box {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}
.error-box ul { margin: 0.5rem 0 0; padding-left: 1.5rem; }
.field-error { color: #DC2626; font-size: 0.85rem; margin-top: -0.75rem; margin-bottom: 1rem; }


/* ============================================
   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;
}
