/* ── Base text ── */
.page-content,
.page-content p,
.page-content li,
.page-content td,
.page-content a {
  font-size: 1.25rem;
  line-height: 1.75;
}

/* ── Hero ── */
.hero-lead {
  font-size: 1.5rem;
  line-height: 1.75;
  max-width: 820px;
}

/* ── Why grid ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.why-card {
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border-left: 4px solid #0053b3;
}
.why-icon { font-size: 2.5rem; margin-bottom: 0.6rem; }
.why-card h3 { font-size: 1.4rem; font-weight: 700; margin: 0 0 0.5rem; }
.why-card p  { font-size: 1.25rem; color: #495057; margin: 0; line-height: 1.75; }

/* ── Skills grid ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.skill-card {
  border-radius: 0.6rem;
  padding: 1.75rem;
  border: 1px solid #dee2e6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  min-height: 200px;
}
.skill-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.11); transform: translateY(-3px); }
.skill-card--internal { border-top: 4px solid #0053b3; }
.skill-card--curated  { border-top: 4px solid #005e46; }

.skill-header { display: flex; align-items: flex-start; gap: 1.1rem; }
.skill-icon   { font-size: 3rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.skill-title  { font-size: 1.45rem; font-weight: 700; margin: 0 0 0.3rem; }
.skill-title a { color: #0053b3; text-decoration: none; font-size: 1.45rem; }
.skill-title a:hover { text-decoration: underline; }
.skill-title--plain { color: #212529; }
.skill-command { font-size: 1.05rem; color: #6c757d; background: #f1f3f5; padding: 0.2rem 0.5rem; border-radius: 4px; }

.skill-desc   { font-size: 1.25rem; color: #495057; margin: 0; line-height: 1.75; flex: 1; }
.skill-footer { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: auto; }

/* ── Badges ── */
.badge {
  font-size: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-category { background: #e7effe; color: #0053b3; }
.badge-version  { background: #f1f3f5; color: #495057; }
.badge-ans      { background: #0053b3; color: #fff; }
.badge-source   { background: #d4edda; color: #155724; }

/* ── Install steps ── */
.install-steps { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0 2rem; }
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  font-size: 1.25rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  min-width: 2.4rem;
  border-radius: 50%;
  background: #0053b3;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.install-code {
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.85rem;
  background: #e9ecef;
  border-radius: 0.3rem;
  font-size: 1.1rem;
  display: inline-block;
}

/* ── Prompts page ── */
.prompts-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}
.prompts-toc a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0053b3;
  background: #e7effe;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
}
.prompts-toc a:hover { background: #d6e4fc; }

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0 3rem;
}
@media (max-width: 900px) {
  .prompts-grid { grid-template-columns: 1fr; }
}

.prompt-card {
  border: 1px solid #dee2e6;
  border-top: 4px solid #0053b3;
  border-radius: 0.6rem;
  padding: 1.5rem;
}
.prompt-title { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.35rem; }
.prompt-desc  { font-size: 1.1rem; color: #495057; margin: 0 0 1rem; line-height: 1.6; }
.prompt-code-wrap { position: relative; }
.prompt-text {
  background: #1a1a2e;
  color: #e2e6ea;
  padding: 1rem 1.1rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}
.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0053b3;
  background: #e7effe;
  border: none;
  border-radius: 0.35rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.copy-btn:hover { background: #d6e4fc; }

/* ── Doctrine page ── */
.doctrine-callout {
  padding: 1.1rem 1.4rem;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  line-height: 1.7;
  margin: 1.25rem 0;
}
.doctrine-callout ul { margin: 0.5rem 0 0; }
.doctrine-callout--rule {
  background: #e7effe;
  border-left: 4px solid #0053b3;
}
.doctrine-callout--warning {
  background: #fff8e6;
  border-left: 4px solid #c98a00;
}
.doctrine-callout--danger {
  background: #fdecea;
  border-left: 4px solid #b30000;
  color: #7a0000;
  font-weight: 600;
}
.doctrine-callout--summary {
  background: #0053b3;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  padding: 1.75rem;
  margin: 2.5rem 0 1rem;
}

/* ── Cas d'usage IA page ── */
.qualif-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2.5rem;
}
.qualif-table td {
  padding: 0.75rem 1.1rem;
  border: 1px solid #dee2e6;
  font-size: 1.15rem;
}
.qualif-table td:first-child {
  font-weight: 700;
  background: #f8f9fa;
  width: 260px;
}

.maturity-scale {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 1.75rem;
}
.maturity-step {
  flex: 1;
  min-width: 160px;
  background: #f8f9fa;
  border-radius: 0.5rem;
  border-top: 4px solid #adb5bd;
  padding: 1.1rem 1rem;
  text-align: center;
}
.maturity-num { font-size: 1.6rem; font-weight: 800; color: #0053b3; line-height: 1; }
.maturity-label { font-weight: 700; margin-top: 0.35rem; font-size: 1.1rem; }
.maturity-desc { font-size: 0.95rem; color: #495057; margin-top: 0.35rem; line-height: 1.4; }

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 1.75rem;
}
@media (max-width: 900px) { .decision-grid { grid-template-columns: 1fr; } }
.decision-card {
  border-radius: 0.5rem;
  border-left: 4px solid;
  padding: 1.1rem 1.4rem;
}
.decision-card h4 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.decision-card p { margin: 0; font-size: 1.05rem; color: #495057; line-height: 1.5; }
.decision-card--go          { border-color: #1a7f37; background: #e9f7ef; }
.decision-card--conditional { border-color: #c98a00; background: #fff8e6; }
.decision-card--standby     { border-color: #6c757d; background: #f1f3f5; }
.decision-card--nogo        { border-color: #b30000; background: #fdecea; }

/* ── Principes industriels page ── */
.vigilance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
@media (max-width: 900px) { .vigilance-grid { grid-template-columns: 1fr; } }
.vigilance-card {
  padding: 1.5rem;
  background: #fff8e6;
  border-left: 4px solid #c98a00;
  border-radius: 0.5rem;
}
.vigilance-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.vigilance-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.vigilance-card p { font-size: 1.1rem; color: #495057; margin: 0; line-height: 1.6; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.checklist li {
  font-size: 1.2rem;
  padding-left: 2.1rem;
  position: relative;
  line-height: 1.6;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0;
  top: -0.05rem;
  font-size: 1.4rem;
  color: #0053b3;
}

/* ── Skills pages ── */
.page-intro { font-size: 1.25rem; line-height: 1.75; max-width: 720px; margin-bottom: 2rem; }
.install-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  background: #e7effe;
  border-radius: 0.4rem;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.install-banner code { background: #fff; padding: 0.2rem 0.5rem; border-radius: 3px; font-size: 1rem; }
