/* =============================================
   MLRH — STYLES PAGES DÉFINITIONS
   ============================================= */

body { background: #f8fafc; }
.article-page-wrap { background: white; }

/* Fil d'Ariane */
.breadcrumb { padding: 14px 24px; background: white; border-bottom: 1px solid var(--border); font-size: .82rem; color: var(--text-muted); }
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-sep { color: #cbd5e1; }

/* Hero */
.article-hero { background: linear-gradient(135deg, #14532d 0%, #16a34a 100%); padding: 36px 24px 40px; color: white; }
.article-hero-flex { display: flex; align-items: center; justify-content: space-between; gap: 32px; max-width: 1000px; margin: 0 auto; }
.article-hero-left { text-align: left; flex: 1; min-width: 0; }
.article-hero .badge { margin-bottom: 12px; background: rgba(255,255,255,.15); color: white; display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.article-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.article-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 640px; margin: 0; line-height: 1.55; font-weight: 500; }
.article-hero-sub strong { color: #fff; }
.article-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 16px; }
.article-hero-meta a { color: #bbf7d0; text-decoration: underline; }
.author-line { display: flex; align-items: center; gap: 6px; }
.author-avatar img { width: 24px; height: 24px; border-radius: 50%; display: block; }
.hero-thumb { width: 300px; height: 200px; object-fit: cover; border-radius: 10px; flex-shrink: 0; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (max-width: 760px) { .hero-thumb { display: none; } }

/* Contenu */
.def-outer { max-width: 780px; margin: 0 auto; padding: 40px 24px 72px; }
.def-main h2 { font-size: 1.4rem; font-weight: 800; color: var(--text); margin: 40px 0 14px; line-height: 1.3; scroll-margin-top: 80px; }
.def-main h2:first-of-type { margin-top: 0; }
.def-main p { color: var(--text); line-height: 1.8; margin-bottom: 18px; font-size: 1rem; }
.def-main ul, .def-main ol { margin: 0 0 20px 20px; line-height: 1.8; }
.def-main li { margin-bottom: 6px; }

/* En bref */
.tldr { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 22px 26px; margin: 0 0 36px; }
.tldr-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #16a34a; margin-bottom: 12px; }
.tldr ul { margin: 0; padding-left: 0; list-style: none; }
.tldr li { padding: 5px 0 5px 22px; position: relative; font-size: .95rem; line-height: 1.55; }
.tldr li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 2px; background: #16a34a; border-radius: 2px; }

/* Encadrés */
.case-box { background: #fefce8; border-left: 4px solid #eab308; border-radius: 8px; padding: 20px 24px; margin: 28px 0; }
.case-box-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #a16207; margin-bottom: 8px; }
.case-box p:last-child { margin-bottom: 0; }

.legal-box { background: #eff6ff; border-left: 4px solid #2563eb; border-radius: 8px; padding: 20px 24px; margin: 28px 0; }
.legal-box-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #1d4ed8; margin-bottom: 8px; }
.legal-box p:last-child { margin-bottom: 0; }

/* Stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 26px 0 32px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.stat-card .sv { font-size: 1.5rem; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-card .sl { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }

/* Termes liés */
.related-terms { margin: 44px 0 16px; }
.related-terms-title { font-size: 1.15rem; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; text-decoration: none; color: inherit; transition: all .15s; display: block; }
.related-card:hover { border-color: var(--primary); background: var(--primary-light); text-decoration: none; transform: translateY(-2px); }
.related-card .rt { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 4px; }
.related-card .rd { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }

/* Pour aller plus loin */
.next-steps { background: #fafafa; border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 40px 0 0; }
.next-steps h3 { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; }
.next-steps ul { margin: 0; padding-left: 20px; }
.next-steps li { font-size: .95rem; margin-bottom: 6px; }
.next-steps a { color: var(--primary); font-weight: 600; }

/* FAQ */
.faq-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--border); }
.faq-section h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 20px; }
.faq-item { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-item.open { border-color: var(--primary); }
.faq-q { padding: 16px 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .98rem; user-select: none; }
.faq-q::after { content: "+"; color: var(--primary); font-size: 1.4rem; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 20px 16px; font-size: .95rem; line-height: 1.7; color: var(--text); display: none; }
.faq-item.open .faq-a { display: block; }

/* Partage */
.share-bar { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; align-items: center; }
.share-bar-label { font-size: .85rem; color: var(--text-muted); margin-right: 4px; font-weight: 600; }
.share-btn { padding: 6px 12px; font-size: .82rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: #fff; }
.share-btn svg { width: 14px; height: 14px; }
.share-btn-linkedin { background: #0a66c2; }
.share-btn-x { background: #000; }
.share-btn-facebook { background: #1877f2; }
.share-btn-reddit { background: #ff4500; }
.share-btn:hover { text-decoration: none; opacity: .9; }

/* =============================================
   INDEX DÉFINITIONS (glossaire)
   ============================================= */

.glossary-hero { background: linear-gradient(135deg, #14532d 0%, #16a34a 100%); padding: 48px 24px 56px; color: white; text-align: center; }
.glossary-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0 0 14px; letter-spacing: -.02em; }
.glossary-hero p { font-size: 1.05rem; max-width: 620px; margin: 0 auto 22px; color: rgba(255,255,255,.92); line-height: 1.55; }
.glossary-search { max-width: 480px; margin: 0 auto; position: relative; }
.glossary-search input { width: 100%; padding: 14px 44px 14px 20px; border: none; border-radius: 12px; font-size: 1rem; background: rgba(255,255,255,.95); color: var(--text); }
.glossary-search input:focus { outline: 2px solid #bbf7d0; }
.glossary-search svg { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); pointer-events: none; }

.glossary-outer { max-width: 1000px; margin: 0 auto; padding: 32px 24px 72px; }

.glossary-featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 40px; }
.glossary-featured-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: all .15s; }
.glossary-featured-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); text-decoration: none; }
.glossary-featured-card .fc-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.glossary-featured-card .fc-title { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.glossary-featured-card .fc-desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

.az-nav { position: sticky; top: 60px; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 0; z-index: 10; margin: 0 -24px 32px; }
.az-nav-inner { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 0 24px; }
.az-nav a { display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center; font-size: .82rem; font-weight: 700; color: var(--text-muted); border-radius: 6px; text-decoration: none; transition: all .15s; }
.az-nav a:hover, .az-nav a.has-content { color: var(--primary); }
.az-nav a.has-content { background: var(--primary-light); }
.az-nav a.disabled { color: #cbd5e1; cursor: not-allowed; }

.letter-block { margin-bottom: 40px; scroll-margin-top: 120px; }
.letter-title { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--primary-light); }
.def-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.def-item { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; text-decoration: none; color: inherit; transition: all .15s; display: block; }
.def-item:hover { border-color: var(--primary); background: #f0fdf4; text-decoration: none; }
.def-item.coming { opacity: .5; pointer-events: none; }
.def-item .di-name { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 2px; }
.def-item .di-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.4; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { font-size: .95rem; }
