*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #0079bf;
    --navy2: #0489d6;
    --gold: #f79536;
    --gold2: #f9ab5f;
    --bg: #F4F6FA;
    --bg2: #EAECF2;
    --white: #fff;
    --text: #111827;
    --text2: #4B5563;
    --text3: #9CA3AF;
    --border: #E5E7EB;
    --green: #059669;
    --green-bg: #ECFDF5;
    --blue: #3467e7;
    --blue-bg: #ecf0fd;
    --purple: #7C3AED;
    --purple-bg: #F5F3FF;
    --r: 12px;
    --shadow: 0 2px 12px rgba(15, 39, 68, .08);
    --shadow-lg: 0 8px 32px rgba(15, 39, 68, .14);
    --t: .18s cubic-bezier(.4, 0, .2, 1);
}

html, body {
    /* overflow-x: clip = empêche le scroll horizontal SANS créer de scrolling
       container, contrairement à overflow-x: hidden. Indispensable pour que
       position: sticky fonctionne (notamment sur .sticky-card-wrapper). */
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
}

/* Footer accordion chevron */
.footer-chevron {
  display: inline-block;
  transition: transform .22s ease;
  transform: rotate(180deg);
}
footer h5.small,
footer button.small[data-bs-toggle] {
  font-size: 16px;
}
footer ul a.text-white {
  color: rgba(255, 255, 255, .7) !important;
  transition: color .15s;
}
footer ul a.text-white:hover {
  color: #fff !important;
}
.footer-chevron.open {
  transform: rotate(0deg);
}

.nc-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #DC2626;
    box-shadow: 0 1px 3px rgba(220,38,38,.4);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}
/* ─── Barre de recherche unifiée (catalogue / formation / cours) ─────────────
   Markup attendu :
   <div class="sb-search-wrap position-relative">
     <svg class="sb-search-icon">…</svg>
     <input class="sb-search-input" …>
     <button class="sb-search-clear">✕</button>
   </div>
   Le bouton "effacer" n'apparaît que si le conteneur porte la classe .has-value. */
.sb-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.sb-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text3);
    pointer-events: none;
    transition: color .15s;
}
.sb-search-input {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 10px;
    padding: 9px 34px 9px 36px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    line-height: 1.3;
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.sb-search-input::placeholder { color: var(--text3); }
.sb-search-input:focus {
    background: var(--white);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 103, 231, .15);
}
.sb-search-input::-webkit-search-cancel-button { display: none; }
.sb-search-wrap:focus-within .sb-search-icon { color: var(--blue); }
.sb-search-clear {
    position: absolute;
    right: 8px;
    border: none;
    background: var(--border);
    color: var(--text2);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.sb-search-clear:hover { background: var(--text3); color: #fff; }
.sb-search-wrap.has-value .sb-search-clear { display: flex; }
.sb-search-hidden { display: none !important; }
.sb-search-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 12px;
    color: var(--text3);
}

/* Dark mode de la barre de recherche unifiée */
html.dark-mode .sb-search-input {
    background-color: var(--white) !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
html.dark-mode .sb-search-input::placeholder { color: var(--text3) !important; }

/* Sous-rubriques de vidéos (page Parcours + panneau du lecteur) — voir GASections (lms.js) */
.video-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 16px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}
.video-section-header:hover { background: var(--bg2); }
.video-section-arrow { font-size: 9px; color: var(--text3); transition: transform .2s; transform: rotate(180deg); }
.video-section-header.collapsed .video-section-arrow { transform: none; }
