/* ============================================================================
   FMCourse · course.css  (RÉÉCRIT)
   Page détail cours · grille · countdown · profil formateur · contact · about.

   ⚠️ IMPORTANT — ce fichier utilise désormais les tokens RÉELS définis dans
   main.css :  --navy --teal --gold --bg --bg-soft --card --line --text
   --text-soft --radius --radius-sm --pill --shadow --shadow-h --serif --sans
   --danger --success --navy-dark
   (l'ancienne version pointait vers --sp-* / --r-* / --c-* qui n'existent pas,
    d'où l'effondrement des marges, couleurs, rayons et ombres.)

   Échelle d'espacement locale (valeurs littérales, façon main.css) :
   4 · 8 · 12 · 16 · 20 · 24 · 32 · 40 · 48
   ============================================================================ */

/* ===== Grille « cours en relation » (le reste des cartes vient de main.css) === */
.course-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ============================================================================
   1. PAGE DÉTAIL — en-tête (infos + carte d'achat sticky)
   ============================================================================ */
.course-detail { padding: 40px 0 64px; }

.course-header {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-bottom: 48px;
}
.course-header-info .course-category {
    display: block;
    font-family: var(--sans);
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--teal);
    margin-bottom: 10px;
}
.course-header-info h1 { font-size: 34px; line-height: 1.15; margin-bottom: 14px; }
.course-summary { color: var(--text-soft); font-size: 16px; margin-bottom: 18px; }

.course-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.course-meta .rating { color: var(--gold); font-weight: 800; font-size: 15px; }
.course-meta .rating small { color: var(--text-soft); font-weight: 600; }

.type-badge {
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
    padding: 4px 12px; border-radius: var(--pill);
}
.type-live { background: var(--gold); color: var(--navy-dark); }
.type-recorded { background: #eef3f6; color: var(--navy); }

.course-instructor-link { font-size: 14px; color: var(--text-soft); margin-bottom: 8px; }
.course-instructor-link a { color: var(--teal); font-weight: 700; }
.course-instructor-link a:hover { color: var(--navy); text-decoration: underline; }
.course-popularity { color: var(--success); font-weight: 700; font-size: 14px; }

/* --- Carte d'achat --- */
.course-purchase-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-h);
    position: sticky; top: 90px;
    align-self: start;
}
.course-purchase-card .course-image {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: var(--radius-sm); margin-bottom: 18px;
}
.price-box { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.price-box .price-final { font-family: var(--serif); font-size: 30px; color: var(--navy); font-weight: 700; }
.price-original { text-decoration: line-through; color: var(--text-soft); font-size: 14px; }
.discount-badge { background: var(--danger); color: #fff; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 800; }

.course-purchase-card .btn { margin-bottom: 10px; }
.enrolled-info { margin: 6px 0 14px; color: var(--text-soft); font-size: 14px; }
.info-text {
    font-size: 14px; color: var(--text-soft); padding: 14px;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: var(--radius-sm); text-align: center;
}
.btn-favorite.is-favorite { color: var(--gold); }
.btn-favorite.is-animating { animation: favPop .32s ease; }
@keyframes favPop { 0%{transform:scale(1)} 40%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* ============================================================================
   2. VIDÉO D'INTRODUCTION
   ============================================================================ */
.course-intro-video { margin: 0 0 40px; }
.course-intro-video h2 { font-size: 24px; margin-bottom: 16px; }
.video-wrapper {
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============================================================================
   3. ZONE À ONGLETS  (Modules / Description / Certificat)
   ============================================================================ */
.course-tabs {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 48px;
}
.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
    padding: 0 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    appearance: none; background: none; border: none; cursor: pointer;
    font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--text-soft);
    padding: 18px 22px; position: relative; white-space: nowrap; transition: color .18s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn[aria-selected="true"] { color: var(--teal); }
.tab-btn[aria-selected="true"]::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px;
    background: var(--teal); border-radius: 3px 3px 0 0;
}
.tab-panel { padding: 28px; display: none; }
.tab-panel.is-active { display: block; animation: tabFade .25s ease; }
@keyframes tabFade { from{opacity:0; transform:translateY(4px)} to{opacity:1; transform:none} }
.tab-panel h3 { font-size: 19px; margin: 22px 0 12px; }
.tab-panel h3:first-child { margin-top: 0; }
.tab-panel p { color: var(--text); margin-bottom: 12px; }
.tab-panel ul:not(.curriculum):not(.course-includes) { padding-left: 20px; margin-bottom: 14px; color: var(--text); }

/* ----- Onglet MODULES : accordéon chapitres → éléments ----- */
.curriculum { list-style: none; padding: 0; margin: 0; }
.chapter { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: #fff; }
.chapter:last-child { margin-bottom: 0; }

.chapter-head {
    width: 100%; display: flex; align-items: center; gap: 14px;
    background: #fff; border: none; cursor: pointer;
    padding: 18px 20px; text-align: left; font-family: var(--sans); transition: background .15s;
}
.chapter-head:hover { background: var(--bg-soft); }
.chapter-dot {
    flex: none; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid var(--line); background: #fff; transition: .18s;
}
.chapter.is-open .chapter-dot { background: var(--teal); border-color: var(--teal); }
.chapter-titles { flex: 1; min-width: 0; }
.chapter-eyebrow {
    display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px;
    text-transform: uppercase; color: var(--text-soft); margin-bottom: 3px;
}
.chapter-eyebrow::before { content: "❖ "; color: var(--teal); }
.chapter-title { display: block; font-weight: 800; color: var(--navy); font-size: 15px; }
.chapter-chevron { flex: none; color: var(--text-soft); transition: transform .25s; font-size: 18px; line-height: 1; }
.chapter.is-open .chapter-chevron { transform: rotate(180deg); }

.chapter-body { display: none; border-top: 1px solid var(--line); }
.chapter.is-open .chapter-body { display: block; }
.chapter-items { list-style: none; padding: 4px 0; margin: 0; }
.chapter-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 20px 12px 56px; font-size: 14px; color: var(--text);
    border-bottom: 1px solid #f0f3f5;
}
.chapter-item:last-child { border-bottom: none; }
.item-icon {
    flex: none; width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px; color: #fff; background: var(--teal);
}
.item-icon.is-document { background: var(--navy-btn); }
.item-icon svg { width: 16px; height: 16px; display: block; }
.item-name { flex: 1; min-width: 0; font-weight: 600; }
.item-meta { display: flex; gap: 10px; align-items: center; color: var(--text-soft); font-size: 12.5px; }
.item-type-label { font-weight: 700; text-transform: uppercase; letter-spacing: .4px; font-size: 11px; }
.item-preview-badge {
    font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
    color: var(--navy-dark); background: var(--gold); padding: 2px 8px; border-radius: var(--pill);
}

/* ----- Onglet DESCRIPTION : contenu statique + « ce cours comprend » ----- */
.course-static-content { color: var(--text); }
.course-static-content h2, .course-static-content h3 { color: var(--navy); margin: 20px 0 10px; }
.course-static-content ul, .course-static-content ol { padding-left: 20px; margin-bottom: 14px; }
.course-static-content li { margin-bottom: 6px; }

.course-includes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 24px 0 0; }
.course-includes li { padding: 12px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; }
.course-includes li::before { content: "✓ "; color: var(--success); font-weight: 800; }

/* ----- Onglet CERTIFICAT ----- */
.cert-tab { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.cert-tab .cert-copy h3 { margin-top: 0; }
.cert-tab .cert-copy p { color: var(--text-soft); }
.cert-sample {
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-h);
    border: 1px solid var(--line); background: #fff;
}
.cert-sample .photo { width: 100%; aspect-ratio: 1.414/1; min-height: auto; border-radius: 0; }
.cert-sample img { width: 100%; display: block; }
.cert-note { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; }

/* ============================================================================
   4. SLIDER D'APERÇU (captures)
   ============================================================================ */
.course-slider { margin: 0 0 48px; }
.course-slider h2 { font-size: 24px; margin-bottom: 16px; }
.slider { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.slider img {
    width: 300px; height: 180px; object-fit: cover; border-radius: var(--radius);
    flex-shrink: 0; scroll-snap-align: start; box-shadow: var(--shadow); cursor: zoom-in;
}

/* ============================================================================
   5. BLOC FORMATEUR
   ============================================================================ */
.course-instructor-section { margin: 0 0 48px; }
.course-instructor-section h2 { font-size: 24px; margin-bottom: 16px; }
.instructor-card {
    display: flex; gap: 24px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line);
    padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.instructor-avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--bg-soft); }
.instructor-card h3 { margin: 0 0 4px; font-size: 20px; }
.instructor-card h3 a { color: var(--navy); }
.instructor-card h3 a:hover { color: var(--teal); }
.instructor-card .instructor-role { color: var(--text-soft); display: block; margin-bottom: 12px; font-size: 13.5px; font-weight: 700; }
.instructor-card .instructor-bio { color: var(--text); margin-bottom: 14px; }
.instructor-links { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.instructor-links a { font-size: 14px; font-weight: 700; color: var(--teal); }
.instructor-links a:hover { color: var(--navy); text-decoration: underline; }
.wa-link { color: var(--success) !important; }

/* ============================================================================
   6. AVIS + FORMULAIRE
   ============================================================================ */
.course-reviews { margin: 0 0 48px; }
.course-reviews h2 { font-size: 24px; margin-bottom: 6px; }
.reviews-avg { font-family: var(--sans); font-size: 15px; color: var(--gold); font-weight: 800; margin-left: 8px; }
.reviews-avg small { color: var(--text-soft); font-weight: 600; }

.reviews-list { margin-top: 8px; }
.review { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: none; }
.review-avatar {
    flex: none; width: 54px; height: 54px; border-radius: 50%;
    background: #cdd9e3; color: var(--navy); display: grid; place-items: center;
    font-family: var(--serif); font-weight: 700; font-size: 18px;
}
.review-main { flex: 1; min-width: 0; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.review-top strong { color: var(--navy); font-size: 15px; }
.review-top .review-date { color: var(--text-soft); font-size: 13px; font-weight: 600; }
.review-stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.review-stars .empty { color: #d4dbe1; }
.review-main p { color: var(--text); margin: 0; }

/* --- Formulaire d'avis --- */
.review-form-wrap { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 26px; }
.review-form-wrap h3 { margin: 0 0 4px; font-size: 19px; }
.review-form-wrap .form-hint { color: var(--text-soft); font-size: 13px; margin-bottom: 18px; }

.field-label { display: block; font-size: 13.5px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.field-label .req { color: var(--danger); }

/* Étoiles cliquables : 5/5 pré-sélectionné par défaut. */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 18px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 30px; line-height: 1; color: #d4dbe1; cursor: pointer; transition: color .12s; }
.star-input label::before { content: "★"; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.review-form-wrap textarea {
    width: 100%; font-family: var(--sans); font-size: 14px; color: var(--text);
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; resize: vertical; min-height: 130px; margin-bottom: 18px; transition: .15s;
}
.review-form-wrap textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,152,180,.15); }
.review-form-actions { display: flex; justify-content: flex-end; }

.review-gate {
    background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius);
    padding: 22px; color: var(--text-soft); font-size: 14.5px; margin-top: 20px;
}
.review-gate a { color: var(--teal); font-weight: 700; }
.review-gate a:hover { text-decoration: underline; }

/* ============================================================================
   7. COURS EN RELATION
   ============================================================================ */
.course-related { margin: 0 0 16px; }
.course-related h2 { font-size: 24px; margin-bottom: 20px; }

/* ============================================================================
   8. COUNTDOWN  (rempli par courses.js)
   ============================================================================ */
.countdown { background: #eaf3f7; border: 1px solid #cfe2ea; padding: 16px; border-radius: var(--radius-sm); text-align: center; margin: 4px 0 14px; }
.countdown-label { font-size: 13px; margin-bottom: 12px; color: var(--navy); font-weight: 800; }
.countdown-blocks { display: flex; justify-content: center; gap: 8px; }
.countdown-blocks .block { background: #fff; border: 1px solid var(--line); padding: 8px 10px; border-radius: var(--radius-sm); min-width: 54px; }
.countdown-blocks .value { display: block; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--navy); }
.countdown-blocks small { font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .5px; }
.countdown-warning { background: #fff7e6; border-color: #f0dca6; }
.countdown-warning .value { color: #b9842a; }
.countdown-warning-text { font-size: 13px; color: #7a5a12; margin: 12px 0 0; line-height: 1.5; }

/* ============================================================================
   9. PROFIL FORMATEUR (page /instructor/{id})
   ============================================================================ */
.instructor-profile { padding: 40px 0 64px; }
.instructor-header { display: flex; gap: 32px; align-items: center; margin-bottom: 32px; }
.instructor-avatar-lg { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg-soft); }
.instructor-header h1 { margin: 0 0 4px; }
.instructor-function { color: var(--text-soft); margin: 0 0 8px; font-weight: 600; }
.instructor-linkedin { font-size: 14px; color: var(--teal); font-weight: 700; }
.instructor-bio, .instructor-expertises, .instructor-courses { margin: 32px 0; }
.instructor-bio h2, .instructor-expertises h2, .instructor-courses h2 { font-size: 22px; margin-bottom: 14px; }

/* ============================================================================
   10. CONTACT / ABOUT
   ============================================================================ */
.contact-page, .about-page { padding: 40px 0 64px; }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.contact-form, .contact-info { padding: 32px; border-radius: var(--radius); }
.contact-form { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-info { background: var(--bg-soft); border: 1px solid var(--line); }
.contact-info h2 { margin-top: 0; }
.about-content { max-width: 820px; line-height: 1.85; }
.about-content h2 { margin-top: 32px; }
.about-content ul { padding-left: 24px; }

/* ============================================================================
   11. BARRE DE FILTRES (page /courses) + TAGS
   ============================================================================ */
.courses-page { padding: 40px 0 64px; }
.filters-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    background: var(--card); padding: 18px; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 32px;
}
.filters-bar input[type="search"] { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text); }
.filters-bar select { flex: 0 1 auto; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--text); cursor: pointer; }
.filters-bar input[type="search"]:focus, .filters-bar select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(78,152,180,.15); }

.tag-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #eaf3f7; color: var(--navy); padding: 5px 14px; border-radius: var(--pill); font-size: 13px; font-weight: 700; }

/* ============================================================================
   12. RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {
    .course-header { grid-template-columns: 1fr; }
    .course-purchase-card { position: static; order: -1; }
    .cert-tab { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .instructor-header { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
    .course-detail { padding: 24px 0 48px; }
    .course-header-info h1 { font-size: 27px; }
    .tab-btn { padding: 15px 16px; font-size: 14px; }
    .tab-panel { padding: 20px; }
    .instructor-card { flex-direction: column; align-items: center; text-align: center; }
    .instructor-links { justify-content: center; }
    .review { gap: 12px; }
    .review-avatar { width: 44px; height: 44px; font-size: 15px; }
    .review-form-wrap { padding: 20px; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filters-bar select, .filters-bar .btn { width: 100%; }
    .countdown-blocks .block { min-width: 46px; padding: 6px 8px; }
}

/* ============================================================================
   13. SLIDER / GALERIE PRO + LIGHTBOX  (page détail)
   Remplace l'ancien défilement simple. Auto-play, flèches, points, zoom.
   ============================================================================ */
.gallery { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0e2235; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; transition: transform .55s cubic-bezier(.4,0,.2,1); will-change: transform; }
.gallery-slide { flex: 0 0 100%; margin: 0; }
.gallery-slide img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; cursor: zoom-in;
}
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer; z-index: 3;
    background: rgba(255,255,255,.92); color: var(--navy); font-size: 24px; line-height: 1;
    display: grid; place-items: center; box-shadow: var(--shadow); transition: .2s;
}
.gallery-nav:hover { background: #fff; color: var(--teal); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter {
    position: absolute; top: 12px; right: 14px; z-index: 3;
    background: rgba(14,34,53,.72); color: #fff; font-size: 12px; font-weight: 700;
    padding: 4px 10px; border-radius: var(--pill);
}
.gallery-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.gallery-dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; transition: .2s; }
.gallery-dots button.active { background: #fff; width: 26px; border-radius: var(--pill); }

/* ----- Lightbox plein écran (namespacée pour éviter tout conflit) ----- */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center;
    background: rgba(10,20,31,.94); backdrop-filter: blur(3px);
}
.gallery-lightbox.open { display: flex; animation: glbFade .25s ease; }
@keyframes glbFade { from{opacity:0} to{opacity:1} }
.glb-stage { position: relative; max-width: 92vw; max-height: 88vh; overflow: hidden; border-radius: var(--radius); }
.glb-image {
    max-width: 92vw; max-height: 88vh; display: block; object-fit: contain;
    transition: transform .25s ease; transform-origin: center center; cursor: zoom-in; user-select: none;
}
.glb-image.is-zoomed { cursor: grab; transition: none; }
.glb-toolbar { position: absolute; top: 18px; right: 18px; display: flex; gap: 10px; z-index: 2; }
.glb-btn {
    width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.92); color: var(--navy); font-size: 18px;
    display: grid; place-items: center; box-shadow: var(--shadow); transition: .18s;
}
.glb-btn:hover { background: #fff; color: var(--teal); }
.glb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.9); color: var(--navy); font-size: 26px; line-height: 1;
    display: grid; place-items: center; transition: .18s;
}
.glb-nav:hover { background: #fff; }
.glb-nav.prev { left: 18px; }
.glb-nav.next { right: 18px; }
.glb-caption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: #fff; font-size: 13px; font-weight: 600; z-index: 2; }

@media (max-width: 620px) {
    .gallery-nav { width: 38px; height: 38px; font-size: 20px; }
    .gallery-nav.prev { left: 8px; } .gallery-nav.next { right: 8px; }
    .glb-nav { width: 44px; height: 44px; font-size: 22px; }
    .glb-nav.prev { left: 8px; } .glb-nav.next { right: 8px; }
    .glb-toolbar { top: 10px; right: 10px; }
}

/* ===== Média principal dans le hero (vidéo réutilise .video-wrapper) ===== */
.course-hero-media { margin-top: 26px; }
.course-hero-media .hero-poster {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    border-radius: var(--radius); box-shadow: var(--shadow); display: block;
}

/* ===== Icônes SVG dans la pastille ronde des éléments de chapitre (point 2) ===== */
.item-icon svg { width: 16px; height: 16px; display: block; }

/* ===== Carte d'achat : bloc réassurance ===== */
.purchase-includes {
    list-style: none; padding: 14px 0 0; margin: 10px 0 0;
    border-top: 1px solid var(--line); display: grid; gap: 9px;
}
.purchase-includes li { font-size: 13.5px; color: var(--text-soft); display: flex; gap: 9px; align-items: flex-start; }
.purchase-includes li::before { content: "✓"; color: var(--success); font-weight: 800; flex: none; }

/* ===== Correctif badges des cartes (partial course-card) — absents du CSS ===== */
.course-card-media .badge-live,
.course-card-media .badge-type {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 11px; font-weight: 800; letter-spacing: .5px;
    padding: 5px 12px; border-radius: var(--pill); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.course-card-media .badge-live { background: var(--gold); color: var(--navy-dark); display: inline-flex; align-items: center; gap: 6px; }
.course-card-media .badge-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); animation: liveDot 1.4s infinite; }
@keyframes liveDot { 0%{box-shadow:0 0 0 0 rgba(192,57,43,.5)} 70%{box-shadow:0 0 0 6px rgba(192,57,43,0)} 100%{box-shadow:0 0 0 0 rgba(192,57,43,0)} }
.course-card-media .badge-type { background: rgba(255,255,255,.92); color: var(--navy); backdrop-filter: blur(2px); }
.price-discount { color: var(--danger); font-weight: 800; font-size: 12.5px; }