
.container {
  max-width: 1140px;
}

a {
    text-decoration:none;
    color: var(--color-link);
}

a:not(.btn):hover {
    text-decoration: underline;
}

h1 {
  margin-bottom: 1rem;
}

h2 {
  &.category {
    font-size:1.25rem;
    color:var(--color-brand-purple);
    margin-bottom: 1rem;
    text-transform: none;
    font-weight: 500;
  }
  &.panel {
    text-transform: none;
    color:var(--color-brand-purple);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1rem 0;
  }
}

h3 {
  &.panel {
    text-transform: none;
    color:var(--color-brand-purple);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 1rem 0;
  }
}

h3, h4, h5 {
  color: var(--color-brand-primary);
}

.node__tabs {
  margin-top: 0rem;
}

.node__content {
  display:flex;
  flex-direction: column;
  gap: 3rem;
}

.btn-primary {
  color: var(--color-bg-surface);
  --bs-btn-bg: var(--color-brand-primary);
  --bs-btn-border-color: var(--color-brand-primary);
  --bs-btn-hover-bg: var(--color-brand-primary-dark);
  --bs-btn-hover-border-color: var(--color-brand-primary-dark);
  &:hover {
    background-color: var(--color-brand-primary-dark);
    border-color: var(--color-brand-secondary);
    color: var(--color-bg-surface);
  }
}

.btn-primary-light {
  background: var(--color-brand-secondary);
  color: var(--color-bg-surface);
  text-transform: none;
}

/* icons */

/* Couleurs par type */
.download__icon--xls { color: #1d6f42; }
.download__icon--doc { color: #2b579a; }
.download__icon--ppt { color: #c43e1c; }
.download__icon--pdf { color: #d93025; }

.download__icon--xls:before {
  content: "\e915";
  color: #1d6f42; 
}

.download__icon--pdf:before {
  content: "\e916";
  color: #ff3b1d;
}

.download__icon--powerpont:before {
  content: "\e922";
  color: #d04525;
}

.download__icon--word:before {
  content: "\e917";
  color: #2b5797;
}

.icon-download::before {
  content: "\e918";
  color:var(--color-bg-surface);
  font-size: 1rem;
}

.icon-chevron-right-small::before {
  content: "\e903";
}

.icon-chevron-right-small-double::before {
  content: "\e904";
}

@media (min-width: 768px) {
  .icon-download::before {
    font-size: 1.5rem;
  }

  h3 {
    &.panel {
      margin: 3rem 0 2rem 0;
    }
  }

  .node__tabs {
    margin-top: 0rem;
  }
}

.transcription {
    position:relative;
    display: flex;
    flex-direction: column;
    align-items: end;
    .transcription__toggle {
        color:var(--color-text-heading);
    }
    p {
      color: var(--color-text-body);
    }
}

.transcription__content {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  background: var(--color-bg-surface);
  color: var(--color-text-muted);
  padding: 2.5rem 1rem 2rem 1rem;
  box-shadow: 0.1rem 0.1rem 0.9rem 0.1rem rgba(0,0,0,0.1);
  z-index: 9;
}

/* video */

.video-container {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 16 / 9;
  background: #000; /* évite un flash blanc avant le chargement */
}

/* Le div tarteaucitron, avant et après consentement */
.video-container .youtube_player {
  position: absolute;
  inset: 0;
  inline-size: 100% !important;
  block-size: 100% !important;
}

/* L'iframe générée après consentement */
.video-container iframe {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  border: 0;
}

/* Le placeholder « Autoriser » avant consentement */
.video-container .tac_activate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  inline-size: 100%;
  block-size: 100%;
}

.tac_activate .tac_float .tarteaucitronAllow {
  background-color: #128212;
  display: inline-block;
  color: var(--color-bg-surface);
}