:root {
  --hauteur-menu: 40px;
  --text: #172033;
  --muted: #667085;
  --border: rgba(15, 23, 42, 0.10);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-strong: #ffffff;
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-hover: 0 16px 34px rgba(15, 23, 42, 0.09);
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.home-page {
  margin: 0;
  color: var(--text);
  background:
  linear-gradient(90deg, rgba(0, 87, 183, 0.10), rgba(255, 215, 0, 0.06)),
  #f6f8fc;
  line-height: 1.5;
}

a {
  color: inherit;
}

/* ===== MENU INJECTÉ ===== */
/* ===== MENU INJECTÉ ===== */
nav {
  width: 100%;
  max-width: none;
  font-size: 16px;
  position: relative;
  margin: 0;
  transform: none;
  z-index: 10;
  background-color: #ffffff;
  border-top: 1px solid #d8dee8;
  border-bottom: 1px solid #d8dee8;
}

nav > ul {
  display: flex;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: var(--hauteur-menu);
  list-style-type: none;
  overflow: visible;
}

nav > ul > li {
  background-color: transparent;
  flex-grow: 1;
  white-space: nowrap;
  position: relative;
  height: 100%;
  flex: 1;
}

nav > ul > li > a {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: #111827;
}

nav > ul > li:hover > a {
  color: #2169ec;
}

.menu-deroulant > a::after {
  content: '❯';
  font-size: 14px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.2s linear;
}

.menu-deroulant:hover > a::after {
  transform: rotate(90deg);
}

.sous-menu {
  margin-top: var(--hauteur-menu);
  width: 100%;
  text-align: left;
  overflow: hidden;
  max-height: 0;
  border-radius: 6px;
  background-color: #ffffff;
  transition: max-height 0.45s ease;
}

.menu-deroulant:hover > .sous-menu {
  max-height: 50em;
  border-top: 3px solid #2169ec;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.sous-menu > li:hover {
  background-color: rgba(33, 105, 236, 0.08);
}

.sous-menu > li > a {
  align-items: center;
  display: flex;
  height: 42px;
  padding-left: 20px;
  width: 100%;
  color: #111827;
  text-decoration: none;
}

.sous-menu > li:hover > a {
  color: #2169ec;
}

/* ===== CORPS DE PAGE ===== */
.home-shell {
  width: min(1200px, 92%);
  margin: 24px auto 56px;
  display: grid;
  gap: 22px;
}

.intro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
}


/* ===== GRANDE CARTE DE PRÉSENTATION ===== */
.hero-card {
  padding: 15px 20px 20px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  align-items: center;
}

.hero-text-col h2 {
  margin-bottom: 15px;
  margin-top: -30px;
}

.hero-lead {
  margin-bottom: 14px;
}

.hero-list {
  padding-left: 20px;
  margin-bottom: 18px;
}

.hero-list li + li {
  margin-top: 8px;
}

.hero-links {
  margin-bottom: 14px;
}

.hero-links a {
  text-decoration: underline;
}

.update-note {
  font-size: 14px;
  color: #7a8493;
}

.hero-carousel-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.carousel-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #c8d2e1;
}

.dot.active {
  background: #2169ec;
}



/* ===== DERNIÈRES VIDÉOS ===== */
.latest-card {
  padding: 10px 22px 22px 22px;
}

.latest-card h2 {
  margin-bottom: 6px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: var(--card-strong);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  padding: 14px;
  gap: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center center;
}

.video-card:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.video-thumb-frame {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.video-thumb {
  display: block;
  width: 100%;
  height: auto;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1f4ea3;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .intro-row {
    grid-template-columns: 1fr;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }

  .latest-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-links {
    gap: 14px;
    flex-wrap: wrap;
    margin-right: 0;
  }

  .site-logo {
    width: 180px;
    margin-left: 0;
  }

  nav > ul {
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: auto;
  }

  nav > ul > li {
    text-align: center;
    padding: 10px 0;
  }

  .sous-menu {
    position: static;
    margin-top: 0;
    width: 100%;
  }

  .hero-card,
  .latest-card {
    padding: 15px;
  }

  .carousel-image {
    height: 240px;
  }
}
