/* =========================================================
   IA Empire — Glossaire — Frontend CSS v1.0.1
   Aizenia.fr — Toutes les pages glossaire
   ========================================================= */

/* CONTAINER */
.aig-page { padding: 0 0 60px; }
.aig-container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* BREADCRUMB */
.aig-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #6b7280;
	padding: 16px 0 12px;
	flex-wrap: wrap;
}
.aig-breadcrumb a { color: #4F46E5; text-decoration: none; }
.aig-breadcrumb a:hover { text-decoration: underline; }
.aig-breadcrumb span { color: #d1d5db; }

/* PAGE HEADER */
.aig-page-header { margin-bottom: 28px; padding-top: 8px; }
.aig-page-header h1 {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 700;
	color: #0f172a;
	margin: 10px 0 12px;
	line-height: 1.25;
}
.aig-page-desc { font-size: 16px; color: #4b5563; line-height: 1.7; max-width: 720px; }

/* BADGES */
.aig-badge {
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 4px;
	margin-right: 6px;
	margin-bottom: 4px;
}
.aig-badge--p0 { background: #FEF3C7; color: #92400E; }

/* STATS ROW */
.aig-stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 28px;
}
.aig-stat {
	background: #f8fafc;
	border: 0.5px solid #e2e8f0;
	border-radius: 10px;
	padding: 14px 16px;
	text-align: center;
}
.aig-stat__val { font-size: 26px; font-weight: 700; color: #0f172a; }
.aig-stat__lbl { font-size: 12px; color: #6b7280; margin-top: 3px; }

/* ALPHA NAV */
.aig-alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-bottom: 28px;
}
.aig-alpha-pill {
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	border-radius: 6px;
	border: 0.5px solid #e2e8f0;
	background: #f8fafc;
	color: #9ca3af;
	text-decoration: none;
}
a.aig-alpha-pill,
.aig-alpha-pill--active {
	background: #EFF6FF;
	color: #1E3A5F;
	border-color: #BFDBFE;
	cursor: pointer;
}
a.aig-alpha-pill:hover { background: #DBEAFE; }

/* LETTER GROUPS */
.aig-letter-group { margin-bottom: 32px; }
.aig-letter-head {
	font-size: 16px;
	font-weight: 700;
	color: var(--silo-color, #4F46E5);
	padding-bottom: 8px;
	border-bottom: 2px solid var(--silo-color, #4F46E5);
	margin-bottom: 12px;
}

/* TERMS GRID */
.aig-terms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.aig-term-item {
	background: #fff;
	border: 0.5px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px 14px;
	transition: border-color .15s, background .15s;
}
.aig-term-item:hover { border-color: var(--silo-color, #4F46E5); background: var(--silo-bg, #EFF6FF); }
.aig-term-item--p0 { border-left: 3px solid #F59E0B; }
.aig-term-item a {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
	margin-bottom: 3px;
}
.aig-term-item a:hover { color: var(--silo-color, #4F46E5); }
.aig-term-teaser { font-size: 12px; color: #6b7280; line-height: 1.5; display: block; }

/* SILOS GRID (page index maître) */
.aig-silos-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
	margin-top: 24px;
}
.aig-silo-card {
	background: #fff;
	border: 0.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	transition: border-color .15s, transform .15s;
}
.aig-silo-card:hover { border-color: var(--silo-color, #4F46E5); transform: translateY(-2px); }
.aig-silo-card--pending { opacity: .6; }
.aig-silo-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.aig-silo-card__name { font-size: 15px; font-weight: 700; color: var(--silo-color, #0f172a); }
.aig-silo-card__count {
	font-size: 11px;
	font-weight: 600;
	background: var(--silo-bg, #EFF6FF);
	color: var(--silo-color, #4F46E5);
	padding: 3px 8px;
	border-radius: 4px;
}
.aig-silo-card__soon { font-size: 11px; color: #9ca3af; }
.aig-silo-card__desc { font-size: 13px; color: #6b7280; line-height: 1.6; margin-bottom: 14px; }
.aig-silo-card__link {
	font-size: 13px;
	font-weight: 600;
	color: var(--silo-color, #4F46E5);
	text-decoration: none;
}
.aig-silo-card__link:hover { text-decoration: underline; }

/* DÉFINITION BLOCK (position "0") */
.aig-def-block {
	background: #F8FAFF;
	border-left: 3px solid var(--silo-color, #4F46E5);
	border-radius: 0 10px 10px 0;
	padding: 16px 20px;
	margin-bottom: 24px;
}
.aig-def-block__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--silo-color, #4F46E5);
	margin-bottom: 8px;
}
.aig-def-block__text {
	font-size: 16px;
	line-height: 1.7;
	color: #1e293b;
	margin: 0;
}

/* SECTION BLOCKS */
.aig-section-block {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 0.5px solid #f1f5f9;
}
.aig-section-block:last-child { border-bottom: none; }
.aig-section-block h2 {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 10px;
}
.aig-section-block p {
	font-size: 15px;
	line-height: 1.75;
	color: #374151;
	margin: 0;
}

/* FAQ BLOCK */
.aig-faq-block { margin-bottom: 32px; }
.aig-faq-block__title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 16px;
}
.aig-faq-list { display: flex; flex-direction: column; gap: 0; }
.aig-faq-item {
	border: 0.5px solid #e2e8f0;
	border-radius: 0;
	padding: 14px 16px;
	border-bottom: none;
	background: #fff;
}
.aig-faq-item:first-child { border-radius: 10px 10px 0 0; }
.aig-faq-item:last-child { border-bottom: 0.5px solid #e2e8f0; border-radius: 0 0 10px 10px; }
.aig-faq-item__q {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}
.aig-faq-item__q::before {
	content: "Q";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	min-width: 20px;
	border-radius: 50%;
	background: var(--silo-color, #4F46E5);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	margin-top: 1px;
}
.aig-faq-item__a {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.7;
	margin: 0;
	padding-left: 28px;
}

/* RELATED TERMS */
.aig-related-block { margin-bottom: 28px; }
.aig-related-block h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 12px;
}
.aig-related-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.aig-related-list li a {
	display: inline-block;
	font-size: 13px;
	padding: 6px 14px;
	border-radius: 6px;
	background: #f8fafc;
	border: 0.5px solid #e2e8f0;
	color: #374151;
	text-decoration: none;
	transition: all .15s;
}
.aig-related-list li a:hover {
	background: var(--silo-bg, #EFF6FF);
	border-color: var(--silo-color, #4F46E5);
	color: var(--silo-color, #4F46E5);
}

/* ARTICLES BLOCK */
.aig-articles-block { margin-bottom: 28px; }
.aig-articles-block h2 {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 12px;
}
.aig-articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aig-article-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px;
	border: 0.5px solid #e2e8f0;
	border-radius: 8px;
	text-decoration: none;
	transition: border-color .15s;
	background: #fff;
}
.aig-article-card:hover { border-color: var(--silo-color, #4F46E5); }
.aig-article-card__label { font-size: 10px; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: .05em; }
.aig-article-card__title { font-size: 13px; font-weight: 600; color: #0f172a; line-height: 1.4; }

/* CTA BLOCK */
.aig-cta-block {
	border-radius: 10px;
	padding: 16px 20px;
	margin-top: 32px;
}
.aig-cta-block p {
	font-size: 13px;
	color: #4b5563;
	margin: 0 0 10px;
	font-weight: 500;
}
.aig-cta-block a, .aig-cta-link {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: var(--silo-color, #4F46E5);
	transition: opacity .15s;
}
.aig-cta-block > a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.aig-cta-block > a:hover, .aig-cta-link:hover { opacity: .88; }

/* TERM PAGE LAYOUT */
.aig-page--term .aig-term-content { max-width: 780px; }

/* RESPONSIVE */
@media (max-width: 640px) {
	.aig-stats-row { grid-template-columns: 1fr 1fr; }
	.aig-silos-grid { grid-template-columns: 1fr; }
	.aig-articles-grid { grid-template-columns: 1fr; }
	.aig-terms-grid { grid-template-columns: 1fr; }
	.aig-container { padding: 0 16px; }
	.aig-page-header h1 { font-size: 22px; }
}
