/* ==========================================================================
   Centre de ressources public (SEO) — pages contenu (variétés, prix, qualité).
   S'appuie sur les tokens Oleaflo + le chrome landing (lnd-*). Support RTL (ar).
   ========================================================================== */

.ctn-body {
  background: var(--stone-50, #f7f6f2);
  color: var(--stone-800, #2b2b28);
}

/* Le header landing est fixe : on décale le contenu. */
.ctn-main {
  padding-top: 68px;
}

/* --- Bascule de langue --------------------------------------------------- */
.ctn-lang {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--olive-700, #4a5d23);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--stone-200, #e5e2da);
  border-radius: 8px;
  white-space: nowrap;
}
.ctn-lang:hover { background: var(--olive-50, #f3f5ec); }

.lnd-nav__link.is-active { color: var(--olive-700, #4a5d23); font-weight: 700; }

/* --- Fil d'Ariane -------------------------------------------------------- */
.ctn-breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--stone-500, #8a867d);
  border-bottom: 1px solid var(--stone-150, #eeece6);
  background: var(--stone-0, #fff);
}
.ctn-breadcrumb a { color: var(--stone-600, #6b6760); text-decoration: none; }
.ctn-breadcrumb a:hover { text-decoration: underline; }
.ctn-breadcrumb span { margin: 0 8px; }

/* --- Hero ---------------------------------------------------------------- */
.ctn-hero {
  padding: 56px 0 32px;
  background: linear-gradient(160deg, var(--olive-50, #f3f5ec), var(--stone-0, #fff));
  border-bottom: 1px solid var(--stone-150, #eeece6);
}
.ctn-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--olive-900, #2c3a12);
  margin: 0 0 12px;
  line-height: 1.15;
}
.ctn-hero__lead {
  font-size: 1.1rem;
  color: var(--stone-600, #6b6760);
  max-width: 62ch;
  margin: 0;
}
.ctn-maj { margin-top: 14px; font-size: 0.85rem; color: var(--stone-500, #8a867d); }

/* --- Sections ------------------------------------------------------------ */
.ctn-section { padding: 40px 0 56px; }
.ctn-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--olive-800, #38491a);
  margin: 36px 0 18px;
}
.ctn-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--stone-500, #8a867d);
  font-style: italic;
}

/* --- Hub : cartes -------------------------------------------------------- */
.ctn-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.ctn-card {
  display: block;
  background: var(--stone-0, #fff);
  border: 1px solid var(--stone-200, #e5e2da);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ctn-card:hover {
  transform: translateY(-3px);
  border-color: var(--olive-300, #b9c98a);
  box-shadow: 0 12px 28px rgba(60, 74, 26, .12);
}
.ctn-card__emoji { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.ctn-card__title { font-size: 1.25rem; font-weight: 700; color: var(--olive-800, #38491a); margin: 0 0 8px; }
.ctn-card__text { color: var(--stone-600, #6b6760); margin: 0 0 16px; font-size: 0.95rem; }
.ctn-card__link { color: var(--olive-700, #4a5d23); font-weight: 600; font-size: 0.9rem; }

/* --- Variétés ------------------------------------------------------------ */
.ctn-variete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.ctn-variete {
  background: var(--stone-0, #fff);
  border: 1px solid var(--stone-200, #e5e2da);
  border-radius: 14px;
  padding: 22px;
}
.ctn-variete__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ctn-variete__nom { font-size: 1.2rem; font-weight: 700; color: var(--olive-800, #38491a); margin: 0; }
.ctn-variete__nom a { color: inherit; text-decoration: none; }
.ctn-variete__nom a:hover { text-decoration: underline; }
.ctn-variete__facts { display: flex; gap: 22px; margin: 0 0 14px; flex-wrap: wrap; }
.ctn-variete__facts dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--stone-500, #8a867d); margin-bottom: 2px; }
.ctn-variete__facts dd { margin: 0; font-weight: 600; color: var(--stone-800, #2b2b28); }
.ctn-variete__desc { color: var(--stone-700, #4f4b44); font-size: 0.95rem; margin: 0 0 10px; }
.ctn-variete__profil { color: var(--stone-600, #6b6760); font-size: 0.88rem; margin: 0 0 12px; }

/* --- Fiche variété détail -------------------------------------------------- */
.ctn-variete-detail__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ctn-variete-detail__facts { display: flex; gap: 32px; margin: 0 0 8px; flex-wrap: wrap; }
.ctn-variete-detail__facts dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--stone-500, #8a867d); margin-bottom: 2px; }
.ctn-variete-detail__facts dd { margin: 0; font-weight: 700; color: var(--stone-800, #2b2b28); font-size: 1.05rem; }
.ctn-variete-detail__pager {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--stone-200, #e5e2da);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.ctn-variete-detail__pager-link { color: var(--olive-700, #4a5d23); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.ctn-variete-detail__pager-link:hover { text-decoration: underline; }
.ctn-variete-detail__pager-back { color: var(--stone-500, #8a867d); font-size: 0.85rem; text-decoration: none; }
.ctn-variete-detail__pager-back:hover { text-decoration: underline; }

.ctn-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.ctn-badge--huile { background: var(--olive-100, #e6ecd4); color: var(--olive-800, #38491a); }
.ctn-badge--table { background: var(--gold-100, #f6ecc8); color: var(--gold-800, #6b5410); }
.ctn-badge--mixte { background: var(--stone-150, #eeece6); color: var(--stone-700, #4f4b44); }

/* --- Tableaux ------------------------------------------------------------ */
.ctn-table-wrap { overflow-x: auto; border: 1px solid var(--stone-200, #e5e2da); border-radius: 14px; background: var(--stone-0, #fff); }
.ctn-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.ctn-table th, .ctn-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--stone-150, #eeece6); }
.ctn-table thead th { background: var(--olive-50, #f3f5ec); color: var(--olive-800, #38491a); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .03em; }
.ctn-table tbody tr:last-child th, .ctn-table tbody tr:last-child td { border-bottom: none; }
.ctn-table tbody th[scope="row"] { font-weight: 700; color: var(--stone-800, #2b2b28); }

.ctn-yes { color: var(--green-700, #3d6410); font-weight: 600; }
.ctn-no { color: var(--red-700, #a12a1e); font-weight: 600; }
.ctn-muted { color: var(--stone-400, #a8a49b); }

/* --- Critères qualité ---------------------------------------------------- */
.ctn-criteres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.ctn-critere { background: var(--stone-0, #fff); border: 1px solid var(--stone-200, #e5e2da); border-radius: 12px; padding: 20px; }
.ctn-critere h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--olive-800, #38491a); }
.ctn-critere p { margin: 0; color: var(--stone-600, #6b6760); font-size: 0.92rem; }

/* --- Prix ---------------------------------------------------------------- */
.ctn-prix-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--olive-900, #2c3a12); color: #fff;
  border-radius: 16px; padding: 24px 28px; margin-bottom: 12px;
}
.ctn-prix-hero__label { display: block; font-size: 0.9rem; opacity: .85; margin-bottom: 6px; }
.ctn-prix-hero__value { display: block; font-size: 1.8rem; font-weight: 800; }
.ctn-prix-hero__eur { display: block; font-size: 0.9rem; opacity: .75; margin-top: 4px; }
.ctn-sparkline { width: 180px; height: 54px; flex-shrink: 0; }

.ctn-prix-cell { font-weight: 700; }
.ctn-prix-cell small { font-weight: 500; color: var(--stone-500, #8a867d); }
.ctn-var { display: inline-block; font-size: 0.75rem; font-weight: 700; margin-inline-start: 6px; }
.ctn-var--up { color: var(--red-700, #a12a1e); }
.ctn-var--down { color: var(--green-700, #3d6410); }

.ctn-highlight {
  margin-top: 36px; background: var(--olive-50, #f3f5ec);
  border: 1px solid var(--olive-200, #d3ddb0); border-radius: 16px; padding: 28px;
}

/* --- Blog ------------------------------------------------------------------ */
.ctn-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.ctn-blog-card {
  background: var(--stone-0, #fff);
  border: 1px solid var(--stone-200, #e5e2da);
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ctn-blog-card:hover {
  transform: translateY(-3px);
  border-color: var(--olive-300, #b9c98a);
  box-shadow: 0 12px 28px rgba(60, 74, 26, .12);
}
.ctn-blog-card__link { display: block; padding: 22px; text-decoration: none; color: inherit; }
.ctn-blog-card__titre { font-size: 1.1rem; font-weight: 700; color: var(--olive-800, #38491a); margin: 0 0 10px; }
.ctn-blog-card__extrait { color: var(--stone-600, #6b6760); font-size: 0.92rem; margin: 0 0 12px; }
.ctn-blog-card__date { color: var(--stone-400, #a8a49b); font-size: 0.8rem; }

/* Typographie de l'article (Markdown rendu par MarkdownRenderer). */
.ctn-blog-article { max-width: 72ch; color: var(--stone-700, #4f4b44); font-size: 1rem; line-height: 1.7; }
.ctn-blog-article h2 { font-size: 1.4rem; font-weight: 700; color: var(--olive-800, #38491a); margin: 32px 0 12px; }
.ctn-blog-article h3 { font-size: 1.15rem; font-weight: 700; color: var(--olive-800, #38491a); margin: 24px 0 10px; }
.ctn-blog-article p { margin: 0 0 16px; }
.ctn-blog-article ul, .ctn-blog-article ol { margin: 0 0 16px; padding-inline-start: 24px; }
.ctn-blog-article li { margin-bottom: 6px; }
.ctn-blog-article a { color: var(--olive-700, #4a5d23); }
.ctn-blog-article code { background: var(--stone-100, #f0eee8); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.ctn-blog-article blockquote { border-inline-start: 3px solid var(--olive-300, #b9c98a); margin: 0 0 16px; padding: 4px 16px; color: var(--stone-600, #6b6760); }

/* --- CTA de conversion --------------------------------------------------- */
.ctn-cta { background: var(--olive-800, #38491a); color: #fff; padding: 44px 0; }
.ctn-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ctn-cta__title { font-size: 1.5rem; font-weight: 800; margin: 0 0 6px; }
.ctn-cta__text { margin: 0; opacity: .85; max-width: 52ch; }
.ctn-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- RTL (arabe) --------------------------------------------------------- */
[dir="rtl"] .ctn-sparkline { transform: scaleX(-1); }
[dir="rtl"] .ctn-hero__lead,
[dir="rtl"] .ctn-cta__text { margin-inline: 0; }

@media (max-width: 640px) {
  .ctn-prix-hero { flex-direction: column; align-items: flex-start; }
  .ctn-cta__inner { flex-direction: column; align-items: flex-start; }
}
