/* ============================================================
   video/style.css — Immersio Learning · Vidéos pédagogiques
   Palette : navy #1A2B5F · blue #2D6BE4 · gold #F0A500
   Typographie : Montserrat (titres) · Open Sans (corps)
   Version : Juin 2026 — post-audit
   ============================================================ */

:root {
  --il-navy:     #1A2B5F;
  --il-blue:     #2D6BE4;
  --il-gold:     #F0A500;
  --il-dark:     #1a1a2e;
  --il-light:    #F4F6FB;
  --il-text:     #1E1E2E;
  --il-muted:    #5A6478;
  --card-radius: 12px;
  --transition:  .28s cubic-bezier(.2,.9,.3,1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', system-ui, -apple-system, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--il-text);
  background: var(--il-light);
  -webkit-font-smoothing: antialiased;
}

/* ── Typographie ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--il-navy);
}
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Navbar ──────────────────────────────────────────────── */
#mainNav {
  background: var(--il-navy) !important;
  padding-top: .65rem;
  padding-bottom: .65rem;
  transition: padding var(--transition), box-shadow var(--transition);
}
#mainNav.shrink {
  padding-top: .2rem;
  padding-bottom: .2rem;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
#mainNav .navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}
#mainNav .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.82) !important;
  padding: .35rem .7rem;
  transition: color .2s;
}
#mainNav .nav-link:hover { color: var(--il-gold) !important; }

/* ── Gold divider & section heading ─────────────────────── */
.gold-divider {
  width: 48px;
  height: 4px;
  background: var(--il-gold);
  border-radius: 2px;
  margin: .5rem auto 1.75rem;
}
.section-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--il-navy);
  margin-bottom: .25rem;
}
.section-cat-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  color: var(--il-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.section-cat-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: rgba(0,0,0,.06);
  border-radius: 1px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #fff;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(26,43,95,.10);
}
.card-img-top {
  height: 180px;
  object-fit: cover;
}
.card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--il-navy);
  line-height: 1.35;
}
.card-text {
  font-size: .875rem;
  color: var(--il-muted);
  line-height: 1.6;
}
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { color: inherit; }

/* ── Lecteur vidéo ───────────────────────────────────────── */
.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(26,43,95,.15);
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* Badge date sous la vidéo */
.video-date {
  font-size: .78rem;
  color: var(--il-muted);
  text-align: center;
  margin-top: .6rem;
  font-style: italic;
}

/* ── Carte auteur ────────────────────────────────────────── */
.author-card {
  background: #fff;
  border-radius: var(--card-radius);
  border: none;
  box-shadow: 0 4px 24px rgba(26,43,95,.08);
  padding: 1.75rem;
  position: sticky;
  top: 82px;
}
.author-card h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--il-navy);
  margin-bottom: .6rem;
}
.author-card p {
  font-size: .875rem;
  color: var(--il-muted);
  line-height: 1.6;
}
.author-card .btn {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  border-radius: 8px;
  padding: .55rem 1rem;
  transition: all .2s;
}
.author-card .btn-primary {
  background: var(--il-blue);
  border-color: var(--il-blue);
}
.author-card .btn-primary:hover {
  background: #1d58cc;
  transform: translateY(-1px);
}
.author-card .btn-outline-primary {
  color: var(--il-blue);
  border-color: var(--il-blue);
}
.author-card .btn-outline-primary:hover {
  background: var(--il-blue);
  color: #fff;
}
.author-devise {
  font-style: italic;
  font-size: .78rem;
  color: var(--il-gold);
  border-top: 1px solid var(--il-light);
  padding-top: .75rem;
  margin-top: .75rem;
}

/* ── Scroll reveal ───────────────────────────────────────── */
.slide-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.slide-up.visible { opacity: 1; transform: translateY(0); }

/* ── Footer ──────────────────────────────────────────────── */
footer {
  background: var(--il-dark);
  font-size: .88rem;
  color: rgba(255,255,255,.72);
}
footer a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--il-gold); }
footer .footer-devise { font-size: .78rem; color: var(--il-gold); font-style: italic; }
footer .bi { font-size: 1.25rem; transition: color .2s; }
footer a:hover .bi { color: var(--il-gold); }

/* ── Accessibilité ───────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--il-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .author-card { position: static; margin-top: 2rem; }
}
@media (max-width: 767px) {
  .card-img-top { height: 150px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
