/* ===========================================
   La Ferme du Piqueur — Custom Styles (Tailwind)
   Overrides & custom components
   =========================================== */

:root {
  --olive: #5B7B3A;
  --olive-light: #7A9B56;
  --olive-dark: #496330;
  --moutarde: #D4A843;
  --moutarde-light: #E0BD6A;
  --creme: #FDF8F0;
  --creme-dark: #F0E8D8;
  --brun: #3D2B1F;
  --brun-light: #6B5546;
  --blanc: #FFFFFF;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--brun);
  background-color: var(--creme);
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', Georgia, serif;
}

/* === NAVBAR === */
.nav-ferme {
  background: var(--blanc);
  border-bottom: 1px solid var(--creme-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--brun-light);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--olive);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--olive);
  border-radius: 1px;
}
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brun);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* === HERO === */
.hero-ferme {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-ferme img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(61,43,31,0.75) 0%, rgba(91,123,58,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  color: var(--blanc);
}
.hero-content h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--blanc);
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.btn-ferme {
  display: inline-block;
  background: var(--moutarde);
  color: var(--brun);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-ferme:hover {
  background: var(--moutarde-light);
  transform: translateY(-1px);
}

/* === SECTIONS === */
.section-ferme {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-alt {
  background: var(--blanc);
}
.section-alt .section-ferme {
  padding: 4rem 1.5rem;
}

/* === CARDS === */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.card-ferme {
  background: var(--blanc);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61,43,31,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card-ferme:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(61,43,31,0.1);
}
.card-ferme img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}
.card-body {
  padding: 1.4rem;
}
.card-date {
  font-size: 0.78rem;
  color: var(--brun-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.card-ferme h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.card-ferme h3 a {
  color: var(--brun);
  text-decoration: none;
}
.card-ferme h3 a:hover {
  color: var(--olive);
}
.card-ferme p {
  font-size: 0.9rem;
  color: var(--brun-light);
  line-height: 1.6;
}

/* === EDITO BLOCK === */
.edito-ferme {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.edito-text p {
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  color: var(--brun);
}
.edito-text p:last-child {
  margin-bottom: 0;
}
.edito-img {
  border-radius: 10px;
  overflow: hidden;
}
.edito-img img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* === ARTICLE === */
.article-wrap {
  max-width: 740px;
  margin: 0 auto;
}
.article-wrap p {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.article-wrap h2 {
  font-size: 1.7rem;
  margin: 2.5rem 0 1rem;
  color: var(--olive);
}
.article-wrap h3 {
  font-size: 1.3rem;
  margin: 2rem 0 0.7rem;
  color: var(--brun);
}
.article-wrap ul, .article-wrap ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
}
.article-wrap li {
  margin-bottom: 0.4rem;
}
.article-wrap img {
  border-radius: 8px;
  margin: 1.5rem 0;
  width: 100%;
}
.article-wrap blockquote {
  border-left: 3px solid var(--moutarde);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--blanc);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--olive-dark);
  font-family: 'Lora', Georgia, serif;
}
.tip-ferme {
  background: var(--olive);
  color: var(--blanc);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}
.tip-ferme h4 {
  color: var(--moutarde-light);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.tip-ferme p {
  color: rgba(255,255,255,0.9);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* === CONTACT FORM === */
.form-ferme input,
.form-ferme textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 2px solid var(--creme-dark);
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  background: var(--blanc);
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.form-ferme input:focus,
.form-ferme textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(91,123,58,0.1);
}
.form-ferme label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  color: var(--brun);
}

/* === FOOTER === */
.footer-ferme {
  background: var(--brun);
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-ferme h5 {
  color: var(--blanc);
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}
.footer-ferme ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-ferme li {
  margin-bottom: 0.4rem;
}
.footer-ferme a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-ferme a:hover {
  color: var(--moutarde-light);
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.footer-social {
  display: flex;
  gap: 0.7rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: var(--olive);
}
.footer-social svg {
  width: 15px;
  height: 15px;
  fill: var(--blanc);
}
.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* === 404 === */
.page-404 {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}
.page-404 h1 {
  font-size: 5rem;
  color: var(--moutarde);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.page-404 h2 {
  font-size: 1.6rem;
  color: var(--olive);
  margin-bottom: 1rem;
}
.page-404 p {
  color: var(--brun-light);
  margin-bottom: 2rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .cards-row {
    grid-template-columns: 1fr;
  }
  .edito-ferme {
    grid-template-columns: 1fr;
  }
  .edito-img {
    order: -1;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanc);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    gap: 0.8rem;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-burger {
    display: block;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-ferme {
    min-height: 340px;
  }
  .section-ferme {
    padding: 2.5rem 1rem;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}