/* =============================================
   ESPACE GARDEN — Feuille de style principale
   Thème : sombre, vert forêt, artisanal
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* --- Variables --- */
:root {
  --noir:       #0f0f0f;
  --noir-2:     #161616;
  --noir-3:     #1e1e1e;
  --vert-fonce: #1a3a1a;
  --vert-mid:   #3B6D11;
  --vert-vif:   #639922;
  --vert-clair: #97C459;
  --vert-pale:  #C0DD97;
  --vert-bg:    #0d1a0d;
  --texte:      #e8ede4;
  --texte-2:    #a0a89a;
  --texte-3:    #5a615a;
  --bordure:    #2a2a2a;
  --bordure-v:  #1e3a1e;
  --font-titre: 'Cormorant Garamond', Georgia, serif;
  --font-corps: 'DM Sans', system-ui, sans-serif;
  --radius:     10px;
  --radius-sm:  6px;
  --radius-lg:  16px;
  --transition: 0.25s ease;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--noir);
  color: var(--texte);
  font-family: var(--font-corps);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 108px;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--bordure);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  width: auto;
  height: 88px;
  object-fit: contain;
}

.nav-brand {
  font-family: var(--font-titre);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--texte);
}

.nav-brand span { color: var(--vert-vif); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--texte-2);
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--vert-vif);
  transition: width var(--transition);
}

.nav-link:hover { color: var(--texte); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--texte); }

.nav-cta {
  font-family: var(--font-corps);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 22px;
  background: var(--vert-mid);
  color: var(--vert-pale);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
  display: inline-block;
}

.nav-cta:hover {
  background: var(--vert-fonce);
  transform: translateY(-1px);
}

/* Menu burger mobile */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--texte);
  transition: var(--transition);
}

/* --- Boutons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-corps);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--vert-mid);
  color: var(--vert-pale);
}

.btn-primary:hover {
  background: var(--vert-fonce);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--vert-vif);
  border: 1px solid var(--vert-mid);
}

.btn-outline:hover {
  background: var(--vert-bg);
  transform: translateY(-2px);
}

/* --- Sections communes --- */
.section { padding: 80px 40px; }
.section-sm { padding: 60px 40px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-vif);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--vert-vif);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-titre);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  color: var(--texte);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 15px;
  color: var(--texte-2);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* --- Trust bar --- */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 20px 40px;
  background: var(--vert-bg);
  border-top: 0.5px solid var(--bordure-v);
  border-bottom: 0.5px solid var(--bordure-v);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--vert-vif);
  flex-shrink: 0;
}

.trust-item span {
  font-size: 13px;
  color: var(--texte-2);
}

/* --- Cards de service --- */
.service-card {
  background: var(--noir-2);
  border: 0.5px solid var(--bordure);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover {
  border-color: var(--vert-mid);
  transform: translateY(-3px);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--vert-bg);
  border: 0.5px solid var(--bordure-v);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon svg,
.service-icon img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1) sepia(1) hue-rotate(42deg) saturate(400%) brightness(72%);
}

.service-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 6px;
}

.service-desc {
  font-size: 13px;
  color: var(--texte-3);
  line-height: 1.6;
}

/* --- Galerie --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--noir-2);
  border: 0.5px solid var(--bordure);
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item.large { grid-column: span 2; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--texte-3);
}

.gallery-placeholder svg {
  width: 32px;
  height: 32px;
  color: var(--vert-mid);
}

.gallery-placeholder span { font-size: 12px; }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,25,10,0.6);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay-label {
  font-size: 12px;
  color: var(--vert-pale);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Avis --- */
.review-card {
  background: var(--noir-2);
  border: 0.5px solid var(--bordure);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.review-card:hover { border-color: var(--vert-mid); }

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
}

.review-stars svg {
  width: 15px;
  height: 15px;
  fill: #BA7517;
  color: #BA7517;
}

.review-text {
  font-size: 14px;
  color: var(--texte-2);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vert-bg);
  border: 1px solid var(--vert-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--vert-vif);
  flex-shrink: 0;
}

.review-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--texte);
}

.review-loc {
  font-size: 11px;
  color: var(--texte-3);
  margin-top: 1px;
}

/* --- CTA band --- */
.cta-band {
  background: var(--vert-bg);
  border-top: 0.5px solid var(--bordure-v);
  border-bottom: 0.5px solid var(--bordure-v);
  padding: 60px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band-left h2 {
  font-family: var(--font-titre);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 8px;
}

.cta-band-left p {
  font-size: 14px;
  color: var(--vert-vif);
}

.cta-band-right {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: #0a0a0a;
  border-top: 0.5px solid var(--bordure);
  padding: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: auto;
  height: 60px;
  object-fit: contain;
  opacity: 0.7;
}

.footer-brand {
  font-family: var(--font-titre);
  font-size: 16px;
  font-weight: 500;
  color: var(--texte-2);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  font-size: 13px;
  color: var(--texte-3);
  transition: color var(--transition);
}

.footer-link:hover { color: var(--vert-vif); }

.footer-info {
  font-size: 12px;
  color: var(--texte-3);
  text-align: right;
}

.footer-info a {
  color: var(--vert-vif);
  transition: color var(--transition);
}

.footer-info a:hover { color: var(--vert-pale); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--texte-3);
  border: 0.5px solid var(--bordure-v);
  border-radius: var(--radius-sm);
  transition: color var(--transition), border-color var(--transition);
}

.footer-social a:hover {
  color: var(--vert-vif);
  border-color: var(--vert-mid);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

/* --- Animations d'entrée --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* --- Formulaire --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--texte-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  background: var(--noir-2);
  border: 0.5px solid var(--bordure);
  border-radius: var(--radius-sm);
  color: var(--texte);
  font-family: var(--font-corps);
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color var(--transition);
  width: 100%;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--vert-mid);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23639922' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* --- CTA Devis gratuit (sous prestations) --- */
.devis-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--vert-bg);
  border: 1px solid var(--vert-mid);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.devis-cta:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-vif);
}

.devis-cta-highlight {
  background: var(--vert-mid);
  border-color: var(--vert-vif);
}

.devis-cta-highlight:hover {
  background: var(--vert-fonce);
  border-color: var(--vert-clair);
}

.devis-cta-highlight .devis-cta-icon {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.2);
}

.devis-cta-highlight .devis-cta-icon svg {
  color: #fff;
}

.devis-cta-highlight .devis-cta-title {
  color: #fff;
}

.devis-cta-highlight .devis-cta-sub {
  color: var(--vert-pale);
}

.devis-cta-highlight .devis-cta-arrow {
  color: #fff;
}

.devis-cta-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--vert-mid);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.devis-cta-icon svg {
  width: 22px;
  height: 22px;
  color: var(--vert-pale);
}

.devis-cta-text { flex: 1; }

.devis-cta-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--texte);
  margin-bottom: 3px;
}

.devis-cta-sub {
  font-size: 13px;
  color: var(--texte-2);
  line-height: 1.5;
}

.devis-cta-arrow {
  width: 20px;
  height: 20px;
  color: var(--vert-vif);
  flex-shrink: 0;
}

/* --- Badge crédit impôt --- */
.badge-impot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--vert-bg);
  border: 0.5px solid var(--bordure-v);
  color: var(--vert-pale);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
}

.badge-impot svg {
  width: 14px;
  height: 14px;
  color: var(--vert-vif);
}

/* --- Page hero interne --- */
.page-hero {
  padding: 80px 40px 60px;
  border-bottom: 0.5px solid var(--bordure);
  background: var(--noir-2);
}

/* --- Zone modifiable (commentaire SEO) --- */
/* ZONE D'INTERVENTION : modifier "Corrèze et alentours" partout dans les fichiers HTML */

/* --- Hero --- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  border-bottom: 0.5px solid var(--bordure);
}

.hero-text {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 0.5px solid var(--bordure);
}

.hero-title {
  font-family: var(--font-titre);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--texte);
  margin-bottom: 16px;
}

.hero-em {
  color: var(--vert-vif);
  font-style: normal;
}

.hero-sub {
  font-size: 15px;
  color: var(--texte-2);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 12px;
}

.hero-badge { margin-bottom: 28px; }

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-img {
  overflow: hidden;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 70px; }
  .nav-logo img { height: 52px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--noir);
    padding: 24px 20px;
    border-bottom: 0.5px solid var(--bordure);
    gap: 20px;
    align-items: flex-start;
  }

  /* Hero */
  .hero-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .hero-text {
    padding: 48px 24px 36px;
    border-right: none;
    border-bottom: 0.5px solid var(--bordure);
  }
  .hero-img {
    height: 260px;
  }

  /* Sections */
  .section, .section-sm { padding: 52px 20px; }
  .page-hero { padding: 48px 20px 36px; }

  /* Trust bar */
  .trust-bar { gap: 18px; padding: 18px 20px; flex-wrap: wrap; }
  .trust-item span { font-size: 12px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-column: span 2; }

  /* CTA band */
  .cta-band { padding: 40px 20px; flex-direction: column; align-items: flex-start; }
  .cta-band-right { width: 100%; }
  .cta-band-right .btn { flex: 1; justify-content: center; }

  /* Footer */
  .footer { padding: 32px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-info { text-align: left; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-text { padding: 36px 20px 28px; }
  .hero-img { height: 220px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  /* Trust bar : 2 colonnes */
  .trust-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 16px 20px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: span 1; }
  .gallery-item { aspect-ratio: 16/9; }

  /* Sections */
  .section, .section-sm { padding: 40px 16px; }
  .page-hero { padding: 36px 16px 28px; }

  /* Avis — défilement horizontal */
  .reviews-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 16px;
    padding-right: 20px;
    scrollbar-width: none;
    margin: 0 -20px;
    padding-left: 20px;
  }
  .reviews-grid::-webkit-scrollbar { display: none; }
  .reviews-grid .review-card {
    min-width: calc(100vw - 72px);
    max-width: calc(100vw - 72px);
    flex-shrink: 0;
    scroll-snap-align: start;
    word-break: break-word;
  }

  /* Prestations — 2 colonnes compactes */
  .services-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .services-grid .service-card {
    padding: 16px 14px;
  }
  .services-grid .service-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }
  .services-grid .service-icon svg {
    width: 18px;
    height: 18px;
  }
  .services-grid .service-name {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .services-grid .service-desc {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Filter bar réalisations */
  .filter-bar { gap: 8px; }
  .filter-btn { font-size: 11px; padding: 7px 14px; }

  /* Realisation grid */
  .realisation-grid { grid-template-columns: 1fr !important; }

  /* CTA band */
  .cta-band-right { flex-direction: column; }
  .cta-band-right .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-links { gap: 12px; }
  .footer-info { font-size: 11px; }

  /* Section title */
  .section-title { font-size: clamp(24px, 6vw, 32px); }
}
