/* Corals · wiki : lecture simple, aux couleurs du site (écume, marine, or). Aucun style en ligne (CSP). */
@font-face { font-family: 'Fredoka'; src: url('fonts/fredoka.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('fonts/nunito.woff2') format('woff2'); font-weight: 200 1000; font-display: swap; }
:root { --navy: #0b3a5c; --deep: #062640; --sea: #177ca9; --turq: #3fd6e4; --foam: #f0f9ff; --ink: #0a2540; --soft: #3a5a75; --line: #d5e8f2; --gold: #ffc738; --gold-soft: #ffe0a0;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.7 var(--body); color: var(--ink); background: linear-gradient(180deg, #e6f6fc, var(--foam) 320px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 8px clamp(14px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(11,58,92,.96), rgba(16,75,112,.94)); box-shadow: 0 8px 24px -16px rgba(0,20,40,.8); }
.top__brand img { width: 84px; margin: -6px 0; }
.top__wiki { color: var(--gold-soft); font: 700 20px var(--display); text-decoration: none; letter-spacing: .02em; }
.top__links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top__links a { color: #eaf6ff; text-decoration: none; font: 600 15px var(--display); padding: 8px 12px; border-radius: 999px; }
.top__links a:hover { background: rgba(255,255,255,.12); }
.top__links .top__play { color: #4a2a00; background: linear-gradient(180deg, #fff3b8, #ffd452 40%, #f5aa1c); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1.5px #8a4f06; }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; padding: 28px clamp(14px, 3vw, 32px) 60px; align-items: start; }
.side { position: sticky; top: 76px; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -26px rgba(8,50,85,.5); }
.side summary { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); cursor: pointer; list-style: none; margin-bottom: 8px; }
.side summary::-webkit-details-marker { display: none; }
.side ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.side a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.side a:hover { background: #eef8fd; }
.side a[aria-current="page"] { background: var(--navy); color: #fff; }
.legend { font-size: 13px; line-height: 2; color: var(--soft); border-top: 1px solid var(--line); padding-top: 10px; }

.doc { max-width: 780px; }
.crumbs { margin: 0 0 6px; font-size: 14px; color: var(--soft); }
.crumbs a { color: var(--soft); }
h1 { font: 700 clamp(32px, 4vw, 46px)/1.1 var(--display); color: var(--navy); margin: 0 0 10px; }
h2 { font: 700 28px/1.2 var(--display); color: var(--navy); margin: 44px 0 12px; scroll-margin-top: 80px; }
h3 { font: 600 21px/1.3 var(--display); color: var(--navy); margin: 28px 0 8px; scroll-margin-top: 80px; }
.lead { font-size: 19px; color: var(--soft); margin: 0 0 22px; }
.hero { border-radius: 20px; overflow: hidden; margin: 0 0 26px; box-shadow: 0 0 0 5px #fff, 0 0 0 7px rgba(199,129,12,.45), 0 24px 44px -26px rgba(8,50,85,.6); }
.hero img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.toc { padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 10px; }
.toc b { font: 700 13px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.toc ul { margin: 6px 0 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.toc li { font-size: 15px; break-inside: avoid; }
article p, article li { color: #16324d; }
article ul, article ol { padding-left: 22px; }
article li { margin: 4px 0; }
article strong { color: var(--navy); }
code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: #e6f3fa; }
figure { margin: 22px 0; }
figure img { border-radius: 14px; box-shadow: 0 16px 30px -22px rgba(8,50,85,.6); }
figcaption { font-size: 14px; color: var(--soft); margin-top: 6px; text-align: center; }
.note { margin: 18px 0; padding: 14px 18px 14px 50px; border-radius: 14px; position: relative; background: #fff8e6; box-shadow: inset 0 0 0 1px #f3dca2; }
.note::before { content: ''; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; background: url('img/compass.svg') center / contain no-repeat; }
.note p { margin: 4px 0; }
.table { overflow-x: auto; margin: 18px 0; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th { text-align: left; font: 600 14px var(--display); letter-spacing: .03em; color: #fff; background: var(--navy); padding: 10px 12px; }
td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; }
tr:nth-child(2n) td { background: #f6fbfe; }
.tag { display: inline-block; vertical-align: middle; font: 700 11px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; }
h1 .tag { font-size: 13px; }
.tag--live { background: #d8f7e6; color: #0c6b3a; }
.tag--dev { background: #fff0cc; color: #8a5a00; }
.tag--planned { background: #ece4ff; color: #5a3aa8; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 20px 0; }
.card { display: grid; border-radius: 16px; overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgba(8,50,85,.5); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--gold), 0 20px 34px -22px rgba(8,50,85,.6); }
.card__img { aspect-ratio: 2 / 1; overflow: hidden; background: #cfe9f4; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card b { font: 600 19px var(--display); color: var(--navy); padding: 12px 14px 2px; }
.card > span:last-child { font-size: 14px; color: var(--soft); padding: 0 14px 14px; line-height: 1.5; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 18px; }
.pager a { display: grid; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); text-decoration: none; font: 600 17px var(--display); color: var(--navy); }
.pager small { font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.pager__next { text-align: right; margin-left: auto; }
.foot { text-align: center; padding: 30px 20px 40px; color: #b9dcec; background: var(--deep); font-size: 14px; }
.foot a { color: var(--gold-soft); }

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .side { position: static; order: 2; }
  .side:not([open]) { padding: 12px 16px; }
  .toc ul { columns: 1; }
  .top__links a:not(.top__play) { display: none; }
}

.cards--icons { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cards--icons .card__img { aspect-ratio: auto; height: 112px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #eaf7fd, #cfe9f4); }
.cards--icons .card__img img { width: auto; height: 92px; max-width: 90%; object-fit: contain; }
.cards--icons .card b { font-size: 17px; }
div.card:hover { transform: none; box-shadow: 0 0 0 1px var(--line), 0 16px 30px -24px rgba(8,50,85,.5); }

.shell > * { min-width: 0; }
