@font-face {
  font-family: "KorpusA";
  src: url("../fonts/Korpus-Grotesk-A.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "KorpusA8";
  src: url("../fonts/Korpus-Grotesk-A8.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "KorpusC";
  src: url("../fonts/Korpus-Grotesk-C.otf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "KorpusC8";
  src: url("../fonts/Korpus-Grotesk-C8.otf");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Ronfard";
  src: url("../fonts/Ronfard-Regular");
  font-weight: normal;
  font-style: normal;
}

:root {
  --gutter-width: 15px;
  --text-color: #181818;
  --text-size: 22px;
  --highlight-color: #f59e3b;
  --margins: 5%;
}

* {
  box-sizing: border-box;
}

html,
body {
  -webkit-scroll-behavior: smooth;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}

h1,
h2,
h4,
h5,
h6,
p,
a,
li {
  font-family: "KorpusA", sans-serif;
  color: var(--text-color);
  font-weight: normal;
  margin: 0;
  padding: 0;
}

ul,
li {
  list-style: none;
  font-family: "KorpusA", sans-serif;
  font-size: var(--text-size);
}

ul {
  padding: 0 0 0 2rem;
}

ul li {
  text-indent: -2rem;
}

header ul,
header ul li {
  padding: 0;
  text-indent: 0;
}

a,
a:visited,
a:active {
  text-decoration: none;
  color: currentColor;
}

h1 {
  font-size: 1.9rem;
  margin: 0;
}

h1 a {
  text-decoration: underline;
}

p {
  font-size: var(--text-size);
  margin: 0;
}

p {
  line-height: 1.5rem;
}

h3 {
  font-family: "KorpusC", sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
  font-size: var(--text-size);
  line-height: 1.5rem;
}

h3 a {
  font-family: "KorpusC", sans-serif;
  font-weight: normal;
  margin: 0;
  padding: 0;
}

main {
  padding: 0 var(--margins);
}

.tags {
  display: flex;
  gap: 10px;
}

.tag {
  padding: 5px 8px 4px 8px;
  border: 1px solid black;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: fit-content;
  margin-bottom: 10px;
}

.tag p {
  font-size: 18px;
}

.select {
  width: 100%;
  position: relative;
  margin-bottom: 30px;
}

.select select {
  width: 100%;
  padding: 8px;
  border: 1px solid black;
  background-color: #fff;
  cursor: pointer;
}

.select::after {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: #333;
}

strong {
  font-family: "KorpusC", sans-serif;
}

/* TRAITEMENT IMAGE FILTRE ORANGE */
main .img_overlay {
  position: relative;
}

main .img_overlay:before {
  content: "\A";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  background-color: var(--highlight-color);
  transition: all 0.3s ease;
}

main .img_overlay img {
  filter: grayscale(100%) contrast(150%);
  mix-blend-mode: screen;
  transition: all 0.5s ease;
}

main a:hover > .img_overlay img {
  filter: grayscale(0%);
}

main a:hover > .img_overlay:before {
  transition: all 0.5s ease;
  opacity: 0;
}

.item_event img {
  display: flex;
  align-items: center;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 1/1;
}

/* HEADER */
.container_header {
  display: flex;
  justify-content: space-between;
  padding: 70px var(--margins) 70px var(--margins);
}

/* FOOTER */
.container_footer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: var(--gutter-width);
  padding: 180px var(--margins) 70px var(--margins);
}

section.container_footer > * {
  grid-column: span 3;
}

.logo_header,
.logo_footer {
  font-family: "Ronfard";
}

/* ------------------- MENU HEADER ---------------------- */

.logo_header {
  height: 140px;
}

.menu {
  display: block;
  column-count: 2;
  column-gap: 40px;
  padding: 0;
  margin: 0;
}

.menu a {
  position: relative;
}

.menu li {
  display: block;
  width: 100%;
  border-bottom: 1px solid black;
  position: relative;
  margin-bottom: 20px;
  width: 200px;
}

.menu li a {
  font-size: 1.9rem;
  line-height: 1.9rem;
  padding-left: 0;
  transition: all 0.3s ease-out;
}

.menu li:hover a,
.menu li.active a {
  padding-left: 40px;
  font-family: "KorpusC";
}

.menu li .arrow_header {
  width: 0;
  height: auto;
  margin-right: 0;
  position: absolute;
  left: -13%;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease-out;
}

.menu li:hover .arrow_header,
.menu li.active .arrow_header {
  width: 37px;
  left: 0%;
}

/*----------------------- Menu header mobile -----------------------*/

#mobile-menu {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 120px);
  height: calc(100dvh - 120px);
  background-color: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  transform: translateX(-100%);
  transition: all 0.25s ease-in-out;
  display: none;
}

#toggle {
  display: none;
}

.burger {
  display: none;
}

#toggle:checked ~ label > .button_close h1 {
  content: "Close";
}

html:has(#toggle:checked) {
  overflow: hidden;
}

#toggle:checked ~ #mobile-menu {
  transform: translateX(0);
}

#mobile-menu .menu {
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

/* Start coding here */

.container {
  padding: 100px;
}

.logo {
  grid-column: 1 / span 2;
}

.address_footer {
  grid-column: 4 / span 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.follow_newsletter {
  grid-column: 7 / span 3;
}

.other {
  grid-column: 11 / span 2;
  padding-top: 0;

  p {
    padding: 0;
  }
}

.title_follow,
.title_archives {
  padding-bottom: 15px;
}

.button_newsletter {
  gap: 80px;
}

.logo_footer {
  width: 130px;
  height: auto;
}

.logo_contact {
  width: 130px;
  height: 100px;
}

.logo,
.address_footer,
.follow_newsletter,
.other {
  grid-column: 1 / span 12;
}

.container {
  padding: 40px;
}

.logo {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.follow_newsletter {
  display: flex;
  flex-direction: column;
}

.network {
  display: flex;
  flex-direction: column;
}

.logo,
.address_footer,
.follow_newletter,
.network {
  padding-bottom: 15px;
}

.other p {
  padding-top: 15px;
}

.button_newsletter {
  width: fit-content;
  padding: 5px;
  border: 1px solid black;
  display: flex;
  align-items: center;
  gap: 150px;
  margin-top: 5px;
  grid-column: 7 / span 3;
}

.title_archives {
  padding-bottom: 15px;
}

.newsletter_form {
  display: flex;
  align-items: center;
}

.newsletter_form input[type="email"] {
  flex-grow: 0.5;
  padding: 5px;
  border: 1px solid black;
  border-radius: 3px 0 0 3px;
  font-size: 1.2rem;
  font-family: "KorpusA", sans-serif;
}

.newsletter_form .newsletter_submit {
  background-color: black;
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 5.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.newsletter_form .newsletter_submit:hover {
  background-color: #eec72a;
}

.newsletter_form .newsletter_submit i {
  font-size: 1.2rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
}

.newsletters {
  padding: 2rem 0;
  border-bottom: 1px solid black;
  display: flex;
  justify-content: space-between;
}

.newsletters h1 {
  font-family: "Ronfard", sans-serif;
  font-size: 2rem;
  line-height: 2.2rem;
}

form,
.pas-form {
  padding: 0px 1px 0px 0px !important;
  background-color: red !important;
}

nav.pagination > .prev,
nav.pagination > .next {
  display: flex;
}

nav.pagination > .prev {
  justify-content: right;
}

.arrow-prev,
.arrow-next {
  height: 1.5rem;
}

.arrow-prev {
  margin-right: 10px;
}
.arrow-next {
  margin-left: 10px;
}

.arrow-prev {
  transform: rotate(180deg);
}

p > a {
  text-decoration: underline;
}

#sorting-options p > a {
  text-decoration: none;
}

nav.pagination {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 2rem;
  margin-top: 40px;
}
nav.pagination .prev {
  grid-column: 1;
  text-align: center;
}

nav.pagination .page-number {
  grid-column: 2;
  text-align: center;
}

nav.pagination .next {
  grid-column: 3;
  text-align: center;
}

@media screen and (max-width: 700px) {
  .burger,
  #mobile-menu {
    display: flex;
  }

  .logo_header {
    height: 90px;
  }

  nav.all_menu {
    display: none;
  }

  .container_header {
    padding: 20px var(--margins) 70px var(--margins);
  }
  section.container_footer > * {
    grid-column: span 12;
  }
}
