/* =========================================================
   HORIZON VERT — Élagueur Royan
   DA : éditorial nature contemporain
   ========================================================= */

:root{
  --bg:     #FAF8F3;
  --ink:    #12261E;
  --forest: #1B4332;
  --acid:   #C7F04A;
  --muted:  #6B7A72;
  --line:   #E3DFD4;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 11vw, 120px);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-text: "Instrument Sans", sans-serif;
}

*{ box-sizing: border-box; }

html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px){ body{ font-size: 18px; } }

img{ display: block; max-width: 100%; height: auto; }

a{ color: inherit; text-decoration: none; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

h2{ font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.03; }
h3{ font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

p{ margin: 0; }

.wrap{
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Utilitaires ---------- */
.eyebrow{
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.eyebrow-light{ color: rgba(250,248,243,.7); }

.hl{
  background: linear-gradient(transparent 62%, var(--acid) 62%);
  padding-inline: .05em;
}

/* ---------- Boutons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:active{ transform: translateY(1px); }

.btn-acid{
  background: var(--acid);
  color: var(--ink);
}
.btn-acid:hover{ background: #b6e336; }

.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover{ background: var(--ink); color: var(--bg); }

.btn-block{ width: 100%; justify-content: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,248,243,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 64px;
}
.brand{
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
}
.brand-mark{ width: 26px; height: 26px; color: var(--forest); flex: none; }

.header-nav{ display: none; gap: 2rem; }
.header-nav a{
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.header-nav a:hover{ color: var(--ink); }

.header-tel{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .95rem;
  padding: .55rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.header-tel svg{ width: 17px; height: 17px; }
.header-tel:hover{ background: var(--ink); color: var(--bg); }
.header-tel span{ display: none; }

@media (min-width: 560px){ .header-tel span{ display: inline; } }
@media (min-width: 900px){ .header-nav{ display: flex; } }

/* =========================================================
   HERO
   ========================================================= */
.hero{ padding-top: clamp(48px, 8vw, 96px); padding-bottom: var(--section-y); }
.hero-grid{ display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }

@media (min-width: 900px){
  .hero-grid{ grid-template-columns: 1.05fr .95fr; }
}

.hero h1{
  font-size: clamp(3rem, 7vw, 6rem);
  margin: .4rem 0 1.6rem;
}
.hero-lead{
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink);
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.4rem; }

.hero-points{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.hero-points li{
  position: relative;
  padding-left: 1.4rem;
  font-size: .95rem;
  color: var(--muted);
  font-weight: 500;
}
.hero-points li::before{
  content: "";
  position: absolute; left: 0; top: .5em;
  width: .55rem; height: .55rem;
  background: var(--acid);
  border-radius: 999px;
}

.hero-media{ position: relative; }
.hero-media img{
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}
.hero-badge{
  position: absolute;
  left: -8px; bottom: 24px;
  background: var(--forest);
  color: var(--bg);
  padding: .9rem 1.2rem;
  display: flex; flex-direction: column;
  line-height: 1.1;
}
.hero-badge strong{
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero-badge span{ font-size: .78rem; color: rgba(250,248,243,.75); }

/* =========================================================
   URGENCE (section inversée — le point de bascule)
   ========================================================= */
.urgence{ background: var(--forest); color: var(--bg); }
.urgence-grid{
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: var(--section-y);
}
@media (min-width: 860px){
  .urgence-grid{ grid-template-columns: 1fr 1fr; }
}
.urgence-media img{
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid rgba(250,248,243,.15);
}
.urgence-copy h2{ margin-bottom: 1.2rem; }
.urgence-copy p{ color: rgba(250,248,243,.82); max-width: 44ch; margin-bottom: 2rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding-block: var(--section-y); }

.section-head{ max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2{ margin-bottom: 1.1rem; }
.section-intro{ color: var(--muted); font-size: 1.08rem; }

.services-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px){
  .services-list{ grid-template-columns: repeat(6, 1fr); }
}

.svc{
  background: var(--bg);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}
@media (min-width: 720px){
  .svc{ grid-column: span 2; }
  .svc-lg{ grid-column: span 4; flex-direction: row; }
  .svc-text{ grid-column: span 3; }
}

.svc-media{ overflow: hidden; }
.svc-media img{
  width: 100%; height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.svc-lg .svc-media{ flex: 1 1 55%; }
.svc-lg .svc-media img{ aspect-ratio: auto; min-height: 260px; }
.svc:hover .svc-media img{ transform: scale(1.04); }

.svc-body{ padding: 1.6rem clamp(1.2rem, 2vw, 1.8rem) 1.8rem; }
.svc-lg .svc-body{ flex: 1 1 45%; align-self: center; }
.svc-body-solo{ padding-top: 2rem; }

.svc-num{
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: 0;
  margin-bottom: .7rem;
}
.svc-body h3{ margin-bottom: .5rem; }
.svc-body p{ color: var(--muted); font-size: .98rem; }

.section-cta{ margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.section-cta-left{ text-align: left; }

/* =========================================================
   AVANT / APRÈS
   ========================================================= */
.beforeafter{ padding-bottom: var(--section-y); }
.ba-grid{ display: grid; gap: 1.2rem; }
@media (min-width: 680px){ .ba-grid{ grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line);} }

.ba-item{ position: relative; margin: 0; background: var(--bg); }
.ba-item img{
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.ba-label{
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.ba-label-after{ background: var(--acid); border-color: var(--acid); }

/* =========================================================
   PREUVES
   ========================================================= */
.preuves{ background: var(--ink); color: var(--bg); padding-block: var(--section-y); }
.preuves-grid{ display: grid; gap: clamp(40px, 5vw, 72px); }
@media (min-width: 900px){ .preuves-grid{ grid-template-columns: .85fr 1.15fr; align-items: start; } }

.preuves-head h2{ margin: 0 0 1.2rem; }
.preuves-head p{ color: rgba(250,248,243,.75); margin-bottom: 2rem; max-width: 40ch; }

.preuves-liste{ list-style: none; margin: 0; padding: 0; }
.preuves-liste li{
  display: flex;
  gap: 1.2rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(250,248,243,.16);
}
.preuves-liste li:last-child{ border-bottom: 1px solid rgba(250,248,243,.16); }
.preuves-liste svg{
  width: 30px; height: 30px;
  flex: none;
  color: var(--acid);
}
.preuves-liste h3{ margin-bottom: .3rem; }
.preuves-liste p{ color: rgba(250,248,243,.72); font-size: .98rem; }

/* =========================================================
   ZONE D'INTERVENTION
   ========================================================= */
.zone{ padding-block: var(--section-y); }
.zone-liste{
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.zone-liste li{
  border: 1px solid var(--line);
  padding: .6rem 1.1rem;
  font-weight: 500;
  font-size: .98rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.zone-liste li:hover{ border-color: var(--ink); }
.zone-liste li:nth-child(1){ background: var(--forest); color: var(--bg); border-color: var(--forest); }

/* =========================================================
   DEVIS / FORMULAIRE
   ========================================================= */
.devis{ background: var(--forest); color: var(--bg); padding-block: var(--section-y); }
.devis-grid{ display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 900px){ .devis-grid{ grid-template-columns: 1fr 1fr; align-items: start; } }

.devis-copy h2{ margin: 0 0 1.2rem; }
.devis-copy > p{ color: rgba(250,248,243,.82); max-width: 42ch; margin-bottom: 2rem; }

.devis-reassure{ list-style: none; margin: 0 0 2rem; padding: 0; }
.devis-reassure li{
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .8rem;
  color: rgba(250,248,243,.9);
}
.devis-reassure li::before{
  content: "";
  position: absolute; left: 0; top: .55em;
  width: .7rem; height: .7rem;
  background: var(--acid);
  border-radius: 999px;
}
.devis-phone{ font-size: 1.05rem; }
.devis-phone a{ color: var(--acid); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Formulaire */
.devis-form{
  background: var(--bg);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
}
.field{ margin-bottom: 1.1rem; }
.field label{
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .45rem;
}
.field label span{ color: var(--muted); font-weight: 400; }

.field input,
.field select{
  width: 100%;
  font-family: var(--font-text);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem 1rem;
  transition: border-color .15s ease;
}
.field input:focus,
.field select:focus{
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 2px rgba(27,67,50,.12);
}
.field input::placeholder{ color: #a9b2ad; }
.field select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7A72' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }

.field-file input{ padding: .7rem 1rem; font-size: .92rem; }
.field-file input::file-selector-button{
  font-family: var(--font-text);
  font-weight: 600;
  margin-right: .9rem;
  padding: .5rem .9rem;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
}

.devis-form .btn{ margin-top: .6rem; }
.devis-legal{
  margin-top: 1rem;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq{ padding-block: var(--section-y); }
.faq-list{ border-top: 1px solid var(--line); }

.faq details{ border-bottom: 1px solid var(--line); }
.faq summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker{ display: none; }

.faq-plus{ position: relative; width: 20px; height: 20px; flex: none; }
.faq-plus::before,
.faq-plus::after{
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
}
.faq-plus::before{ width: 16px; height: 2px; }
.faq-plus::after{ width: 2px; height: 16px; transition: transform .2s ease; }
.faq details[open] .faq-plus::after{ transform: translate(-50%, -50%) scaleY(0); }

.faq-answer{ padding: 0 0 1.6rem; max-width: 68ch; }
.faq-answer p{ color: var(--muted); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--ink); color: var(--bg); padding-top: var(--section-y); }
.footer-grid{
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 620px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 940px){ .footer-grid{ grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

.brand-light{ color: var(--bg); margin-bottom: 1rem; }
.footer-brand p{ color: rgba(250,248,243,.6); max-width: 34ch; font-size: .95rem; }

.footer-col h3{
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 1rem;
}
.nap{ color: rgba(250,248,243,.72); font-size: .95rem; line-height: 1.7; }
.footer-tel{ font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.footer-tel:hover{ color: var(--acid); }

.footer-bottom{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(250,248,243,.16);
  font-size: .8rem;
  color: rgba(250,248,243,.5);
}

/* =========================================================
   BARRE D'APPEL STICKY MOBILE
   ========================================================= */
.mobile-callbar{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-callbar a{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
}
.mcb-tel{ background: var(--ink); color: var(--bg); }
.mcb-tel svg{ width: 18px; height: 18px; }
.mcb-devis{ background: var(--acid); color: var(--ink); }

@media (min-width: 768px){ .mobile-callbar{ display: none; } }
/* Décale le contenu pour ne pas masquer le footer sous la barre mobile */
@media (max-width: 767px){ body{ padding-bottom: 60px; } }

/* =========================================================
   ACCESSIBILITÉ
   ========================================================= */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
:focus-visible{ outline: 2px solid var(--forest); outline-offset: 2px; }
.btn-acid:focus-visible{ outline-color: var(--ink); }
