/* Bookoxa Academy — feuille de style unique. Polices sans-serif uniquement. Palette Bookoxa. */
:root { --rose:#9E5E5E; --rose-dark:#7d4646; --brown:#3B2E24; --text:#4d423a; --muted:#6b5f57; --line:#EAE0DA; --cream:#F7F2ED; --blush:#F4EAEA; --white:#fff; --r:14px; --max:1120px;
  --font: Arial, 'Liberation Sans', 'DejaVu Sans', -apple-system, system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin:0; font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.6; font-size: 17px; }
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 4px; }
.skip { position:absolute; left:-9999px; top:0; background: var(--brown); color:#fff; padding:.75rem 1rem; z-index:100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display:flex; align-items:center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display:flex; align-items:center; gap:10px; text-decoration:none; color: var(--brown); font-weight: 700; letter-spacing:.02em; }
.brand .logo { width:34px; height:34px; border-radius:50%; background: var(--rose); color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
nav.main { margin-left:auto; display:flex; align-items:center; gap: 18px; }
nav.main a { text-decoration:none; color: var(--text); padding: 8px 4px; }
nav.main a[aria-current="page"] { color: var(--brown); font-weight:700; border-bottom: 2px solid var(--rose); }
.lang { display:flex; gap:6px; list-style:none; margin:0; padding:0; }
.lang a { display:inline-block; min-width: 40px; text-align:center; padding: 6px 8px; border:1px solid var(--line); border-radius: 999px; text-decoration:none; font-size:.85rem; background: var(--white); }
.lang a[aria-current="true"] { background: var(--rose); color:#fff; border-color: var(--rose); }
.lang-home { margin-top: 16px; }
details.menu { display:none; margin-left:auto; }
details.menu summary { list-style:none; cursor:pointer; padding: 8px 14px; border:1px solid var(--line); border-radius: 999px; background: var(--white); }
details.menu summary::-webkit-details-marker { display:none; }
details.menu[open] > div { position:absolute; left:0; right:0; top:100%; background: var(--white); border-bottom:1px solid var(--line); padding: 12px 16px 16px; display:flex; flex-direction:column; gap:12px; }
header.site { position: relative; z-index: 30; }   /* le menu mobile déplié (position:absolute) doit passer AU-DESSUS des cartes (position:relative) qui suivent dans le flux */
main { padding: 32px 0 56px; }
h1 { color: var(--brown); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height:1.15; margin: 0 0 12px; }
h2 { color: var(--brown); font-weight: 600; font-size: 1.35rem; margin: 40px 0 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero { background: var(--blush); border:1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 5vw, 56px); }
.btn { display:inline-block; background: var(--rose); color:#fff; text-decoration:none; padding: 12px 22px; border-radius: 999px; font-weight:700; margin-top: 16px; }
.btn:hover { background: var(--rose-dark); color:#fff; }
.btn.secondary { background: var(--white); color: var(--rose-dark); border:1px solid var(--rose); }
.grid { display:grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); list-style:none; padding:0; margin: 0; }
.card { background: var(--white); border:1px solid var(--line); border-radius: var(--r); padding: 20px; height:100%; display:flex; flex-direction:column; gap:8px; }
.card h3 { margin:0; font-size:1.1rem; color: var(--brown); }
.card h3 a { text-decoration:none; color: inherit; }
.card h3 a::after { content:""; position:absolute; inset:0; }
.card { position: relative; }
.card:hover { border-color: var(--rose); }
.meta { display:flex; flex-wrap:wrap; gap:8px; list-style:none; padding:0; margin: 8px 0 0; font-size:.88rem; }
.meta li { background: var(--blush); border-radius: 999px; padding: 3px 12px; color: var(--brown); }
.crumbs { font-size:.9rem; margin-bottom: 16px; }
.crumbs ol { list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:0; }
.crumbs li + li::before { content:"›"; margin-right:6px; color: var(--muted); }
.notice { background: var(--white); border-left: 4px solid var(--rose); padding: 14px 18px; border-radius: 8px; margin: 20px 0; }
.outline { counter-reset: ch; list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.outline li { counter-increment: ch; background: var(--white); border:1px solid var(--line); border-radius: 10px; padding: 12px 16px; display:flex; gap:12px; align-items:baseline; }
.outline li::before { content: counter(ch); color:#fff; background: var(--rose); border-radius:50%; min-width: 26px; height:26px; display:inline-flex; align-items:center; justify-content:center; font-size:.85rem; }
.cta { background: var(--white); border:1px solid var(--line); border-radius: var(--r); padding: 22px; margin-top: 36px; }
footer.site { background: var(--brown); color: #e9dfd7; padding: 28px 0; font-size:.92rem; }
footer.site a { color:#fff; }
@media (max-width: 760px) {
  nav.main { display:none; } details.menu { display:block; }
  body { font-size: 16px; } main { padding: 20px 0 40px; }
  .lang a { min-width: 44px; min-height: 44px; display:inline-flex; align-items:center; justify-content:center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
/* Tutoriels (C3) */
.chapter { margin-top: 36px; padding-top: 8px; border-top: 1px solid var(--line); }
.chapter h3, .chapter h4 { color: var(--brown); margin: 24px 0 8px; }
.steps { padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.steps li::before { content: counter(st); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--rose); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.steps li span { color: var(--text); }
.callout { background: var(--white); border-left: 4px solid var(--rose); padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.callout-warning { border-left-color: #b4572b; } .callout-tip { border-left-color: #4a7a68; }
figure { margin: 20px 0; } figure img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; } figcaption { font-size: .9rem; color: var(--muted); margin-top: 6px; }

/* Lecteur vidéo (D3) — couleurs Bookoxa, cibles tactiles ≥ 44 px, focus visible, mouvement réduit respecté */
.player-section { margin: 28px 0; }
.bx-player { position: relative; background: #000; border-radius: var(--r); overflow: hidden; max-width: 960px; }
.bx-player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.bx-player.bx-ready { background: var(--brown); }
.bx-stage { position: relative; }
.bx-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.bx-ui > * { pointer-events: auto; }
.bx-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: rgba(158, 94, 94, .92); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bx-big[hidden] { display: none; }
.bx-big svg { width: 36px; height: 36px; fill: currentColor; }
.bx-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: linear-gradient(to top, rgba(59, 46, 36, .92), rgba(59, 46, 36, .55)); color: #fff; transition: opacity .2s; }
.bx-idle .bx-bar { opacity: 0; pointer-events: none; }
.bx-btn { width: 44px; height: 44px; border: 0; border-radius: 8px; background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.bx-btn:hover { background: rgba(255, 255, 255, .15); }
.bx-cc[aria-pressed="true"] { background: rgba(255, 255, 255, .22); box-shadow: inset 0 -3px 0 #f4c9c9; }
.bx-btn svg { width: 24px; height: 24px; fill: currentColor; }
.bx-time { font-variant-numeric: tabular-nums; font-size: .85rem; white-space: nowrap; min-width: 6.2em; }
.bx-player :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--rose); }
.bx-seek, .bx-vol { accent-color: var(--rose); height: 28px; }
.bx-seek { flex: 1 1 auto; min-width: 80px; }
.bx-vol { width: 80px; flex: none; }
.bx-menu { position: absolute; right: 10px; bottom: 64px; background: #fff; color: var(--brown); border-radius: 12px; padding: 12px 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); display: flex; gap: 20px; max-height: 70%; overflow: auto; }
.bx-menu[hidden] { display: none; }
.bx-fs { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.bx-fs legend { font-weight: 700; margin-bottom: 4px; }
.bx-fs label { display: flex; align-items: center; gap: 6px; min-height: 32px; cursor: pointer; }
.bx-status { position: absolute; left: -9999px; }
.bx-error { background: rgba(59, 46, 36, .96); color: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bx-error[hidden] { display: none; }
.bx-retry { background: var(--rose); color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; font-weight: 700; }
.bx-dl { color: #fff; }
.bx-resume { display: block; background: var(--white); color: var(--text); padding: 10px 14px; font-size: .92rem; }
.bx-loading .bx-stage::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border: 4px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: bxspin 0.9s linear infinite; pointer-events: none; }
@keyframes bxspin { to { transform: rotate(360deg); } }
@media (max-width: 760px) { .bx-vol { display: none; } .bx-time { min-width: 5.6em; font-size: .78rem; } .bx-bar { gap: 2px; padding: 4px 6px; } .bx-menu { flex-direction: column; gap: 10px; right: 6px; bottom: 56px; } }
@media (prefers-reduced-motion: reduce) { .bx-bar { transition: none; } .bx-loading .bx-stage::after { animation: none; } }
/* Pages légales et liens de pied de page */
footer.site .legal-links { display:flex; flex-wrap:wrap; gap: 4px 20px; list-style:none; margin: 12px 0 0; padding:0; }
footer.site .legal-links a { display:inline-block; padding: 12px 0; min-height: 44px; }
.legal { max-width: 760px; }
.legal h2 { color: var(--brown); font-weight: 700; font-size: 1.2rem; margin: 28px 0 8px; }
.legal .meta-line { color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.legal-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 12px 0 16px; }
