/* Olorun Technologies : styles des composants, construits sur tokens.css (préfixe ol-). */

body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; background: var(--surface); color: var(--fg); }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
:focus:not(:focus-visible) { outline: none; }

/* Bande sombre : remappe les rôles comme .surface-dark du site. */
.ol-surface-dark { --surface: var(--ink); --fg: var(--bg); --fg-body: var(--text-on-dark); --fg-muted: var(--label-on-dark); --fg-eyebrow: var(--accent-on-dark); --fg-accent: var(--accent-on-dark); --fg-accent-text: var(--accent-on-dark); --line: var(--rule-on-dark); background: var(--ink); color: var(--bg); }
.ol-surface-light { --surface: var(--bg); --fg: var(--ink); --fg-body: var(--ink2); --fg-muted: var(--ink3-text); --fg-eyebrow: var(--ink2); --fg-accent: var(--accent); --fg-accent-text: var(--accent-text); --line: var(--rule-soft); background: var(--bg); color: var(--ink); }

/* Mise en page des aperçus */
.ol-demo { padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ol-demo--stack { flex-direction: column; align-items: flex-start; }

/* Boutons */
.ol-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 1; padding: 14px 22px; border: 1px solid transparent; border-radius: var(--radius-none); cursor: pointer; white-space: nowrap; text-decoration: none; background: none; transition: background .2s, color .2s, border-color .2s; }
.ol-btn svg { display: block; flex-shrink: 0; transition: transform .2s; }
.ol-btn:hover svg { transform: translateX(2px); }
.ol-btn--small { padding: 9px 14px; font-size: 13px; }
.ol-btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ol-btn--primary:hover { background: var(--contrast); border-color: var(--contrast); }
.ol-btn--accent { background: var(--accent-fill); color: #FFFFFF; border-color: var(--accent-fill); }
.ol-btn--accent:hover { background: var(--accent-text); border-color: var(--accent-text); }
.ol-btn--outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.ol-btn--outline:hover { background: var(--fg); color: var(--surface); }
.ol-btn--ghost { background: transparent; color: var(--fg); padding-left: 0; padding-right: 0; }
.ol-btn--ghost:hover span { text-decoration: underline 1.5px var(--accent); text-underline-offset: 4px; }
.ol-btn[disabled], .ol-btn[aria-disabled="true"] { opacity: var(--opacity-disabled); cursor: not-allowed; }
.ol-link { color: var(--fg); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; font-size: 14px; }
.ol-link-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; color: var(--fg-accent-text); text-decoration: none; }

/* Titres et surtitres */
.ol-h1, .ol-h2, .ol-h3 { font-family: var(--font-serif); font-weight: 400; color: var(--fg); margin: 0; text-wrap: balance; overflow-wrap: break-word; }
.ol-h1 { font-size: clamp(40px, calc(88 * 100vw / 1440), 88px); line-height: .98; letter-spacing: -1.5px; }
.ol-h2 { font-size: clamp(32px, calc(56 * 100vw / 1440), 56px); line-height: 1; letter-spacing: -.8px; }
.ol-h3 { font-size: 30px; line-height: 1.12; letter-spacing: -.4px; }
.ol-em { font-style: italic; }
.ol-em-accent { font-style: italic; color: var(--fg-accent); }
.ol-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 11px; line-height: 1.4; letter-spacing: 1.2px; text-transform: uppercase; color: var(--fg-eyebrow); }
.ol-eyebrow--accent { color: var(--fg-accent-text); }
.ol-eyebrow--muted { color: var(--fg-muted); }
.ol-lead { color: var(--fg-body); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0; }

/* Logo */
.ol-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.ol-logo img { display: block; width: 42px; height: 42px; flex-shrink: 0; }
.ol-logo__words { display: flex; flex-direction: column; line-height: 1; }
.ol-logo__name { font-family: var(--font-sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; white-space: nowrap; }
.ol-logo__sig { margin-top: 4px; font-family: var(--font-serif); font-style: italic; font-size: 13px; letter-spacing: .01em; color: var(--accent-text); white-space: nowrap; }
.ol-logo--inverse { color: var(--bg); }
.ol-logo--inverse .ol-logo__sig { color: var(--accent-on-dark); }

/* Navigation */
.ol-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: var(--space-header-y) var(--space-gutter); border-bottom: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; }
.ol-nav { display: flex; gap: var(--space-nav-gap); }
.ol-nav a { color: var(--ink2); text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.ol-nav a:hover { color: var(--ink); }
.ol-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.ol-actions { display: flex; align-items: center; gap: 18px; }
.ol-langs { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ink3-text); }
.ol-langs b { color: var(--ink); font-weight: 600; }
.ol-crumb { padding: 16px var(--space-gutter); border-bottom: 1px solid var(--rule-soft); font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--ink3-text); background: var(--paper); }
.ol-crumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; padding: 0; list-style: none; }
.ol-crumb li { display: inline-flex; gap: 10px; }
.ol-crumb a { color: inherit; text-decoration: none; }
.ol-crumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ol-crumb [aria-current="page"] { color: var(--ink); }

/* Pied de page */
.ol-footer { background: var(--ink); color: var(--bg); padding: var(--space-footer-top) var(--space-gutter) 32px; font-family: var(--font-sans); }
.ol-footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: var(--space-footer-gap); align-items: start; }
.ol-footer__motto { margin-top: 28px; max-width: 360px; font-family: var(--font-serif); font-style: italic; font-size: 36px; line-height: 1.05; }
.ol-footer__places, .ol-footer__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; color: var(--label-on-dark); font-weight: 400; }
.ol-footer__places { margin-top: 32px; }
.ol-footer__title { text-transform: uppercase; margin: 0; }
.ol-footer__col { display: flex; flex-direction: column; gap: var(--space-stack); }
.ol-footer__col a, .ol-footer__col span { font-size: 13px; line-height: 1.45; color: var(--link-on-dark); text-decoration: none; overflow-wrap: anywhere; }
.ol-footer__col a:hover, .ol-footer__legal a:hover { color: var(--bg); text-decoration: underline; text-underline-offset: 3px; }
.ol-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule-on-dark); font-family: var(--font-mono); font-size: 11px; color: var(--label-on-dark); }
.ol-footer__legal { display: flex; gap: 8px; }
.ol-footer__legal a { color: inherit; text-decoration: none; }

/* Cartes et grilles */
.ol-grid { --grid-line: var(--line); display: grid; grid-template-columns: var(--grid-template, repeat(3, minmax(0, 1fr))); border: 1px solid var(--grid-line); overflow: hidden; }
.ol-grid > * { min-width: 0; padding: var(--cell-padding, 28px); border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); margin: 0 -1px -1px 0; }
.ol-grid--strong { --grid-line: var(--rule); }
.ol-figure { display: flex; flex-direction: column; }
.ol-figure__value { margin: 0; font-family: var(--font-serif); font-size: 46px; line-height: 1; color: var(--fg); }
.ol-figure__value--accent { color: var(--fg-accent); }
.ol-figure__legend { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--fg-body); }
.ol-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); }
.ol-card__illo { position: relative; height: var(--illo-height, 220px); background: var(--illo-bg); overflow: hidden; }
.ol-card__illo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ol-card__illo-label { position: absolute; left: 16px; bottom: 14px; padding: 5px 9px; background: var(--ink); color: #FFFFFF; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.ol-card__body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; padding: var(--space-card); }
.ol-card__client { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink2); }
.ol-card__title { margin: 12px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -.4px; color: var(--ink); }
.ol-card__text { margin: 12px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink2); }
.ol-card__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; padding: 14px 0; list-style: none; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.ol-card__figures li { padding-right: 12px; font-family: var(--font-serif); font-size: 20px; line-height: 1.1; color: var(--ink); }
.ol-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.ol-card__stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ol-card__read { flex-shrink: 0; font-size: 12px; color: var(--ink3-text); text-decoration: none; }
.ol-card__read::after { content: ""; position: absolute; inset: 0; }
.ol-card__read:focus-visible { outline: none; }
.ol-card__read:focus-visible::after { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.ol-tile { display: flex; flex-direction: column; gap: 14px; min-height: 280px; color: var(--fg); background: var(--surface); }
.ol-tile__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; color: var(--fg-accent-text); }
.ol-tile__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.05; color: var(--fg); }
.ol-tile__text { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg-body); }

/* Pastilles */
.ol-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--radius-none); font-family: var(--font-mono); font-size: 10px; line-height: 1.3; letter-spacing: 1px; white-space: nowrap; }
.ol-pill--soon { padding: 4px 8px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-text); }
.ol-pill--building { padding: 6px 12px; gap: 10px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; background: var(--accent-soft); color: var(--accent-text); }
.ol-pill__dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: var(--radius-round); background: var(--accent); }
.ol-pill--status { padding: 4px 8px; background: var(--accent-soft); color: var(--accent-text); }
.ol-pill--prep { padding: 3px 7px; border: 1px dashed var(--ink3); color: var(--ink3-text); }
.ol-pill--signature { padding: 3px 7px; font-size: 8.5px; letter-spacing: 1.5px; background: var(--accent-fill); color: #FFFFFF; }
.ol-pill--tag { padding: 4px 8px; letter-spacing: 0; background: var(--bg2); color: var(--ink2); }
.ol-pill--tag-dark { padding: 4px 8px; letter-spacing: 0; background: var(--tag-on-dark); color: var(--link-on-dark); }
.ol-pill--example { padding: 3px 7px; border: 1px solid var(--ink3); color: var(--ink3-text); text-transform: uppercase; }

/* Formulaires */
.ol-form { display: flex; flex-direction: column; gap: var(--space-form); }
.ol-form-card { border: 1px solid var(--rule); background: var(--paper); padding: var(--space-card-lg); color: var(--ink); }
.ol-field { display: block; min-width: 0; }
.ol-label-compact { display: block; margin-bottom: var(--space-chip); font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink3-text); }
.ol-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .2px; color: var(--ink); }
.ol-hint { display: block; margin-top: 4px; font-size: 12px; color: var(--ink3-text); }
.ol-label + .ol-input, .ol-hint + .ol-input { margin-top: 12px; }
.ol-input { display: block; width: 100%; padding: 13px 14px; border: 1px solid var(--rule-soft); border-radius: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); font-size: 14px; line-height: 1.4; appearance: none; }
.ol-input::placeholder { color: var(--ink3-text); opacity: 1; }
.ol-input:hover { border-color: var(--ink3); }
.ol-input:focus-visible { border-color: var(--ink); }
.ol-input[aria-invalid="true"] { border-color: var(--accent-text); }
.ol-input--devis { height: 48px; padding: 0 16px; background: var(--paper); }
textarea.ol-input { resize: vertical; min-height: 120px; }
.ol-select-wrap { position: relative; display: block; }
.ol-select-wrap .ol-input { cursor: pointer; padding-right: 36px; }
.ol-select-wrap::after { content: "▾"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--ink3-text); pointer-events: none; }
.ol-error { margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--accent-text); }
.ol-checkbox { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.ol-checkbox input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 1px 0 0; cursor: pointer; }
.ol-checkbox__box { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border: 1.4px solid var(--ink); color: transparent; font-size: 12px; }
.ol-checkbox input:checked + .ol-checkbox__box { background: var(--ink); color: #FFFFFF; }
.ol-checkbox input:focus-visible + .ol-checkbox__box { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.ol-checkbox a { color: var(--accent-text); }
.ol-chips { display: flex; flex-wrap: wrap; gap: var(--space-chip); }
.ol-chip { position: relative; display: inline-flex; cursor: pointer; }
.ol-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ol-chip span { display: inline-block; padding: 10px 14px; border: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.2; }
.ol-chip:hover span { border-color: var(--ink3); }
.ol-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ol-chip input:focus-visible + span { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.ol-filedrop { position: relative; padding: 32px 16px; border: 1px dashed var(--rule-soft); background: var(--paper); text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--ink2); }
.ol-filedrop:hover { border-color: var(--ink3); }
.ol-status-success { padding: 24px; background: var(--bg2); border-left: 3px solid var(--success); }
.ol-status-success p { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.ol-alert { margin: 0; padding: 12px 14px; border: 1px solid var(--accent); background: var(--paper); color: var(--accent-text); font-size: 13px; font-weight: 500; line-height: 1.4; }

@media (max-width: 1023.98px) {
  .ol-header, .ol-crumb { padding-left: var(--space-gutter-tablet); padding-right: var(--space-gutter-tablet); }
  .ol-header .ol-nav, .ol-header .ol-langs, .ol-header .ol-btn { display: none; }
  .ol-footer { padding-left: var(--space-gutter-tablet); padding-right: var(--space-gutter-tablet); }
  .ol-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ol-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 639.98px) {
  .ol-h1 { letter-spacing: -1px; }
  .ol-figure__value { font-size: 40px; }
  .ol-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .ol-form-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) { .ol-btn, .ol-btn svg { transition: none; } }

/* ───────────────────────────────────────────────────────────────────────
   Olorun Training Center : composants e-learning (préfixe otc-).
   Mobile d'abord ; uniquement les tokens existants. */

.otc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* En-tête du site e-learning */
.otc-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--space-gutter-mobile); border-bottom: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); font-family: var(--font-sans); font-size: 14px; }
.otc-header .otc-nav, .otc-header .otc-header__search, .otc-header .otc-header__account { display: none; }
.otc-menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.otc-nav { display: flex; gap: var(--space-nav-gap); }
.otc-nav a { color: var(--ink2); text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.otc-nav a:hover { color: var(--ink); }
.otc-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.otc-header__account { align-items: center; gap: 18px; }
.otc-header__search { position: relative; }
.otc-header__search .ol-input { width: 240px; padding: 9px 12px; font-size: 13px; }

/* Carte de formation */
.otc-course { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); }
.otc-course__media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--illo-bg); overflow: hidden; }
.otc-course__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.otc-course__duration { position: absolute; left: 12px; bottom: 12px; padding: 5px 9px; background: var(--ink); color: #FFFFFF; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; }
.otc-course__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px; }
.otc-course__cat { margin: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink2); }
.otc-course__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.12; letter-spacing: -.4px; color: var(--ink); }
.otc-course__title a { color: inherit; text-decoration: none; }
.otc-course__title a::after { content: ""; position: absolute; inset: 0; }
.otc-course__title a:focus-visible { outline: none; }
.otc-course__title a:focus-visible::after { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.otc-course__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.45; color: var(--ink2); }
.otc-course__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule-soft); }
.otc-price { font-family: var(--font-serif); font-size: 22px; line-height: 1; color: var(--ink); }
.otc-price--free { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 8px; background: var(--accent-soft); color: var(--accent-text); }
.otc-price--included { font-family: var(--font-sans); font-size: 12px; line-height: 1.3; color: var(--ink2); }
.otc-course-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-card); }

/* Note par étoiles (affichage) */
.otc-stars { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2); }
.otc-stars__icons { display: inline-flex; gap: 2px; }
.otc-star { width: 14px; height: 14px; display: block; }
.otc-star--on { fill: var(--accent); stroke: var(--accent); }
.otc-star--off { fill: none; stroke: var(--ink3); }
.otc-stars--none { color: var(--ink3-text); }

/* Barre de progression */
.otc-progress { display: grid; gap: 8px; }
.otc-progress__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 12px; color: var(--ink2); }
.otc-progress__value { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--ink); }
.otc-progress__track { height: 6px; background: var(--bg2); border: 1px solid var(--rule-soft); overflow: hidden; }
.otc-progress__bar { height: 100%; background: var(--ink); }
.otc-progress--done .otc-progress__bar { background: var(--success); }
.otc-resume { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); }

/* Lecteur de cours */
.otc-player { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); color: var(--ink); }
.otc-player__stage { display: grid; gap: 16px; padding: 0 0 24px; }
.otc-video { position: relative; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.otc-video__play { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: var(--radius-round); border: 1.5px solid var(--bg); background: transparent; color: var(--bg); cursor: pointer; }
.otc-video__caption { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--link-on-dark); }
.otc-player__info { display: grid; gap: 8px; padding: 0 var(--space-gutter-mobile); }
.otc-player__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: -.4px; }
.otc-player__controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 0 var(--space-gutter-mobile); }
.otc-player__nav { display: flex; gap: 8px; }
.otc-player__aside { border-top: 1px solid var(--rule-soft); background: var(--paper); }
.otc-player__aside-head { display: grid; gap: 12px; padding: 20px var(--space-gutter-mobile); border-bottom: 1px solid var(--rule-soft); }
.otc-btn-flip svg { transform: scaleX(-1); }
.otc-btn-flip:hover svg { transform: scaleX(-1) translateX(2px); }

/* Modules dépliables (details / summary, ou accordion Bootstrap) */
.otc-modules { margin: 0; padding: 0; list-style: none; }
.otc-module { border-bottom: 1px solid var(--rule-soft); }
.otc-module > summary { display: flex; align-items: baseline; gap: 12px; padding: 16px var(--space-gutter-mobile); cursor: pointer; list-style: none; }
.otc-module > summary::-webkit-details-marker { display: none; }
.otc-module > summary::after { content: "▾"; margin-left: auto; font-size: 12px; color: var(--ink3-text); transition: transform .2s; }
.otc-module[open] > summary::after { transform: rotate(180deg); }
.otc-module__num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; color: var(--accent-text); flex-shrink: 0; }
.otc-module__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.otc-module__time { font-family: var(--font-mono); font-size: 11px; color: var(--ink3-text); flex-shrink: 0; }
.otc-lessons { margin: 0; padding: 0 0 8px; list-style: none; }
.otc-lesson { display: flex; align-items: center; gap: 12px; padding: 10px var(--space-gutter-mobile); font-size: 13px; line-height: 1.4; color: var(--ink2); text-decoration: none; }
.otc-lesson:hover { background: var(--bg2); color: var(--ink); }
.otc-lesson__state { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 22px; height: 22px; border: 1px solid var(--ink3); border-radius: var(--radius-round); font-family: var(--font-mono); font-size: 10px; color: var(--ink3-text); }
.otc-lesson__label { flex: 1; min-width: 0; }
.otc-lesson__time { font-family: var(--font-mono); font-size: 11px; color: var(--ink3-text); }
.otc-lesson--done .otc-lesson__state { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.otc-lesson--current { background: var(--bg2); color: var(--ink); font-weight: 500; }
.otc-lesson--current .otc-lesson__state { border-color: var(--accent-text); color: var(--accent-text); }
.otc-lesson__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent-text); }

/* Bandeau d'invitation (visiteur non connecté) */
.otc-invite { display: grid; gap: 16px; padding: 20px var(--space-gutter-mobile); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg2); color: var(--ink); }
.otc-invite__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.otc-invite__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Notation par étoiles (saisie) */
.otc-rate { display: grid; gap: 16px; padding: 24px 20px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); }
.otc-rate fieldset { border: 0; margin: 0; padding: 0; }
.otc-rate legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.otc-rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.otc-rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.otc-rate__stars label { display: inline-flex; padding: 4px; cursor: pointer; }
.otc-rate__stars svg { width: 28px; height: 28px; display: block; fill: none; stroke: var(--ink3); stroke-width: 1.4; }
.otc-rate__stars input:checked ~ label svg, .otc-rate__stars label:hover svg, .otc-rate__stars label:hover ~ label svg { fill: var(--accent); stroke: var(--accent); }
.otc-rate__stars input:focus-visible + label { outline: var(--focus-width) solid var(--accent); outline-offset: var(--focus-offset); }
.otc-rate__value { font-size: 12px; color: var(--ink2); }

/* Formule d'abonnement */
.otc-plans { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--rule-soft); }
.otc-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: var(--space-card) 24px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule-soft); }
.otc-plan:last-child { border-bottom: 0; }
.otc-plan__name { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink2); }
.otc-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; }
.otc-plan__amount { font-family: var(--font-serif); font-size: 46px; line-height: 1; color: var(--ink); }
.otc-plan__was { font-size: 14px; color: var(--ink3-text); text-decoration: line-through; }
.otc-plan__period { margin: 0; font-size: 13px; color: var(--ink2); }
.otc-plan__features { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; border-top: 1px solid var(--rule-soft); font-size: 13px; line-height: 1.45; color: var(--ink2); }
.otc-plan__features li { display: flex; gap: 10px; }
.otc-plan__features li::before { content: "↳"; color: var(--accent-text); }
.otc-plan .ol-btn { align-self: flex-start; margin-top: auto; }
.otc-plan--current { background: var(--ink); color: var(--bg); }
.otc-plan--current .otc-plan__name { color: var(--accent-on-dark); }
.otc-plan--current .otc-plan__amount { color: var(--bg); }
.otc-plan--current .otc-plan__was, .otc-plan--current .otc-plan__period, .otc-plan--current .otc-plan__features { color: var(--text-on-dark); }
.otc-plan--current .otc-plan__features { border-top-color: var(--rule-on-dark); }
.otc-plan--current .otc-plan__features li::before { color: var(--accent-on-dark); }
.otc-plan__until { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; color: var(--link-on-dark); }

/* Filtre par catégorie et pagination */
.otc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--rule-soft); }
.otc-filter { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule-soft); background: transparent; color: var(--ink2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .5px; text-decoration: none; cursor: pointer; }
.otc-filter:hover { border-color: var(--ink2); }
.otc-filter[aria-current="true"], .otc-filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.otc-filter__count { margin-left: 6px; }
.otc-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 11px; }
.otc-pagination a, .otc-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rule-soft); color: var(--ink2); text-decoration: none; letter-spacing: .5px; }
.otc-pagination a:hover { border-color: var(--ink2); color: var(--ink); }
.otc-pagination [aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.otc-pagination [aria-disabled="true"] { color: var(--ink3-text); opacity: var(--opacity-disabled); }

/* Administration : tableau et statistiques */
.otc-table-wrap { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--rule-soft); background: var(--paper); }
.otc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; line-height: 1.45; color: var(--ink); }
.otc-table caption { padding: 16px 20px; text-align: left; font-family: var(--font-serif); font-size: 24px; line-height: 1.1; caption-side: top; }
.otc-table th { padding: 12px 20px; text-align: left; font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink3-text); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); background: var(--bg2); }
.otc-table td { padding: 14px 20px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.otc-table tbody tr:hover { background: var(--bg2); }
.otc-table tbody tr:last-child td { border-bottom: 0; }
.otc-table .is-num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 12px; }
.otc-table__actions { display: flex; gap: 14px; justify-content: flex-end; white-space: nowrap; }
.otc-table__actions a, .otc-table__actions button { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-soft); text-underline-offset: 3px; cursor: pointer; }
.otc-table__actions .is-danger { color: var(--accent-text); text-decoration-color: currentColor; }
.otc-stat { display: grid; gap: 10px; padding: 24px; border: 1px solid var(--rule-soft); background: var(--paper); color: var(--ink); }
.otc-stat__label { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink2); }
.otc-stat__value { margin: 0; font-family: var(--font-serif); font-size: 46px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.otc-stat__legend { margin: 0; font-size: 12px; line-height: 1.45; color: var(--ink2); }
.otc-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

/* Pages d'erreur */
.otc-error { display: grid; gap: 20px; padding: var(--space-section-mobile) var(--space-gutter-mobile); background: var(--surface); color: var(--fg); }
.otc-error__code { margin: 0; font-family: var(--font-serif); font-size: clamp(88px, calc(112 * 100vw / 1440), 112px); line-height: .98; letter-spacing: -2.5px; color: var(--fg); }
.otc-error__code em { font-style: italic; color: var(--fg-accent); }
.otc-error__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 640px) {
  .otc-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otc-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otc-plan { border-right: 1px solid var(--rule-soft); margin: 0 -1px -1px 0; border-bottom: 1px solid var(--rule-soft); }
  .otc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .otc-invite { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .otc-header { padding-left: var(--space-gutter-tablet); padding-right: var(--space-gutter-tablet); }
}
@media (min-width: 1024px) {
  .otc-header { padding: var(--space-header-y) var(--space-gutter); }
  .otc-header .otc-nav, .otc-header .otc-header__search { display: flex; }
  .otc-header .otc-header__account { display: flex; }
  .otc-header .otc-menu-btn { display: none; }
  .otc-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .otc-plans { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .otc-player { grid-template-columns: minmax(0, 1fr) 360px; }
  .otc-player__aside { border-top: 0; border-left: 1px solid var(--rule-soft); }
  .otc-player__info, .otc-player__controls { padding: 0 32px; }
  .otc-error { padding: var(--space-section) var(--space-gutter); }
  .otc-invite { padding: 20px var(--space-gutter); }
}
@media (prefers-reduced-motion: reduce) { .otc-module > summary::after { transition: none; } }
