/* Tarn Sud Pros — feuille de style commune à toutes les pages métier.
   Chaque page peut surcharger --accent / --accent-dark / --accent-soft dans un <style> local. */

:root {
  --accent: #2f6b3a;
  --accent-dark: #1f4a27;
  --accent-soft: #e8f1e9;
  --ink: #1d2420;
  --ink-soft: #4c5650;
  --line: #dfe4e0;
  --bg: #ffffff;
  --bg-alt: #f6f7f5;
  --warn: #b5541c;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(20, 30, 25, 0.10);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .75rem; line-height: 1.1; }
.top-cta { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--accent-dark); border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 14px; font-size: .92rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 56px;
  background:
    linear-gradient(180deg, var(--accent-soft) 0%, #fff 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-dark);
  background: #fff; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.checks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.season-alert {
  border-left: 4px solid var(--warn); background: #fff7f1; padding: 12px 16px; border-radius: 8px;
  font-size: .95rem; margin-top: 18px;
}

/* ---------- Form card ---------- */
.form-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; border: 1px solid var(--line);
}
.form-card h2 { font-size: 1.35rem; margin-bottom: .3em; }
.form-card .sub { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  margin: 0; font-weight: 500; font-size: .92rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 13px; background: #fff;
}
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips input:checked + span { color: var(--accent-dark); font-weight: 700; }
.chips label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--ink-soft); margin: 6px 0 16px; }
.consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--accent); }
.form-foot { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.form-error { color: #a12121; font-size: .9rem; margin: -6px 0 12px; display: none; }

/* ---------- Generic grids ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 800; display: grid; place-items: center; margin-bottom: 12px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card .ico { font-size: 1.6rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.verify { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 26px; }
.verify div { display: flex; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.verify b { display: block; }
.verify .ico { font-size: 1.4rem; flex: none; }

/* ---------- Price table ---------- */
.table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-soft); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
td.price { white-space: nowrap; font-weight: 700; }

/* ---------- Season timeline ---------- */
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin: 24px 0 10px; }
.months span { text-align: center; font-size: .78rem; padding: 10px 0; border-radius: 6px; background: #eceeec; color: var(--ink-soft); font-weight: 600; }
.months span.ok { background: var(--accent); color: #fff; }
.months span.mid { background: #9cc0a2; color: #fff; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- Zone ---------- */
.towns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.towns li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 28px auto 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent-dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn-primary { background: #fff; color: var(--accent-dark); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.cta-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Footer ---------- */
footer { background: #141a16; color: #c5ccc7; padding: 40px 0 90px; font-size: .9rem; }
footer a { color: #e3e8e4; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
footer h3 { color: #fff; font-size: 1rem; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
footer .legal { border-top: 1px solid #2a332d; margin-top: 28px; padding-top: 18px; font-size: .8rem; color: #8d978f; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mobile-bar .btn { flex: 1; padding: 12px 10px; }

/* ---------- Simple text pages ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 48px 16px; }
.prose h1 { font-size: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .verify { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 44px 0; }
  .hero { padding: 28px 0 40px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .top-cta .btn-ghost { display: none; }
  .mobile-bar { display: flex; }
  .months { grid-template-columns: repeat(6, 1fr); }
  .form-card { padding: 20px; }
}

/* ---------- Photo gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 8px; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--accent-soft); }
@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery img:first-child { grid-column: 1 / -1; }
}
