@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --primary: #edf7fa;
  --primary-darker: #cee1e4;
  --secondary: #0b031a;
  --secondary-lighter: #0f0424;
  --yellow-light: #e2e2a9;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  /*overflow-x: hidden;*/
  font-family: "Roboto", sans-serif;
}

section:not(#header) {
  z-index: 100 !important;
  position: relative;
}

#bar {
  display:flex;
  justify-content: space-around;
  min-height: 7vh;
  align-items: center;
  background: #fff;
  bottom:0;
}

#bar > p {
  color: black !important;
}

#header {
  height: 100vh;
  color: #fff;
}

#header > .slider-container,
#header > .content.fullpage {
  top: 0px;
  position: fixed;
}

#header .content {
  position: absolute;
  text-shadow: 1px 1px 9px var(--secondary);
  text-align: center;
  z-index: 1;
  left: 0;
  right: 0;
}

#header-small a {
  display: block;
  color: black;
}

.content > h1 {
  margin: 2px;
}

.content > h2 {
  margin: 4px;
}

#logo {
  margin: auto;
  width: 200px;
  display: block;
}

#header h1, .fullpage h1, #header h2:not(.pathologies-list > h2), .fullpage h2:not(.pathologies-list > h2) {
  font-size: 2.7em;
}

#header h2:not(.pathologies-list > h2) {
  font-weight: 100;
}

#spine {
  min-height:100vh;
  background: radial-gradient(#d9eaf5, #92a8c5);
}

#spine > h1, #spine > h2 {
  font-size: 3em;
}

.fullpage h1, .fullpage h2 {
  color: #fff;
}

h1 {
  font-size: 2em;
  font-weight: 100;
}

h2 :not(.pathologies-list > h2) {
  font-size: 2em;
  font-weight: 100;
}

.section-light {
  background: var(--primary);
  color: var(--secondary);
  height: max-content;
}

.section-dark {
  background: var(--secondary);
  color: var(--primary);
}

input, select, textarea {
  padding: 10px;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  margin-inline: 0.5em;
  margin: 2px;
  font-family: "Roboto", sans-serif;
}

input[type=text], input[type=tel], input[type=email] {
  height: 1.8em;
}

input:focus {
  outline: none;
}

select {
  height: 3.5em;
}

textarea:focus-visible {
  border: none;
}

/* button (transparent to dark),
  button-dark (dark to transparent) */

.title-surgeons {
  margin-left: 13vw;
  text-align: left !important;
}

.doctors > .button {
  margin: 30px;
  width: 11vw;
  margin-left: 15vw;
}

.button {
  color: #fff;
  border: 3px solid #fff;
  padding: 14px;
  cursor: pointer !important;
  text-align: center;
  font-size: 19px;
  transition-duration: .4s;
}

.button:hover {
  border-color: var(--secondary);
  background: var(--secondary);
  color: #fff;
  transition-duration: .4s;
}

.button-dark {
  border: 3px solid var(--secondary);
  background: var(--secondary);
  color: #fff;
}

.button-dark:hover {
  background: hsla(0, 0%, 100%, 0);
  color: var(--secondary);
  transition-duration: .4s;
}

.button-dark-light {
  border: 3px solid var(--secondary);
  color : var(--secondary);
}

.button-dark-light:hover {
  background: var(--secondary-lighter);
  color: #fff;
  transition-duration: .4s;
}

.doctors > .button:hover {
  font-weight: 700;
}

.button.appointment {
  margin-top: 1em;
  margin: auto;
  font-size: 20px;
  border: 3px solid #fff;
  cursor: pointer;
}

.doctors {
  display: flex;
  justify-content: left;
  flex-direction: column;
}

.doctors.d-appointment {
  flex-direction: row;
  position:absolute;
  z-index:3;
  bottom: 1em;
}

.btn-appointment-resume {
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.btn-appointment-resume > a {
  margin: 2em;
}
.btn-appointment-resume > a:hover {
  color:#0a0627;
  background: #fff;
}

.fullpage {
  width: 100%;
  display: flex;
  flex-direction: column;
  z-index: 150;
}

/** CSS Basics **/
.flexbox {
  display: flex;
  align-items: strech;
  flex-wrap: wrap;
}


.pic-tiles {
  display: flex;
  align-items: stretch;
  margin: auto;
  flex-wrap: wrap;
}

.pic-tile {
  display: inline-block;
  flex: 1 1 27%;
  margin: .7em;
  font-size: 0.8em;
  text-align: center;
}

.pic-tile > img {
  border: 2px solid var(--primary-darker);
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 50%;
}

/* Appointment Partial */
.appointment-small {
  margin: 2em;
  text-align: center;
  margin-inline: auto;
}

/* Parallax frontpage */
  .surgeons {
    background-position: center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100vh;
    filter: brightness(0.5);
    background-image: url('/img/surgeons-compressed.webp');
    background-attachment: fixed;
    background-position: top;
    z-index: 1;
  }

  .appointment-image {
    background-image: url('/img/appointment.webp');
    filter: brightness(0.5);
    z-index: 1;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  @media only screen and (max-width: 800px) {
    .surgeons {
      background-attachment: scroll !important;
    }
  }

/* End parallax */

/* Resume part */
.appointment-column {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  width: 20vw;
}

.appointment-column > img {
  width: 400px;
}

.resume-dl {
  display: block;
  margin-top: 2em;
  margin-inline: auto;
}

#resume-content {
  display: flex;
  justify-content: center;
}

#resume-content > div:first-of-type {
  width: 38vw;
}

#resume-content > * {
  padding: 15px;
}

#resume-content h1 {
  font-size: 3em !important;
}

#resume-content > div > p  {
  line-height: 2em;
}

.resume-content-links {
  text-align: center;
  margin-top: 2em;
}

.resume-content-links > * {
  display: inline-block;
  margin: 0.4em;
}

#team {
  margin-bottom:1em;
  width:66vw;
  margin:auto;
}

.card-team {
  width: 200px;
  height: 300px;
  padding: 7px;
  display: inline-block;
  background: var(--primary-darker);
  border-radius: 7px;
  cursor: pointer;
  filter: brightness(.8);
  margin: 10px;
}

.card-team:hover {
  filter: brightness(1);
  transition-duration: .4s;
}

.card-team > a > img {
  max-width: 80%;
  margin: auto;
  display: block;
  border-radius: 8px;
}

/* END RESUME PART */
.content-page {
  width: 80%;
  margin: auto;
  min-height: 60vh;
}

/* Navigation menu */

nav {
  position: sticky;
  top: 32vh;
  background: var(--primary);
  width: 17vw;
  height: max-content;
}

nav > ul {
  margin: 0;
  padding: 0;
}

.nav-element {
  cursor: pointer;
  list-style-type: none;
  border-radius: 8px;
}

.nav-element:hover {
  background: var(--primary-darker);
  transition-duration: .4s;
}

#links > ul > li > a > i {
  width: 20px;
  margin-right: 10px;
}

nav ~ section:not(#footer) {
  width: 75vw;
  margin: auto;
}

nav + section {
  display: inline-block !important;
}

nav > ul > li > a {
  display: block;
  padding: 12px;
  color: black;
}

/* End navigation */

/* Pathologies */

.operation-description {
  display: grid !important;
  grid-template-columns: auto auto;
  grid-gap: 1.5em;
}

.operation-description > img {
  grid-column: span 2;
  justify-self: center;
  max-height: 50vh;
  max-width: 100%;
}

.treatment {
  padding: 20px;
}

.pathology-description,
.operation-description,
.treatment {
  text-align: justify;
}

.treatment > h1 {
  font-size: 2em;
}

.warning {
  width: 80%;
  border: 1px solid black;
  background: #d6d6d6;
  padding: 8px;
  padding-block: 15px;
  margin: 1em;
  text-align: center;
  margin-inline: auto;
}

/* End Pathologies */

/** Home Page Spine Pathologies */
.model {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  width: 200px;
  height: 550px;
  margin: .5em;
  background-image: url('/img/3dmodel.webp');
}

.spine-select {
  position: relative;
  color: #fff;
  text-shadow: 1px 1px 9px var(--secondary);
  font-weight: bold;
  font-size: 36px;
  cursor: pointer;
}

.spine-select#cervical {
  top: 110px;
  left: 97px;
}

.spine-select#dorsal {
  top: 181px;
  left: 48px;
}

.spine-select#lombaire {
  top: 244px;
  left: 20px;
}

.spine-select#sacro-iliaque {
  top: 299px;
  left: 2px;
}

.spine-select:hover {
  color: #49fdb5;
  transform: scale(1.2);
  transition-duration: .4s;
}

.spine-selected {
  color: #49fdb5;
}

/** -------------- **/

#reeducation {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fff;
}

#reeducation > * {
  width: 36%;
  margin: 2em;
  line-height: 2em;
}

.title-reeducation {
  margin-bottom: 2em;
  font-size: 3em;
  line-height: 1;
}

#doctolib-btn {
  position:fixed;
  opacity: .7;
  width: 55px;
  height: 55px;
  top: 88%;
  right: 10px;
  z-index: 1000;
}

#doctolib-btn > img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

#doctolib-btn:hover {
  opacity: 1;
  cursor: pointer;
  transition-duration: .4s;
}

#contact {
  padding: 10px;
}

#footer {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.message {
  width: 80%;
  padding: 10px;
  border-radius: 9px;
  color: #fff;
  background: #80d880;
  border: 1px solid black;
  margin-bottom: 1em;
}

.message.error {
  background: #d88680;
}

.contact-form {
  width: 90%;
  margin: auto;
  display: block;
}

.contact-form > input {
  width: 85%;
}

.contact-form > div {
  display: inline-block;
}

.contact-form > textarea {
  display: block;
  width: 85%;
  height: 120px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
}

.contact-form > input[type=submit] {
  background: #fff;
  color: var(--secondary);
  border: 1px solid var(--secondary);

}

.contact-form > input[type=submit]:hover {
  background: var(--primary-darker);
}

.contact-check {
  padding: 15px;
  margin: auto;
  width: 85%;
}

.contact > input[type=submit] {
  display: block;
}

.left {
  text-align: center;
  width: 41vw;
}

#footer > .right {
  margin-left: 20px;
}

.right {
  margin: 0;
  width: 30vw;
  color: #fff;
}

.title-contact {
  font-size: 1.6em;
  margin: 0;
  margin-top: 2px;
}

.thin {
  font-weight: 100;
}

#footer a:hover, .right a:hover, .tile > p > a:hover {
  color: var(--yellow-light);
  transition-duration: .4s;
}

.footer-talant {
  background-image: linear-gradient(rgba(19, 16, 18, 0.8), rgba(19, 16, 18, 0.8)), url('/img/talant-compressed.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh
}

/* Navigation bar homepage */
#navigation {
  width: 14.5em;
  height: 100vh;
  left: -11em;
  background: #222222c5;
  color: #fff;
  font-size: 21px;
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  position: fixed;
  z-index: 10000;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition-duration: .4s;
}

.open {
  transform: translateX(11em);
  background: #222222ef !important;
  transition-duration: .4s;
}

.close {
  background: #8c97a1;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition-duration: .4s;
  cursor: pointer;
}

.close:hover {
  transform: rotate(90deg);
  transition-duration: .4s;
}

.message > .close {
  display: inline-flex;
  position: relative;
  right: -20em;
}

#links > ul > li > a {
  padding: 6px;
  display: block;
}

#links > ul > li > a:hover {
  color: black;
}

#base {
  margin-left: 2em;
  text-align: center;
}

.menu-arrow {
  transition-duration: .4s;
}

.menu-arrow-close {
  transform: rotate(180deg);
  transition-duration: .4s;
}

.hide {
  display: none;
}

.place-link {
  color: black;
  cursor: pointer;
}

.place-link:visited {
  color: black;
}

.bloc-model-pathologies {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pathologies-list {
  margin: 1em;
  background: #0a181d;
	border-radius: 6px;
  padding: 2px;
  padding-inline: 10px;
}

.pathologies-list > h2 {
  color: #fff;
}

.pathologies-list > ul {
	list-style-type: none;
  padding: 0;
}

.pathologies-list > ul > li {
  padding: 4px;
}

.pathologies-list > ul > li > a {
  transition-duration: .4s;
  display: block;
}

.pathologies-list > ul > li > a:hover {
  color: #49fdb5;
  transition-duration: .4s;
}

.pathologies-list-active {
  background: #49fdb5 !important;
  transition-duration: .4s  !important;
}

.pathologies-list-active > h2, .pathologies-list-active > ul > li > a {
  color: black  !important;
  transition-duration: .4s  !important;
}

.pathologies-list-active > ul > li > a:hover {
  color: #30072c  !important;
}

/* Links */
#bar > p > a, #footer a, .right a, a.button,
#links > ul > li > a, .place-link,
.pathologies-list > ul > li > a,
nav > ul > li > a, #header-small a,
.card-team > a {
  text-decoration: none;
}
#footer a, .right a, #links > ul > li > a,
.pathologies-list > ul > li > a {
  color: #fff;
}

#bar > p > a, .card-team > a {
  color: black;
  transition-duration: .4s;
}

#bar > p > a:hover, .card-team > a:hover {
  transition-duration: .4s;
  color: #141c5c;
}

/* Journey */

.journey-list > * {
  padding: .5em;
}

.journey-slide {
  display: flex;
  align-items: center;
}

.journey {
  padding: .4em;
}

.journey:nth-child(2n) {
  background: #f5ffff;
}

.journey-slide > .column {
  margin: .5em;
}

.journey-slide > .column > .buttons > * {
  display: inline-block;
  margin: 1em;
}

.journey-slide > .column > img {
  max-height: 90vh;
  max-width: 24vw;
}

.journey-slide.hidden {
  display: none;
}

.tiles {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}

.tile {
  flex: 1 1 26%;
  padding: 1em;
  margin: 1em;
  background: var(--secondary-lighter);
  color: #fff;
}

.tile > p > a {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
}

.responsive-contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.small-pic-tile {
  width: 38px;
}

.news-list {
  width: 83%;
  margin: auto;
}

.news-image {
  flex: 1 1 45%;
  padding-inline: 3em;
}

.news-image > img {
  width: 100%;
  transition-duration: .4s;
}

/*.news-image > img:hover {
  transform: scale(1.15);
  transition-duration: .4s;
  overflow: hidden;
}*/

.datetime {
  margin-top: 5px;
  padding-top: 5px;
}

.news-text {
  flex: 1 1 43%;
  font-size: clamp(14px, 2vw, 24px);
  color: #0a0627;
}

.news-text ~ h2 {
  margin-bottom: 1px;
  padding-bottom: 1px;
}

.news-text > p {
  line-height: clamp(3.5vw, 45px, 5vw);
}

.news-text > .button.openPopup {
  border: 2px solid #120b24;
  color: #120b24;
}

.news-text > .button.openPopup:hover {
  color: #fff;
}
/*
.news-image > .play {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #357bbd;
  color: #fff;
  font-weight: bold;
  position: relative;
  top: 50%;
  left: 45%;
}*/

.news {
  display: flex;
  flex-wrap: wrap;
  margin: 2em;
}

.popup {
  height: min-content;
  width: 70vw;
  background: #020312e3;
  display: none;
  position: fixed;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  padding: 1em;
  z-index: 1000;
}

/** Mobile **/
@media screen and (max-width: 980px) {
  .right > iframe {
    width: 30vw;
  }

  .appointment-image {
    height: 40vh;
  }
}

@media screen and (max-width: 900px) {
    #resume-content {
      display: block;
    }

    .resume-content-description {
      width: 78vw !important;
    }

    .appointment-column {
      width: 78vw;
    }
}

/* iPads, Tablets 768/800px */
@media screen and (max-width: 800px) {
  html {
    scroll-snap-type: none;
  }

  section {
    scroll-snap-align: none;
  }


  #contact, #footer {
    flex-direction: column;
    align-items: center;
    justify-items: center;
  }

  .responsive-contact {
    flex-direction: column;
  }

  .left, .right {
    width: 85vw;
  }

  .left > iframe {
    width: 85vw;
  }

  .right > iframe {
    width: 80vw !important;
  }

  .spine {
    width: 230px;
  }

  .content-grid {
    display: block;
  }

  .content-grid > nav {
    width: 100%;
  }

  .content-grid > nav {
    position: static;
  }

  .card-team {
    width: 150px;
    height: 220px;
    padding: 5px;
    margin: 5px;
  }

  .appointment-column > img {
    width: 250px;
  }

  #navigation {
    top: 35%;
    height: 7vh !important;
    left: -14em  !important;
    border-radius: 13px;
  }

  .menu-desc {
    display: none;
  }

  #navigation.open {
    top: 15% !important;
    height: 77vh  !important;
    left: -13em  !important;
    border-radius: 0;
  }

  .tiles {
    flex-direction: column;
  }

  .doctors.d-appointment {
    position: relative;
    flex-direction: column;
  }

  .doctors.d-appointment > .button {
    width: 70vw;
    margin: auto;
    margin-top: 1em;
  }
}

@media screen and (max-width: 660px) {
  /* Topbar */
  #bar {
    flex-direction: column;
  }

  .operation-description {
    display: block !important;
  }

  /* Home page Reeducation */
  #reeducation {
    flex-direction: column;
  }

  #reeducation > .col {
    width: 80vw;
  }

  .title-reeducation {
    margin-bottom: .5em;
    font-size: 2.5em;
  }

  /* Home page Pathologies */
  .bloc-model-pathologies {
    display: block !important;
  }

  .box-model {
    margin: auto;
    width: 60vw;
  }

  .pathologies-list {
    width: 55vw;
    margin-inline: auto !important;
  }
}

@media screen and (max-width: 600px) {
  .button.appointment {
    padding: 10px;
    font-size: 18px;
  }

  .doctors {
    flex-direction: column;
    align-items: stretch;
    margin: auto;
  }

  .spine {
    height: 340px;
    width: 250px;
    margin: 0;
  }

  .doctors > .button {
    width: 52vw;
  }

  .surgeons{
    background-image: url('/img/appointment-vertical.webp') !important;
  }
}

@media screen and (max-width: 410px) {
  input {
    padding: 5px;
  }

  .button {
    padding: 5px;
  }

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

/* Play button */
.pb {
  position: relative;
  top: -26%
}

.video-play-button {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  box-sizing: content-box;
  display: block;
  width: 32px;
  height: 44px;
  border-radius: 50%;
  padding: 18px 20px 18px 28px;
  cursor: pointer;
}

.video-play-button:before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 80px;
  height: 80px;
  background: #583759;
  border-radius: 50%;
  -webkit-animation: pulse-border 1500ms ease-out infinite;
          animation: pulse-border 1500ms ease-out infinite;
}

.video-play-button:after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: block;
  width: 80px;
  height: 80px;
  background: #329eeb;
  border-radius: 50%;
  transition: all 200ms;
}

.video-play-button:hover:after {
  background-color: #0b67a8;
}

.video-play-button img {
  position: relative;
  z-index: 3;
  max-width: 100%;
  width: auto;
  height: auto;
}

.video-play-button span {
  display: block;
  position: relative;
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 32px solid #fff;
  border-top: 22px solid transparent;
  border-bottom: 22px solid transparent;
}

@-webkit-keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}

@keyframes pulse-border {
  0% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
    opacity: 0;
  }
}
.video-overlay {
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: all ease 500ms;
}

.video-overlay.open {
  position: fixed;
  z-index: 1000;
  opacity: 1;
}

.video-overlay-close {
  position: absolute;
  z-index: 1000;
  top: 15px;
  right: 20px;
  font-size: 36px;
  line-height: 1;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 200ms;
}

.video-overlay-close:hover {
  color: #fa183d;
}

.video-overlay iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.75);
}

/* SEO */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
