/* ============================================
   Gaming Campus - Formation VR
   Style Guide compliant CSS
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-dark-navy: #32373C;
  --color-white: #FFFFFF;
  --color-deep-black: #1A1A2E;
  --color-anthracite: #2D2D3B;
  --color-neon-cyan: #00D4FF;
  --color-gaming-violet: #7B2FBE;
  --color-gray-medium: #8A8A8A;
  --color-gray-light: #F5F5F5;

  /* Typography */
  --font-primary: 'Montserrat', 'Poppins', 'Outfit', sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --section-padding: 80px;
  --content-max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --transition-fast: 300ms ease-out;
  --transition-medium: 400ms ease-out;

  /* Border radius */
  --radius-pill: 9999px;
  --radius-card: 12px;
  --radius-small: 8px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-dark-navy);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav__container {
  max-width: var(--content-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav__link:hover {
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
}

.nav__link.active {
  background: rgba(0, 212, 255, 0.2);
  color: var(--color-neon-cyan);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Sections --- */
.section {
  padding: var(--section-padding) 2rem;
  scroll-margin-top: var(--nav-height);
}

.section--dark {
  background-color: var(--color-deep-black);
  color: var(--color-white);
}

.section--anthracite {
  background-color: var(--color-anthracite);
  color: var(--color-white);
}

.section--light {
  background-color: var(--color-gray-light);
  color: var(--color-dark-navy);
}

.section--white {
  background-color: var(--color-white);
  color: var(--color-dark-navy);
}

.section__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--color-gray-medium);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.section--dark .section__header p,
.section--anthracite .section__header p {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
  background-color: var(--color-deep-black);
  color: var(--color-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.92), rgba(45, 45, 59, 0.85));
}

.hero__filigrane {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 50%;
  opacity: 0.08;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1.5rem;
}

.hero__separator {
  width: 120px;
  margin: 1.5rem auto;
  opacity: 0.6;
}

.hero__badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.badge--cyan {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
  color: var(--color-neon-cyan);
}

.badge--violet {
  background: rgba(123, 47, 190, 0.15);
  border-color: rgba(123, 47, 190, 0.3);
  color: #b388ff;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-dark-navy);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-neon-cyan);
  color: var(--color-deep-black);
}

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn--secondary:hover {
  border-color: var(--color-neon-cyan);
  color: var(--color-neon-cyan);
}

.btn--cyan {
  background-color: var(--color-neon-cyan);
  color: var(--color-deep-black);
}

.btn--cyan:hover {
  background-color: #33ddff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* --- Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-deep-black);
  border-radius: var(--radius-card);
  padding: 2rem;
  border-top: 3px solid var(--color-neon-cyan);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.15);
}

.card--light {
  background: var(--color-white);
  border-top-color: var(--color-neon-cyan);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card--light:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.card--violet {
  border-top-color: var(--color-gaming-violet);
}

.card--violet:hover {
  box-shadow: 0 12px 40px rgba(123, 47, 190, 0.15);
}

.card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.card__number--violet {
  background: rgba(123, 47, 190, 0.15);
  color: #b388ff;
}

.card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.card__title {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.card--light .card__title {
  color: var(--color-dark-navy);
}

.card__text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.card--light .card__text {
  color: var(--color-gray-medium);
}

.card__topics {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card__topic {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.card--light .card__topic {
  background: var(--color-gray-light);
  color: var(--color-gray-medium);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-neon-cyan);
  transition: var(--transition-fast);
}

.card__link:hover {
  gap: 0.75rem;
}

/* --- Day Page Header --- */
.day-hero {
  padding: calc(var(--nav-height) + 3rem) 2rem 3rem;
  background-color: var(--color-deep-black);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.day-hero__filigrane {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 40%;
  opacity: 0.06;
  pointer-events: none;
}

.day-hero__content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.day-hero__tag {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.day-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.day-hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.day-hero__programme {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.day-hero__programme-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-small);
  border-left: 3px solid var(--color-neon-cyan);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.day-hero__programme-item span {
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  font-size: 0.8rem;
}

/* --- Topic Sections (cours) --- */
.topic {
  padding: var(--section-padding) 2rem;
  scroll-margin-top: var(--nav-height);
}

.topic__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.topic__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.section--dark .topic__header,
.section--anthracite .topic__header {
  border-bottom-color: rgba(0, 212, 255, 0.15);
}

.topic__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.topic__duration {
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-semibold);
  margin-left: auto;
  white-space: nowrap;
}

.section--light .topic__number,
.section--white .topic__number {
  background: rgba(0, 212, 255, 0.1);
}

/* --- Content blocks --- */
.content-block {
  margin-bottom: 2.5rem;
}

.content-block h4 {
  margin-bottom: 1rem;
  color: var(--color-neon-cyan);
}

.section--light .content-block h4,
.section--white .content-block h4 {
  color: var(--color-dark-navy);
}

.content-block ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.content-block ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.content-block ul li strong {
  color: var(--color-neon-cyan);
}

.section--light .content-block ul li strong,
.section--white .content-block ul li strong {
  color: var(--color-dark-navy);
}

/* --- Two column layout --- */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.column {
  padding: 1.5rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.05);
}

.section--light .column,
.section--white .column {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.column h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* --- Tables --- */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-small);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table thead {
  background: var(--color-dark-navy);
  color: var(--color-white);
}

.section--dark table thead,
.section--anthracite table thead {
  background: rgba(255, 255, 255, 0.1);
}

table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.section--dark table td,
.section--anthracite table td {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.section--dark table tbody tr:nth-child(even),
.section--anthracite table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

table td strong {
  font-weight: var(--font-weight-semibold);
}

/* --- Callout boxes --- */
.callout {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-small);
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.callout--info {
  background: rgba(0, 212, 255, 0.08);
  border-left: 4px solid var(--color-neon-cyan);
}

.callout--warning {
  background: rgba(255, 152, 0, 0.08);
  border-left: 4px solid #ff9800;
}

.callout--danger {
  background: rgba(244, 67, 54, 0.08);
  border-left: 4px solid #f44336;
}

.callout--success {
  background: rgba(76, 175, 80, 0.08);
  border-left: 4px solid #4caf50;
}

.callout strong {
  display: block;
  margin-bottom: 0.5rem;
}

.section--light .callout--info,
.section--white .callout--info {
  background: rgba(0, 212, 255, 0.06);
}

/* --- Key Points Grid --- */
.keypoints {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.keypoint {
  padding: 1.25rem;
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--color-neon-cyan);
}

.section--light .keypoint,
.section--white .keypoint {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.keypoint strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-neon-cyan);
}

.section--light .keypoint strong,
.section--white .keypoint strong {
  color: var(--color-dark-navy);
}

/* --- Code blocks --- */
.code-block {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-small);
  padding: 1.25rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.section--light .code-block,
.section--white .code-block {
  background: var(--color-deep-black);
  color: rgba(255, 255, 255, 0.9);
}

.code-block .comment {
  color: var(--color-gray-medium);
}

.code-block .keyword {
  color: var(--color-neon-cyan);
}

/* --- Flow diagrams (text-based) --- */
.flow-diagram {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-small);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  white-space: pre-wrap;
}

.section--light .flow-diagram,
.section--white .flow-diagram {
  background: var(--color-deep-black);
  color: rgba(255, 255, 255, 0.85);
}

/* --- Image containers --- */
.img-container {
  margin: 1.5rem 0;
  border-radius: var(--radius-small);
  overflow: hidden;
  position: relative;
}

.img-container img {
  width: 100%;
  height: auto;
  display: block;
}

.img-container--bordered {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.section--light .img-container--bordered {
  border-color: rgba(0, 0, 0, 0.1);
}

.img-caption {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  text-align: center;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.05);
}

.section--dark .img-caption {
  background: rgba(255, 255, 255, 0.03);
}

/* --- Image gallery --- */
.img-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.img-gallery__item {
  border-radius: var(--radius-small);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.section--light .img-gallery__item {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.img-gallery__item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.img-gallery__label {
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
}

/* --- Timeline --- */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-neon-cyan), var(--color-gaming-violet));
}

.timeline__item {
  position: relative;
  padding: 1rem 0 1.5rem 1.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 1.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-neon-cyan);
  border: 2px solid var(--color-deep-black);
}

.section--light .timeline__item::before {
  border-color: var(--color-gray-light);
}

.timeline__year {
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-neon-cyan);
  margin-bottom: 0.25rem;
}

.timeline__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.section--light .timeline__text {
  color: var(--color-dark-navy);
}

/* --- Recap Section --- */
.recap {
  margin-top: 2rem;
  padding: 2rem;
  border-radius: var(--radius-card);
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.recap h3 {
  margin-bottom: 1rem;
  color: var(--color-neon-cyan);
}

.recap table {
  font-size: 0.9rem;
}

/* --- Evaluation grid --- */
.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.eval-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.eval-card__percent {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-neon-cyan);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.eval-card__label {
  font-size: 0.9rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark-navy);
  margin-bottom: 0.5rem;
}

.eval-card__desc {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-deep-black);
  color: var(--color-white);
  padding: 3rem 2rem 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer__container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__schools {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer__schools img {
  height: 28px;
  width: auto;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.footer__schools img:hover {
  opacity: 1;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--color-gray-medium);
  text-align: right;
}

.footer__separator {
  width: 100%;
  margin-bottom: 2rem;
  opacity: 0.3;
}

/* --- Scroll animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for cards */
.cards-grid [data-animate]:nth-child(1) { transition-delay: 0ms; }
.cards-grid [data-animate]:nth-child(2) { transition-delay: 100ms; }
.cards-grid [data-animate]:nth-child(3) { transition-delay: 200ms; }
.cards-grid [data-animate]:nth-child(4) { transition-delay: 300ms; }

/* --- Accordion --- */
.accordion__item {
  margin-bottom: 0.5rem;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.section--light .accordion__item,
.section--white .accordion__item {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.accordion__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  transition: var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: var(--font-primary);
}

.accordion__header:hover {
  background: rgba(0, 212, 255, 0.05);
}

.accordion__chevron {
  margin-left: auto;
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.accordion__chevron svg {
  width: 100%;
  height: 100%;
}

.accordion__item.is-open .accordion__chevron {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.accordion__item.is-open .accordion__content {
  max-height: 5000px;
}

.accordion__body {
  padding: 0 1.25rem 1.5rem;
}

/* --- Objectives list --- */
.objectives {
  counter-reset: objective;
}

.objective {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.objective__number {
  counter-increment: objective;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.12);
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.objective__text {
  padding-top: 0.4rem;
  font-size: 0.95rem;
}

/* --- Feature cards (projet) --- */
.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-neon-cyan);
}

.feature-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
}

.feature-card__points {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-neon-cyan);
  font-size: 0.8rem;
  font-weight: var(--font-weight-bold);
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--color-gray-medium);
}

/* --- Separator --- */
.separator {
  display: block;
  margin: 2rem auto;
  opacity: 0.4;
  max-width: 200px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 64px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-deep-black);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 1rem) 2rem 2rem;
    transition: right var(--transition-fast);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__link {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: 80vh;
  }

  .hero__badges {
    flex-direction: column;
    align-items: center;
  }

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

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

  .headset-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .day-hero__programme {
    flex-direction: column;
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
  }

  .footer__tagline {
    text-align: center;
  }

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

@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
  }

  body {
    font-size: 15px;
  }

  .hero__content h1 {
    font-size: 1.75rem;
  }

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

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

  .img-gallery {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .cards-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   SLIDE MODE
   ============================================ */

body.slide-mode {
  overflow: hidden;
  height: 100vh;
}

body.slide-mode > section,
body.slide-mode > footer {
  display: none !important;
}

body.slide-mode > .nav {
  display: block !important;
}

/* Slide deck overlay */
.slide-deck {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-deep-black);
}

/* Individual slide */
.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2.5rem 3rem 5rem;
}

.slide.active {
  display: flex;
}

/* Gray box placeholder for illustrations */
.illustration-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #2a2a3e;
  border: 2px dashed #555;
  border-radius: 8px;
  color: #999;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
}

.slide--light .illustration-placeholder {
  background: #ddd;
  border-color: #bbb;
  color: #666;
}

/* --- 3-column layout --- */
.columns--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Dark card (for light section columns) --- */
.card--dark {
  background: var(--color-deep-black);
  color: var(--color-white);
  border-radius: var(--radius-small);
  padding: 1.5rem;
  border-top: 3px solid var(--color-neon-cyan);
}

.card--dark h4 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.card--dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* --- Headset gallery --- */
.headset-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.headset-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-small);
  overflow: hidden;
  text-align: center;
}

.slide--light .headset-card {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.headset-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.headset-card h4 {
  padding: 0.75rem 0.75rem 0.25rem;
  font-size: 1rem;
  color: var(--color-neon-cyan);
}

.headset-card p {
  padding: 0 0.75rem 0.75rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.slide--light .headset-card p {
  color: var(--color-gray-medium);
}

/* --- Gauge grid (locomotion comparison) --- */
.gauge-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 1.5rem 0;
}

.gauge-row h4 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.gauge-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gauge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gauge-label {
  min-width: 140px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.slide--light .gauge-label {
  color: var(--color-dark-navy);
}

.gauge-bar {
  flex: 1;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.slide--light .gauge-bar {
  background: rgba(0, 0, 0, 0.08);
}

.gauge-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}

.gauge-fill--green { background: #4CAF50; }
.gauge-fill--cyan { background: var(--color-neon-cyan); }
.gauge-fill--orange { background: #ff9800; }
.gauge-fill--red { background: #f44336; }

/* Slide backgrounds */
.slide--hero {
  background: linear-gradient(180deg, #1A1A2E 0%, #12122a 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.slide--hero .day-hero__filigrane {
  position: absolute;
  bottom: -10%;
  right: -5%;
  width: 40%;
  opacity: 0.08;
  pointer-events: none;
}

.slide--dark {
  background: var(--color-deep-black);
  color: var(--color-white);
}

.slide--light {
  background: var(--color-gray-light);
  color: #1a1a1a;
}

.slide--anthracite {
  background: var(--color-anthracite);
  color: var(--color-white);
}

/* Heading colors in slides */
.slide--dark h2, .slide--dark h3, .slide--dark h4, .slide--dark strong,
.slide--hero h2, .slide--hero h3, .slide--hero h4, .slide--hero strong,
.slide--anthracite h2, .slide--anthracite h3, .slide--anthracite h4, .slide--anthracite strong {
  color: var(--color-white);
}

.slide--light h2, .slide--light h3, .slide--light h4 {
  color: var(--color-deep-black);
}

.slide--light strong {
  color: var(--color-deep-black);
}

.slide--light .callout {
  border-left-color: var(--color-neon-cyan);
  background: rgba(0, 212, 255, 0.06);
}

.slide--light .callout strong {
  color: var(--color-dark-navy);
}

/* Slide inner wrapper */
.slide__inner {
  max-width: var(--content-max-width);
  width: 100%;
}

/* Override scroll animations in slide mode — show everything immediately */
.slide [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

/* Topic title card (section header slide) — always dark for impact */
.slide--title-card {
  text-align: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A1A2E 0%, #12122a 60%, #1a1040 100%) !important;
  color: var(--color-white) !important;
}

.slide--title-card .topic__header {
  opacity: 1;
  transform: none;
  border: none;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.slide--title-card .topic__number {
  width: 90px;
  height: 90px;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
}

.slide--title-card h2 {
  font-size: 2.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--color-white) !important;
}

.slide--title-card .topic__subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
  margin-top: 0.5rem;
  color: var(--color-white);
}

.slide--title-card .topic__duration {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-left: 0;
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
}

/* Day hero slide */
.slide--hero .slide__inner {
  max-width: 900px;
}

.slide--hero .day-hero__tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.15);
  color: var(--color-neon-cyan);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.slide--hero .day-hero__title {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.slide--hero .day-hero__desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 700px;
  margin-bottom: 2rem;
}

.slide--hero .day-hero__programme {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.slide--hero .day-hero__programme-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.slide--hero .day-hero__programme-item span {
  color: var(--color-neon-cyan);
  font-weight: var(--font-weight-bold);
  margin-right: 0.4rem;
}

/* Callout colors in dark slides */
.slide--dark .callout--info,
.slide--anthracite .callout--info {
  background: rgba(0, 212, 255, 0.08);
  border-left-color: var(--color-neon-cyan);
}

.slide--dark .callout--warning,
.slide--anthracite .callout--warning {
  background: rgba(255, 152, 0, 0.08);
}

.slide--dark .callout--danger,
.slide--anthracite .callout--danger {
  background: rgba(244, 67, 54, 0.08);
}

.slide--dark .callout--success,
.slide--anthracite .callout--success {
  background: rgba(76, 175, 80, 0.08);
}

/* Tables in dark slides */
.slide--dark table th,
.slide--anthracite table th {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
}

.slide--dark table td,
.slide--anthracite table td {
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.slide--dark table tr:nth-child(even) td,
.slide--anthracite table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

/* Code blocks in slides */
.slide--dark .code-block,
.slide--anthracite .code-block {
  background: rgba(0, 0, 0, 0.3);
}

.slide--light .code-block {
  background: var(--color-deep-black);
  color: var(--color-white);
}

/* Columns in slides */
.slide--dark .column,
.slide--anthracite .column {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Keypoints in dark slides */
.slide--dark .keypoint,
.slide--anthracite .keypoint {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Navigation controls — auto-hide, visible on hover at bottom */
.slide-controls {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + 1.5rem));
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 200;
  background: rgba(26, 26, 46, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.slide-controls.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Hover zone at the bottom of the screen */
.slide-controls-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 199;
}

.slide-controls__btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1;
}

.slide-controls__btn:hover:not(:disabled) {
  background: var(--color-neon-cyan);
  border-color: var(--color-neon-cyan);
  color: var(--color-deep-black);
}

.slide-controls__btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.slide-controls__counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: var(--font-weight-semibold);
  min-width: 50px;
  text-align: center;
  font-family: var(--font-primary);
}

.slide-controls__progress {
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.slide-controls__bar {
  height: 100%;
  background: var(--color-neon-cyan);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Slide topic indicator */
.slide-controls__topic {
  color: var(--color-neon-cyan);
  font-size: 0.75rem;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Click zones for prev/next */
.slide-click-zone {
  position: fixed;
  top: var(--nav-height);
  bottom: 60px;
  width: 10%;
  z-index: 60;
  cursor: pointer;
}

.slide-click-zone--prev { left: 0; }
.slide-click-zone--next { right: 0; }

/* Responsive slide mode */
@media (max-width: 768px) {
  .slide {
    padding: 1.5rem 1.5rem 4.5rem;
  }

  .slide--hero .day-hero__title {
    font-size: 2rem;
  }

  .slide--title-card h2 {
    font-size: 1.8rem;
  }

  .slide--title-card .topic__number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .slide-controls {
    padding: 0.4rem 0.8rem;
    gap: 0.6rem;
  }

  .slide-controls__topic {
    display: none;
  }

  .slide-click-zone {
    width: 15%;
  }
}
