/* SaaS EARL Pépinière PEISX — feuille de style unique et lisible */
:root {
  --bg: #f7f9f6;
  --fg: #1a2e1a;
  --primary: #2f5d3a;
  --primary-dark: #1f3f27;
  --accent: #b6862c;
  --muted: #6b7280;
  --border: #d1d5db;
  --error: #b91c1c;
  --ok: #15803d;
  --warn: #c2410c;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  margin: 0;
}

body.admin { background: #f0f2f5; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- NAV ---- */
.main-nav, .admin-nav {
  background: var(--primary);
  color: white;
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
}
.admin-nav { background: #1a2e1a; }
.main-nav .container, .admin-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.main-nav .brand, .admin-nav .brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}
.main-nav ul, .admin-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.main-nav a, .admin-nav a { color: white; text-decoration: none; }
.main-nav a:hover, .admin-nav a:hover { text-decoration: underline; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, #2f5d3a 0%, #5a8059 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.hero h1 { margin-top: 0; font-size: 2rem; }
.hero .lead { font-size: 1.1rem; max-width: 720px; }
.hero .muted { color: rgba(255,255,255,0.85); }

/* ---- GRID + CARDS ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ec;
  color: var(--primary);
  font-size: 4rem;
  aspect-ratio: 4/3;
}
.card .placeholder.large { font-size: 8rem; }
.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.card h3 { margin: 0.75rem 1rem 0.25rem; font-size: 1.1rem; }
.card .sci { margin: 0 1rem 0.5rem; color: var(--muted); font-size: 0.9rem; }
.card .price { margin: 0 1rem; color: var(--accent); font-weight: 600; }
.card a {
  margin: 0.75rem 1rem 1rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.card a:hover { text-decoration: underline; }

/* ---- PLANT DETAIL ---- */
.plant-detail .hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}
.plant-detail .description {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  white-space: pre-line;
}

/* ---- TABLES (admin) ---- */
table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
th, td { padding: 0.6rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f0f2f5; font-weight: 600; }
tbody tr:hover { background: #f7f9f6; }

/* ---- STAT CARDS ---- */
.stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.stat .num { font-size: 2.5rem; font-weight: 700; color: var(--primary); }
.stat > div:last-child { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

/* ---- STATUS BADGES ---- */
.status { padding: 0.15rem 0.5rem; border-radius: 6px; font-size: 0.85rem; }
.status-nouveau { background: #e0f2fe; color: #075985; }
.status-contacte { background: #fef3c7; color: #854d0e; }
.status-interesse { background: #ede9fe; color: #5b21b6; }
.status-devis { background: #fce7f3; color: #9d174d; }
.status-gagne { background: #dcfce7; color: #166534; }
.status-perdu { background: #fee2e2; color: #991b1b; }

/* ---- FORMS ---- */
.form { max-width: 360px; }
.form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.form input[type="text"], .form input[type="email"], .form input[type="password"] {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-top: 0.25rem;
}
.form .checkbox { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.form button {
  background: var(--primary);
  color: white;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.form button:hover { background: var(--primary-dark); }

/* ---- FLASH MESSAGES ---- */
.flashes { margin: 1rem 0; }
.flash { padding: 0.6rem 1rem; border-radius: 6px; margin-bottom: 0.5rem; }
.flash-error { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--error); }
.flash-ok { background: #dcfce7; color: #14532d; border-left: 3px solid var(--ok); }

/* ---- PAGINATION ---- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.pagination a { color: var(--primary); text-decoration: none; font-weight: 600; }
.pagination a:hover { text-decoration: underline; }

/* ---- STOCK LOW ---- */
tr.low { background: #fff7ed; }
tr.low td { color: #9a3412; }

/* ---- EMPTY STATES ---- */
.empty { text-align: center; padding: 3rem 1rem; }
.empty .muted { color: var(--muted); }

/* ---- FOOTER ---- */
.main-footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  background: #1a2e1a;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.9rem;
}
.main-footer a { color: white; }

/* ============================================ */
/* = Landing SaaS (saas-peisx.pepiniere-pei.re) = */
/* ============================================ */

.hero-saas {
  background: linear-gradient(135deg, #1f3f27 0%, #2f5d3a 50%, #b6862c 100%);
  color: white;
  padding: 4rem 1.5rem 3.5rem;
  border-radius: 0 0 18px 18px;
  margin: -1rem -1rem 2.5rem;
  text-align: center;
}
.hero-saas .kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.5rem;
}
.hero-saas h1 {
  font-size: 2.6rem;
  margin: 0.25rem 0 0.75rem;
  color: white;
  font-weight: 700;
}
.hero-saas .lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  margin: 0 auto 1.75rem;
  max-width: 640px;
}
.cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: #b6862c;
  color: white;
  font-size: 1.05rem;
}
.btn-primary:hover { background: #a37523; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { border-color: white; }

/* ---- Stats grid (catégorie du milieu) ---- */
.stats {
  margin: 2rem 0;
}
.stats h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.stat .hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 1rem 1rem;
}

/* ---- Trust / bullets ---- */
.trust {
  margin: 2.5rem 0;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.trust h2 {
  color: var(--primary);
  margin-top: 0;
  text-align: center;
}
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.bullets li {
  padding: 0.6rem 0.85rem;
  background: #f5f8f4;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 0.97rem;
  color: #1f3f27;
}

@media (max-width: 600px) {
  .hero-saas { padding: 2.5rem 1rem 2rem; }
  .hero-saas h1 { font-size: 1.8rem; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}

/* =================================================== */
/* = Vitrine commerciale (www.pepiniere-pei.re)       = */
/* =================================================== */

.vitrine-body { background: #fafaf7; }

.vitrine-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.vitrine-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.vitrine-nav .brand {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.vitrine-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.vitrine-nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.vitrine-nav a:hover { color: var(--primary); }
.vitrine-nav .cta-pro {
  background: var(--primary);
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
}
.vitrine-nav .cta-pro a { color: white; font-weight: 600; }

.vitrine-main { min-height: 60vh; }

/* Hero vitrine */
.vitrine-hero {
  background:
    linear-gradient(135deg, rgba(31,63,39,0.92), rgba(47,93,58,0.85) 50%, rgba(182,134,44,0.80)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px);
  color: white;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}
.vitrine-hero .kicker {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  margin: 0 0 0.75rem;
}
.vitrine-hero h1 {
  font-size: 3rem;
  margin: 0.25rem 0 1rem;
  color: white;
  font-weight: 700;
  line-height: 1.1;
}
.vitrine-hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.95);
  margin: 0 auto 2rem;
  max-width: 720px;
}

/* Stats vitrine */
.vitrine-stats {
  background: var(--primary-dark);
  color: white;
  padding: 2.5rem 0;
}
.vitrine-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.vitrine-stats-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.vitrine-stats-grid .num {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fde9c5;
}
.vitrine-stats-grid .label {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* Sections vitrine */
.vitrine-section { padding: 4rem 0; }
.vitrine-section.vitrine-section-lead { padding-top: 3rem; }
.vitrine-section.vitrine-section-alt { background: #f0f5ee; }
.vitrine-section .narrow { max-width: 720px; }
.vitrine-section h1 { font-size: 2.3rem; color: var(--primary-dark); margin-top: 0.3rem; }
.vitrine-section h2 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
}
.vitrine-section .kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin: 0;
}

.vitrine-section p { line-height: 1.7; }
.vitrine-section code {
  background: #f0f2ed;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--primary-dark);
}

/* 3 colonnes savoir-faire */
.vitrine-3cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.vitrine-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}
.vitrine-card-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.vitrine-card h3 {
  color: var(--primary-dark);
  margin: 0.5rem 0;
  font-size: 1.25rem;
}

/* CTA strip */
.vitrine-cta-strip {
  background: linear-gradient(135deg, #b6862c 0%, #8c6520 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}
.vitrine-cta-strip h2 {
  color: white;
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.vitrine-cta-strip p { color: rgba(255,255,255,0.95); margin: 0 0 1.5rem; }

/* Process */
.vitrine-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.vitrine-process article {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
}
.vitrine-process .step-num {
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.vitrine-process h3 { color: var(--primary-dark); margin: 0 0 0.4rem; }

/* Plantes (catalogue public) */
.vitrine-plantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.vitrine-plante-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 0 0 1rem;
}
.vitrine-plante-img {
  background: linear-gradient(135deg, #d5e3cf 0%, #b6d3a8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  aspect-ratio: 4/3;
}
.vitrine-plante-card h3 {
  margin: 0.75rem 1rem 0.25rem;
  font-size: 1rem;
  color: var(--primary-dark);
}
.vitrine-plante-card .sci {
  margin: 0 1rem 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.vitrine-plante-card .condit {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 1rem 0.5rem;
}
.vitrine-plante-card .prix {
  margin: 0 1rem;
  color: var(--accent);
  font-size: 1.05rem;
}

.vitrine-cta-mid {
  text-align: center;
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  background: #f5f8f4;
  border-radius: 12px;
}

/* Bullets */
.vitrine-bullets {
  list-style: none;
  padding: 0;
}
.vitrine-bullets li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}
.vitrine-bullets li:last-child { border-bottom: none; }

/* Contact grid */
.vitrine-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.vitrine-contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
}
.vitrine-contact-card h3 { color: var(--primary-dark); margin-top: 0; }
.vitrine-contact-card .small { color: var(--muted); font-size: 0.85rem; }
.vitrine-contact-card a { color: var(--accent); text-decoration: none; }

/* Mentions légales */
.legal h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
}

/* Footer vitrine */
.vitrine-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.vitrine-footer h4 {
  color: white;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.vitrine-footer ul { list-style: none; padding: 0; margin: 0; }
.vitrine-footer ul li { padding: 0.25rem 0; }
.vitrine-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.vitrine-footer a:hover { color: white; text-decoration: underline; }
.vitrine-footer p { margin: 0; line-height: 1.6; }
.vitrine-footer .copyright {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 720px) {
  .vitrine-hero { padding: 3rem 1rem 2.5rem; }
  .vitrine-hero h1 { font-size: 2rem; }
  .vitrine-nav ul { gap: 0.75rem; font-size: 0.85rem; flex-wrap: wrap; }
  .vitrine-section { padding: 2.5rem 0; }
}
