/**
 * POULTRY.MA v7.0 — Public site CSS
 * Style: chaleureux agricole, ocre/or/terre
 * Lang: AR par defaut (RTL)
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Outfit', -apple-system, system-ui, sans-serif;
  color: var(--terre);
  background: var(--creme);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== PALETTE ===== */
:root {
  /* Principales */
  --ocre: #A0522D;
  --ocre-dark: #7C3F1F;
  --ocre-light: #C87A4C;
  --or: #C8A45A;
  --or-light: #D4B76A;
  --or-dark: #A68430;
  /* Terre & creme */
  --terre: #3E2723;
  --terre-cl: #5D4037;
  --creme: #FAF6EC;
  --creme-dark: #F5E6C8;
  --ivoire: #FFF8E8;
  /* Accents */
  --olive: #6B8E23;
  --olive-dark: #556B19;
  --brique: #B55239;
  /* Neutres */
  --blanc: #FFFFFF;
  --gris-cl: #E8DCC8;
  --gris: #9B8F7E;
  --gris-dark: #6B5E4E;
  /* Utils */
  --success: #059669;
  --error: #DC2626;
  --shadow-sm: 0 2px 8px rgba(160, 82, 45, 0.08);
  --shadow-md: 0 4px 16px rgba(160, 82, 45, 0.12);
  --shadow-lg: 0 8px 32px rgba(160, 82, 45, 0.16);
  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
}

/* ===== TYPOGRAPHIE ===== */
h1, h2, h3, h4 {
  font-family: 'Cairo', 'Outfit', sans-serif;
  color: var(--terre);
  line-height: 1.3;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(28px, 5vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: clamp(18px, 3vw, 24px); }
p { margin: 0 0 16px; }

a { color: var(--ocre); text-decoration: none; transition: color .15s; }
a:hover { color: var(--ocre-dark); }

/* ===== LAYOUT ===== */
.pub-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.pub-container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-alt { background: var(--creme-dark); }
.section-dark { background: var(--terre); color: var(--creme); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--or-light); }

/* ===== HEADER PUBLIC ===== */
.pub-header {
  background: var(--blanc);
  border-bottom: 1px solid var(--gris-cl);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.pub-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.pub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--terre);
  text-decoration: none;
}
.pub-logo-icon { font-size: 28px; }
.pub-nav { display: flex; align-items: center; gap: 24px; }
.pub-nav a {
  color: var(--terre);
  font-weight: 500;
  font-size: 15px;
}
.pub-nav a:hover { color: var(--ocre); }
.pub-nav a.active { color: var(--ocre); font-weight: 700; }
.pub-nav-cta {
  background: var(--ocre);
  color: var(--blanc) !important;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-weight: 700 !important;
}
.pub-nav-cta:hover { background: var(--ocre-dark); color: var(--blanc) !important; }
.pub-nav-lang {
  background: var(--creme);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--terre);
}
.pub-burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--terre);
}

/* Mobile nav */
@media (max-width: 768px) {
  .pub-burger { display: block; }
  .pub-nav {
    position: fixed;
    top: 60px;
    inset-inline-end: 0;
    width: 280px;
    height: calc(100vh - 60px);
    background: var(--blanc);
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform .3s;
    box-shadow: var(--shadow-lg);
  }
  [dir="rtl"] .pub-nav { transform: translateX(-100%); }
  .pub-nav.open { transform: translateX(0); }
  .pub-nav a { width: 100%; padding: 10px 0; }
  .pub-nav-cta { width: 100%; text-align: center; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--creme) 0%, var(--creme-dark) 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  inset-inline-end: -100px;
  width: 400px;
  height: 400px;
  background: var(--or);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(60px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}
.hero-eyebrow {
  display: inline-block;
  background: var(--or);
  color: var(--terre);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-title { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin-bottom: 20px; }
.hero-title .highlight { color: var(--ocre); }
.hero-subtitle { font-size: 18px; color: var(--terre-cl); margin-bottom: 32px; line-height: 1.6; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--gris-cl);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--terre-cl);
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-visual {
  background: var(--blanc);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  position: relative;
  border: 1px solid var(--gris-cl);
}
.hero-visual-icon { font-size: 80px; }
.hero-visual-label {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  color: var(--ocre);
  font-weight: 700;
}

/* ===== BOUTONS ===== */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}
.pub-btn-primary {
  background: var(--ocre);
  color: var(--blanc);
}
.pub-btn-primary:hover {
  background: var(--ocre-dark);
  color: var(--blanc);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.pub-btn-outline {
  background: transparent;
  color: var(--ocre);
  border-color: var(--ocre);
}
.pub-btn-outline:hover {
  background: var(--ocre);
  color: var(--blanc);
}
.pub-btn-gold {
  background: var(--or);
  color: var(--terre);
}
.pub-btn-gold:hover {
  background: var(--or-dark);
  color: var(--blanc);
}
.pub-btn-lg { padding: 18px 36px; font-size: 17px; }

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--blanc);
  border: 1px solid var(--gris-cl);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all .2s;
}
.feature-card:hover {
  border-color: var(--or);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--or);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.feature-title { font-size: 20px; margin-bottom: 10px; }
.feature-desc { color: var(--terre-cl); font-size: 15px; margin: 0; }

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--blanc);
  border: 2px solid var(--gris-cl);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .2s;
}
.pricing-card.popular {
  border-color: var(--ocre);
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--ocre);
  color: var(--blanc);
  padding: 6px 20px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
[dir="rtl"] .pricing-badge { transform: translateX(50%); }
.pricing-name { font-size: 22px; margin-bottom: 4px; }
.pricing-desc { color: var(--terre-cl); font-size: 14px; margin-bottom: 24px; min-height: 42px; }
.pricing-price {
  font-family: 'Outfit', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--terre);
  line-height: 1;
}
.pricing-price-currency { font-size: 18px; color: var(--terre-cl); }
.pricing-price-period { font-size: 14px; color: var(--terre-cl); font-weight: 400; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  flex: 1;
}
.pricing-features li {
  padding: 10px 0;
  font-size: 15px;
  display: flex;
  align-items: start;
  gap: 10px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--olive);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--blanc);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-inline-start: 4px solid var(--or);
}
.testimonial-text {
  font-size: 16px;
  color: var(--terre);
  margin-bottom: 20px;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 48px;
  height: 48px;
  background: var(--or);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--terre);
}
.testimonial-name { font-weight: 700; margin: 0; font-size: 15px; }
.testimonial-role { font-size: 13px; color: var(--terre-cl); margin: 2px 0 0; }

/* ===== FAQ ===== */
.faq-item {
  background: var(--blanc);
  border: 1px solid var(--gris-cl);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--terre);
}
.faq-q::after {
  content: '+';
  font-size: 24px;
  color: var(--ocre);
  transition: transform .2s;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
  padding: 0 24px 20px;
  color: var(--terre-cl);
  display: none;
}
.faq-item.open .faq-a { display: block; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-info { padding: 20px 0; }
.contact-info-item {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-bottom: 24px;
}
.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--or);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-form {
  background: var(--blanc);
  padding: 32px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--terre);
  font-size: 14px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gris-cl);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--blanc);
  color: var(--terre);
  color-scheme: light;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--ocre);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.15);
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--blanc);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--or), var(--ocre));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: var(--blanc);
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  display: inline-block;
  background: var(--creme-dark);
  color: var(--ocre-dark);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
}
.blog-card-title {
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--terre);
}
.blog-card-excerpt {
  color: var(--terre-cl);
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gris-dark);
  padding-top: 12px;
  border-top: 1px solid var(--gris-cl);
}

/* Article individuel */
.article-hero {
  padding: 60px 0 40px;
  background: linear-gradient(135deg, var(--creme), var(--creme-dark));
}
.article-cat {
  display: inline-block;
  background: var(--or);
  color: var(--terre);
  padding: 4px 14px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}
.article-body {
  background: var(--blanc);
  padding: 48px;
  border-radius: var(--r-lg);
  max-width: 800px;
  margin: -30px auto 60px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 2;
}
.article-body h2 { margin-top: 32px; }
.article-body h3 { margin-top: 24px; }
.article-body ul, .article-body ol { padding-inline-start: 24px; margin: 0 0 20px; }
.article-body li { margin: 6px 0; }
.article-body img { max-width: 100%; border-radius: var(--r-md); margin: 20px 0; }
.article-body blockquote {
  border-inline-start: 4px solid var(--or);
  background: var(--creme);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: var(--r-sm);
  font-style: italic;
}

/* ===== FOOTER ===== */
.pub-footer {
  background: var(--terre);
  color: var(--creme);
  padding: 60px 0 24px;
}
.pub-footer a { color: var(--creme); }
.pub-footer a:hover { color: var(--or-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand { }
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--or-light);
  margin-bottom: 12px;
}
.footer-brand-desc { color: var(--gris); font-size: 14px; line-height: 1.6; }
.footer-col h4 {
  color: var(--or-light);
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(200, 164, 90, 0.15);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.footer-social a:hover { background: var(--or); color: var(--terre); }
.footer-bottom {
  border-top: 1px solid rgba(200, 164, 90, 0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--gris);
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }
.eyebrow {
  display: inline-block;
  color: var(--ocre);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}
.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section-title h2 { margin-bottom: 14px; }
.section-title p { color: var(--terre-cl); font-size: 17px; }
