
/* Styles — Jardin & Paysage */
:root {
  --green-deep: #2F4F4F;
  --green-olive: #6B8F71;
  --beige: #F5F2E9;
  --gold: #B39C4D;
  --charcoal: #2A2A2A;
  --offwhite: #FAFAF5;

  --radius: 12px;
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.08);
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--charcoal);
  background: var(--offwhite);
  line-height: 1.65;
}

/* Generic */
.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}
.section { padding: 80px 0; }
h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--green-deep);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 245, 0.9);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { font-size: 1.4rem; }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600; letter-spacing: 0.5px; color: var(--green-deep);
}
.site-nav ul {
  display: flex; gap: 22px; list-style: none; margin: 0; padding: 0;
}
.site-nav a { color: var(--charcoal); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--green-olive); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--green-olive); color: white;
  border: none; border-radius: 999px; padding: 12px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { transform: translateY(-2px); background: #5a7c62; }
.btn-outline {
  background: transparent; color: var(--green-olive); border: 2px solid var(--green-olive);
}
.btn-small { padding: 8px 14px; }

/* Nav toggle (mobile) */
.nav-toggle { display: none; background: transparent; border: none; font-size: 1.4rem; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 10px; padding: 16px 0; }
}

/* Hero */

/* =========================
   HERO
   ========================= */
.hero {
  position: relative;
  display: grid;
  place-items: center;
}

/* Image de fond (si utilisée en arrière-plan de la section) */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/images/ElagageCedre.jpg") center/cover no-repeat fixed;
}

/* Voile de dégradé au-dessus du fond */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(47,79,79,0.55) 0%, rgba(250,250,245,0.3) 100%);
}

/* Contenu texte de la hero */
.hero-content {
  position: relative;     /* correction de la faute de frappe */
  text-align: center;
  color: white;
}

.hero-title {
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 24px;
}

/* ===== Image d'élagage insérée dans un bloc .hero (bords arrondis + zoom) ===== */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;    /* centre le bloc image */
  gap: 16px;
  margin-top: 12px;
}

.header-spacer {
  flex: 0 0 40px;             /* équilibre visuellement la ligne */
}

/* Cadre arrondi et masquage du zoom */
.hero .img-wrapper {
  /* Optionnel : si tu ajoutes un div autour de l'image <div class="img-wrapper"> */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* À défaut d'un wrapper, on arrondit et masque via .hero lui-même */
.hero > img,
.hero img {
  width: 100%;
  height: 520px;              /* hauteur fixe demandée */
  object-fit: cover;
  border-radius: 16px;        /* bords arrondis visibles en permanence */
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Zoom au survol (propre grâce à overflow:hidden si wrapper ou conteneur arrondi) */
.hero:hover img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

/* Ombre un peu plus forte au survol */
.hero:hover .img-wrapper,
.hero:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

/* =========================
   DIVIDER
   ========================= */
.divider {
  display: grid;
  place-items: center;
  margin: -30px 0 20px;
}
.divider img {
  width: 90px;
  opacity: 0.8;
}

/* =========================
   ABOUT
   ========================= */
.about-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.2fr .8fr;
}
.about-card {
  background: var(--beige);
  border-left: 5px solid var(--gold);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.key-points {
  list-style: "•  ";
  padding-left: 1ch;
}

/* =========================
   SERVICES
   ========================= */
.services {
  background: linear-gradient(180deg, #fff, var(--offwhite));
}
.services-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* =========================
   GALLERY
   ========================= */
.gallery {
  background: var(--offwhite);
}
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  background: white;
  box-shadow: var(--shadow-soft);
}
.gallery-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img {
  transform: scale(1.06);
}
.gallery-grid figcaption {
  font-size: .92rem;
  padding: 8px 10px;
  color: #666;
}

/* =========================
   TESTIMONIALS
   ========================= */
.testimonials {
  background: #fff;
}
.testimonials-list {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}
blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 5px solid var(--green-olive);
  background: var(--beige);
  border-radius: 8px;
}

/* =========================
   CONTACT
   ========================= */
.contact-form {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
label {
  font-weight: 700;
  color: var(--green-deep);
}
input,
textarea {
  border: 1px solid rgba(0,0,0,0.12);
  font: 600 1.25rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
}
input:focus,
textarea:focus {
  outline: 2px solid rgba(107,143,113,.35);
}
.form-actions {
  display: flex;
  justify-content: center;   /* centrage du bouton Envoyer */
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.form-note {
  font-size: .9rem;
  color: #777;
}

/* Footer */
.site-footer { background: var(--green-deep); color: #E8EAE6; padding-top: 40px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer h3, .site-footer h4 { color: #EAEAEA; }
.contact-list, .social-list { list-style: none; padding: 0; margin: 0; }
.contact-list li, .social-list li { margin: 8px 0; }
.social-list a { color: #E8EAE6; text-decoration: none; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; margin-top: 16px; }

/* Conteneur */

/* Centre horizontalement le bloc du logo */
section#top .card {
  max-width: 600px;          /* garde ta largeur max */
  margin: 16px auto;         /* ← CENTRAGE horizontal */
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); /* optionnel : comme la hero */
}

/* Logo à l'intérieur de .card */
section#top .card img {
  display: block;
  width: 100%;               /* s'adapte au conteneur */
  height: 300px;             /* ajuste la hauteur si tu veux */
  object-fit: cover;         /* recadrage propre */
  border-radius: 16px;       /* arrondis visibles en permanence */
}
