/* **** VARIABLES **** */
:root {
  --plyr-color-main: #ff5e1f;
}

.btn {
  --bs-btn-border-radius: 90px;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: 0.6rem;
  --bs-btn-font-weight: 500;
}

.row {
  --bs-gutter-y: 1.5rem;
}

/* **** FONTES **** */
.roboto-regular, body {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium, strong {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.roboto-bold, h4, .extraits h3, h3, h2 {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.roboto-regular-italic, em {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic, strong em {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic, h4 em, .extraits h3 em, h3 em, h2 em {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* **** NORMALIZATION **** */
body {
  background-color: #fff;
  color: #383d47;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container-fluid {
  max-width: 1130px;
}

ul,
ol {
  padding-left: 1.15em;
}
ul li:not(:last-child),
ol li:not(:last-child) {
  margin-bottom: 1.25rem;
}

ul li {
  list-style-image: var(--list-marker);
  padding-left: 1rem;
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

h2 {
  font-size: 1.5rem;
  text-align: center;
}
h3 {
  font-size: 1.25rem;
  text-align: center;
}
h4, .extraits h3 {
  font-size: 1.125rem;
}
.badge {
  background-color: var(--badge-bg-color);
  color: var(--badge-color);
}
.badge__livre1 {
  background-color: var(--badge-livre1-bg-color);
  color: var(--badge-livre1-color);
}
.badge__livre2 {
  background-color: var(--badge-livre2-bg-color);
  color: var(--badge-livre2-color);
}
.badge__new {
  background-color: var(--badge-new-bg-color);
  color: var(--badge-new-color);
  border-radius: 1rem;
}

/* **** NAVBAR **** */
.navbar {
  background-color: #fff;
  box-shadow: 0 4px 0 rgba(5, 29, 129, 0.1);
}

/* **** HEADER **** */
.header {
  background-color: #f2f4fa;
  background-image: url(../img/custom/header-bg.png);
  background-size: auto 50%;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 0px 0 60px;
}
@media all and (min-width: 768px) {
  .header {
    background-size: auto 62.5%;
  }
}
@media all and (min-width: 1200px) {
  .header {
    background-size: 100% auto;
  }
}
.header__logo {
  margin: 40px auto;
  max-width: 100%;
  width: var(--logo-width-mobile);
}
@media all and (min-width: 992px) {
  .header__logo {
    width: var(--logo-width-desktop);
  }
}
.header__double {
  padding: 0px 0 95px;
}
@media all and (min-width: 768px) {
  .header__double .logo-container {
    display: flex;
  }
}
.header__double .logo-container .header__logo {
  margin: 40px auto 0;
  width: 100%;
}
.header__double .logo-container .header__logo--desktop {
  display: none;
}
@media all and (min-width: 576px) {
  .header__double .logo-container .header__logo {
    width: 80%;
  }
}
@media all and (min-width: 768px) {
  .header__double .logo-container .header__logo {
    max-width: 50%;
    width: 50%;
  }
  .header__double .logo-container .header__logo--mobile {
    display: none;
  }
  .header__double .logo-container .header__logo--desktop {
    display: block;
  }
}
.header__box {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 0 rgba(5, 29, 129, 0.1);
  padding: 30px;
}
.header__box h2 {
  margin-bottom: 30px;
}
.header__subsection {
  border-radius: 20px;
  padding: 30px;
  height: 100%;
}
.header__subsection h3 {
  margin-bottom: 1.5rem;
}
.header__subsection--livre1 {
  background-color: var(--header-livre1-bg-color);
}
.header__subsection--livre1 h3 {
  color: var(--header-livre1-title-color);
}
.header__subsection--livre1 ul li {
  list-style-image: var(--header-livre1-marker);
}
.header__subsection--livre2 {
  background-color: var(--header-livre2-bg-color);
}
.header__subsection--livre2 h3 {
  color: var(--header-livre2-title-color);
}
.header__subsection--livre2 ul li {
  list-style-image: var(--header-livre2-marker);
}

/* **** TABS **** */
.nav-pills {
  --bs-nav-pills-border-radius: 35px;
  margin-top: -35px;
}
.nav-pills .nav-item {
  list-style: none;
  padding: 0;
  flex: 100% 0 0;
}
@media all and (min-width: 576px) {
  .nav-pills .nav-item {
    flex: 1 1 auto;
  }
}
.nav-pills .nav-item .nav-link {
  background-color: #fff;
  border: 1px solid #d0d7ea;
  box-shadow: 0 4px 0 rgba(5, 29, 129, 0.1);
  color: #383d47;
  height: 70px;
  min-width: 120px;
  transition: none;
}
@media all and (min-width: 576px) {
  .nav-pills .nav-item .nav-link {
    border: 0;
  }
}
.nav-pills .nav-item .nav-link img {
  margin-left: 0.25rem;
}
.nav-pills .nav-item .nav-link .nav-link-logo--hover {
  display: none;
}
.nav-pills .nav-item .nav-link .nav-link-logo--active {
  display: none;
}
.nav-pills .nav-item .nav-link:hover:not(.active) .nav-link-logo {
  display: none;
}
.nav-pills .nav-item .nav-link:hover:not(.active) .nav-link-logo--hover {
  display: inline-block;
}
.nav-pills .nav-item .nav-link:hover:not(.active) .nav-link-logo--active {
  display: none;
}
.nav-pills .nav-item .nav-link.active .nav-link-logo {
  display: none;
}
.nav-pills .nav-item .nav-link.active .nav-link-logo--hover {
  display: none;
}
.nav-pills .nav-item .nav-link.active .nav-link-logo--active {
  display: inline-block;
}
@media all and (min-width: 576px) {
  .nav-pills .nav-item:first-child .nav-link {
    border-radius: 0;
    border-top-left-radius: 35px;
    border-bottom-left-radius: 35px;
  }
}
.nav-pills .nav-item:first-child .nav-link:hover:not(.active) {
  color: var(--livre1-tab-active-bg-color);
}
.nav-pills .nav-item:first-child .nav-link.active {
  background-color: var(--livre1-tab-active-bg-color);
  border-color: var(--livre1-tab-active-bg-color);
  box-shadow: 0 4px 0 var(--livre1-tab-shadow-rgba);
  color: var(--livre1-tab-active-color);
}
@media all and (min-width: 576px) {
  .nav-pills .nav-item:last-child .nav-link {
    border-radius: 0;
    border-top-right-radius: 35px;
    border-bottom-right-radius: 35px;
  }
}
.nav-pills .nav-item:last-child .nav-link:hover:not(.active) {
  color: var(--livre2-tab-active-bg-color);
}
.nav-pills .nav-item:last-child .nav-link.active {
  background-color: var(--livre2-tab-active-bg-color);
  border-color: var(--livre2-tab-active-bg-color);
  box-shadow: 0 4px 0 var(--livre2-tab-shadow-rgba);
  color: var(--livre2-tab-active-color);
}

/* **** SECTIONS **** */
section {
  padding-top: 50px;
  padding-bottom: 50px;
}

/* **** EXTRAITS **** */
.extraits h2 {
  margin-bottom: 45px;
}
.extraits__item {
  flex: 260px 0 1;
}
.extraits__item figcaption {
  font-weight: 500;
  padding-top: 0.5rem;
}
.extraits__item a {
  transition: all ease-in-out 0.15s;
}
.extraits__item a:hover, .extraits__item a:active {
  opacity: 0.6;
}
.extraits__subsection {
  background-color: #f2f4fa;
  border-radius: 5px;
  height: 100%;
  padding: 30px;
}
.extraits__img {
  flex: calc(220px + 0.75rem) 0 1;
  margin-bottom: 1rem;
}
@media all and (min-width: 576px) {
  .extraits__img {
    flex: calc(220px + 1.5rem) 0 1;
    padding-right: 1.5rem;
    margin-bottom: 0;
  }
}
@media all and (min-width: 768px) {
  .extraits__img {
    flex: 220px 0 1;
    margin-bottom: 1rem;
  }
}
@media all and (min-width: 992px) {
  .extraits__img {
    flex: calc(180px + 1.5rem) 0 1;
    margin-bottom: 0;
  }
}
@media all and (min-width: 1200px) {
  .extraits__img {
    flex: calc(220px + 1.5rem) 0 1;
  }
}
.extraits h3 {
  margin-bottom: 1rem;
  text-align: left;
}
.extraits ul {
  padding-left: 0;
}
.extraits ul li {
  list-style: none;
  background-image: url(../img/base/list-marker-pdf.svg);
  background-position: top left;
  background-repeat: no-repeat;
  padding-left: calc(18px + 0.5rem);
}
.extraits ul li::marker {
  margin-top: 2rem;
}
.extraits ul li:not(:last-child) {
  margin-bottom: 0.75rem;
}
.extraits ul li a {
  color: #383d47;
  text-decoration: none;
}
.extraits ul li a:hover {
  text-decoration: underline;
  text-underline-offset: 0.125em;
}
.extraits + .essai {
  padding-top: 20px;
}

/* **** ESSAI GRATUIT **** */
.essai__box {
  background-color: #ffe44e;
  background-image: url(../img/base/extrait-left.svg), url(../img/base/extrait-right.svg);
  background-position: 1rem 1rem, calc(100% - 1rem) 1rem;
  background-repeat: no-repeat;
  border-radius: 10px;
  padding: 40px;
  text-align: center;
}
.essai .btn {
  background-color: #ff7b29;
  background-image: url(../img/base/extrait-btn.svg);
  background-position: calc(100% - 1.5rem) center;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  border: 0;
  color: #fff;
  padding-right: calc(2.25rem + 14px);
}
.essai .btn:hover, .essai .btn:active {
  background-color: #f06f1f;
}
.essai .btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 123, 41, 0.5);
}
.essai + .contenus {
  padding-top: 20px;
}

/* **** CONTENUS **** */
.contenus {
  text-align: center;
}
.contenus .row:nth-child(2) {
  margin-top: 50px;
}
.contenus__item {
  border-top: 1px solid #d0d7ea;
  padding-top: 30px;
  margin-top: 80px;
  position: relative;
}
.contenus__item::before {
  background-color: #fff;
  background-size: 60px auto;
  background-position: center center;
  background-repeat: no-repeat;
  content: "";
  display: block;
  height: 60px;
  width: 76px;
  position: absolute;
  top: -30.5px;
  left: calc(50% - 38px);
}
.contenus__item > .col > .row {
  padding-top: 1rem;
}
.contenus__item img {
  border-radius: 10px;
}
.contenus__item figcaption {
  padding-top: 1rem;
}
.contenus__item a {
  transition: all ease-in-out 0.15s;
}
.contenus__item a:hover, .contenus__item a:active {
  opacity: 0.6;
}
.contenus__item .plyr {
  background-color: #ffb100;
  border-radius: 10px;
  padding: 15px;
}
@media all and (min-width: 576px) {
  .contenus__item .plyr {
    padding: 30px;
  }
}
.contenus__activity::before {
  background-image: url(../img/base/icon-cat-activity.svg);
}
.contenus__animation::before {
  background-image: url(../img/base/icon-cat-animation.svg);
}
.contenus__audio::before {
  background-image: url(../img/base/icon-cat-audio.svg);
}
.contenus__edm::before {
  background-image: url(../img/base/icon-cat-edm.svg);
}
.contenus__enjeu::before {
  background-image: url(../img/base/icon-cat-enjeu.svg);
}
.contenus__interactif::before {
  background-image: url(../img/base/icon-cat-interactif.svg);
}
.contenus__jeugroupe::before {
  background-image: url(../img/base/icon-cat-jeugroupe.svg);
}
.contenus__jogging::before {
  background-image: url(../img/base/icon-cat-jogging.svg);
}
.contenus__strategie::before {
  background-image: url(../img/base/icon-cat-strategie.svg);
}
.contenus__studentmaterial::before {
  background-image: url(../img/base/icon-cat-studentmaterial.svg);
}
.contenus__video::before {
  background-image: url(../img/base/icon-cat-video.svg);
}
.contenus__visuel::before {
  background-image: url(../img/base/icon-cat-visuel.svg);
}

footer {
  border-top: 1px solid #d0d7ea;
  padding-top: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}