/* =========================================================
   Élagueur TK — styles.css
   Palette: forêt profonde, mousse, ambre (résine/sève), écorce, parchemin
   Typo: Fraunces (titres) + Public Sans (texte courant)
   ========================================================= */
:root {
  --forest-deep: #16261B;
  --forest: #23402B;
  --moss: #4F6A44;
  --amber: #C68A2E;
  --amber-light: #E3AE58;
  --bark: #2B211A;
  --parchment: #F6F1E4;
  --parchment-dim: #EDE6D3;
  --cream-card: #FFFDF8;
  --ink: #1D1B16;
  --ink-soft: #4A473E;
  --line: rgba(29,27,22,0.12);
  --line-light: rgba(255,255,255,0.18);
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-soft: 0 12px 30px -18px rgba(22,38,27,0.45);
  --wrap: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

h3 {
  font-size: 1.2rem;
}

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

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest-deep);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--moss);
  font-weight: 600;
  margin: 0 0 0.6em;
}

.eyebrow.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  max-width: 46ch;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-sub {
  max-width: 56ch;
}

.section-sub.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

.btn-primary {
  background: var(--forest-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--forest);
}

.btn-amber {
  background: var(--amber);
  color: var(--bark);
}

.btn-amber:hover {
  background: var(--amber-light);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border-color: var(--forest-deep);
  color: var(--forest-deep);
}

.btn-outline:hover {
  background: var(--forest-deep);
  color: #fff;
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
}

.link-cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--forest-deep);
  padding-bottom: 2px;
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(246,241,228,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text.light {
  color: #fff;
}

.logo-sub {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--moss);
}

.logo-text.light .logo-sub {
  color: var(--amber-light);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  color: var(--forest-deep);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
}

.site-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo {
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}


.hero-photo {
  border-radius: 0;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,26,19,0.35) 0%, rgba(16,26,19,0.55) 55%, rgba(16,26,19,0.92) 100%);
}

.hero-inner {
  position: relative;
  color: #fff;
  padding: 90px 24px 64px;
}

.hero .eyebrow {
  color: var(--amber-light);
}

.hero h1 {
  color: #fff;
  max-width: 16ch;
}

.hero-lead {
  color: rgba(255,255,255,0.85);
  max-width: 54ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 26px 0 40px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber-light);
}

.hero-stats span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}

/* ---------- Bande de confiance ---------- */
.trust-strip {
  background: var(--forest-deep);
  color: #fff;
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 26px;
}

.trust-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-item svg {
  flex-shrink: 0;
  color: var(--amber-light);
  margin-top: 2px;
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.trust-item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.72);
}

/* ---------- À propos ---------- */
.about {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: center;
}


.about-text p {
  max-width: 54ch;
}

/* ---------- Services ---------- */
.services {
  padding: 96px 0;
  background: var(--parchment-dim);
}

.services-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-card {
  background: var(--cream-card);
  padding: 34px 30px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card p {
  font-size: 0.95rem;
}


/* ---------- Avis clients ---------- */
.testimonials {
  padding: 96px 0;
  background: var(--forest-deep);
}

.testimonials .eyebrow {
  color: var(--amber-light);
}

.testimonials .section-title, .testimonials .section-sub {
  color: #fff;
}

.testimonials .section-sub {
  color: rgba(255,255,255,0.72);
}

.testimonial-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
  margin: 0;
  height: 100%;
}

.testimonial-card .stars {
  color: var(--amber-light);
  letter-spacing: 2px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.testimonial-card blockquote {
  margin: 0 0 16px;
  color: rgba(255,255,255,0.9);
  font-size: 0.98rem;
}

.testimonial-card figcaption {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Réalisations ---------- */
.gallery {
  padding: 96px 0;
}

.gallery-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.gallery-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Garantie ---------- */
.guarantee {
  background: var(--amber);
}

.guarantee-row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 50px 24px;
}

.guarantee-badge {
  color: var(--bark);
  flex-shrink: 0;
}

.guarantee-text {
  flex: 1;
  min-width: 260px;
}

.guarantee-text h2 {
  color: var(--bark);
  max-width: 34ch;
}

.guarantee-text p {
  color: rgba(43,33,26,0.82);
  max-width: 60ch;
}

.guarantee .btn-amber {
  background: var(--bark);
  color: #fff;
}

.guarantee .btn-amber:hover {
  background: var(--forest-deep);
}

/* ---------- Processus ---------- */
.process {
  padding: 96px 0;
  background: var(--parchment-dim);
}

.process-list {
  margin-top: 48px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  counter-reset: none;
}

.process-list li {
  position: relative;
  padding-top: 8px;
}

.process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--amber-light);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 16px;
}

.process-list h3 {
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.process-list p {
  font-size: 0.92rem;
}

/* ---------- Zone d'intervention ---------- */
.zone {
  padding: 96px 0;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.zone-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.85rem;
  color: var(--forest);
  font-weight: 600;
}


.map-frame {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--parchment-dim);
}

/* ---------- FAQ ---------- */
.faq {
  padding: 96px 0;
  background: var(--parchment-dim);
}

.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.accordion {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  padding: 20px 30px 20px 0;
  position: relative;
}

.accordion-trigger::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--amber);
  font-weight: 400;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "–";
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-panel p {
  padding: 0 0 20px;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.contact-form-wrap h2 {
  margin-bottom: 6px;
}

.contact-form {
  margin-top: 26px;
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}

.form-note.success {
  color: var(--forest);
}

.form-note.error {
  color: #9A3B2E;
}

.contact-info {
  background: var(--forest-deep);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 32px;
}

.contact-info h3 {
  color: #fff;
}

.contact-info ul {
  margin: 18px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info li {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

.contact-info a {
  color: var(--amber-light);
  text-decoration: none;
}

.contact-map {
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
}

/* ---------- Pied de page ---------- */
.site-footer {
  background: var(--bark);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--amber-light);
}

.footer-grid p {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 50px;
  padding-top: 22px;
}

.footer-bottom p,
.footer-bottom a {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom a {
  margin-left: auto;
  white-space: nowrap;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid, .zone-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .process-list {
    grid-template-columns: repeat(2,1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 620px) {
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .footer-bottom a {
    margin-left: 0;
    align-self: flex-end;
    white-space: normal;
    text-align: right;
  }

  .header-cta .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .services-grid, .process-list, .testimonial-grid, .gallery-grid, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding-top: 130px;
  }

  .guarantee-row {
    flex-direction: column;
    text-align: center;
  }

}

/* Menu mobile ouvert */
.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px 20px;
  gap: 4px;
}

.main-nav.is-open a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Logo image & pages internes ---------- */
.site-logo-img {
  display: block;
  width: 108px;
  height: 64px;
  object-fit: contain;
}

.footer-logo-img {
  display: block;
  width: 150px;
  max-height: 118px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
}

.footer-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 46px 24px 30px;
}

.footer-logo {
  text-decoration: none;
  flex-shrink: 0;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--amber-light);
}

.page-hero {
  padding: 92px 0 54px;
  background: var(--parchment-dim);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
}

.page-hero .section-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

.page-section {
  padding-top: 72px;
  padding-bottom: 92px;
}

@media (max-width: 900px) {
  .site-logo-img {
    width: 92px;
    height: 56px
  }

  .footer-simple {
    flex-direction: column;
    align-items: flex-start
  }

  .footer-nav {
    justify-content: flex-start
  }

  .page-hero {
    padding: 70px 0 42px
  }

}

/* Navigation et footer Élagueur TK */
.header-row {
  position: relative;
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  white-space: nowrap;
}

.header-cta {
  margin-left: auto;
}

.phone-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.footer-static-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-static-list li {
  color: rgba(255,255,255,0.72);
  font-size: .9rem;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 12px;
}

@media (max-width:1100px) {
  .main-nav {
    position: static;
    transform: none;
    margin-left: auto
  }

  .header-row {
    gap: 16px
  }

  .main-nav {
    gap: 18px
  }

  .header-cta {
    gap: 10px
  }

  .header-phone {
    font-size: .88rem
  }

}

@media (max-width:900px) {
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    transform: none;
    margin: 0
  }

  .header-cta {
    margin-left: auto
  }

  .header-devis {
    display: inline-flex
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px
  }

}

@media (max-width:620px) {


  .header-devis .btn .btn-primary  {
    padding: 10px 14px;
    font-size: .86rem
  }

  .header-cta .btn {
    display:none

  }


  .footer-grid {
    grid-template-columns: 1fr
  }

  .site-footer {
    padding-top: 48px
  }

}

/* Liens du footer et alignement des pages internes */
.footer-static-list a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
}

.footer-static-list a:hover {
  color: var(--amber-light);
}

.page-hero h1, .page-hero .eyebrow, .page-hero .section-sub {
  text-align: center;
}

.legal-page > h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
