/*
Theme Name: OrientaWarm
Theme URI: https://example.com/
Author: Tariq (generated)
Description: Un thème WordPress léger et chaleureux pour un site d’orientation (études & après-études) avec cartes d’articles, filtres par catégorie, et compatibilité avec le plugin Finotwice Content Engine (résumés IA + sources RSS).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orientawarm
Tags: education, blog, two-columns, custom-logo, responsive-layout
*/

:root{
  /* Warm & reassuring palette */
  --background: 30 33% 98%;
  --foreground: 0 0% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 3.9%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 3.9%;
  /* deep warm slate */
  --primary: 20 22% 14%;
  --primary-foreground: 0 0% 98%;
  --secondary: 28 30% 94%;
  --secondary-foreground: 0 0% 9%;
  --muted: 28 30% 94%;
  --muted-foreground: 0 0% 45.1%;
  /* soft terracotta accent */
  --accent: 18 75% 92%;
  --accent-foreground: 0 0% 9%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 24 18% 88%;
  --input: 24 18% 88%;
  --ring: 0 0% 3.9%;
  /* More rounded "Finotwice" look */
  --radius: 1.25rem;
}

html{scroll-behavior:smooth;}
body{
  background: #fff7f0;
  color:#1f2937;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 500;
}
a{text-decoration:none;}
/* line clamp (Tailwind plugin equivalent) */
.line-clamp-2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.line-clamp-3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
/* basic WP alignments */
.wp-block-image img{height:auto;}


/* ===== Finotwice-style sections (v3) ===== */
.fp-page { background: #fff7f0; min-height: 60vh; }
.fp-container { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0; }

.fp-card { background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: calc(var(--radius) + .25rem); box-shadow: 0 10px 28px rgba(15,23,42,.06); overflow: hidden; }
.fp-card--article { padding-bottom: 10px; }
.fp-hero { background: #2a2420; }
.fp-hero__img { width: 100%; height: auto; display: block; }
.fp-article__body { padding: 18px 16px 26px; }
@media (min-width: 768px) { .fp-article__body { padding: 26px 26px 34px; } }

.fp-article__meta { display:flex; gap: 12px; align-items:center; flex-wrap: wrap; margin-bottom: 12px; color: rgba(15,23,42,.62); font-size: 14px; }
.fp-date { color: rgba(15,23,42,.55); }
.fp-source { color: rgba(15,23,42,.62); }

.fp-title {
  font-size: clamp(32px, 6.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
  color: #0f172a;
  font-weight: 900;
}

.fp-read-original { margin: 10px 0 18px; }
.fp-btn { display:inline-flex; align-items:center; gap:8px; padding: 8px 12px; border-radius: 16px; font-weight: 800; font-size: 14px; text-decoration:none; border: 1px solid rgba(15,23,42,.10); }
.fp-btn--sm { padding: 7px 10px; font-size: 13px; border-radius: 14px; }
.fp-btn--primary { background: #2a2420; color: #fff; }
.fp-btn--primary:hover { opacity: .92; }
.fp-btn__icon { font-weight: 900; }

/* Typography tuning */
.fp-article-title {
  font-size: 2rem; /* ~32px */
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

@media (min-width: 640px) {
  .fp-article-title { font-size: 2.4rem; }
}

.fp-prose,
.fp-prose p,
.fp-prose li {
  font-weight: 500;
  color: #0f172a;
}

/* Sections */
.fp-section { margin: 18px 0; }
.fp-section__title { display:flex; align-items:center; gap:10px; font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.fp-ico { width: 22px; height: 22px; display:inline-flex; align-items:center; justify-content:center; border-radius: 999px; font-weight: 900; font-size: 13px; }
.fp-ico--trend { background: rgba(251, 146, 60, .16); color: #9a3412; }
.fp-ico--check { background: rgba(52, 211, 153, .14); color: #065f46; }
.fp-ico--info  { background: rgba(125, 211, 252, .18); color: #075985; }

/* AI Summary card */
.fp-section--summary .fp-section__content { background: #fff; border: 1px solid rgba(15,23,42,.08); border-radius: calc(var(--radius) + .25rem); padding: 16px; }

/* Key Takeaways card */
.fp-section--takeaways .fp-section__content { background: rgba(16, 185, 129, .08); border: 1px solid rgba(16, 185, 129, .20); border-radius: calc(var(--radius) + .25rem); padding: 16px; }

/* Why This Matters card */
.fp-section--why .fp-section__content { background: rgba(59, 130, 246, .06); border: 1px solid rgba(59, 130, 246, .18); border-radius: calc(var(--radius) + .25rem); padding: 16px; }

.fp-prose { color: rgba(15,23,42,.78); line-height: 1.75; font-size: 16px; }
.fp-prose p { margin: 0 0 12px; }
.fp-prose h2, .fp-prose h3 { margin: 18px 0 10px; }
.fp-prose a { text-decoration: underline; }

/* Takeaways list */
.fp-takeaways { margin: 0; padding-left: 18px; }
.fp-takeaways li { margin: 10px 0; line-height: 1.65; color: rgba(15,23,42,.82); }
.fp-prose--takeaways ul { margin: 0; padding-left: 18px; }

/* Related topics pills */
.fp-related-topics { margin: 18px 0 22px; }
.fp-related-topics__title { margin: 0 0 10px; font-size: 14px; font-weight: 800; color: rgba(15,23,42,.55); text-transform: none; }
.fp-related-topics__list { display:flex; gap: 10px; flex-wrap: wrap; }
.fp-pill { display:inline-flex; padding: 7px 12px; border-radius: 999px; background: rgba(15,23,42,.06); color: rgba(15,23,42,.72); font-size: 13px; font-weight: 700; }

/* Original source card */
.fp-source-card { background: #2a2420; border-radius: calc(var(--radius) + .5rem); padding: 18px 16px; color: rgba(255,255,255,.92); margin: 18px 0; display:block; text-decoration:none; box-shadow:0 8px 30px rgba(2,6,23,.12); transition:transform .12s ease, box-shadow .12s ease; }
.fp-source-card:hover { transform: translateY(-1px); box-shadow:0 10px 34px rgba(2,6,23,.14); }
.fp-source-card:active { transform: translateY(0); }
.fp-source-card__label { font-size: 13px; letter-spacing: .02em; color: rgba(255,255,255,.62); margin-bottom: 6px; }
.fp-source-card__name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.fp-source-card__link { color: #fdba74; font-weight: 800; text-decoration: none; }
.fp-source-card__link:hover { text-decoration: underline; }

/* Disclaimer */
.fp-disclaimer { background: rgba(245, 158, 11, .10); border: 1px solid rgba(245, 158, 11, .22); color: rgba(15,23,42,.78); border-radius: 14px; padding: 14px 14px; margin: 18px 0 10px; }
.fp-disclaimer strong { color: #92400e; }

/* Plugin compatibility (Finotwice Content Engine)
   If the plugin appends its own sections (h2 + .fce-*) we still make them look nice.
*/
.fce-read-original{ display:inline-flex; align-items:center; gap:8px; padding: 8px 12px; border-radius: 16px; font-weight: 800; font-size: 14px; border: 1px solid rgba(15,23,42,.10); background:#2a2420; color:#fff; }
.fce-read-original:hover{ opacity:.92; }
.fce-ai-summary,.fce-ai-takeaways,.fce-ai-why{ border-radius: calc(var(--radius) + .25rem); padding: 14px 16px; border: 1px solid rgba(15,23,42,.08); background:#fff; }
.fce-ai-takeaways{ background: rgba(52, 211, 153, .10); border-color: rgba(52, 211, 153, .22); }
.fce-ai-why{ background: rgba(125, 211, 252, .12); border-color: rgba(125, 211, 252, .22); }

/* Related */
.fp-related { margin-top: 22px; }
.fp-related__title { font-size: 22px; font-weight: 900; margin: 0 0 14px; color: #0f172a; }
.fp-related__grid { display:grid; gap: 14px; }
@media (min-width: 800px){ .fp-related__grid{ grid-template-columns: repeat(3, 1fr); } }

/* Make sure the theme card component still looks good */
.article-card { background: #fff !important; border: 1px solid rgba(15,23,42,.08) !important; border-radius: 16px !important; box-shadow: 0 8px 18px rgba(15,23,42,.06) !important; }

/* Typography tuning (mobile-first) */
.fp-article-title {
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #0f172a;
}

@media (min-width: 640px) {
  .fp-article-title { font-size: 2.5rem; }
}

.fp-prose,
.fp-prose p,
.fp-prose li {
  font-weight: 500;
}

/* Buttons slightly smaller & rounder */
.fp-btn.fp-btn--sm { padding: 9px 12px; border-radius: 14px; }
