/* ============================================
   Pépinières Soubiran - Style inspiré Biau Germe
   ============================================ */

:root {
  --bg: #ebebdf;
  --bg-soft: #f5f5eb;
  --bg-card: #ffffff;
  --green: #2d5a3d;
  --green-dark: #1e3d2a;
  --green-light: #4a7c59;
  --burgundy: #772f2f;
  --burgundy-hover: #5c2424;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;
  --line: #c4b8a8;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(45, 90, 61, 0.08);
  --font-condensed: "Roboto Condensed", system-ui, sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-condensed);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--burgundy);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ========== HEADER ========== */
.header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-top {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  font-weight: 500;
}

.logo-name {
  font-family: var(--font-slab);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.02em;
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--green-dark);
  letter-spacing: 0.02em;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  color: var(--burgundy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--burgundy-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--green);
  color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green-dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--font-slab);
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 1.8rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: linear-gradient(145deg, #e8f0e4 0%, #d4e5d0 100%);
  border-radius: 24px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(74, 124, 89, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(119, 47, 47, 0.08) 0%, transparent 45%);
}

.hero-illustration {
  font-size: 5rem;
  z-index: 1;
  opacity: 0.85;
}

.badge {
  position: absolute;
  background: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  z-index: 2;
}

.badge-1 {
  top: 1.2rem;
  left: 1.2rem;
}

.badge-2 {
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--burgundy);
  color: #fff;
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.section-header h2 {
  font-family: var(--font-slab);
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0.8rem 0 1.5rem;
  color: var(--burgundy);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ========== PHILOSOPHY / CARDS ========== */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(45, 90, 61, 0.06);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(45, 90, 61, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--green);
}

.card h3 {
  font-family: var(--font-slab);
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-slab);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
}

.stat {
  text-align: center;
  padding: 1rem;
  background: #e8f0e4;
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  font-family: var(--font-slab);
  font-size: 1.6rem;
  color: var(--green-dark);
  line-height: 1.2;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-visual {
  background: linear-gradient(160deg, #d4e5d0, #e8f0e4);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  box-shadow: var(--shadow);
}

/* ========== CATEGORIES ========== */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
}

.cat {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
  border: 1px solid transparent;
}

.cat:hover {
  transform: translateY(-3px);
  border-color: var(--green-light);
}

.cat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: #e8f0e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--green);
}

.cat h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
}

/* ========== HOURS / INFO ========== */
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.info-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.info-box h3 {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  color: var(--green-dark);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid #eee;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--text-muted);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-list strong {
  color: var(--text);
}

/* ========== CTA ========== */
.cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta h2 {
  font-family: var(--font-slab);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.7rem;
}

.cta p {
  opacity: 0.9;
  max-width: 480px;
  margin: 0 auto 1.6rem;
}

.cta .btn-primary {
  background: #fff;
  color: var(--green-dark);
}

.cta .btn-primary:hover {
  background: #f0f0e8;
  color: var(--green-dark);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--green-dark);
  color: #d4e5d0;
  padding: 3.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  font-family: var(--font-slab);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: #b8c9b0;
  font-size: 0.92rem;
}

.footer a:hover {
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: #8fa88a;
}

/* ========== PAGES INTERNES ========== */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-slab);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  color: var(--green-dark);
  margin-bottom: 0.6rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin-inline: auto;
}

.content-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.content-block h2 {
  font-family: var(--font-slab);
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: 0.9rem;
}

.content-block p,
.content-block li {
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}

.content-block ul {
  padding-left: 1.2rem;
}

/* Form */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-condensed);
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .info-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    flex-direction: column;
    padding: 1.2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}