:root
{
  --color-primary: #5ec576;
}

.btn
{
  display: inline-block;
  background-color: var(--color-primary);
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  padding: 1.25rem 4.5rem;
  border-radius: 10rem;
  cursor: pointer;
  transition: all 0.3s;
}


/* This is BAD for accessibility! Don't do in the real world! */
button:focus
{
  outline: none;
}

img
{
  transition: filter 0.5s;
}

/* Rendre les photos du cabinet visibles */
section.section
{
  min-width : 90rem;
}

/* SLIDER */

/* Groupe de photos du cabinet */
.slider
{
  max-width: 67rem;
  height: 48.5rem;
  margin: 0 auto;
  position: relative;

  border-radius: 2rem;
  /* IN THE END */
  overflow: hidden;
}

.slide
{
  position: absolute;
  top: 0;
  width: 100%;
  height: 50rem;

  display: flex;
  align-items: center;
  justify-content: center;

  /* THIS creates the animation! */
  transition: transform 1s;
}

.slide > img
{
  /* Only for images that have different size than slide */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__btn
{
  position: absolute;
  top: 50%;
  z-index: 10;

  border: none;
  background: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5.5rem;
  width: 5.5rem;
  font-size: 3.25rem;
  cursor: pointer;
}

.slider__btn:hover,
.slider__btn:active
{
  background: rgba(94,197,118,0.8);
  color: #fff;
}

.slider__btn--left
{
  left: 6%;
  transform: translate(-50%, -50%);
}

.slider__btn--right
{
  right: 6%;
  transform: translate(50%, -50%);
}

.dots
{
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
}

.dots__dot
{
  border: 1px solid var(--color-primary);
  background-color: #fff;
  opacity: 0.7;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;
}

.dots__dot:last-child
{
  margin: 0;
}

.dots__dot--active
{
  background-color: var(--color-primary);
  opacity: 1;
}
