/* ===========================================================
   Élagage Bordeaux & Langon — Design system
   Palette: pin sombre / corde orange sécurité / parchemin
   Typo: Fraunces (display) + IBM Plex Sans (texte) + IBM Plex Mono (data)
   =========================================================== */

:root {
  --pine-950: #16241A;
  --pine-800: #203829;
  --pine-700: #2F4A34;
  --pine-500: #4C7048;
  --bark-600: #6B4A35;
  --bark-400: #96725A;
  --rope-500: #E4632B;
  --rope-600: #C64F1E;
  --parchment-50: #F4EFE3;
  --parchment-100: #ECE4D2;
  --mist-200: #DCE6DD;
  --ink: #1A211B;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --radius: 4px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--parchment-50);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rope-600); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--pine-950);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

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

:focus-visible {
  outline: 3px solid var(--rope-500);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rope-500);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--pine-950);
  color: var(--mist-200);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { color: var(--parchment-50); }
.topbar strong { color: var(--rope-500); }

/* ---------- Header / nav ---------- */
header.site-header {
  background: var(--parchment-50);
  border-bottom: 3px solid var(--pine-950);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--pine-950);
}
.brand img { width: 44px; height: 44px; }
.brand span.tagline {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--bark-600);
  letter-spacing: 0.03em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main-nav a {
  color: var(--pine-950);
  font-weight: 500;
  font-size: 0.96rem;
}
nav.main-nav a:hover { color: var(--rope-600); text-decoration: none; border-bottom: 2px solid var(--rope-500); }

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1.5px solid var(--pine-950);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
}
.nav-toggle-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pine-950);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn-devis {
  background: var(--rope-500);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  white-space: nowrap;
}
.btn-devis:hover { background: var(--rope-600); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--pine-950) 0%, var(--pine-800) 100%);
  color: var(--parchment-50);
  overflow: hidden;
  padding: 64px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--rope-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 14px;
  display: block;
}
.hero h1 { color: #fff; }
.hero p.lead {
  font-size: 1.15rem;
  color: var(--mist-200);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn-outline-light {
  border: 2px solid var(--mist-200);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: var(--radius);
  border: 4px solid var(--pine-700);
}
.rope-drop {
  position: absolute;
  top: -20px;
  right: 40px;
  width: 40px;
  height: 340px;
  z-index: 2;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--parchment-100); }
section.dark {
  background: var(--pine-950);
  color: var(--parchment-50);
}
section.dark h2, section.dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head .eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--rope-600);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Numbered process list (real sequence) ---------- */
.process-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.process-list li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--mist-200);
  border-left: 4px solid var(--rope-500);
  padding: 18px 20px;
  position: relative;
  font-weight: 500;
}
.process-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--rope-600);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
}

/* ---------- Cards / services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(22,36,26,0.12);
}
.service-card h3 { margin-bottom: 10px; }
.service-card a.more { font-weight: 600; font-size: 0.92rem; }

/* ---------- Photo gallery ---------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.photo-grid figure { margin: 0; }
.photo-grid img { border-radius: var(--radius); border: 1px solid var(--mist-200); }
.photo-grid figcaption {
  font-size: 0.85rem;
  color: var(--bark-600);
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* ---------- Pricing table ---------- */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
table.pricing caption { text-align: left; margin-bottom: 12px; font-family: var(--font-body); color: var(--bark-600); }
table.pricing th, table.pricing td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--mist-200);
}
table.pricing thead th {
  background: var(--pine-950);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
}
table.pricing tbody tr:hover { background: var(--parchment-100); }
.price { color: var(--rope-600); font-weight: 700; }
.pricing-note {
  font-size: 0.85rem;
  color: var(--bark-600);
  margin-top: 14px;
}

@media (max-width: 640px) {
  table.pricing, table.pricing thead, table.pricing tbody, table.pricing th, table.pricing td, table.pricing tr {
    display: block;
  }
  table.pricing thead { display: none; }
  table.pricing tr { border: 1px solid var(--mist-200); margin-bottom: 12px; padding: 8px 0; }
  table.pricing td { border: none; padding: 6px 16px; }
  table.pricing td::before { content: attr(data-label); display: block; font-family: var(--font-body); font-size: 0.75rem; color: var(--bark-600); text-transform: uppercase; }
}

/* ---------- Cities grid ---------- */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.cities-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--mist-200);
  border-left: 3px solid var(--pine-500);
  padding: 10px 14px;
  color: var(--pine-950);
  font-weight: 500;
  font-size: 0.92rem;
}
.cities-grid a:hover {
  border-left-color: var(--rope-500);
  text-decoration: none;
  background: var(--parchment-100);
}

/* ---------- Video ---------- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 4px solid var(--pine-700);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

/* ---------- Reviews ---------- */
.reviews-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.review-score {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--rope-500);
}
.stars { color: var(--rope-500); font-size: 1.2rem; letter-spacing: 2px; }

/* ---------- Two-address block ---------- */
.addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.address-card {
  background: var(--pine-800);
  color: var(--parchment-50);
  padding: 22px 24px;
  border-radius: var(--radius);
  border-top: 4px solid var(--rope-500);
}
.address-card h3 { color: #fff; margin-bottom: 8px; }
.address-card a { color: var(--parchment-50); text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
form.quote-form {
  background: #fff;
  border: 1px solid var(--mist-200);
  border-radius: var(--radius);
  padding: 32px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.92rem;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--mist-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--parchment-50);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  border-color: var(--rope-500);
  outline: none;
}
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
button.btn-submit {
  background: var(--rope-500);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
}
button.btn-submit:hover { background: var(--rope-600); }
.form-note { font-size: 0.82rem; color: var(--bark-600); margin-top: 10px; }
.form-success, .form-error {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
  display: none;
}
.form-success { background: #E4F0E0; color: var(--pine-800); border: 1px solid var(--pine-500); }
.form-error { background: #FBE4DA; color: var(--rope-600); border: 1px solid var(--rope-500); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--pine-950);
  color: var(--mist-200);
  padding: 56px 0 26px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--mist-200); }
.footer-grid a:hover { color: var(--rope-500); }
.footer-bottom {
  border-top: 1px solid var(--pine-700);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--bark-400);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--bark-600);
  padding: 16px 0;
}
.breadcrumb a { color: var(--bark-600); }
.breadcrumb span[aria-current] { color: var(--pine-950); font-weight: 600; }

/* ---------- Legal / plan du site page ---------- */
.legal-content h2 { margin-top: 1.6em; }
.sitemap-list ul { list-style: none; padding-left: 0; }
.sitemap-list a { font-size: 1.05rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .rope-drop { display: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .header-inner { flex-wrap: wrap; }
  .nav-toggle-btn { display: flex; order: 2; }
  .btn-devis { order: 3; }

  nav.main-nav {
    display: none;
    order: 4;
    width: 100%;
    background: var(--parchment-50);
    border-top: 1px solid var(--mist-200);
    margin-top: 14px;
  }
  nav.main-nav.nav-open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  nav.main-nav li { width: 100%; }
  nav.main-nav a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--mist-200);
  }
  nav.main-nav a:hover { border-bottom: 1px solid var(--mist-200); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}
