/* FONTS */
@font-face {
  font-family: SanofiSans-Light;
  src: url('../fonts/Sanofi_Sans-Light.woff2');
}

@font-face {
  font-family: SanofiSans-Regular;
  src: url('../fonts/Sanofi_Sans-Regular.woff2');
}

@font-face {
  font-family: SanofiSans-Bold;
  src: url('../fonts/Sanofi_Sans-Bold.woff2');
}

/* GENERAL */
p,
label,
select {
  font-family: SanofiSans-Regular, sans-serif;
}

.scholar-module-container {
  position: relative;
  max-width: 1247px;
  height: 764px;
  margin: auto;
  padding: 0;
}

@media only screen and (min-width: 1280px) {
  .scholar-module-container {
    max-width: 1184px;
  }
}

@media only screen and (max-width: 767px) {
  .scholar-module-container h2 {
    font-size: 1.75rem
  }
}

/* MAP */
.scholar-map-view {
  position: relative;
  width: 100%;
  height: 764px;
  align-content: center;
  background: radial-gradient(#f1f0f4 0%, #d5d0dd 70%);
  border-radius: 8px;
  padding-bottom: 4%;
}

.scholar-map-container {
  position: relative;
  width: 100%;
  height: auto;
}

@media only screen and (min-width: 949px) {
  .scholar-map-view {
    display: block;
  }
}

@media only screen and (max-width: 949px) {
  .scholar-map-view {
    display: none;
  }
}

/*** COUNTRIES ***/
.scholar-map-view .scholar-map-btn {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 0;
}

.scholar-map-view .scholar-map-picture {
  width: 100%;
  height: auto;
  padding: 0;
}

.scholar-map-view .scholar-map-picture svg {
  width: 100%;
  height: auto;
  padding: 0;
}

/* Bootstrap, responsable de la bordure grise foncée au clic (#212529) */
.btn:first-child:active,
:not(.btn-check)+.btn:active {
  border-color: transparent;
}

.country-name {
  position: absolute;
}

.country-name p {
  font-family: SanofiSans-Bold, sans-serif;
  font-size: 1.1rem;
  font-size: clamp(1.1rem, 0.52rem + 0.97vw, 1.3rem);
  color: #23004c;
  margin-bottom: 0;
  transition: 0.5s ease-in-out;
}

.country-name:hover p {
  transform: scale(1.1) translate(0, 0);
  color: #23004c;
}

.picto-choose {
  width: 25%;
  position: absolute;
  bottom: -5.2%;
  left: 4%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 2%;
}

.picto-choose p {
  margin: 0;
  color: #23004c;
  font-size: 0.95rem;
  font-size: clamp(0.95rem, 0.5182rem + 0.7273vw, 1.1rem);
}

.picto-choose img {
  width: 20%;
  height: auto;
  fill: #23004c;
}

.brazil-name {
  left: 27%;
  top: 63%;
  padding: 3% 0 3% 9%;
}

.canada-name {
  left: 7%;
  top: 11%;
  padding: 8.5% 0 1.5% 23%;
}

.china-name {
  left: 68.5%;
  top: 29%;
  padding: 0% 5% 9% 5%;
}

.france-name {
  right: 51.9%;
  top: 33%;
  padding: 0 3.7% 0 0;
}

.germany-name {
  left: 48.5%;
  top: 30.5%;
  padding: 0 0 0 2.5%;
}

.japan-name {
  left: 84.7%;
  top: 37.5%;
  padding: 1% 0 1% 4%;
}

.mexico-name {
  right: 80%;
  top: 49%;
  padding: 0 7% 1% 0;
}

.spain-name {
  right: 53%;
  top: 37.9%;
  padding: 0 4% 0 0;
}

.uk-name {
  right: 53%;
  top: 22.6%;
  padding: 0 0 3% 0;
}

.royaume-uni {
  right: 53.5%;
  top: 25.6%;
  padding: 0 3% 0.5% 0;
}

.us-name {
  left: 9%;
  top: 36.6%;
  padding: 2% 0 0 16%;
}

.change-target {
  fill: #007fad;
  transition: 0.5s;
}

.change-target.highlighted {
  fill: #7a00e6;
}

/* MOBILE VIEW*/
.scholar-mobile-view {
  width: 100%;
  height: 764px;
  background-color: #f4f2f6;
  border-radius: 8px;
  align-content: center;
}

@media only screen and (min-width: 949px) {
  .scholar-mobile-view {
    display: none;
  }
}

@media only screen and (max-width: 949px) {
  .scholar-mobile-view {
    display: block;
  }
}

/* MOBILE VIEW FLAG */
.btn.flag img {
  height: auto;
  width: 50px;
  width: clamp(35px, 30.9px + 3.97vw, 60px);
}

.scholar-flag-container {
  width: 100%;
  height: 80%;
  margin: auto;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: space-evenly;
  align-items: flex-start;
  row-gap: 12%;
  column-gap: 6%;
}

.scholar-flag-container .btn.flag {
  height: auto;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8%;
  width: auto;
  align-self: stretch;
}

.scholar-flag-container .btn.flag:hover p {
  color: #7a00e6;
}

.scholar-flag-container .btn.flag p {
  font-family: SanofiSans-Bold, sans-serif;
  color: #000000;
  font-size: 1rem;
  font-size: clamp(1rem, 0.85rem + 0.76vw, 1.3rem);
  margin: 0;
  padding: 0;
  text-align: left;
  line-height: normal;
  flex: 1;
  white-space: nowrap;
}

@media only screen and (max-width: 450px) {
  .scholar-flag-container {
    row-gap: 14%;
  }

  .scholar-flag-container .btn.flag p {
    white-space: normal;
  }
}

/* MODALE */

/* En parallèle avec le JS : pour régler le problème de contenu qui flash après la fermeture de la modal, si fermeture après scroll (à cause du fade Bootstrap sur la modal à l'ouverture) */
.modal-content.is-resetting {
  visibility: hidden;
  transition: visibility 0s linear 300ms;
}

.scholar-modal {
  --bs-modal-width: auto;
  width: 94%;
  height: auto;
  position: absolute;
  transform: translate(-50%, -50%);
  top: calc(50%);
  left: calc(50%);
}

.scholar-modal .modal-dialog {
  height: auto;
  margin: 0 !important;
  border: 2px solid #23004C;
  border-radius: 30px;
  padding: 23px 2px 23px 20px;
  background: white;
}

/* Uniquement pour le dégradé du bas de la pop-in */
.scholar-modal .modal-dialog::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(0deg, #fff, #FFF, #ffffffdb, #ffffff00);
  border-radius: 0 0 30px 30px;
}

.modal.modal-static .modal-dialog {
  transform: none;
}

.scholar-modal .modal-content {
  border: none;
  height: calc(694px - 34px);
  max-height: calc(100vh - 34px);
}

.scholar-modal .modal-body {
  overflow-y: scroll;
  border: 0;
  padding-right: 15px;
}

.modal-backdrop {
  --bs-backdrop-bg: #23004c;
}

.modal-backdrop.show {
  opacity: 0;
}

/* MODALE GENERAL */
.modal-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border: 0;
  padding: 0 45px 16px 0;
  background: #FFF;
  border-radius: 0;
  flex-wrap: wrap;
}

.modal-header .btn-close {
  position: absolute;
  top: 11px;
  right: 28px;
  background-image: url("../images/background-dot.png");
  background-position: center;
  background-size: cover;
  opacity: 1;
  display: flex;
}

.modal-header .btn-close img {
  width: 100%;
}

.modal-header h2 {
  font-family: SanofiSans-Bold, sans-serif;
  font-size: 2rem;
  color: #000;
  padding: 0 20px 0 0;
  line-height: 1.2;
  margin: 0;
}

.select-year-container {
  background-color: #23004c;
  border-radius: 50px;
  padding: 4px 13px 4px 13px;
  background-image: url(../images/arrow-bottom-white.svg);
  background-repeat: no-repeat;
  background-position: 89% 55%;
  background-size: 20px;
  width: auto;
}

/* .dropdown est un style bootstrap... */
/* .form-control est un style bootstrap... */

.form-control:focus {
  color: #FFF;
  background-color: transparent;
}

.dropdown select {
  background-color: transparent;
  padding: 0 35px 0 5px;
  border: 0;
  font-size: 16px;
  color: #FFF;
  width: auto;
}

.dropdown select option {
  font-size: 16px;
  color: #000;
  font-family: SanofiSans-Regular, sans-serif;
}

#select-year {
  text-align-last: left;
  text-align: left;
}

.modal-body {
  padding: 0 0 50px 0;
}

.scholar-card-container {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
}

@media only screen and (max-width: 320px) {
  .scholar-card-container {
    grid-template-columns: repeat(auto-fill, minmax(157px, 1fr));
  }
}

.scholar-card {
  border: 1px solid #c9c9c9;
  border-radius: 8px;
}

.scholar-card h3 {
  font-family: SanofiSans-bold, sans-serif;
  font-size: 1.3rem;
  margin: 0 0 2% 0;
}

.scholar-picture {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 1.5s;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.scholar-picture img {
  width: 102%;
  height: auto;
  transition: 1s ease-in-out;
}

.scholar-picture img:hover {
  transform: scale(1.3) translate(0, 0);
  cursor: default
}

@keyframes fade-in {
  0% {
    opacity: 0
  }

  100% {
    opacity: 1
  }
}

.scholar-quote {
  padding: 6%;
}

.scholar-quote p {
  color: #000;
  font-size: 1rem;
  margin: 0;
  line-height: normal;
}