/* ==========================================================
   Passion Jardin — styles (conversion vanilla depuis React/Tailwind)
   ========================================================== */

:root {
  --background: 0 0% 100%;
  --foreground: 93 18% 20%;

  --primary: 93 18% 32%;
  --primary-foreground: 48 32% 96%;

  --secondary: 106 28% 54%;
  --secondary-foreground: 93 18% 15%;

  --accent: 48 32% 76%;
  --accent-foreground: 93 18% 20%;

  --muted: 48 20% 92%;
  --muted-foreground: 93 10% 40%;

  --card: 0 0% 100%;
  --card-foreground: 93 18% 20%;

  --border: 93 15% 85%;

  --banner-bg: 106 35% 94%;
  --banner-fg: 93 25% 18%;
  --banner-border: 106 30% 82%;

  --radius: 0.75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.icon, svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
}

.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo { height: 6rem; width: auto; object-fit: contain; }
.brand-logo-sm { height: 3rem; }
.brand-name { font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; color: hsl(var(--primary)); }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-link {
  background: none; border: none; padding: 0;
  font-size: 0.875rem; font-weight: 500;
  color: hsla(var(--foreground), 0.7);
  transition: color 0.2s ease;
}
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link.active { color: hsl(var(--primary)); font-weight: 600; }

.menu-toggle {
  background: none; border: none; padding: 0.5rem;
  color: hsl(var(--foreground));
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}
.nav-mobile.open { display: flex; }

.nav-link-mobile {
  background: none; border: none; text-align: left;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-weight: 500;
  color: hsla(var(--foreground), 0.7);
  border-radius: 0.5rem;
}
.nav-link-mobile.active { color: hsl(var(--primary)); background: hsla(var(--accent), 0.5); }
.nav-link-mobile:hover { background: hsl(var(--muted)); }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn:active { transform: scale(0.98); }
.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: 0 0 0 1px hsl(var(--background));
}
.btn-secondary:hover { background-color: hsl(106 28% 46%); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #508238;
  color: hsl(var(--primary-foreground));
  padding-top: 5rem;
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px; opacity: 0.2; pointer-events: none;
  background-image: radial-gradient(circle at 30% 40%, rgba(122, 169, 92, 0.4) 0%, transparent 25%),
                     radial-gradient(circle at 70% 60%, rgba(226, 233, 192, 0.3) 0%, transparent 28%);
}
.hero-inner { position: relative; padding: 3rem 0; }
.hero h1 {
  font-size: 2.5rem; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}
.hero-text {
  font-size: 1.125rem; line-height: 1.6;
  max-width: 48rem; margin: 0 auto 2rem;
  color: hsla(var(--primary-foreground), 0.9);
}
@media (min-width: 768px) {
  .hero h1 { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 4rem; }
  .hero-text { font-size: 1.25rem; }
}

/* ---------- About ---------- */
.about { padding: 6rem 0; background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.about-inner { max-width: 56rem; }
.about h2 { font-size: 2.5rem; font-weight: 700; text-align: center; margin-bottom: 2rem; }
.about-text { display: flex; flex-direction: column; gap: 1.5rem; font-size: 1.125rem; line-height: 1.7; }
.about-text p { text-align: justify; }
.about-text .highlight { font-weight: 700; color: hsl(var(--primary)); }
@media (min-width: 768px) { .about h2 { font-size: 3rem; } }

/* ---------- Section head ---------- */
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.section-head p { font-size: 1.25rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin: 0 auto; }
@media (min-width: 768px) { .section-head h2 { font-size: 3rem; } }

/* ---------- Services ---------- */
.services { padding: 6rem 0; background-color: hsl(var(--background)); }
.service-category { margin-bottom: 4rem; }
.service-category h3 {
  font-size: 1.75rem; font-weight: 700; color: hsl(var(--primary));
  border-bottom: 1px solid hsl(var(--border));
  padding-bottom: 1rem; margin-bottom: 2rem; letter-spacing: -0.01em;
}
.service-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 640px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: 1fr 1fr 1fr; } }

.service-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.service-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-4px); }
.service-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background-color: hsl(var(--muted));
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary)); margin-bottom: 1rem;
}
.service-icon svg { width: 1.75rem; height: 1.75rem; }
.service-card h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.service-card p { color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ---------- Service banner ---------- */
.service-banner {
  background-color: hsl(var(--banner-bg));
  color: hsl(var(--banner-fg));
  border: 1px solid hsl(var(--banner-border));
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
  margin: 3rem 0;
}
.banner-icon {
  width: 4rem; height: 4rem; border-radius: 1rem; flex-shrink: 0;
  background-color: rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary));
  border: 1px solid rgba(0,0,0,0.05);
}
.banner-icon svg { width: 2rem; height: 2rem; }
.banner-text h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.banner-text p { font-size: 1.125rem; font-weight: 500; opacity: 0.9; line-height: 1.6; max-width: 42rem; }
@media (min-width: 768px) {
  .service-banner { padding: 2rem; flex-direction: row; text-align: left; gap: 2rem; }
}

/* ---------- Gallery ---------- */
.gallery { padding: 6rem 0; background-color: hsl(var(--muted)); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.gallery-item {
  position: relative; border-radius: 1rem; overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.gallery-item img {
  width: 100%; height: 300px; object-fit: cover; display: block;
  transition: transform 0.5s ease;
  background-color: hsl(var(--border));
}
.gallery-item:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .gallery-item img { height: 350px; } }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.gallery-caption span { color: #fff; font-size: 1rem; font-weight: 500; }

/* ---------- Contact ---------- */
.contact { padding: 6rem 0; background-color: hsl(var(--secondary)); color: hsl(var(--secondary-foreground)); }
.contact .section-head p { color: hsla(var(--secondary-foreground), 0.9); }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

.contact-card {
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  padding: 2rem; text-align: center;
  color: hsl(var(--foreground));
}
.contact-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  background-color: hsl(var(--muted));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: hsl(var(--primary));
}
.contact-icon svg { width: 2rem; height: 2rem; }
.contact-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.contact-card a { font-size: 1.125rem; color: hsl(var(--primary)); }
.contact-card a:hover { text-decoration: underline; }

.social-block { text-align: center; }
.social-block h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.social-links { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.social-links a {
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background-color: hsl(var(--background));
  display: flex; align-items: center; justify-content: center;
  color: hsl(var(--primary));
  transition: all 0.2s ease;
}
.social-links a:hover { transform: scale(1.1); }
.social-links a:active { transform: scale(0.98); }
.social-links svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Footer ---------- */
.footer { padding: 3rem 0; background-color: #508238; color: hsl(var(--primary-foreground)); }
.footer-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 1.5rem; text-align: center;
}
.footer .brand-name { color: hsl(var(--primary-foreground)); font-size: 1.25rem; }
.footer-copy { font-size: 0.875rem; color: hsla(var(--primary-foreground), 0.8); }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; text-align: left; }
}
