:root {
  --main-color: #FFBF99;
  --secondary-color: #6f6f6f;
  --white-color: #fff;
  --black-color: #000000;
  --dark-blue-color: #111827;

  --main-color-button: #FFBF99;
  --main-color-button-hover: #b7896e;
  --main-color-button-active: #846350;

  --font-size-title-L: clamp(30px, 7vw, 45px);
  --font-size-title-S: clamp(12px, 4vw, 18px);
  --font-size-title-M: clamp(18px, 5vw, 35px);
  --font-size-content: clamp(12px, 3vw, 15px);
  --font-size-content-S: clamp(10px, 3vw, 12px);
}

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

body {
  overscroll-behavior: none;
  overflow-x: hidden;
  font-family: "Josefin Sans", sans-serif;
  line-height: 150%;
  background-color: var(--white-color);
}

.hero {
  background: url(../Images/BG.jpg);
  position: relative;
  height: 100dvh;
  width: 100vw;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: var(--white-color);
}

.hero header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vw 4vw 5vw 4vw;
}
header img {
  height: clamp(35px, 5vw, 55px);
}

nav ul,
.menu__box {
  display: flex;
  list-style: none;
}

nav li,
.menu__box li {
  margin-left: 4vw;
}

nav li:first-child,
.menu__box li:first-child {
  margin-left: 0;
}

nav a,
.menu__item {
  position: relative;
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: var(--font-size-content);
  padding-bottom: 2px;

  &::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: transform 250ms;
  }

  &:hover {
    &::after {
      transform: translateX(-50%) scaleX(1);
    }
  }
}

#menu__toggle {
  opacity: 0;
}
#menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  right: 0 !important;
}
.menu__btn {
  display: none;
  position: absolute;
  top: 20px;
  right: 10px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 1;
}
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  transition-duration: 0.25s;
}
.menu__btn > span::before {
  content: "";
  top: -8px;
}
.menu__btn > span::after {
  content: "";
  top: 8px;
}

.description {
  display: flex;
  justify-content: center;
  align-items: left;
  flex-direction: column;
  margin-top: clamp(50px, 10dvh, 350px);
  padding-left: clamp(50px, 10vw, 200px);
}

h1 {
  position: relative;
  width: 45%;
  text-align: left;
  font-size: var(--font-size-title-L);
  margin-bottom: 4dvh;
  line-height: normal;
  &::after {
    content: "";
    border-bottom: 3px solid var(--main-color);
    position: absolute;
    bottom: -12px;
    left: 0;
    width: clamp(45px, 8vw, 70px);
  }
}
.description h3 {
  width: 50%;
  text-align: left;
  font-size: var(--font-size-content);
  color: var(--secondary-color);
  margin-bottom: 3dvh;
  font-weight: normal;
}

.description aside {
  display: flex;
  justify-content: left;
  align-items: center;
}

.description a {
  text-decoration: none;
  color: var(--white-color);
  font-size: var(--font-size-content);
  &::after {
    background-color: var(--main-color);
  }
}

.contact {
  padding: 10px 20px;
  border: 1px solid var(--main-color);
  background-color: transparent;
  margin-right: 2vw;
  transition: 200ms ease-in;
  text-decoration: none;
  font-size: var(--font-size-content);
  &:hover {
    background-color: var(--main-color);
    color: var(--white-color);
    border : 1px solid var(--main-color);
  }
  &:active {
    background-color: var(--main-color-button-active);
  }
}

.secondary-button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  &::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: 50% 50%;
    width: 100%;
    height: 2px;
    background-color: var(--white-color);
    transition: transform 250ms;
  }
  &:hover {
    &::after {
      transform: translateX(-50%) scaleX(1);
    }
  }
}

.secondary-button > :nth-child(1) {
  margin-right: 5px;
}

.secondary-button-black {
  color: var(--main-color);
}

.secondary-button-black:after {
  background-color: var(--main-color);
}

.benefit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 6vw 0;
}
.benefit aside {
  width: 50%;
  text-align: center;
}

h5 {
  color: var(--main-color);
  font-size: var(--font-size-content);
  margin-bottom: 0.5vw;
  font-weight: 700;
}

h2 {
  margin-bottom: 1.5vw;
  font-size: var(--font-size-title-M);
  line-height: normal;
}

h3 {
  font-size: var(--font-size-title-S);
  color: var(--secondary-color);
  font-weight: 700;
}

.content-benefit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(50px, 10vw, 150px);
  margin-top: 6vw;
}

.content-benefit div {
  width: 400px;
}

.content-benefit div p:not(.content-benefit footer p, .content-benefit div h4) {
  font-size: var(--font-size-content);
  color: var(--secondary-color);
}

.content-benefit div h4 {
  font-size: var(--font-size-title-S);
}

.content-benefit header {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-direction: row;
  margin-bottom: 1.5vw;
}

.content-benefit h4 {
  margin-left: 1vw;
}

.content-benefit footer {
  margin-top: 1.5vw;
}

.content-benefit a,
.help a {
  color: var(--main-color);
}

.content-benefit header ion-icon {
  font-size: clamp(20px, 3vw, 25px);
  color: var(--main-color);
}

.help {
  width: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0px;
  background-color: var(--dark-blue-color);
  > img {
    width: 50%;
    height: 100%;
    object-fit: cover;
  }
}

.help article {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  width: 50%;
  height: 100%;
  padding: clamp(50px, 10vw, 200px);
}

.help h3,
.contact-info header h3,
.horaires_complement h3 {
  font-size: var(--font-size-content);
}

.help h3{
  margin-bottom : 4dvh;
}

#presentation{
  scroll-margin-top: 15dvh;
}

#horaires, #faq, #contact{
  scroll-margin-top: 10dvh;
}

#services{
  scroll-margin-top: -10dvh;
}

.help h2,
.help a {
  color: var(--white-color);
}

.help a,
.horaires_complement a {
  margin-top: 1.5vw;
}

.presentation,
.horaires {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  padding: clamp(50px, 10vw, 200px);
  > img {
    width: clamp(100px, 10vw, 250px);
  }
}

.horaires {
  justify-content: space-around;
  background-color: var(--dark-blue-color);
  color: var(--white-color);
}

.description_presentation,
.horaires_complement {
  width: 40%;
  > aside {
    margin-top: 4dvh;
  }
}

.description_presentation {
  margin-left: clamp(50px, 10vw, 200px);
}

.description_presentation aside a {
  text-decoration: none;
  color: var(--black-color);
  font-size: var(--font-size-content);
}

.description_presentation h3 {
  font-size: var(--font-size-content);
  margin-bottom : 4dvh;
}

.faq {
  padding: clamp(50px, 10vw, 200px);
  user-select: none;
}

.faq__heading {
  color: var(--main-color);
  font-size: var(--font-size-title-L);
  text-align: center;
  height: fit-content;
}

.faq__detail {
  border-bottom: 1px solid hsl(240, 5%, 91%);
  margin: 20px 0 0 0;
  padding: 5px 0 20px 0;
}

.faq__summary:hover,
.faq__summary:active,
.faq__summary:focus {
  color: var(--main-color);
  cursor: pointer;
}

.faq__detail[open] > .faq__summary {
  color : var(--main-color);
  font-weight: 700;
}

.faq__summary {
  color: var(--main-color);
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__summary {
  display: block;
  padding: 0;
  position: relative;
  text-align: right;
}

.faq__summary:after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 10px;
  background-image: url("../Images/chevron-up-outline.svg");
  background-repeat: no-repeat;
  background-position: right center;
  text-align: right;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

details[open] .faq__summary:after {
  transform: rotate(180deg);
}

.faq__question {
  left: 0;
  position: absolute;
  text-align: left;
  top: 0;
  width: 90%;
}

.faq__question {
  display: inline-block;
  margin: 5px 0;
  text-align: left;
  width: 90%;
}

.faq__summary {
  color: var(--black-color);
  font-size: var(--font-size-title-S);
}

.faq__text {
  color: var(--secondary-color);
  font-size: var(--font-size-content);
  line-height: 1.6;
  margin: 10px 0 0 0;
}

.status {
  margin-bottom: 1.5vw;
}

.horaires_section td:not(.day) {
  padding: 5px 10px;
}

.day {
  padding: 5px 10px 5px 0;
}

.day-active {
  font-weight: bold;
}

.horaire-active {
  background-color: var(--main-color);
  padding: 2px 4px;
  color: white;
}

.horaire-inactive {
  background-color: red;
  padding: 2px 4px;
  color: white;
}

.horaires_complement p,
ion-icon {
  color: var(--main-color);
}

.horaires_complement aside a {
  text-decoration: none;
  color: var(--white-color);
  font-size: var(--font-size-content);
}

.complement {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  height: auto;
  padding: clamp(50px, 10vw, 200px);
  background-color: var(--dark-blue-color);
  color: var(--white-color);
}

.complement header,
.contact-info header {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 1.5vw;
}

.complement main {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.complement h3 {
  width: 45%;
  text-align: justify;
}

.contact-CG {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  background-color: var(--dark-blue-color);
}

.contact-info,
.contact-form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 50%;
  height: 100%;
  padding: clamp(50px, 10vw, 200px);
  color: white;
}

.contact-info a {
  text-decoration: none;
  color: var(--white-color);
}

.contact-info article {
  display: flex;
  justify-content: left;
  align-items: center;
  flex-direction: row;
  margin-bottom: 1.5vw;
}

.contact-info article:first-child {
  align-items: flex-start;
}

.contact-info ion-icon {
  margin-right: clamp(12px, 3vw, 20px);
  color: var(--main-color);
}

.contact-info p:hover:not(.siege) {
  text-decoration: underline;
}

.coolinput {
  display: flex;
  flex-direction: column;
  width: auto;
  margin-bottom: 1vw;
}

.text {
  font-size: var(--font-size-content-S);
  color: var(--main-color);
  font-weight: 700;
  position: relative;
  top: 0.5rem;
  margin: 0 0 0 7px;
  padding: 0 3px;
  background: var(--dark-blue-color);
  width: fit-content;
}

.input {
  max-width: 100%;
  width: 100%;
  padding: 11px 10px;
  font-size: var(--font-size-content-S);
  border: 2px var(--main-color) solid;
  border-radius: 5px;
  background: var(--dark-blue-color);
  color: var(--white-color);
}

.input:focus {
  outline: none;
}

.input::placeholder {
  color: var(--secondary-color);
}

button[type="submit"] {
  float: right;
  cursor: pointer;
  margin : 2dvh 0 0 0;
  color: var(--white-color);
}

.discover {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: clamp(50px, 10vw, 200px);
}

.discover footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4dvh;
}

.discover a{
  color : var(--black-color);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 5dvh 0;
  background-color: var(--dark-blue-color);
  color: var(--white-color);
}

.footer h5 {
  color: var(--main-color);
  font-size: var(--font-size-content-S);
}

.nav-links-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1.5vw;
}

.nav-links-footer a,
.nav-links-footer p {
  color: var(--secondary-color);
  font-size: var(--font-size-content);
  &:after {
    background-color: var(--main-color);
  }
}

.nav-links-footer p,
.nav-links-footer address a {
  color: var(--main-color);
}

.nav-links-footer ul:not(.rappel) {
  padding-top: 2dvh;
  margin-top: 2dvh;
  border-top: 2px solid var(--secondary-color);
}

.rappel {
  flex-wrap: wrap;
  justify-content: center;
}

.rappel address {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

@media (max-width: 1050px) {

  #horaires, #services, #contact{
    scroll-margin-top: 0dvh;
  }

  .menu__btn {
    display: flex;
    z-index: 101;
  }

  .menu__box {
    display: block;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: #eceff1;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    transition-duration: 0.25s;
    z-index: 100;
  }
  .menu__item {
    display: block;
    padding: 12px 24px;
    color: var(--black-color);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition-duration: 0.25s;
  }
  .menu__item:hover {
    background-color: #cfd8dc;
  }

  .menu__box li:first-child {
    margin-left: 4vw;
  }

  .menu__item::after {
    background-color: var(--main-color);
  }

  .complement h3 {
    width: 675px;
  }

  .description {
    align-items: flex-start;
    padding-left: clamp(50px, 10vw, 200px);
  }

  h1 {
    width: 75%;
    text-align: left;
  }
  .description h3 {
    width: 90%;
    text-align: left;
  }

  .description aside a {
    font-size: var(--font-size-title-S);
  }

  .benefit aside {
    width: auto;
    text-align: left;
    padding: clamp(20px, 5vw, 30px);
    margin-bottom: 4dvh;
  }

  .content-benefit div {
    width: 300px;
  }

  .content-benefit .item:last-child {
    margin: 4dvh 0;
  }

  .help {
    height: auto;
  }

  .help img,
  .help article,
  .horaires_section {
    width: 100%;
  }

  .help article,
  .complement,
  .presentation,
  .horaires {
    padding: 6dvh clamp(20px, 5vw, 30px);
  }

  .complement h3 {
    width: auto;
  }

  .presentation {
    justify-content: flex-start;
    padding: clamp(50px, 10vw, 200px) clamp(20px, 5vw, 30px);
  }

  .description_presentation,
  .horaires_complement {
    width: auto;
    margin: 0;
  }

  .faq__text {
    margin-top: 5dvh;
  }

  .faq__heading {
    margin-bottom: 4dvh;
  }

  .faq__question {
    width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  details[open] .faq__question {
    white-space: wrap;
    overflow: visible;
    text-overflow: clip;
  }

  .contact-CG,
  .horaires {
    gap: 4dvh;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-info {
    padding: clamp(50px, 10vw, 200px) clamp(50px, 10vw, 200px) 0
      clamp(50px, 10vw, 200px);
  }

  .contact-form {
    padding: 0 clamp(50px, 10vw, 200px) clamp(50px, 10vw, 200px)
      clamp(50px, 10vw, 200px);
  }

  .contact-info h3 {
    margin-bottom: 1.5vw;
  }
}
