@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

:root {
  --main: #181E35;
  --secondary: #364156;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  position: relative;
}

.socials {
  position: fixed;
  bottom: 5%;
  right: 0;
  z-index: 5;
  height: fit-content;
}

.socials a {
  padding: 1em;
  background-color: var(--main);
  color: white;
}

.socials a:hover {
  background-color: var(--secondary);
}

section p {
  text-align: justify;
}

header {
  color: white;
  background-color: var(--main);
  text-align: center;
}

header>.image,
header>.text {
  padding: 5%;
}

header>.image>img {
  width: 80%;
}

header>.text>#countdown {
  margin-top: 1em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

header>.text>#countdown .number {
  font-size: 3em;
  margin: 0;
}

.video iframe, .video video{
  width: 100%;
  height: 100%;
  min-height: 30rem;
  border: none;
}

.video video{
  background-color: black;
}

main .hero {
  position: relative;
}

main .hero img,
.squared .image img {
  width: 100%;
  display: block;
  height: 100%;
}

main .hero h3 {
  position: absolute;
  left: 0;
  bottom: 0;
  color: white;
  margin-left: 45px;
  font-size: 1.7em;
}

main .hero h3::before {
  position: absolute;
  margin-left: -35px;
  margin-top: 10px;
  content: '';
  top: 0;
  bottom: 0;
  width: 25px;
  height: 5px;
  background-color: white;
}

main .squared .text {
  display: grid;
  align-items: center;
}

main .squared .text div {
  padding: 2em;
}

#description, #association {
  background-color: white;
  color: var(--secondary);
  padding: 2.5em;
  margin-bottom: 2.5rem;
}

#description .bolder, strong {
  font-weight: bold;
}

#description .link {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 1rem;
}
#description a, #association a{
  text-transform: uppercase;
  text-decoration: none;
  color: var(--main);
  padding: 1em;
  border: 1px solid var(--secondary);
  text-align: center;
}

#description a:hover, #association a:hover{
  color: white;
  background-color: var(--secondary);
}

hr {
  color:var(--secondary);
}
main .squared .text a,
#domaine a, #info a {
  padding: 1em;
  border: 2px solid white;
  text-decoration: none;
  color: white;
}

main .squared .text a:hover,
#domaine a:hover, #info a:hover {
  color: var(--secondary);
  background-color: white;
}

main section.partenaire h2 {
  padding-left: 0;
}

.programme {
  color: var(--secondary);
  text-align: center;
  padding-top: 10px;
  position: relative;
  margin-bottom: 2rem;
}

.programme::before {
  content: '';
  position: absolute;
  top: -10px;
  width: 80vw;
  height: 2px;
  transform: translateX(-50%);
  background-color: var(--secondary);
}
.programme .images {
  display: grid;
}

.programme .images img {
  width: 100%;
}

.gallery .mySwiper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery .swiper-slide {
  height: initial;
}

.gallery .swiper-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery .swiper-button-prev, .gallery .swiper-button-next {
  color: white;
}

.partenaire {
  padding: 2em;
  color: var(--secondary);
  border-bottom: 1px solid #E5E5E5;
}

.partenaire .text h2 {
  margin: 0;
}

.partenaire .image {
  text-align: center;
}

.partenaire img {
  padding: 0 5px;
  width: 100%;
  max-height: 100px;
  object-fit: contain;
}

#mustang h2 {
  font-size: 1.35em;
}

#mustang p {
  font-size: 0.9em;
}

#mustang img {
  width: 95%;
}

#traitsardennais h2 {
  font-size: 1.1em;
}

#traitsardennais p {
  font-size: 0.8em;
}

#traitsardennais img {
  width: 50%;
}

#horseShow h2, #pignon h2 {
  color: var(--secondary);
}

#jockey h2 {
  font-size: 1em;
}

#horseShow p, #pignon p {
  color: #707070;
}

#saut {
  color: var(--main);
}

#saut a {
  color: var(--main);
  border-color: var(--main);
}

#saut a:hover {
  color: white;
  background-color: var(--main);
}

#puissance {
  background-color: var(--secondary);
  color: white;
}

#domaine, #info {
  background-color: var(--secondary);
  color: white;
  padding: 2.5em;
}

#info, #info p {
  text-align: center;
}

#info p {
  font-size: 1.1em;
}


#foot .image img {
  width: 100%;
  display: block;
}

#contact {
  display: grid;
  align-items: center;
  background-color: var(--secondary);
  padding: 2em 5%;
}

#contact h3, #contact p {
  color: white;
  text-align: center;
}

#contact p {
  padding: .5em;
  background-color: #4caf50;
}
#contact form {
  width: 100%;
}

#contact form>div {
  display: flex;
}

#contact input,
#contact select,
#contact textarea {
  -webkit-appearance: none;
  width: 100%;
  padding: .5em;
  background-color: var(--secondary);
  color: white;
  border: 2px solid white;
  margin: 1em;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
}

#contact input::placeholder,
#contact textarea::placeholder {
  color: white;
}

#contact input[type="submit"] {
  color: var(--secondary);
  background-color: white;
}

#contact input[type="submit"]:hover {
  color: white;
  background-color: var(--secondary);
  cursor: pointer;
}

footer {
  background-color: var(--main);
  text-align: center;
  padding: 3%;
  display: block;
  color: white;
}

footer a {
  text-decoration: none;
  color: white;
  margin: 1em;
}

footer a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1024px) {
  .flex {
    display: flex;
  }

  header {
    align-items: center;
  }

  header>div {
    width: 50%;
  }

  .squared>div {
    width: 50vw;
  }

  .reverse {
    flex-direction: row-reverse;
  }

  main h2 {
    font-size: 2em;
    font-weight: 400;
  }

  main .hero h3 {
    margin-left: 145px;
    font-size: 3em;
    font-weight: 400;
  }

  main .hero h3::before {
    margin-left: -85px !important;
    margin-top: 20px !important;
    width: 70px !important;
    height: 3px;
  }

  main .squared .image img {
    object-fit: cover;
  }

  main .squared .text p,
  #domaine p, #description p {
    font-size: 1.1em;
  }

  .programme .images {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2px;
  }

  .programme .images img:nth-child(1)::after {
    width:80%;
   border-top:solid 1px #000;
   content: "";
   display: block;
    padding-top: 10px;
  }

  .partenaire .text {
    width: 55%;
  }

  .partenaire {
    align-items: center;
  }

  .partenaire>div {
    width: 50%;
  }

  .partenaire .image .partenaires {
    display: flex;
  }

  .partenaire img {
    width: calc(100% - 5px);
    max-height: 100%;
    object-fit: contain;
  }

  .partenaire .text p {
    width: 50%;
  }

  .partenaire .image {
    text-align: left;
  }

  #traitsardennais img {
    width: 80%;
  }

  #domaine h3, #description h3, .programme h3 {
    font-weight: 400;
    font-size: 2em;
  }

  #foot .image {
    width: 50vw;
  }
  
  #foot .image img {
    height: 100%;
    object-fit: cover;
    width: 50vw;
  }
  
  #contact {
    width: 50vw;
  }

  #contact h3 {
    font-size: 3em;
    font-weight: 400;
  }

  footer div {
    display: flex;
    justify-content: center;
  }
}

.filter {
  filter: brightness(80%);
}