/* Pages « Outils IA par métier » : complète ressources.css (même direction artistique) */
.page-body { padding-top: 24px; padding-bottom: 90px; }
.page-body section { margin-top: 56px; }
.page-body h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sec-lede { color: var(--muted); margin: 12px 0 0; max-width: 680px; }
.crumb-nav { margin-bottom: 4px; }
.updated { font-size: 14.5px; color: var(--muted-2); margin: 18px 0 0; }
.updated a { color: var(--muted); }
.hero .cta-row, .cta-box .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.note { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 16px; padding: 18px 22px; font-size: 16px; line-height: 1.55; box-shadow: var(--shadow); }

.cat { font-size: 1.15rem; margin: 34px 0 0; color: var(--muted); font-weight: 600; letter-spacing: -.01em; }
.tool-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tool { display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 6px 18px #5623110a; }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool h3 { font-size: 1.2rem; }
.tool h3 a { text-decoration: none; }
.tool h3 a:hover { color: var(--accent-strong); }
.tool p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--muted); flex: 1; }
.tool-link { font-size: 14px; font-weight: 600; color: var(--accent-strong); text-decoration: none; }
.tool-link:hover { text-decoration: underline; }
.tier { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); }
.tier-gratuit { background: #e6f4ea; color: #1e6b3a; }
.tier-freemium { background: var(--accent-tint); color: var(--accent-strong); }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-strong); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 12px 0 0; color: var(--muted); max-width: 760px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-link { display: inline-block; padding: 9px 18px; background: var(--surface); border: 1px solid var(--border-s); border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); transition: border-color .2s, color .2s; }
.chip-link:hover { border-color: var(--accent-strong); color: var(--accent-strong); }
.chip-all { background: var(--accent-tint); border-color: transparent; color: var(--accent-strong); font-weight: 600; }

.cta-box { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: clamp(28px, 5vw, 48px); box-shadow: var(--shadow); }
.cta-box p { color: var(--muted); max-width: 640px; margin: 12px 0 0; }

.metier-grid { padding-bottom: 0; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .tool-list { grid-template-columns: 1fr; }
}

/* Blocs éditoriaux des pages métier (editorial.json) */
.ed-intro p { font-size: 1.08rem; line-height: 1.65; max-width: 760px; margin: 14px 0 0; }
.usecase { margin-top: 28px; max-width: 800px; }
.usecase h3 { font-size: 1.2rem; margin: 0; letter-spacing: -.01em; }
.usecase p { margin: 10px 0 12px; color: var(--muted); line-height: 1.6; }
.chip-tier { color: var(--muted-2); font-weight: 400; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.ed-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ed-table th, .ed-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ed-table tbody tr:last-child th, .ed-table tbody tr:last-child td { border-bottom: 0; }
.ed-table thead th { color: var(--muted); font-weight: 600; font-size: 14px; }
.ed-table tbody th { font-weight: 600; white-space: nowrap; }
.ed-table .chip-link { margin: 0 6px 6px 0; }
.ed-legal h2 { font-size: 1.3rem; margin: 0 0 8px; }
.ed-legal ul { margin: 0; padding-left: 20px; }
.ed-legal li { margin: 8px 0; }
.ed-legal .sources { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.tool:target { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .ed-table tbody th { white-space: normal; } }

/* Vidéos (videos/*.html) et page Ceepia */
.vid-layout { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 8px; }
.vid-frame iframe { width: 100%; height: 600px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); display: block; }
.vid-fallback { display: inline-block; margin-top: 10px; font-size: 15px; color: var(--muted); }
.vid-side h2 { font-size: 1.35rem; margin: 0 0 10px; }
.vid-side section + section { margin-top: 28px; }
.answer { font-size: 1.08rem; line-height: 1.65; margin: 0; }
.vid-points { margin: 0; padding-left: 20px; line-height: 1.6; }
.vid-points li { margin: 6px 0; }
.muted-small { font-size: 14px; color: var(--muted-2); margin-top: 18px; }
.transcript { max-width: 780px; }
.transcript p { color: var(--muted); line-height: 1.7; margin: 12px 0 0; }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.vid-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: border-color .2s, transform .2s; }
.vid-card:hover { border-color: var(--accent-strong); transform: translateY(-2px); }
.vid-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; display: block; }
.vid-card-body { padding: 14px 16px 18px; }
.vid-card-body h2 { font-size: 1.05rem; line-height: 1.3; margin: 4px 0 6px; }
.vid-card-body p { font-size: 14.5px; color: var(--muted); margin: 0; }
.vid-card-body .vid-meta { font-size: 13px; color: var(--muted-2); }
.vid-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; margin-top: 16px; }
.vid-mini { text-decoration: none; color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.35; }
.vid-mini img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-position: center 30%; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 8px; }
.steps { padding-left: 22px; line-height: 1.65; max-width: 780px; }
.steps li { margin: 10px 0; }
.ceepia-box a:not(.btn) { color: var(--accent-strong); }
@media (max-width: 760px) { .vid-layout { grid-template-columns: 1fr; } .vid-frame { max-width: 320px; } }
