:root {
  --color-bg: hsl(0, 0%, 98%);
  --color-bg-contrast: hsl(0, 0%, 86%);
  --color-text: hsl(0, 0%, 10%);
  --color-text-title: #C7D8A3;
  --color-focus: black;
  --color-contrast: hsl(0, 0%, 20%);
  --color-half-contrast: #FFFDD0;

  --src-img: url('img/papillons_logo64.png');

  --navbar-height: 64px;
  --footer-margin-h: 20px;
  --max-width: 1200px;
  --padding-standard: 1.4rem;
  --logo-size: 48px;
}
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  background-color: var(--color-half-contrast);
}
html, body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: "Abel", Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1.6;
  color: var(--color-text);
  min-width: 268px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1 {
  font-size: 42px;
  line-height: 2.2em;
}

h2 {
  font-size: 32px;
  line-height: 2em;
}

h3 {
  font-size: 28px;
  line-height: 1.4em;
}
button {
  font-size: 24px;
}
main {
  flex-grow: 1;
}
.container {
  max-width: var(--max-width);
  padding-left: var(--padding-standard);
  padding-right: var(--padding-standard);
  margin: 0 auto;
}
#navbar {
  position: fixed;
  height: var(--navbar-height);
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-half-contrast);
  z-index: 1;
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.navbar-item {
  padding: 0.2em;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 899px) {
  .navbar-item {
    padding: 0.7em 1em;
  }
}

.navbar-item:hover {
  background-color: var(--color-text-title);
}
.home-link,
.navbar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 550;
}
.home-link:hover {
  color: var(--color-focus);
}
.navbar-link {
  justify-content: center;
  color: var(--color-text);
}
.navbar-logo {
  width: 176px;
  height: 64px;
  margin-right: 0.5em;
  background-image: var(--src-img);
  background-position: center;
}
#navbar-toggle {
  cursor: pointer;
  border: none;
  background-color: transparent;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.icon-bar {
  display: block;
  width: 25px;
  height: 4px;
  margin: 2px;
  background-color: var(--color-text);
}
#navbar-toggle[aria-expanded="true"] .icon-bar:first-child {
  transform: rotate(45deg);
  position: absolute;
  width: 30px;
  margin: 0;
}
#navbar-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
  opacity: 0;
}
#navbar-toggle[aria-expanded="true"] .icon-bar:last-child {
  transform: rotate(-45deg);
  position: absolute;
  width: 30px;
  margin: 0;
}
#navbar-menu {
  position: fixed;
  top: var(--navbar-height);
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
}
#navbar-toggle[aria-expanded="true"] + #navbar-menu {
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 1;
  visibility: visible;
}
.navbar-links {
  list-style: none;
  position: absolute;
  background-color: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  left: 0;
  right: 0;
  margin: var(--padding-standard);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}
#navbar-toggle[aria-expanded="true"] + #navbar-menu .navbar-links {
  padding: 1em;
  background-color: var(--color-half-contrast);
}
@media screen and (min-width: 899px) {
  #navbar-toggle,
  #navbar-toggle[aria-expanded="true"] {
    display: none;
  }
  #navbar-menu, #navbar-toggle[aria-expanded="true"] #navbar-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    height: 100%;
  }
  .navbar-links,
  #navbar-toggle[aria-expanded="true"] #navbar-menu .navbar-links {
    position: static;
    flex-direction: row;
    margin: 0;
    padding: 0;
    box-shadow: none;
    width: 100%;
    height: 100%;
  }
}
#content {
  padding-top: 64px;
  background-color: var(--color-bg);
}
#content-title {
  text-align: center;
}
#footer {
  padding-top: 15px;
  padding-bottom: 15px;
  text-align: center;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  display: flex;
  background-color: #171717;
  color: #666666;
}
#footer a {
  /* color: var(--color-text); */
  color: #666666;
  margin-bottom: 10px;
}
#footer a:hover {
  color:crimson;
}
article a {
  color: var(--color-text);
}
article a:hover {
  color:crimson;
}
.footer-item-r {
  text-align: right;
}
/* Content */
article {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2em;
  margin-top: 2em;
  scroll-margin-top: 80px;
}
@media screen and (max-width: 899px) {
  article {
    width: 90%;
  }
}
article ul {
  margin-left: 5%;
}
article ol {
  margin-left: 5%;
}
/* Toggle */
.switch {
  display: inline-block;
  width: 48px;
  height: 28px;
  position: relative;
}
.toggle-thumb {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-bg);
  border-radius: 20px;
  cursor: pointer;
}
.toggle-thumb:before {
  content: "";
  height: 20px;
  width: 20px;
  position: absolute;
  left: 4px;
  bottom: 4px;
  border-radius: 50%;
  background-color: var(--color-half-contrast);
  transition: .3s all ease;
}
.checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}
.checkbox:checked + .toggle-thumb:before {
  transform: translateX(20px);
}
.navbar-link.theme-toggle:hover {
  background-color: transparent;
}

/* Card */
.background-container {
    background-image: url('img/animaux_cochons.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 400px;
    display: flex;
    justify-content: end;
    align-items:center;
    overflow: hidden;
    padding-right: 50px;
    border-radius: 8px;
}
.content-panel {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    text-align: center;
}

/* Mobile Styles (screens less than 899px wide) */
@media (max-width: 899px) {
    .background-container {
      height: auto;
      background-position: top;
      border-radius: 0px;
      padding-right: 0px;
    }
    .content-panel {
        background-color: #ffffff;
        box-shadow: none;
        border-radius: 0px;
        padding: 20px;
        margin-top: 200px;
        max-width: 100%;
    }
}

.responsive-img {
  width: 100%;
  height: auto;
}
.big-text {
  font-size: 32px;
  text-align: center;
}
@media (max-width: 899px) {
  .big-text {
    font-size: 28px;
  }
}

/* responsive cards */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 8px -16px;
}

.row,
.row > .column {
  padding: 8px;
}

.column {
  width: 50%;
  padding: 8px;
  display: flex;
}

/* Clear floats after rows */ 
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* Content */
.content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content:baseline;
  box-shadow: 0px 0px 3px 2px var(--color-bg-contrast);
}
.content-center-only {
  border-radius: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content:baseline;
}
.content-center-only iframe {
  border-radius: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content:baseline;
  min-height: 0px;
}
@media screen and (max-width: 899px) {
  .content-center-only iframe {
    min-height: 300px;
  }
}
.content img {
  border-radius: 8px;
}
.content p {
  padding-top: 1em;
}
@media screen and (max-width: 899px) {
  .column {
    width: 100%;
  }
}

/* Slideshow container */
.slideshow-container {
  position: relative;
  margin: auto;
}
.slideshow {
  margin-bottom: 3em;
}

/* Hide the images by default */
.mySlides {
  display: none;
  background-color: var(--color-text-title);
  border-radius: 8px;
}
.slideshow a:hover {
  color:green;
}
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}
/* Caption text */
.caption-text {
  color: var(--color-text);
  padding: 8px 12px;
  text-align: center;
  font-size: 20px;
}
.caption-text h3 {
  margin-bottom: 1em;
}
.numbertext {
  color: #ffffff;
  font-size: 18px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 0.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

.slide-content {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  gap: 30px;
}

.slide-image {
  width: 30%;
  object-fit: cover;
  border-radius: 8px;
}
.text-only {
  justify-content: center;
}
.text-only .caption-text {
  text-align: center;
  width: 90%;
}
@media screen and (max-width: 600px) {
  .slide-content {
    flex-direction: column;
    text-align: center;
  }

  .slide-image,
  .caption-text {
    width: 90%;
  }

  .caption-text {
    text-align: center;
  }
}

/* Parallax */
.parallax {
  border-radius: 8px;
  overflow-x: hidden;
  background-image: url("img/famille_tissot.jpg");
  min-height: 750px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
.parallax-text {
  position: absolute;
  left: 50%;
  width: 80%;
  bottom: 20px;
}
@media screen and (max-width: 899px) {
  .parallax {
    background-attachment: scroll;
    background-position: center;
    background-size: cover;
    min-height: 1000px;
  }
  .parallax-text {
    width: 90%;
    font-size: 18px;
  }
}
.parallax-text2 {
  position: relative;
  left: -50%;
  background-color: var(--color-half-contrast);
  opacity: 0.8;
  padding: 15px 30px;
  border-radius: 8px;
}
.simple-panel {
  border-radius: 8px;
  margin: 1em 0;
  padding: 1.5em 3em;

  background-color: var(--color-text-title);
  font-size: 22px;
}
@media screen and (max-width: 899px) {
  .simple-panel {
    padding: 1em 1em;
  }
}
.simple-panel-title {
  font-size: 28px;
}

/* Collapsible */
.collapsible {
  border-radius: 8px;
  background-color: var(--color-text-title);
  padding:20px;
  cursor: pointer;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
}
.collapsible a {
  color: var(--color-text);
}
.collapsible a:hover {
  color: var(--color-text-title);
}
.collapsible:after {
  content: '\002B';
  font-weight: bold;
  float: right;
  margin-left: 5px;
}
.collapsible.active:after {
  content: "\2212";
  padding-right: 0px;
}
.collapsible-content {
  border-radius: 8px;
  background-color: var(--color-text-title);
  padding: 0 60px;
  max-height: 0;
  overflow: hidden;
  line-height: 2em;
  transition: max-height 0.2s ease-out;
}
.collapsible-root {
  background-color: var(--color-text-title);
  border-radius: 8px;
}
@media screen and (max-width: 899px) {
  .collapsible-content {
    padding: 0 10px;
  }
}
.collapsible-content2 {
  padding: 20px;
  padding-top: 0;
}
.social-icon {
  height: 36px;
  width: 36px;
}
