/* ══════════════════════════════════════════════
   Tom Legrand Jardin & Services — Paysagiste
   Feuille de style principale
   ══════════════════════════════════════════════ */

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

:root {
  --vert-nuit:    #0F3D07;
  --vert-fonce:   #173404;
  --vert-moyen:   #3B6D11;
  --vert-vif:     #639922;
  --vert-clair:   #97C459;
  --vert-pale:    #C0DD97;
  --vert-mint:    #EAF3DE;
  --blanc:        #ffffff;
  --gris-texte:   #444441;
  --gris-doux:    #F1EFE8;
  --rayon-sm:     6px;
  --rayon-md:     10px;
  --rayon-lg:     16px;
  --rayon-pill:   999px;
  --ombre:        0 4px 24px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; scroll-padding-top: 130px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gris-texte);
  background: var(--blanc);
  line-height: 1.6;
}

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

/* ── Utilitaires ──────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding { padding: 80px 0; }

.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-vif);
  margin-bottom: 12px;
}

.titre-section {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  color: var(--vert-fonce);
  line-height: 1.2;
  margin-bottom: 14px;
}

.sous-titre {
  font-size: 16px;
  color: #6b6b66;
  max-width: 520px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--rayon-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--ombre); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--vert-clair);
  color: var(--vert-fonce);
}

.btn-outline {
  background: transparent;
  color: var(--vert-mint);
  border: 1.5px solid rgba(234,243,222,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-vert {
  background: var(--vert-fonce);
  color: var(--vert-mint);
}

/* ── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 45, 5, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(151, 196, 89, 0.3);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
}

.nav-logo svg { width: 26px; height: 26px; fill: var(--vert-clair); }
.nav-logo-img { width: 140px; height: 140px; object-fit: contain; }

.nav-logo span {
  font-weight: 400;
  color: #97C459;
  font-size: 19px;
}

.nav-liens {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-liens a {
  font-size: 16px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-liens a:hover { color: #97C459; }

.nav-cta {
  background: #97C459;
  color: #0a2d05 !important;
  padding: 13px 30px;
  border-radius: var(--rayon-pill);
  font-weight: 700 !important;
  font-size: 16px;
}
.nav-cta:hover { opacity: 0.9; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--vert-mint);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero / Carousel ──────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: var(--vert-nuit);
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 20s linear infinite;
  /* Léger filtre pour donner un effet "transparence / arrière-plan" */
  filter: brightness(0.9) saturate(1.05);
}

@keyframes fadeSlide {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

.slide:nth-child(1) { animation-delay:  -1s; }
.slide:nth-child(2) { animation-delay: -17s; }
.slide:nth-child(3) { animation-delay: -13s; }
.slide:nth-child(4) { animation-delay:  -9s; }
.slide:nth-child(5) { animation-delay:  -5s; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 30, 4, 0.85) 0%,
    rgba(10, 30, 4, 0.55) 55%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 2;
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 60px 80px;
  max-width: 680px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-clair);
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vert-clair);
}

.hero-titre {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  color: var(--vert-mint);
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-titre em {
  font-style: normal;
  color: var(--vert-clair);
}

.hero-sous {
  font-size: 16px;
  color: rgba(234,243,222,0.82);
  line-height: 1.75;
  max-width: 420px;
  margin-bottom: 32px;
}

.hero-boutons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: var(--rayon-pill);
  padding: 8px 18px;
  width: fit-content;
  backdrop-filter: blur(8px);
}
.hero-badge-stars { color: #FAC775; font-size: 14px; letter-spacing: 1px; }
.hero-badge-texte { font-size: 13px; color: var(--vert-mint); }

.hero-baseline {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 0.5px solid rgba(192,221,151,0.25);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vert-pale);
  max-width: 460px;
}

/* ── Barre Stats ──────────────────────────────────────────── */
#stats {
  background: var(--vert-mint);
  border-bottom: 1px solid var(--vert-pale);
}

.stats-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  padding: 22px 32px;
  text-align: center;
  border-right: 1px solid var(--vert-pale);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-size: 22px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 3px;
}

.stat-lbl {
  font-size: 12px;
  color: var(--vert-moyen);
  font-weight: 500;
}

/* ── Services ─────────────────────────────────────────────── */
#services { background: var(--blanc); }

.services-entete {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.services-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.service-carte {
  background: var(--gris-doux);
  border: 1px solid #e0ded5;
  border-radius: var(--rayon-lg);
  padding: 28px 24px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.service-carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre);
  border-color: var(--vert-pale);
}

.service-icone {
  width: 48px;
  height: 48px;
  background: var(--vert-mint);
  border-radius: var(--rayon-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-icone svg {
  width: 24px;
  height: 24px;
  stroke: var(--vert-moyen);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-nom {
  font-size: 16px;
  font-weight: 700;
  color: var(--vert-fonce);
  margin-bottom: 8px;
}

.service-desc {
  font-size: 14px;
  color: #6b6b66;
  line-height: 1.65;
}

/* ── Pourquoi nous ────────────────────────────────────────── */
#pourquoi { background: var(--vert-fonce); }

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

.pourquoi-texte .titre-section { color: var(--vert-mint); }
.pourquoi-texte .sous-titre    { color: var(--vert-pale); }

.atouts {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.atout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.atout-icone {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(151,196,89,0.15);
  border-radius: var(--rayon-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.atout-icone svg {
  width: 20px;
  height: 20px;
  stroke: var(--vert-clair);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.atout-titre {
  font-size: 15px;
  font-weight: 600;
  color: var(--vert-mint);
  margin-bottom: 4px;
}

.atout-desc {
  font-size: 13px;
  color: var(--vert-pale);
  line-height: 1.6;
}

.pourquoi-chiffres {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chiffre-carte {
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.1);
  border-radius: var(--rayon-lg);
  padding: 28px 20px;
  text-align: center;
}

.chiffre-num {
  font-size: 40px;
  font-weight: 800;
  color: var(--vert-clair);
  line-height: 1;
  margin-bottom: 8px;
}

.chiffre-lbl {
  font-size: 13px;
  color: var(--vert-pale);
  line-height: 1.45;
}

/* ── Galerie ──────────────────────────────────────────────── */
#galerie { background: var(--gris-doux); }

.galerie-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 12px;
  margin-top: 40px;
}

.galerie-item {
  border-radius: var(--rayon-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.galerie-item:first-child { grid-row: 1 / 3; }

.galerie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.galerie-item:hover img { transform: scale(1.06); }

.galerie-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--vert-pale);
  border-radius: var(--rayon-md);
  color: var(--vert-moyen);
  background: var(--vert-mint);
}
.galerie-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--vert-moyen);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.galerie-placeholder span { font-size: 13px; font-weight: 500; }

/* ── Avis ─────────────────────────────────────────────────── */
#avis { background: var(--blanc); }

.avis-grille {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.avis-carte {
  background: var(--gris-doux);
  border: 1px solid #e0ded5;
  border-radius: var(--rayon-lg);
  padding: 28px;
}

.avis-vide { border-style: dashed; opacity: 0.5; }
.avis-vide-texte { font-style: normal !important; color: #888 !important; }

.avis-etoiles {
  color: #FAC775;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.avis-texte {
  font-size: 15px;
  color: var(--gris-texte);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 18px;
}

.avis-auteur {
  font-size: 13px;
  font-weight: 600;
  color: var(--vert-moyen);
}
.avis-source { font-size: 12px; color: #888; font-weight: 400; }

.avis-cta {
  text-align: center;
  margin-top: 40px;
}
.avis-cta p {
  font-size: 15px;
  color: #6b6b66;
  margin-bottom: 16px;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact { background: var(--vert-fonce); }
#contact .titre-section { color: var(--vert-mint); }
#contact .sous-titre    { color: var(--vert-pale); }

.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
}

.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icone {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(151,196,89,0.12);
  border-radius: var(--rayon-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-item-icone svg {
  width: 20px;
  height: 20px;
  stroke: var(--vert-clair);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--vert-vif);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.contact-item-val {
  font-size: 15px;
  color: var(--vert-mint);
  line-height: 1.5;
}
.contact-item-val a {
  color: var(--vert-mint);
  transition: color 0.2s;
}
.contact-item-val a:hover { color: var(--vert-clair); }

.horaires-grille {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}
.horaire-ligne {
  font-size: 13px;
  color: var(--vert-pale);
  display: flex;
  justify-content: space-between;
}
.horaire-jour { font-weight: 500; color: var(--vert-mint); min-width: 85px; }

/* Formulaire */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vert-vif);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
  display: block;
}

.form-groupe { display: flex; flex-direction: column; }

.form-field {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--rayon-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--vert-mint);
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-field::placeholder { color: rgba(151,196,89,0.45); }
.form-field:focus {
  outline: none;
  border-color: var(--vert-clair);
  background: rgba(255,255,255,0.1);
}

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

.form-grille-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--vert-clair);
  color: var(--vert-fonce);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--rayon-pill);
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.form-submit svg {
  width: 18px; height: 18px;
  stroke: var(--vert-fonce);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #071f04;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--vert-pale);
}
.footer-logo span { font-weight: 400; color: #639922; }

.footer-baseline {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #639922;
  font-style: italic;
}

.footer-copy {
  font-size: 12px;
  color: #639922;
}

.footer-liens {
  display: flex;
  gap: 24px;
}
.footer-liens a {
  font-size: 12px;
  color: #639922;
  transition: color 0.2s;
}
.footer-liens a:hover { color: var(--vert-pale); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  .nav-liens { display: none; }
  .nav-burger { display: flex; }

  .hero-content { padding: 150px 24px 60px; }
  .hero-titre   { font-size: 34px; }

  .stats-grille { grid-template-columns: 1fr; }
  .stat-item    { border-right: none; border-bottom: 1px solid var(--vert-pale); }
  .stat-item:last-child { border-bottom: none; }

  .services-entete { flex-direction: column; align-items: flex-start; }
  .services-grille { grid-template-columns: 1fr; }

  .pourquoi-grille  { grid-template-columns: 1fr; gap: 40px; }
  .pourquoi-chiffres { grid-template-columns: 1fr 1fr; }

  .galerie-grille {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .galerie-item:first-child { grid-row: auto; }

  .contact-grille { grid-template-columns: 1fr; gap: 40px; }
  .form-grille-2  { grid-template-columns: 1fr; }

  .carousel-dots { left: 24px; }

  footer { flex-direction: column; text-align: center; padding: 24px; }
  .footer-liens { flex-wrap: wrap; justify-content: center; }
}
