* {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

:root {
  --primary-color: #1e2640;
  --secondary-color: #922c40;
  --secondary-color-nb: 146, 44, 64;
  --light-color: #fffff0;
  --font-title: "Prata", serif;
  --font-text: "Plus Jakarta Sans", sans-serif;
  --side-padding: 6rem;
  --nav-height: 4rem;
}

html {
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: var(--font-text), 'Open Sans', serif;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  position: relative;
  background-color: var(--light-color);
  color: var(--primary-color);
  text-align: justify;
}

main {
  position: relative;
}

footer {
  padding: 3rem var(--side-padding) 2rem;
  background-color: var(--primary-color);
  color: #fff;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 5rem;
}

span {
  font-size: inherit;
}

.small {
  font-size: smaller;
}

footer h3 {
  font-family: var(--font-title);
  margin: 0 0 1.75rem;
}

footer > div > p:last-child {
  margin-bottom: 0;
}

footer .logo img {
  height: 6rem;
  margin-top: -3rem;
}

footer a {
  position: relative;
  color: var(--light-color);
  font-size: inherit;
}

footer a:hover {
  color: #fff;
}

footer a:not(.logo)::after {
  font-family: 'Material Symbols Rounded';
  content: 'arrow_forward';
  position: absolute;
  right: -1rem;
  top: 0;
  bottom: 0;
  margin: auto;
  color: var(--primary-color);
  transition: all 0.3s linear;
}

footer a:hover::after {
  right: -1.5rem;
  color: #fff;
}

footer h4 {
  position: relative;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

footer h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50%;
  height: 4px;
  background: rgba(var(--secondary-color-nb), 0.75);
}

footer ul li:not(:last-child) {
  margin-bottom: 0.75rem;
}

::selection {
  background: var(--secondary-color);
  color: #fff;
}

p {
  margin: 0.5rem 0;
  line-height: 1.5;
  font-family: var(--font-text);
}

h1,
h2,
h3 {
  position: relative;
}

h1 {
  font-family: var(--font-title);
  font-size: 2.8rem;
}

h2 {
  font-size: 2rem;
  font-family: var(--font-title);
  letter-spacing: 1px;
}

h3 {
  font-size: 1.5rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s linear;
}

a:hover {
  color: var(--secondary-color);
}

button {
  all: unset;
  cursor: pointer;
}

ul {
  list-style-type: none;
}

.d-flex {
  display: flex;
}

.d-block {
  display: block;
}

.d-none {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

nav {
  height: var(--nav-height);
  max-width: 100%;
  background-color: var(--primary-color);
  padding: 0 var(--side-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px 0 var(--primary-color);
  transition: height 0.3s ease-in-out;
}

.logo,
.logo > span {
  position: relative;
  color: var(--light-color);
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  transition: all 0.5s ease-in-out;
}

.logo > span:hover {
  color: #fff;
}

.logo img {
  height: 4rem;
  margin-right: 0.5rem;
}

.logo:hover {
  transform: scale(1.1);
}

nav .logo {
  display: flex;
  align-items: center;
}

nav ul {
  position: relative;
  height: 100%;
	display: grid;
	grid-template-columns: repeat(4, minmax(13rem, 1fr));
}

nav ul li {
  position: relative;
  font-size: 1.1rem;
  font-weight: 500;
	transition: all 0.5s;
}

nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
	color: var(--light-color);
  height: 100%;
  width: 100%;
}

nav ul li a:hover {
  color: var(--light-color);
}

nav ul li:hover:not(:last-child) {
	background: rgba(var(--secondary-color-nb), 0.4);
	color: #fff;
}

nav ul .navline {
  position: absolute;
  transition: all .5s;
	background: var(--secondary-color);
	height: 4px;
	pointer-events: none;
  opacity: 0;
	bottom: 0;
	left: calc(100% / 4 * (var(--index) - 1));
	width: calc(100% / 4);
  border-radius: 50%;
	--index: 0;
}

nav ul li:hover ~ .navline {
	opacity: 1;
}

nav ul li:nth-of-type(1):hover ~ .navline { 
  --index: 1; 
}
nav ul li:nth-of-type(2):hover ~ .navline { 
  --index: 2; 
}
nav ul li:nth-of-type(3):hover ~ .navline { 
  --index: 3; 
}
nav ul li:nth-of-type(4):hover ~ .navline { 
  --index: 4; 
}
nav ul li:last-of-type:hover ~ .navline { 
  --index: 4;
}

nav ul li.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.btn-rdv {
  position: relative;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s linear;
}

.btn-rdv::before, 
.btn-rdv::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 95%;
  height: 95%;
  border: 4px solid var(--secondary-color);
  border-radius: 0.25rem;
  z-index: 200;
  transition: all 0.3s linear;
}

.btn-rdv::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-right-color: transparent;
  width: 95%;
  height: 95%;
  transform: rotate(2deg);
}

.btn-rdv::after{
  border-left-color:transparent;
  border-top-color:transparent;
  transform: rotate(-1deg);
}

.btn-rdv .btn-rdv-back {
  position: absolute;
  background-color: rgb(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  width: 96%;
  height: 98%;
  transform: rotate(1deg);
  transition: all 0.3s linear;
}

.btn-rdv .btn-rdv-back::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgb(255, 255, 255, 0.8);
  transition: all 0.3s linear;
}

.btn-rdv .btn-rdv-text {
  z-index: 300;
}

.btn-rdv:hover::before {
  transform: rotate(-1deg);
}

.btn-rdv:hover::after {
  transform: rotate(2deg);
}

.btn-rdv:hover .btn-rdv-back::after {
  width: 100%;
}

.btn-rdv:hover .btn-rdv-text {
  color: var(--secondary-color);
}

.custom-shape-divider {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  rotate: 180deg;
  background: transparent;
}

.custom-shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 40px;
  transform: rotateY(180deg);
  fill: var(--light-color);
}

.custom-shape-divider.divider-top {
  top: -40px;
}

.custom-shape-divider.divider-bottom {
  bottom: 0;
}

.pipe {
  color: var(--secondary-color);
  margin: auto 1.5rem;
  font-weight: 700;
}

section {
  position: relative;
  padding: 3rem var(--side-padding);
}

section.info:nth-child(odd) {
  background-color: rgba(var(--secondary-color-nb), 0.05);
}

section.info:nth-child(even) .col-2 {
  flex-direction: row-reverse;
}

section.info:nth-child(even) .col-2 .col-2-img {
  text-align: right;
}

.col-2 {
  position: relative;
  display: flex;
  align-items: center;
}

.col-2-img {
  flex: 2;
}

.col-2-text {
  flex: 3;
}

.col-2-img img {
  max-height: 300px;
  max-width: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 var(--primary-color);
  filter: sepia(0.5);
  transition: all 0.2s linear;
}

.info:hover .col-2-img img {
  filter: sepia(0);
}

.highlight {
  position: relative;
  margin: 4rem 2rem;
  color: #fff;
  font-family: var(--font-title);
  letter-spacing: 2px;
  text-align: center;
}

.highlight::before {
  content: '';
  background-color: var(--primary-color);
  width: 110%;
  height: 120%;
  position: absolute;
  z-index: -1;
  filter: url(#marker-shape);
  left: -5%;
  top: calc(-10% - 0.75rem);
  padding: 0.75rem;
  transform: rotate(-1.5deg);
}

.circle-highlight {
  position:relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.circle-highlight::before {
  content: '';
  left: -10%;
  top: -0.75rem;
  border-width: 2px;
  border-style: solid;
  border-color: var(--secondary-color);
  position: absolute;
  border-right-color: transparent;
  width: 105%;
  height: 2rem;
  transform: rotate(2deg);
  border-radius: 50%;
  padding: 1rem 1.5rem 0.5rem;
}

.circle-highlight::after {
  content: '';
  left: -17px;
  top: -5px;
  padding: 1rem 1.5rem 0.5rem;
  border-width: 2px;
  border-style: solid;
  border-color: var(--secondary-color);
  border-left-color: transparent;
  border-top-color: transparent;
  position: absolute;
  width: 100%;
  height: 2rem;
  transform: rotate(-1deg);
  border-radius: 50%;
}

.circle-highlight .empty {
  margin-right: 2rem;
}

.circle-highlight.extra-space {
  margin: 2.5rem auto 2rem;
}

.link {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  padding: 0 0.5rem;
  margin-right: 0.25rem;
}

.link::before, 
.link::after {
  will-change: transform;
  content: '';
  display: block;
  position: absolute;
}

.link::before {
  transition: 100ms ease-out 50ms;
  transform-origin: 0 0.75rem;
  top: 60%;
  left: 0;
  width: 100%;
  height: 35%;
  background: rgba(var(--secondary-color-nb), 0.4);
}

.link::after {
  transition: 50ms ease-out;
  transform: scaleX(0);
  transform-origin: left center;
  top: 65%;
  right: -0.7rem;
  border: 8px solid transparent;
  border-radius: 2px;
  border-left-color: var(--secondary-color);
}

.link:hover::before {
  transition: 150ms ease-out;
  transform: scaleY(0.3);
  background: var(--secondary-color);
}

.link:hover::after {
  transition: 75ms ease-out 150ms;
  transform: none;
}

.link:active::before {
  transition: 150ms ease-in;
  background: var(--secondary-color);
}

.link:active::after {
  transition: 100ms ease-in;
  border-left-color: var(--secondary-color);
}

.material-symbols-rounded {
  position: relative;
  margin-right: 0.4rem;
  bottom: -0.4rem;
}

.title-icon {
  font-size: 4rem;
}

section.rdv {
  position: relative;
  color: var(--primary-color);
  display: grid;
  grid-template-columns: 1.5fr 0.75fr;
  gap: 4rem;
  align-items: end;
  padding-bottom: calc(3rem + 40px);
  background: linear-gradient(to right, rgba(248, 243, 220, 0.8), rgba(146, 44, 64, 0.5), rgba(30, 38, 64, 0.5));
}

section.rdv a,
section.rdv .link {
  color: var(--primary-color);
  font-weight: 600;
}

section.rdv .link::before {
  background-color: rgba(255, 255, 255, 0.25);
}

section.rdv .link::after {
  border-left-color: #fff;
}

section.rdv .link:hover::before {
  background: var(--primary-color);
}

section.rdv .link:hover::before {
  background: #fff;
}

section.rdv .circle-highlight::before {
  border-color: #fff;
  border-right-color: transparent;
}

section.rdv .circle-highlight::after {
  border-color: #fff;
  border-left-color: transparent;
  border-top-color: transparent;
}

section.rdv > div:last-child {
  color: #fff;
}

footer {
  position: relative;
}

footer .custom-shape-divider svg {
  fill: var(--primary-color);
}

.doctolib {
  display: inline-flex;
  text-align: center;
  background-color: #107ACA;
  color: #ffffff !important;
  font-size: 14px;
  overflow: hidden;
  font-family: Roboto, sans-serif;
  box-sizing: border-box;
  align-items: center;
  padding: 0 1rem;
  height: 48px;
  text-decoration: none;
  border-radius: 2rem;
  box-shadow: 0px 0px 8px 1px transparent;
  transition: 0.3s all ease-in-out;
  margin-left: 0.5rem;
}

.doctolib:hover {
  box-shadow: 0px 0px 8px 1px #107ACA;
}

.doctolib-xl {
  min-width: 300px;
  justify-content: center;
  margin-left: 0;
}

/* ul li */
.custom-list {
  list-style-type: none;
  margin: 1rem 0 1.5rem;
}

.custom-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.custom-list li::before,
.custom-list li::after,
.custom-checkbox label::before,
.custom-checkbox label::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.radio-draw li::after {
  left: 0.15rem;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  background-image: url(../media/radio-draw.svg);
}

.checkbox-draw li::before {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--primary-color);
  opacity: 0.25;
}

.checkbox-draw li::after {
  left: 0;
  top: -0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url(../media/check.svg);
}


/***** Homepage *****/
.homepage header {
  position: sticky;
  position: -webkit-sticky;
}

#hero {
  position: relative;
  display: flex;
  height: calc(100vh - var(--nav-height) - 3.1rem);
  padding: 3rem var(--side-padding) 0;
  overflow-y: scroll;
}

#hero h2 {
  font-size: 2.25rem;
  font-family: var(--font-title);
  margin: 1.5rem 0 3rem;
}

#hero .pipe {
  font-size: 2.5rem;
}

.hero-text {
  flex: 3;
}

.hero-img {
  position: relative;
  flex: 2;
}

.hero-img img {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  height: 100%;
}

.hero-img-text p, 
.hero-img-text strong {
  font-size: 1.25rem;
}

.scrolling-title {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}

.scrolling-words {
  overflow: hidden;
  height: 2.7rem;
  margin-left: 0.75rem;
  color: var(--secondary-color)
}

.scrolling-words span {
  position: relative;
  display: block;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  -webkit-animation: move 8s 1s infinite;
  -moz-animation: move 8s 1s infinite;
  -o-animation: move 8s 1s infinite;
  -ms-animation: move 8s 1s infinite;
  animation: move 8s 1s infinite;
}

@keyframes move {
  0%  { top:  0px; }
  20% { top: -3.25rem; }
  40% { top: -6.5rem; }
  60% { top: -9.75rem; }
  80% { top: -0px; }
  100%{ top: -0px; }
}

.homepage footer {
  margin-top: 3rem;
}


/***** Subpages *****/
.subpage-hero {
  position: relative;
  margin-top: var(--nav-height);
  height: 275px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e264095;
}

.subpage-hero-text {
  position: relative;
  z-index: 10;
  color: #fff;
  padding-bottom: 5rem;
  text-align: center;
}

.subpage-hero-text {
  font-weight: 700;
}

.subpage-about {
  background-image: url('../media/hero_about.png');
}

.subpage-approach {
  background-image: url('../media/hero_approach.png');
}

.subpage-method {
  background-image: url('../media/hero_methods.png');
}

.subpage-meet {
  background-image: url('../media/hero_meet.png');
}

.wave-effect {
  display: block;
  position: absolute;
  width: 100%;
  height: 3rem;
  max-height: 3rem;
  margin: 0;
  bottom: 0;
  left: 0;
  float: left;
}

.wave1 > use {
  fill: transparent;
  animation: move-forever1 10s linear infinite;
  &:nth-child(1) {
    animation-delay: -2s;
  }
}
.wave2 > use {
  fill: var(--primary-color);
  animation: move-forever2 8s linear infinite;
  &:nth-child(1) {
    animation-delay: -2s;
  }
}
.wave3 > use {
  fill: var(--secondary-color);
  animation: move-forever3 6s linear infinite;
  &:nth-child(1) {
    animation-delay: -2s;
  }
}
.wave4 > use {
  fill: var(--light-color);
  animation: move-forever4 4s linear infinite;
  &:nth-child(1) {
    animation-delay: -2s;
  }
}
@keyframes move-forever1 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}
@keyframes move-forever2 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}
@keyframes move-forever3 {
  0% {
    transform: translate(85px, 0%);
  }
  100% {
    transform: translate(-90px, 0%);
  }
}
@keyframes move-forever4 {
  0% {
    transform: translate(-90px, 0%);
  }
  100% {
    transform: translate(85px, 0%);
  }
}

.title-line {
  margin-bottom: 3rem;
}

.highlight-line {
  content: '';
  display: block;
	width: 100%;
	height: 1.25rem;
	stroke: var(--secondary-color);
	position: absolute;
	left: 0;
  right: 0;
	bottom: -1.5rem;
  margin: auto;
	stroke-width: 4;
}

section.w-bottom-divider {
  padding-bottom: 6rem;
}

.section-col-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  text-align: left;
}

.section-col-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
}

.section-text-img {
  grid-template-columns: 3fr 1fr;
  align-items: center;
  justify-self: stretch;
}

.section-col-2 img {
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 var(--primary-color);
  max-height: 375px;
}

.contact-icon {
  display: block;
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
}

#ingrid-form {
  position: relative;
}

.alert {
  position: fixed;
  bottom: 1rem;
  left: var(--side-padding);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  padding: 1rem 2rem;
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
  z-index: 1000;
}

.alert.show {
  opacity: 1;
}

.alert.success {
  background-color: #a5d6a7;
  color: #1b5e20;
  border-color: #1b5e20;
}

.alert.error {
  background-color: #ef9a9a;
  color: #b71c1c;
  border-color: #b71c1c;
}

.form-group {
  margin: 0.75rem 0;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
  height: 2rem;
  text-indent: 0.4rem;
}

.textarea-wrap {
  display: grid;
}

.textarea-wrap::after {
  content: attr(data-replicated-value) " ";
  white-space: pre-wrap;
  visibility: hidden;
}

.textarea-wrap > textarea {
  resize: none;
  overflow: hidden;
}

.textarea-wrap > textarea,
.textarea-wrap::after {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--primary-color);
  border-radius: 0.25rem;
  padding: 0.5rem;
  font: inherit;
  grid-area: 1 / 1 / 2 / 2;
  width: calc(100% - 1rem);
}

.custom-checkbox {
  position: relative;
  margin-right: 2rem;
}

.custom-checkbox input[type="checkbox"],
.side-menu {
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  vertical-align: middle;
  z-index: 100;
}

.custom-checkbox label {
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  font-weight: 400;
  cursor: pointer;
  padding-left: 2rem;
}

.custom-checkbox label::before {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  border: 1px solid var(--primary-color);
  opacity: 0.75;
}

.custom-checkbox input[type="checkbox"]:checked + label::after {
  left: 0;
  top: -0.4rem;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url(../media/check.svg);
}

.btn-submit {
  padding: 0.75rem 2rem;
  margin-top: 1.5rem;
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: none;
}

.required {
  position: relative
}

.required::after {
  content: "*";
  color: #de4437;
  font-weight: 700;
  margin-left: .1rem
}
