@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #201d1a;
  --ink-soft: #6b6660;
  --paper: #ffffff;
  --panel: #fff5ec;
  --panel-line: #ffe2c8;
  --line: #ece8e3;
  --orange: #ff6600;
  --orange-dark: #d95500;
  --orange-tint: #fff0e2;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1120px;
}

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(1.6rem, 2.8vw, 2.15rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; max-width: 60ch; color: var(--ink-soft); }

a { color: var(--orange-dark); }

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

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--orange); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

/* Compliance banner */
.compliance-bar {
  background: #f7f5f2;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}
.compliance-bar.hidden { display: none; }
.compliance-bar a { color: var(--ink-soft); text-decoration: underline; }
.compliance-ok {
  background: var(--ink); color: #fff; border: none; font-weight: 700;
  font-size: 0.78rem; padding: 5px 16px; border-radius: 999px; cursor: pointer;
}
.compliance-ok:hover { background: var(--orange-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--wrap); margin: 0 auto; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 72px; width: auto; flex-shrink: 0; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand-text span { font-size: 0.72rem; color: var(--ink-soft); }

nav.main-nav { display: flex; gap: 2px; align-items: center; }
nav.main-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.94rem;
  padding: 9px 14px; border-radius: 999px;
}
nav.main-nav a:hover { background: var(--orange-tint); }
nav.main-nav a.active { background: var(--orange-tint); color: var(--orange-dark); }

.call-btn {
  background: var(--orange) !important; color: #fff !important;
  font-weight: 700 !important; padding: 10px 18px !important;
  border-radius: 999px !important;
}
.call-btn:hover { background: var(--orange-dark) !important; }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 42px; height: 42px; cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); display: block; }

/* Hero */
.hero { padding: 60px 0 0; }
.hero-inner { max-width: 760px; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--orange-dark);
  background: var(--orange-tint); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero p.lead { font-size: 1.12rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 0.98rem; border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }

.fine-print { font-size: 0.85rem; color: var(--ink-soft); margin-top: 16px; }

/* Marquee ticker of villages */
.ticker {
  margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; background: var(--panel);
}
.ticker-track {
  display: inline-block; padding: 14px 0; animation: scroll-left 16s linear infinite;
  font-family: 'Poppins', sans-serif; font-weight: 600; color: var(--orange-dark); font-size: 0.95rem;
}
.ticker-track span { margin: 0 22px; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Sections */
section { padding: 64px 0; }
section.panel { background: var(--panel); }
.section-head { max-width: 640px; margin-bottom: 36px; }

/* Avis clients */
.rating-badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: var(--panel); border: 1px solid var(--panel-line); padding: 8px 16px; border-radius: 999px;
  color: var(--ink); margin-bottom: 18px; font-size: 0.95rem;
}
.stars { color: var(--orange); letter-spacing: 1px; }

/* Service cards */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s ease;
}
.svc-card:hover { border-color: var(--orange); }
.svc-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--orange-tint);
  color: var(--orange-dark); display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 14px;
}
.svc-card h3 { margin-bottom: 6px; }
.svc-card p { font-size: 0.94rem; margin-bottom: 0; }

/* Checklist (services detail page) */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 17px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--orange-tint); border: 2px solid var(--orange);
}
.category-block { margin-bottom: 48px; }
.category-block:last-child { margin-bottom: 0; }

/* Tarifs — description blocks */
.price-block { border-bottom: 1px solid var(--line); padding: 26px 0; }
.price-block:first-child { padding-top: 0; }
.price-block:last-child { border-bottom: none; padding-bottom: 0; }
.price-block h4 { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.price-block h4 .amount { color: var(--orange-dark); font-weight: 800; }

.mini-rows { margin-top: 14px; display: grid; gap: 0; }
.mini-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-bottom: 1px dashed var(--line); font-size: 0.95rem;
}
.mini-row:last-child { border-bottom: none; }
.mini-row .amount { font-weight: 700; color: var(--ink); white-space: nowrap; }

.note-block {
  background: var(--panel); border-radius: var(--radius-sm); padding: 14px 18px;
  color: var(--ink-soft); font-size: 0.92rem; margin-top: 16px;
}

/* Tarif table */
.tarif-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 8px;
}
.tarif-table th, .tarif-table td {
  text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-size: 0.94rem; vertical-align: top;
}
.tarif-table thead th {
  background: var(--panel); font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 0.82rem; color: var(--ink-soft);
}
.tarif-table tbody tr:last-child td { border-bottom: none; }
.tarif-table td:first-child { font-weight: 700; white-space: nowrap; }
.tarif-table td:last-child { color: var(--ink-soft); }

/* Zone / radar */
.zone-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.radar { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 0 auto; }
.radar-mask { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.radar-ring {
  position: absolute; border: 1.5px solid var(--panel-line); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 1;
}
.radar-ring.r1 { width: 30%; height: 30%; background: var(--orange-tint); border-color: var(--orange); }
.radar-ring.r2 { width: 62%; height: 62%; }
.radar-ring.r3 { width: 94%; height: 94%; }
.radar-needle {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 2px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255,102,0,0.08) 85%, transparent 100%);
  transform-origin: 0% 50%;
  animation: radar-spin 5s linear infinite;
  z-index: 2;
}
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255,102,0,0.28), transparent 55deg);
  animation: radar-spin 5s linear infinite;
  z-index: 2; mix-blend-mode: multiply;
}
@keyframes radar-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .radar-needle, .radar-sweep { animation: none; }
}
.radar-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--orange); z-index: 4;
}
.radar-label {
  position: absolute; transform: translate(-50%, -50%); font-size: 0.6rem; font-weight: 600;
  color: var(--ink-soft); background: #fff; padding: 2px 6px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap; z-index: 3;
}
.zones {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none;
}
.zones li {
  font-size: 0.85rem; font-weight: 600; background: var(--panel); color: var(--orange-dark);
  padding: 7px 13px; border-radius: 999px;
}

/* Full commune reference lists */
.commune-groups {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 12px;
}
.commune-group h3 {
  font-size: 1rem; margin-bottom: 4px;
}
.commune-group .count {
  font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 12px; display: block;
}
.commune-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none;
}
.commune-chips li {
  font-size: 0.78rem; font-weight: 500; background: var(--paper); border: 1px solid var(--line);
  color: var(--ink-soft); padding: 5px 10px; border-radius: 999px;
}

@media (max-width: 860px) {
  .commune-groups { grid-template-columns: 1fr; gap: 24px; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.info-card {
  background: var(--panel); border-radius: var(--radius); padding: 28px;
}
.info-card h3 { margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--panel-line); font-size: 0.95rem; gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--ink-soft); }
.info-row .value { font-weight: 700; text-align: right; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .hero-actions { justify-content: center; }

/* Footer */
footer { background: var(--ink); color: #eae7e2; padding: 48px 0 26px; }
footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
footer h4 { color: #fff; font-family: 'Poppins', sans-serif; font-size: 0.95rem; margin: 0 0 14px; }
footer p { color: #c7c3bd; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid #3a3733; padding-top: 18px; font-size: 0.82rem; color: #9c988f;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .zone-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  nav.main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 24px 16px;
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  nav.main-nav a.active { background: none; }
  .call-btn { text-align: center; margin-top: 6px; }
  .nav-toggle { display: flex; }
}
