/* Global */
:root {
  --main-color: #f5b3c7;
  --secondary-color: #f0e8dd;
  --text-color: #666666;
  --text-h2-color: #244a4b;
  --light-text-color: white;
  --bg-color: #f1f1f1;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

* {
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Poppins", sans-serif;
}

h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  text-align: center;
}

main {
  margin-top: 8.4rem;
}

section {
  scroll-margin-top: clamp(8.4rem, 10vh, 10rem);
}

.vertical {
  width: clamp(18.75rem, 80vw, 22rem);
}

.horizontal {
  width: clamp(18.75rem, 80vw, 30rem);
}

/* Fin Global */

/* Scroll Top */
.scroll-top {
  display: none;
}

@media (min-width: 768px) {
  .scroll-top {
    display: block;
    bottom: 15%;
    right: 0%;
    width: 50px;
    height: 50px;
    background: var(--text-color);
    color: #f1f1f1;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    animation-name: appear;
    animation-timeline: scroll(y);
    text-align: center;
    line-height: 50px;
    font-size: 18px;
  }

  @keyframes appear {
    0% {
      opacity: 0;
      display: none;
      position: fixed;
    }
    100% {
      opacity: 1;
      display: block;
      position: fixed;
      z-index: 100;
    }
  }

  .scroll-top:hover {
    background-color: #888;
  }
}

/* Fin Scroll Top */

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.top-header {
  background-color: var(--main-color);
  padding: 0.5rem;
  text-align: center;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.contact-item i {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--light-text-color);
}

.contact-item a {
  position: relative;
  text-decoration: none;
  color: var(--light-text-color);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: bold;
}

.panel img {
  max-width: 150px;
  width: clamp(50px, 65px, 150px);
  height: auto;
}

@media (min-width: 768px) {
  .top-header {
    display: flex;
    justify-content: space-around;
    height: 54px;
  }

  .contact-item i {
    transition: transform 0.1s;
  }

  .contact-item:hover i {
    animation: shake-horizontal 0.4s infinite;
  }

  @keyframes shake-horizontal {
    0% {
      transform: translateX(0);
    }
    25% {
      transform: translateX(-2px);
    }
    50% {
      transform: translateX(2px);
    }
    75% {
      transform: translateX(-2px);
    }
    100% {
      transform: translateX(0);
    }
  }
}
/* Fin Header */

/* Burger Menu  */
.slideout-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 250px;
  background: var(--main-color);
  color: var(--light-text-color);
  padding-top: 60px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.slideout-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slideout-menu ul li {
  padding: 25px 15px;
  text-align: center;
  border-bottom: 1px solid white;
}

.slideout-menu ul li a {
  color: var(--light-text-color);
  text-decoration: none;
  font-size: 18px;
  display: block;
}

.slideout-menu ul li a:hover {
  background: #fadadd;
}

.menu-button {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--main-color);
}

.panel {
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.slideout-open .slideout-menu {
  transform: translateX(0);
  border-left: 1px solid white;
}

.splide__pagination__page.is-active {
  background: var(--main-color) !important;
}

@media (min-width: 768px) {
  .menu-button {
    display: none;
  }

  .slideout-menu {
    transform: none !important;
    width: auto;
    background: none;
    display: block;
    height: 0px;
    z-index: 0;
  }

  .slideout-menu ul {
    display: flex;
    justify-content: flex-end;
  }

  .slideout-menu ul li a {
    color: var(--text-color);
    padding: 26px 0;
  }

  .slideout-menu ul li {
    padding: 0 15px;
  }

  .panel {
    flex-direction: row;
  }

  .slideout-menu ul li a:hover {
    background: none;
    color: var(--main-color);
  }

  .slideout-menu ul li a.active {
    background: none;
    color: var(--main-color);
  }
}

@media (min-width: 1280px) {
  .slideout-menu ul {
    padding-right: 4rem;
  }

  .panel {
    padding: 0.5rem 4rem;
  }
}
/* Fin Burger Menu  */

/* Carousel */
.splide__slide img {
  width: 100%;
  height: calc(100vh - 137px);
  object-fit: cover;
}

.splide__track {
  height: calc(100vh - 137px);
  position: relative;
}

.carousel-text {
  color: var(--light-text-color);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 1.5rem;
}

.carousel-text h2 {
  font-size: 3rem;
  margin-bottom: 2.5rem;
  color: var(--light-text-color);
}

.carousel-text p {
  font-size: 1em;
  margin: 0.5rem;
  line-height: 2;
}

.splide__track::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

@media (min-width: 1280px) {
  .carousel-text h2 {
    font-size: 4rem;
  }

  .carousel-text p {
    font-size: 1.33rem;
  }

  .splide__track,
  .splide__slide img {
    height: calc(100vh - 139px);
  }
}

@media (min-width: 1920px) {
  .carousel-text h2 {
    font-size: 5rem;
  }

  .carousel-text p {
    font-size: 1.66rem;
  }
}
/* Fin Carousel  */

/* Section Définition ostéopathie animale */
.definition-osteopathie {
  padding: 3rem 1rem;
}

.definition-osteopathie-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.definition-osteopathie H2 {
  color: var(--text-h2-color);
}

.definition-osteopathie p {
  text-align: center;
  line-height: 1.6;
  color: var(--text-color);
  padding-top: 1.75rem;
}

.definition-osteopathie img {
  margin-top: 3rem;
  border-radius: 8px;
  box-shadow: 10px -10px 0px var(--main-color);
}

@media (min-width: 1280px) {
  .definition-osteopathie-container {
    flex-direction: row;
    justify-content: center;
  }

  .definition-osteopathie-container p {
    width: 24rem;
    text-align: left;
    margin-right: 170px;
    padding-top: 0;
    line-height: 1.9;
  }

  /* Animation sur l’image */
  .definition-osteopathie-container {
    flex: 1 1 40%;
    opacity: 0;
    animation-name: slideInRight;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
/* Fin Animation sur l’image */
/* Fin Section Définition ostéopathie animale */

/* Section A propos */
.a-propos {
  padding: 3rem 1rem;
  background-color: var(--secondary-color);
}

.a-propos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.a-propos h2 {
  color: var(--text-h2-color);
}

.a-propos img {
  margin: 3rem 0;
  border-radius: 8px;
  box-shadow: -10px -10px 0px var(--main-color);
}

.a-propos p {
  text-align: center;
  line-height: 1.6;
  padding-bottom: 1rem;
  color: var(--text-color);
}

@media (min-width: 1280px) {
  .a-propos-container {
    flex-direction: row;
    justify-content: center;
  }

  .a-propos-container p {
    width: 24rem;
    text-align: left;
    margin-left: 170px;
    padding-top: 0;
    padding-bottom: 50px;
    line-height: 1.9;
  }

  .a-propos-container {
    flex: 1 1 40%;
    opacity: 0;
    animation-name: slideInLeft;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}

/* Fin Section A propos */

/* Section Pourquoi faire appel osteopathe pour animaux */
.pourquoi-osteopathe {
  padding: 3rem 1rem;
  background-color: var(--main-color);
}

.pourquoi-osteopathe h2 {
  color: var(--light-text-color);
  text-align: center;
}

.pourquoi-osteopathe img {
  border-radius: 8px;
}

.pourquoi-osteopathe .animal {
  background-color: var(--light-text-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 3rem 0;
  line-height: 1.3;
}

.animal {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.animal h3 {
  align-self: flex-start;
}

.animal:nth-child(even) img {
  box-shadow: 10px -10px 0px var(--main-color);
}

.animal:nth-child(odd) img {
  box-shadow: -10px -10px 0px var(--main-color);
}

.pourquoi-osteopathe h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.pourquoi-osteopathe ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.pourquoi-osteopathe li {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.pourquoi-osteopathe p {
  color: var(--light-text-color);
  line-height: 1.6;
  text-align: center;
  padding: 1.75rem;
}

@media (min-width: 1024px) {
  .animal {
    flex-direction: row;
    justify-content: flex-end;
  }

  .animal-content {
    padding: 0 2rem;
  }

  .animal:nth-child(even) {
    flex-direction: row;
    margin-left: 3rem;
    border-radius: 10px 0 0 10px;
  }

  .animal:nth-child(odd) {
    flex-direction: row-reverse;
    margin-right: 3rem;
    border-radius: 0 10px 10px 0;
  }

  .pourquoi-osteopathe {
    padding: 3rem 0;
    background-color: var(--main-color);
  }
}

@media (min-width: 1280px) {
  .pourquoi-osteopathe .animal {
    padding: 1.5rem 2rem;
  }

  .pourquoi-osteopathe .animal:nth-child(even) .animal-content {
    padding: 0 50px 0 0;
  }

  .pourquoi-osteopathe .animal:nth-child(odd) .animal-content {
    padding: 0 0 0 50px;
  }

  .animal:nth-child(even) {
    margin-left: 10rem;
  }

  .animal:nth-child(odd) {
    margin-right: 10rem;
  }

  .osteopathie-preventive-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .osteopathie-preventive-container p {
    width: 70%;
  }
}

@media (min-width: 1440px) {
  .animal:nth-child(even) {
    margin-left: calc(10vw + 5rem);
  }

  .animal:nth-child(odd) {
    margin-right: calc(10vw + 5rem);
  }
}

@media (min-width: 1700px) {
  .animal:nth-child(even) {
    margin-left: calc(15vw + 7rem);
  }

  .animal:nth-child(odd) {
    margin-right: calc(15vw + 7rem);
  }
}

@media (min-width: 1920px) {
  .animal:nth-child(even) {
    margin-left: calc(20vw + 10rem);
  }

  .animal:nth-child(odd) {
    margin-right: calc(20vw + 10rem);
  }
}

@media (min-width: 2100px) {
  .animal:nth-child(even) {
    margin-left: calc(25vw + 12rem);
  }

  .animal:nth-child(odd) {
    margin-right: calc(25vw + 12rem);
  }
}

@media (min-width: 2440px) {
  .animal:nth-child(even) {
    margin-left: calc(30vw + 15rem);
  }

  .animal:nth-child(odd) {
    margin-right: calc(30vw + 15rem);
  }
}
/* Animation */
@media (min-width: 1280px) {
  .animal {
    opacity: 0;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  .animal:nth-child(odd) {
    animation-name: slideInLeft;
  }

  .animal:nth-child(even) {
    animation-name: slideInRight;
  }

  @keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
/* Fin Animation */
/* Fin Section Pourquoi faire appel osteopathe pour animaux */

/* Section Services */
.services {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

.services p {
  margin: 2rem 0;
  text-align: center;
  line-height: 1.6;
}

.services img:nth-child(even) {
  box-shadow: 10px -10px 0px var(--main-color);
}

.services img:nth-child(odd) {
  box-shadow: -10px -10px 0px var(--main-color);
}

.services img {
  width: clamp(16.5rem, 50vw, 18rem);
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.tarif-container {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1280px) {
  .services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .services-container p {
    width: 70%;
  }

  .tarif-container {
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 1rem 0;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0px 0px;
    grid-template-areas:
      "tarif tarif-association forfait"
      "tarif tarif-jeune forfait";
  }

  .tarif {
    grid-area: tarif;
  }
  .tarif-jeune {
    grid-area: tarif-jeune;
  }
  .forfait {
    grid-area: forfait;
  }
  .tarif-association {
    grid-area: tarif-association;
  }

  .services img {
    margin: 15px 20px 15px 20px;
  }

  .tarif-jeune,
  .tarif-association {
    height: 240px;
    width: 240px !important;
  }

  /* Animation */
  .tarif {
    grid-area: tarif;
    opacity: 0;
    animation-name: slideInLeft;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  .forfait {
    grid-area: forfait;
    opacity: 0;
    animation-name: slideInRight;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease;
    animation-timeline: view();
    animation-range: entry 0% cover 40%;
  }

  @keyframes slideInLeft {
    from {
      transform: translateX(-100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }

  @keyframes slideInRight {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
/* Fin Animation */
/* Fin Section Services */

/* Section Frais de déplacement */
.deplacement {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: var(--text-color);
}

.deplacement img {
  width: clamp(16.75rem, 80vw, 31.25rem);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.deplacement p {
  text-align: center;
  line-height: 1.6;
  margin: 2.5rem;
}

.deplacement li {
  line-height: 1.6;
}

@media (min-width: 1280px) {
  .deplacement p {
    margin: 2rem;
  }
}
/* Fin Section Frais de déplacement */

/* Section Contact */
.contact {
  padding: 3rem 1rem;
  color: var(--light-text-color);
  background-color: var(--main-color);
}

.contact h2 {
  margin-bottom: 2.5rem;
}

.contact p {
  text-align: center;
  line-height: 1.6;
}

.numero {
  margin: 1.2rem;
}

.email {
  margin: 2.5rem;
}

.numero,
.email {
  font-size: 1.2rem;
  font-weight: bold;
}

.icons-container {
  width: 100%;
  display: flex;
  gap: 150px;
  justify-content: center;
}

.icons-container img {
  height: 40px;
}

.contact-container .numero,
.contact-container .email {
  transition: transform 0.5s ease;
}

.contact-container .numero:hover,
.contact-container .email:hover {
  transform: scale(1.1);
}

.icons-container img {
  transition: transform 0.5s ease;
}

.icons-container img:hover {
  transform: scale(1.1);
}

@media (min-width: 1280px) {
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
/* Fin Section Contact */

/* Section Témoignages */
.temoignages {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 0;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

.temoignages h2 {
  margin-bottom: 2.5rem;
}

.temoignages p {
  text-align: center;
  line-height: 1.6;
  margin: 0 1rem 3rem;
}

/* Carousel Mobile */
.swiper__container {
  width: 100%;
  padding: 40px 0;
}

.swiper-3d {
  perspective: 800px !important;
}

.swiper-slide {
  background: var(--secondary-color);
  border-radius: 12px;
  width: 80%;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

@media (min-width: 1280px) {
  .swiper-3d {
    perspective: 1200px !important;
  }
}

@media (min-width: 1920px) {
  .swiper-3d {
    perspective: 1600px !important;
  }
}
/* Fin Carousel Mobile */
/* Fin Section Témoignages */

/* Footer */
footer {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  gap: 25px;
}

footer img {
  height: clamp(30px, 5vw, 40px);
  width: auto;
}

.signatures-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.signatures-container p {
  font-size: clamp(14px, 1.5vw, 18px);
  margin-bottom: 0.8rem;
}

footer p {
  text-align: center;
}

.signatures-designer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signatures-container button:hover {
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

footer img {
  transition: transform 0.5s ease;
}

footer img:hover {
  transform: scale(1.1);
}

footer a {
  transition: transform 0.5s ease;
}

footer a:hover {
  transform: scale(1.1);
}

@media (min-width: 1024px) {
  .signatures-container {
    gap: 6rem;
  }
}
@media (min-width: 1280px) {
  .signatures-container {
    gap: 16rem;
  }
}
/* Fin Footer */

/* Copyright */
.copyright {
  background-color: var(--main-color);
  color: var(--text-color);
  text-align: center;
  padding: 2rem 0;
}

.anim-title {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
/* Fin Copyright */

@media (min-width: 1280px) {
  .definition-osteopathie,
  .deplacement,
  .contact,
  .temoignages {
    padding: 3rem 1rem 4rem 1rem;
  }

  .a-propos,
  .services,
  footer {
    padding: 3rem 1rem 3rem 1rem;
  }

  .pourquoi-osteopathe {
    padding: 3rem 0;
  }
}
