/* Page d'une matière (/matieres/<id>/) : reproduction du design de revisiondojo.com/ib/ib-geography (thème clair,
   bandeau pastel, carte illustrée, ressources en deux colonnes, tableau, programme en accordéon, FAQ, encadré final).
   Générée par server/tools/matieres-page.mjs ; s'appuie sur landing.css, pages.css et matieres.css. */
.matiere { position: relative; }
.ms-band { position: absolute; left: 0; right: 0; top: 0; height: 300px; z-index: 0; pointer-events: none;
  background: radial-gradient(500px 220px at 20% 0%, rgba(147,197,253,.7), transparent 70%), radial-gradient(600px 240px at 50% 0%, rgba(196,181,253,.7), transparent 70%),
    radial-gradient(500px 220px at 85% 0%, rgba(153,246,228,.7), transparent 70%); }
.ms-wrap { position: relative; z-index: 1; max-width: 864px; margin: 0 auto; padding: 0 16px; }
.ms-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; padding-top: 96px; }
.ms-hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 38px; line-height: 44px; letter-spacing: -1.6px; color: var(--ink); }
.ms-level { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 17px; font-weight: 500; color: var(--ink); }
.ms-level .ic { width: 22px; height: 22px; stroke: #737373; fill: none; stroke-width: 2; }
.ms-lead { margin: 20px 0 0; font-size: 17px; line-height: 28px; color: #737373; }
.ms-hero p { margin: 18px 0 0; font-size: 17px; line-height: 26px; color: #525252; }
.ms-hero p b { font-weight: 500; color: var(--ink); }
.ms-cover { align-self: start; margin-top: 56px; height: 292px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #fff), color-mix(in srgb, var(--c) 30%, #fff)); }
.ms-cover span { position: relative; width: 160px; height: 212px; border-radius: 10px; overflow: hidden; border: 3px solid #fff;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 45%, #fff), var(--c)); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--c) 70%, #000); }
.ms-cover img { width: 100%; height: 100%; object-fit: cover; }
.ms-cover i { position: absolute; left: 6px; right: 6px; bottom: 12px; text-align: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 21px;
  letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.ms-ini { display: grid; place-items: center; height: 100%; color: #fff; font-family: var(--display); font-size: 90px; }
.ms-sec { padding-top: 56px; }
.ms-sec h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -.4px; color: var(--ink); }
.ms-sec h2.sm { font-size: 21px; } .ms-sec h2.c { text-align: center; font-weight: 600; font-size: 30px; letter-spacing: -1.5px; }
.ms-g { margin: 26px 0 16px; font-size: 19px; font-weight: 500; color: #737373; }
.ms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; }
.ms-item { display: flex; align-items: center; gap: 16px; color: var(--ink); }
.ms-item:hover b { text-decoration: underline; }
.ms-tile { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 14px; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, #fff); }
.ms-tile .ic { width: 32px; height: 32px; stroke-width: 1.8; }
.ms-item b { display: block; font-size: 16.5px; font-weight: 500; }
.ms-item small { display: block; margin-top: 2px; font-size: 14.5px; color: #525252; }
.ms-item em { display: block; margin-top: 2px; font-style: normal; font-size: 14.5px; color: #a3a3a3; }
.ms-tbl-w { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.ms-tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.ms-tbl th { padding: 12px 18px; text-align: left; font-weight: 600; color: #404040; background: #f5f5f5; }
.ms-tbl td { padding: 14px 18px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); color: #404040; vertical-align: top; }
.ms-tbl td:first-child { border-left: 0; width: 90px; } .ms-tbl td:nth-child(n+3) { width: 100px; }
.ms-topic { margin: 0 0 6px; }
.ms-topic summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 8px; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); }
.ms-topic summary::-webkit-details-marker { display: none; }
.ms-topic summary span { text-decoration: underline; text-decoration-color: #7dd3fc; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ms-topic summary i { width: 7px; height: 7px; border-left: 1.8px solid #525252; border-top: 1.8px solid #525252; rotate: 45deg; translate: 0 2px; transition: rotate .2s; }
.ms-topic:not([open]) summary i { rotate: 225deg; translate: 0 -2px; }
.ms-topic ul { list-style: none; margin: 0; padding: 0 0 12px 32px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: #262626; }
.ms-faq { max-width: 768px; margin: 0 auto; }
.ms-faq details { margin-top: 12px; border-radius: 12px; background: #f5f5f5; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ms-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 20px; cursor: pointer; font-size: 17px; color: var(--ink); }
.ms-faq summary::-webkit-details-marker { display: none; }
.ms-plus { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #0a0a0a; color: #fff; font-size: 20px; line-height: 1; transition: rotate .2s; }
.ms-faq details[open] .ms-plus { rotate: 45deg; }
.ms-faq details p { margin: 0; padding: 0 20px 16px; font-size: 15.5px; line-height: 25px; color: #525252; }
.ms-ask { display: flex; align-items: center; gap: 24px; margin-top: 40px; padding: 32px; border-radius: 16px; background: #f5f5f5; }
.ms-ask h3 { margin: 0 0 6px; font-size: 18px; font-weight: 500; }
.ms-ask p { margin: 0 0 18px; font-size: 14px; line-height: 20px; color: #737373; }
.ms-ask a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: #0a0a0a; color: #fff; font-size: 15px; font-weight: 500; }
.ms-ask-art { flex: none; margin-left: auto; width: 110px; height: 110px; border-radius: 22px; overflow: hidden; rotate: 6deg; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 40%, #fff), var(--c)); }
.ms-ask-art img { width: 100%; height: 100%; object-fit: cover; }
.ms-ready { max-width: 576px; margin: 56px auto 0; padding: 34px 32px 32px; text-align: center; border: 1.5px solid var(--border); border-radius: 18px; }
.ms-ready-art { width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 24px; overflow: hidden; }
.ms-ready-art img { width: 100%; height: 100%; object-fit: cover; }
.ms-ready h2 { margin: 0; font-size: 24px; font-weight: 500; }
.ms-ready p { margin: 12px auto 26px; max-width: 320px; font-size: 17px; line-height: 28px; color: #737373; }
.ms-ready a { display: flex; align-items: center; justify-content: center; max-width: 384px; height: 52px; margin: 12px auto 0; border-radius: 14px; font-size: 18px; font-weight: 500; }
.ms-b1 { background: var(--purple); color: #fff; } .ms-b1:hover { background: #7e22ce; }
.ms-b2 { border: 1.5px solid var(--border); color: var(--ink); } .ms-b2:hover { background: var(--soft); }
.ms-others { margin-top: 8px; }
.matiere .final { margin-top: 96px; }
@media (max-width: 760px) {
  .ms-hero { grid-template-columns: 1fr; padding-top: 40px; } .ms-cover { display: none; }
  .ms-hero h1 { font-size: 30px; line-height: 36px; letter-spacing: -1.2px; }
  .ms-grid { grid-template-columns: 1fr; gap: 18px; } .ms-tile { width: 60px; height: 60px; }
  .ms-ask-art { display: none; } .ms-tbl { font-size: 14px; } .ms-tbl th, .ms-tbl td { padding: 10px 12px; }
}
/* Le programme n'hérite pas du style des FAQ de landing.css (fond gris, pastille). */
.matiere details.ms-topic { background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.matiere details.ms-topic > summary i { background: none; border-radius: 0; width: 7px; height: 7px; flex: none; }
.matiere details.ms-topic > summary i::before, .matiere details.ms-topic > summary i::after { content: none; }
.matiere .ms-faq details > summary .ms-plus::before, .matiere .ms-faq details > summary .ms-plus::after { content: none; }
