*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* palette */
  --main-white: #dddddd;
  --shade-white: #d3d3d3;
  --main-black: #181818;
  --main-yellow: #e6d28c;
  --dark-yellow: #f4cb38;

  /* Fonts */
  --base-font: Open sans, sans-serif;
  --title-font: Merriweather, serif;

  /* Font-size */
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-42: 2.625rem;
  --fs-50: 3.125rem;
  --fs-72: 4.5rem;

}

body {
  font-family: var(--base-font);
}

/* Global utility classes */

.section-title {
  font-size: var(--fs-36);
  font-family: var(--title-font);
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: underline 2px;
  text-underline-offset: 6px;
}

.section-title img {
  width: 50px;
  margin-left: 8px;
}

.section-subtitle {
  font-size: var(--fs-20);
  margin-bottom: 72px;
  text-align: center;
}

.heading-h3 {
  font-size: var(--fs-20);
  display: flex;
  align-items: center;
}

.heading-h3 img {
  width: 36px;
  margin-right: 6px;
}

.heading-h3 {
  font-size: var(--fs-20);
}

.heading-h4 {
  font-size: var(--fs-18);
}

.heading-h3,
.heading-h4 {
  font-family: var(--title-font);
  text-transform: uppercase;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .section-title {
    font-size: var(--fs-30);
  }
  .section-title img{
    width: 42px;
  }

  .section-subtitle {
    font-size: var(--fs-20);
    margin-bottom: 52px;
  }
  .heading-h3 {
    font-size: var(--fs-18);
  }
  .heading-h3 img {
    width: 30px;
  }
  .container {
    max-width: 700px;
  }
}

@media (max-width: 750px) {
  .section-title {
    font-size: var(--fs-24);
  }
  .section-title img{
    width: 30px;
  }

  .section-subtitle {
    font-size: var(--fs-16);
  }
  .heading-h3 {
    font-size: var(--fs-16);
  }
}

@media (max-width: 525px) {
  .section-title {
    font-size: var(--fs-20);
  }
  .section-subtitle {
    font-size: var(--fs-14);
  }
  .heading-h3 img {
    width: 20px;
  }
}


/* Navigation */

.main-nav {
  position: fixed;
  z-index: 99;
  top: 0;
  width: 100%;
  background: var(--main-yellow);
  padding: 16px;
  border-bottom: 1px solid var(--main-black);
}

.nav-toggler {
  display: none;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
}
.main-nav a{
  margin: 0 12px;
  padding: 8px;
  border-radius: 2px;
  color: var(--main-black);
  font-weight: 700;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
  text-transform: uppercase;
}

.main-nav a:hover{
  background: var(--main-black);
  color: var(--main-yellow);
}


@media  (max-width: 1024px) {
  .main-nav a {
    font-size: var(--fs-14);
    padding: 6px;
  }
}

@media  (max-width: 525px) {
  .main-nav {
    display: flex;
    order: 1;
  }

  .main-nav ul {
    padding: 52px 0 20px;
    flex-direction: column;
    display: none;
  }

  .main-nav ul li {
    margin: 6px 0;
  }

  .main-nav.active ul {
    display: flex;
  }

  .nav-toggler {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    align-self: baseline;
    background: none;
    border: none;
    cursor: pointer;
  }

  .nav-toggler img {
    width: 20px;
  }
}

/* Hero section */

.hero {
  min-height: 750px;
  padding-top: 200px;
  background-image: url(ressources/hero-background.jpg);
  background-size: cover;
  background-position: 50% 20%;
  position: relative;
  text-align: center;
}
.main-title {
  font-size: var(--fs-72) ;
  font-family: var(--title-font);
  font-weight: 900;
  color: var(--main-white);
}
.main-subtitle {
  color: var(--shade-white);
  font-size: var(--fs-30);
  margin-bottom: 28px;
  font-weight: 300;
}
.hero-link {
  min-width: 155px;
  padding: 8px 12px;
  border-radius: 5px;
  color: var(--main-black);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.hero-link span {
  text-decoration: underline dotted;
  text-underline-offset: 4px;
  text-decoration-color: var(--main-black);
  position: relative;
  bottom: 2px;
}
.hero-link span,
.hero-link img {
  pointer-events: none;
}

.hero-link-1 {
  background: var(--main-yellow);
}
.hero-link-1:hover {
  background-color: var(--dark-yellow);
}
.hero-link-2 {
  background: var(--main-white);
  margin-left: 12px;
}
.hero-link-2:hover {
  background-color: var(--shade-white);
}

.hero-link img {
  margin-left: 2px;
  width: 24px;
}

.push-down-hero {
  display: none;
}

@media (max-width: 1024px) {
  .hero {
    min-height: 600px;
    padding-top: 145px;
  }
  .main-title {
    font-size: var(--fs-50);
  }
  .main-subtitle {
    font-size: var(--fs-30);
  }
}

@media (max-width: 750px) {
  .main-title {
    font-size: var(--fs-36);
  }
  .main-subtitle {
    font-size: var(--fs-24);
  }
  .hero-link {
    min-width: 110px;
    padding: 8px 6px;
    font-size: var(--fs-14);
  }

  .hero-link img {
    display: none;
  }

  .push-down-hero {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--main-black);
    border: 1px solid var(--main-white);
    border-radius: 50%;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) ;
  }

  .push-down-hero img {
    width: 20px;
    pointer-events: none;
  }
}

@media (max-width: 525px) {
  .hero {
    padding-top: 125px;
    min-height: 500px;
  }
  .main-title {
    font-size: var(--fs-24);
  }

  .hero-link {
    padding: 6px;
  }

  .main-subtitle {
    font-size: var(--fs-20);
  }
  
}

/* About */

.about {
  padding: 50px 20px 125px;
  background-color: var(--main-white);
}

.about-content {
  display: flex;
}

.about-text {
  width: 60%;
  margin-right: 96px;
}

.about-text .heading-h3 {
  margin-bottom: 12px;
}

.about-text p {
  line-height: 1.4;
}

.about-text p:nth-child(2) {
  margin-bottom: 44px;
}

.about-slideshow {
  width: 40%;
}

.slideshow-images-container {
  margin: 12px 0;
  display: grid;
}
.about-slideshow img {
  grid-area: 1/1/2/2;
  width: 100%;
  border-radius: 3px;
  opacity: 0;
  visibility: hidden;
  transition: 
  opacity 0.3s ease-out,
  visibility 0.3s ease-out;
}

.about-slideshow img.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dot {
  width: 15px;
  height: 15px;
  margin: 0 5px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--main-black);
  background-color: var(--main-white);
}

.dot.active {
  background: var(--main-black);
}

@media (max-width: 1024px) {
  .about {
    padding: 50px 20px 100px;
  }

  .about-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about-text {
    width: 100%;
    margin-right: 0;
  }
  .about-slideshow {
    width: 80%;
  }

  .slideshow-images-container {
    margin: 72px auto 12px;
  }
}

@media (max-width: 750px) {
  .about-text p{
    font-size: var(--fs-14);
  }
}
@media (max-width: 525px) {
  .about {
    padding: 40px 14px 100px;
  }
  .about-slideshow {
    width: 100%;
  }
}

/* Presations */

.prestations {
  padding: 50px 10px 150px;
  background-color: var(--main-black);
}

.prestations .section-title,
.prestations .section-subtitle {
  color: var(--main-white);
}

.prestations .section-title img {
  transform: rotate(5deg);
}

.prestations-container {
  display: flex;
  justify-content: center;
}

.prestations-card {
  width: 100%;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
  padding: 36px 36px 96px;
  background-color: var(--main-yellow);
  border-radius: 5px;
}

.prestations-card:first-child {
  margin-right: 28px;
}

.prestations-category-title {
  font-family: var(--title-font);
  font-size: var(--fs-30);
  text-transform: uppercase;
  color: var(--main-black);
  margin-bottom: 44px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
}
.prestations-category-title img {
  width: 36px;
  margin-left: 12px;
  transform: rotateY(-180deg);
}

.prestations-list {
  list-style: none;
}

.prestations-list h4{
  margin-bottom: 8px;
}

.prestations-list p{
  font-weight: 500;
  line-height: 1.4;
}

.prestations-list li:not(:last-child) {
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  .prestations-container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .prestations-card:first-child {
    margin-right: 0;
    margin-bottom: 36px;
  }

  .prestations-card {
    max-width: 530px;
  }
}

@media (max-width: 525px) {
  .prestations {
    padding: 50px 10px 90px;
  }

  .prestations-category-title {
    font-size: var(--fs-20);
    margin-bottom: 36px;
  }
  .prestations-category-title img {
    width: 30px;
  }
  .prestations-card {
    padding: 28px 28px 60px;
  }
  .prestations-card h4 {
    font-size: var(--fs-16);
  }
  .prestations-list p {
    font-size: var(--fs-14);
  }
}

/* Team */

.team {
  padding: 50px 10px 150px;
  background-color: var(--main-white);
}

.team .section-subtitle {
  margin-bottom: 28px;
}

.cards-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  flex-shrink: 0;
  width: 300px;
  color: var(--main-yellow);
  margin: 20px;
  border-radius: 5px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
  background-color: var(--main-black);
  background-image: repeating-linear-gradient(
      90deg,
      hsla(57, 0%, 42%, 0.09) 0px,
      hsla(57, 0%, 42%, 0.09) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(57, 0%, 42%, 0.09) 0px,
      hsla(57, 0%, 42%, 0.09) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      hsla(57, 0%, 42%, 0.09) 0px,
      hsla(57, 0%, 42%, 0.09) 1px,
      transparent 1px,
      transparent 10px
    ),
    repeating-linear-gradient(
      90deg,
      hsla(57, 0%, 42%, 0.09) 0px,
      hsla(57, 0%, 42%, 0.09) 1px,
      transparent 1px,
      transparent 10px
    ),
    linear-gradient(90deg, rgb(20, 20, 20), rgb(20, 20, 20));
}

.profile-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
}

.card-content {
  padding: 20px;
}

.top-card-content {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}

.card-name {
  font-size: var(--fs-20);
}

.top-card-content img {
  width: 24px;
  cursor: pointer;
}

.top-card-content a:nth-child(2) {
  margin-left: auto;
  margin-right: 8px;
}

@media (max-width: 1024px) {
  .team {
    padding: 50px 20px 100px;
  }
}

@media (max-width: 750px) {
  .team-card {
    width: 100%;
    max-width: 430px;
  }
}

/* Testimonial */

.testimonial {
  background-image: url(ressources/testimonial.jpg);
  background-size: cover;
  background-position: 0 80%;
  padding: 84px;
}

.text-slideshow-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  background-color: rgba(0, 0, 0, 0.345);
  overflow: hidden;
}

.sliding-container {
  display: flex;
  color: var(--main-white);
  animation: carousel 16s ease-in-out infinite;
}

@keyframes carousel {
  0%,
  20% {
    transform: translateX(0);
  }
  25%,
  45% {
    transform: translateX(-100%);
  }
  50%,
  70% {
    transform: translateX(-200%);
  }
  75%,
  95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(-400%);
  }
}

.text-slide {
  flex-shrink: 0;
  width: 100%;
  text-align: center;
  padding: 44px;
  color: var(--main-white);
}

.testimonial-text {
  font-family: var(--title-font);
  font-size: var(--fs-36);
  margin-bottom: 6px;
}

.testimonial-author {
  font-size: var(--fs-20);
}

@media (max-width: 1024px) {
  .text-slideshow-container {
    max-width: 750px;
  }
  .testimonial {
    padding: 44px;
  }
  .testimonial-text {
    font-size: var(--fs-30);
  }
  .testimonial-author {
    font-size: var(--fs-16);
  }
}

@media (max-width: 750px) {
  .text-slideshow-container {
    max-width: 600px;
  }
  .testimonial-text {
    font-size: var(--fs-20);
  }
}

@media (max-width: 525px) {
  .text-slideshow-container {
    max-width: 100%;
    margin: 0;
  }
  .text-slide {
    padding: 36px 0;
  }
  .testimonial {
    padding: 44px 2px;
  }
  .testimonial-text {
    font-size: var(--fs-20);
  }
}

/* Contact */

.contact {
  padding: 50px 20px 150px;
  background-color: var(--main-yellow);
}

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

.address-block {
  background-color: var(--main-black);
  color: var(--main-yellow);
  padding: 20px;
  border-radius: 5px;
  width: 350px;
}

.address-block:not(:last-child) {
  margin-bottom: 16px;
}

.address-block p:nth-child(1) {
  font-size: var(--fs-18);
  margin-bottom: 12px;
}

.address-block p:nth-child(2) {
  margin-bottom: 36px;
}

.address-block p:nth-child(3) {
  margin-bottom: 12px;
}

.address-block img {
  width: 24px;
}

.address-block a:not(:last-of-type) {
  margin-right: 10px;
}

.schedule {
  margin-left: 44px;
}

.schedule-table p {
  position: relative;
  padding-bottom: 6px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
}

.schedule-table p:not(:last-of-type)::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background-color: var(--main-black);
  bottom: 0;
  left: 0;
  animation: appear 5s linear;
  animation-timeline: view();
  animation-range: entry 0% cover 26%;
}

@keyframes appear {
  from {
    width: 0%;
    opacity: 0;
  }
  to {
    width: 100%;
    opacity: 1;
  }
}

.schedule-table p span:first-of-type {
  font-weight: 900;
}

@media (max-width: 750px) {
  .contact-content {
    flex-direction: column;
  }

  .address-block {
    width: auto;
  }

  .schedule {
    margin: 0;
  }
  .schedule-table,
  .address-block {
    max-width: 450px;
    margin: 0 auto;
  }
  .addresses {
    margin-bottom: 36px;
  }
}

@media (max-width: 525px) {
  .contact {
    padding: 30px 20px 90px;
  }
  .addresses .address-block p, 
  .schedule p {
    font-size: var(--fs-14);
  }
  .address-block img {
    width: 20px;
  }
  .address-block a:not(:last-of-type) {
    margin-right: 6px;
  }
}

/* Footer */

footer {
  padding: 12px;
  text-align: center;
  background-color: var(--main-black);
}

footer a {
  color: var(--main-white);
}

