:root {
  /* Accent color */
  --header-bg: #ffffff56;
  --programme: #422006;
  --bg-programme: #fef9c3;
  --bg-aventure: #ffeaa7;
  --bg-explo: #ffdfa3;
  --gallerie: #1a2e05;
  --bg-gallerie: #f7fee7;
  --ferme: #500724;
  --ferme-sub: #50072431;
  --ferme-2sub: #5007240c;
  --bg-ferme: #fdf2f8;
  --contact: #042f2e;
  --bg-contact: #f0fdfa;

  --blur: 8px;
  --max-width: 70rem;

  --shadow: 3px 6px;
}

body,
html {
  overflow-x: hidden;
  user-select: none;
  scroll-behavior: smooth;
  font-family: Bricolage Grotesque;
}

* {
  /* Reset property */
  margin: 0;
  padding: 0;

  user-select: none;

  /* Custom cursor */
  cursor: url('cursor.svg'), auto;
}

a {
  color: black;
  cursor: url('link.svg'), auto;
}

header {
  position: fixed;
  z-index: 1;
  width: 100%;

  background-color: transparent;
  backdrop-filter: none;
  transition: all .5s ease, border-bottom 0s;
}

.scrolled {
  background-color: var(--header-bg);
  backdrop-filter: blur(var(--blur));
  border-bottom: 2px solid black;
}

header div {
  max-width: var(--max-width);
  margin: auto;
}

header h1 {
  display: block;
  float: left;
  padding: 1rem 0 1rem 1.4rem;
  cursor: url('link.svg'), auto;
}

header ul {
  list-style: none;
  overflow: hidden;
}

header ul a {
  display: block;
  padding: 0.7rem 1rem 0.7rem 1.4rem;
  font-size: 1.3rem;
  color: black;
  text-decoration: none;
}

header li {
  cursor: url('link.svg'), auto;
  position: relative;
}

/* menu */

header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

header .menu-icon {
  cursor: url('link.svg'), auto;
  float: right;
  padding: 2.1rem 1.4rem;
  position: relative;
  user-select: none;
}

header .menu-icon .navicon {
  background: black;
  display: block;
  height: 3px;
  position: relative;
  transition: background .2s ease-out;
  width: 23px;
}

header .menu-icon .navicon:before,
header .menu-icon .navicon:after {
  background: black;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

header .menu-icon .navicon:before {
  top: 7px;
}

header .menu-icon .navicon:after {
  top: -7px;
}

/* menu btn */

header .menu-btn {
  display: none;
}

header .menu-btn:checked~.menu {
  max-height: 12rem;
}

header .menu-btn:checked~.menu-icon .navicon {
  background: transparent;
}

header .menu-btn:checked~.menu-icon .navicon:before {
  transform: rotate(-45deg);
}

header .menu-btn:checked~.menu-icon .navicon:after {
  transform: rotate(45deg);
}

header .menu-btn:checked~.menu-icon:not(.steps) .navicon:before,
header .menu-btn:checked~.menu-icon:not(.steps) .navicon:after {
  top: 0;
}

@media (min-width: 55em) {
  header h1 {
    padding: 1rem 0 1rem 0.7rem;
  }

  header div {
    padding: 0 0.7rem 0 0.7rem;
  }

  header ul a {
    float: left;
    padding: 1.5rem 0.7rem 1.3rem 0.7rem;
  }

  header .menu {
    clear: none;
    float: right;
    max-height: none;
  }

  header .menu-icon {
    display: none;
  }

  header li::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: black;
    bottom: 0;
    left: 0;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
  }

  header a:hover li::before {
    transform-origin: left;
    transform: scaleX(1);
  }
}

.bg-programme {
  background-color: var(--bg-programme);
  color: var(--programme);
  border-top: 2px solid var(--programme);
  border-bottom: 2px solid var(--programme);
}

.bg-aventure {
  background-color: var(--bg-aventure);
  color: var(--aventure);
  border-bottom: 2px solid var(--aventure);
}

.bg-explo {
  background-color: var(--bg-explo);
  color: var(--explo);
  border-bottom: 2px solid var(--explo);
}

.bg-ferme {
  background-color: var(--bg-ferme);
  color: var(--ferme);
  border-bottom: 2px solid var(--ferme);
}

main .max {
  margin: auto;
  max-width: var(--max-width);
  padding: 1rem;
}

main .container {
  background-color: #5f8cc4;
  display: flex;
  justify-content: center;
  position: relative;
  height: 100vh;
  width: 100vw;
}

main .container img {
  height: 100%;
  min-width: 100%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

main h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

main h2 {
  font-size: 3rem;
  font-family: Dancing Script;
}

main h3 {
  font-size: 1.2rem;
}

main h4 {
  font-size: 2.2rem;
  font-family: Syne;
  font-weight: normal;
}

main h5 {
  font-size: 1.2rem;
  padding: 0.5rem 0;
}

.bg{
  padding: 2rem 0;
}

.presentation {
  display:inline-block;
  border: 2px solid ;
  border-bottom: none;
  margin: 1rem 1rem 0 1rem;
  padding: 1rem 1.8rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: var(--shadow);
}

.aventure-nature{
  margin-bottom: 2rem;
}

.aventure-nature .presentation{
  background-color: var(--bg-aventure);
}

.explo-nature .presentation{
  background-color: var(--bg-explo);
}

.hagrid {
  position: relative;
  border: 2px solid var(--programme);
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.aventure-nature .hagrid{
  background-color: var(--bg-aventure);
}

.explo-nature .hagrid{
  background-color: var(--bg-explo);
}

.border {
  border-right: none;
  border-bottom: 2px solid var(--programme);
}

@media (min-width: 50rem) {
  .hagrid {
    grid-template-columns: 1fr 1fr
  }
  
  .border {
    border-right: 2px solid var(--programme);
    border-bottom: none;
  }
}

main .activite {
  padding: 1rem 1.8rem;
}

main .activite p{
  margin-bottom: 0.5rem;
}

main li{
  margin-bottom: 0.5rem;
}

main table {
  margin: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid var(--ferme);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 40rem;
  border-radius: 15px;
  overflow: hidden;
}

main thead {
  background-color: var(--ferme-sub);
}

main tbody>tr:nth-of-type(even) {
  background-color: var(--ferme-2sub);
}

th,
td {
  padding: 0.5rem;
  border-right: 2px solid var(--ferme);
}

th:last-child,
td:last-child {
  border-right: 0;
}

main .list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

#contact{
padding-bottom: 0;}

.bg-contact {
  background-color: var(--bg-contact);
  color: var(--contact);
}

main .contact a {
  color: var(--contact);
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 1rem;
}

main .contact svg {
  padding-right: 0.5rem;
  fill: var(--contact);
}

main #map {
  margin: 0;
  padding: 0;
  height: 20rem;
  width: 100%;
}

iframe {
  float: right;
}

footer .space{
  display: block;
  height: 3Opx;
}

footer {
  border-top: 2px solid #264e00;
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 4px;
  background-color: #cdebb0;
  color: #264e00;
  padding: 1rem;
}

footer a {
  color: #264e00;
}

/* code for gallerie.html */

.galerie {
  padding: 6rem 1rem 1rem 1rem;
  background-color: var(--bg-gallerie);
  color: var(--gallerie)
}

.grid-container {
  display: grid;
  gap: 1rem;
}

.grid-container img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  border: 2px solid var(--gallerie);
  box-shadow: var(--shadow);
  cursor: url('link.svg'), auto;
}

@media (min-width: 300px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 600px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-container {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1500px) {
  .grid-container {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1800px) {
  .grid-container {
    grid-template-columns: repeat(7, 1fr);
  }
}