@font-face {
  font-family: 'Formula1';
  src: url(police/Formula1-Bold_web_0.ttf) format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

.top-bar {
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 4px solid;
  border-bottom-color: red;
  z-index: 100;
}

.f1logo {
  width: 130px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 20px;
}

.menu1 {
  display: flex;
  align-items: center;
  gap: 30px;
  white-space: nowrap;
  padding-right: 20px;
}

.menu1 p {
  margin: 0px;
}

.lien {
  color: white;
  font-family: Formula1;
  font-size: 15px;
  transition: transform 0.3s ease;
}

.lien:hover {
  transform: scale(1.2);
}

.lienCard {
  text-decoration: none;
  color: white;
}

.lienCard:hover {
  text-decoration: underline;
}

.menu1 a {
  text-decoration: none;
  color: white;
}

.menu1 a:hover {
  text-decoration: none;
  color: red;
}

html {
  font-size: 62.5%;
}

body {
  font-family: Formula1;
  background-color: white;
}

.containerr {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  flex-direction: column;
}

.containerr .box {
  position: relative;
  width: 30rem;
  height: 30rem;
  margin: 4rem;
}

.containerr .box:hover .imgBox {
  transform: translate(-3.5rem, -3.5rem);
}

.containerr .box:hover .content {
  transform: translate(3.5rem, 3.5rem);
}

.imgBox {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transition: all 0.5s ease-in-out;
}

.imgBox img {
  width: 30rem;
  height: 30rem;
  object-fit: cover;
  resize: both;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background-color: black;
  z-index: 1;
  align-items: flex-end;
  text-align: center;
  transition: 0.5s ease-in-out;
  filter: drop-shadow(5px 5px 0px red);
}

.content h2 {
  display: block;
  font-size: 2rem;
  color: white;
  font-weight: 500;
  line-height: 2rem;
  letter-spacing: 1px;
}

.content span {
  color: #aeaeae;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.teamLogo {
  transition: transform 0.3s ease;
}

.teamLogo:hover {
  transform: scale(1.2);
  filter: drop-shadow(0px 0px 15px red);
}

@media (max-width: 600px) {
  .container .box:hover .content {
    transform: translate(0, 3.5rem);
  }

  .container .box:hover .imgBox {
    transform: translate(0, -3.5rem);
  }
}

.swiper {
  height: 90vh;
}

.swiper-button-prev {
  color: red;
}

.swiper-button-next {
  color: red;
}

.swiper-pagination-bullet-active {
  background: red;
}

.swiper-parent {
  display: flex;
  justify-content: center;
}

.carousel-item img {
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  margin-bottom: 30px;
  max-width: 80%;
  border-radius: 30px;
}

.teamLogo {
  transition: transform 0.3s ease;
}

.teamLogo:hover {
  transform: scale(1.2);
  filter: drop-shadow(0px 0px 15px red);
}

.GP-container {
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: white;
  z-index: 999;
  justify-content: space-between;
  height: 73.67px;
  background-color: black;
}

.nextGP {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 60%;
  height: 50px;
  background-color: black;
  color: white;
  border-radius: 50px;
  border: 3px solid red;
}

.name-race {
  display: flex;
  justify-content: center;
  width: 33%;
  font-size: 1.5rem;
}

.flag-date {
  width: 33%;
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 1.5rem;
}

.flag {
  width: 30px;
  height: 20px;
}

.schedule-race {
  display: flex;
  justify-content: center;
  width: 33%;
  font-size: 1.5rem;
}

.button {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 30px;
  padding-right: 30px;
  border-radius: 50px;
  color: white;
  background-color: black;
  border: 2px solid red;
  font-size: 1.3rem;
  font-family: Formula1;
}

.social {
  display: flex;
  gap: 30px;
  color: white;
  font-size: 30px;
  width: 20%;
  align-items: center;
  justify-content: center;
}

.reseau {
  color: white;
}

.reseau:hover {
  color: red;
}

footer {
  border-top: 4px solid;
  border-top-color: red;
  background-color: black;
  width: 100%;
  height: 73.67px;
}

.bottom {
  position: fixed;
  bottom: 0;
}

.dd {
  position: fixed;
  top: 73.67px;
  bottom: 73.67px;
  left: 0;
  right: 0;
  z-index: -1;
  background-color: black;
}

.dd video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mention {
  width: 20%;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  justify-content: center;
}

.okay {
  display: none;
}

.toggle-menu {
  display: none;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2000;
}

.burger span {
  width: 30px;
  height: 3px;
  background: white;
  margin: 5px 0;
  border-radius: 3px;
  transition: transform 0.4s ease, opacity 0.3s ease, background-color 0.4s ease;
  transform-origin: center;
}

.menu {
  display: none;
}

@media (max-width: 1119px) {

  .logo {
    display: flex;
    justify-content: flex-start;
    width: 33%;
  }

  .buttonAdaptative {
    display: flex;
    justify-content: center;
    width: 33%;
  }

  .okay {
    display: flex;
    justify-content: flex-end;
    width: 33%;
  }

  .burger {
    display: flex;
    padding-right: 20px;
  }

  .menu {
    display: none;
    background: black;
    width: 100%;
    position: absolute;
    top: 73.67px;
    left: 0;
    padding: 20px 0;
    z-index: 1500;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid;
    border-bottom-color: red;
  }

  .menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  .menu li {
    margin: 15px 0;
  }

  .menu a {
    display: flex;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 500;
  }

  .menu a:hover {
    color: red;
  }

  .toggle-menu:checked~.menu {
    display: flex;
  }

  .toggle-menu:checked+.burger span:nth-child(1) {
    transform: translateY(13px) rotate(45deg);
  }

  .toggle-menu:checked+.burger span:nth-child(2) {
    opacity: 0;
  }

  .toggle-menu:checked+.burger span:nth-child(3) {
    transform: translateY(-13px) rotate(-45deg);
  }
}

@media (max-width: 920px) {
  .nextGP {
    display: none;
  }

  .GP-container {
    justify-content: center;
    align-items: center;
  }

  .social {
    width: 50%;
    justify-content: center;
  }

  .mention {
    width: 50%;
    justify-content: center;
  }
}

#hsitory {
  display: none;
}

@media (max-width: 631px) {
  .buttonAdaptative {
    display: none;
  }

  #history {
    display: flex;
  }
}

.r-nextGP {
  display: none;
}

@media (max-width: 920px) {
  .dd {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 20px 0;
  }

  .dd video {
    width: 100%;
    height: auto;
    max-height: 65%;
    object-fit: contain;
    position: relative;
  }

  .r-nextGP {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 90%;
    height: 50px;
    background-color: black;
    color: white;
    border-radius: 50px;
    border: 3px solid red;
    position: relative;
  }

  .r-name-race {
    display: flex;
    justify-content: center;
    width: 33%;
    font-size: 1.5rem;
  }

  .r-flag-date {
    width: 33%;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
  }

  .r-flag {
    width: 30px;
    height: 20px;
  }

  .r-schedule-race {
    display: flex;
    justify-content: center;
    width: 33%;
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .dd video {
    max-height: 60%;
  }

  .r-nextGP {
    width: 95%;
    height: auto;
    padding: 15px 10px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .r-name-race,
  .r-flag-date,
  .r-schedule-race {
    width: 100%;
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {

  .r-name-race,
  .r-flag-date,
  .r-schedule-race {
    font-size: 1.5rem;
  }

  .r-flag {
    width: 25px;
    height: 17px;
  }
}

.div1 {
  padding: 40px;
}

.div3 {
  display: flex;
  justify-content: center;
  width: 100vw;
  margin-top: 40px;
  max-height: 650px;
  margin-bottom: 40px;
}


#stats {
  height: 50px;
  border-radius: 50px;
  border: 3px solid red;
  width: 1200px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: black;
}


.text {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.contai {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

select {
  width: 100%;
  height: 50px;
  border-radius: .3rem;
  -webkit-appearance: none;
  appearance: none;
  background-color: black;
  background-size: 8px 7px, 8px 7px;
  background-repeat: no-repeat;
  background-position: calc(100% - 17px),
    calc(100% - 10px);
  padding: 5px 20px;
  font-size: 2rem;
  color: white;
  border: 3px solid red;
  border-radius: 50px;
}

.selectDriversTeam {
  width: 1440px;
  background-image: linear-gradient(45deg, transparent 50%, rgb(255, 255, 255) 50%),
    linear-gradient(135deg, rgb(255, 255, 255) 50%, transparent 50%);
}

select:focus {
  outline: 1px solid red;
  border-color: red;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 20px;
  position: relative;
  height: auto;
  align-items: stretch;
}

.section {
  background: black;
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
  border: 4px solid red;
}

.section-title {
  font-size: 2.5em;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.stat-item {
  border-bottom: 1px solid #404040;
  padding-bottom: 15px;
  min-height: 72px;
}

.stat-label {
  font-size: 1em;
  color: #999;
  margin-bottom: 8px;
  font-weight: normal;
}

.stat-value {
  font-size: 2.2em;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
}

.career-section .stats-grid {
  grid-template-columns: 1fr;
}

.career-section .stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.career-section .stat-value {
  font-size: 2em;
}

.pilotContainer {
  max-width: 1400px;
  margin: 0 auto;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 20px;
  position: relative;
  height: auto;
  align-items: stretch;
}

.pilot {
  display: flex;
  background-color: black;
  border: 4px solid red;
  border-radius: 30px;
  max-height: 400px;
  overflow: hidden;
}

.infos-pilot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  gap: 30px;
}

.infos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  gap: 10px;
}

.flag-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flag-container img {
  width: 170px;
  height: auto;
}

.imgPilot {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imgPilot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1120px) {
  .menu1 {
    display: none;
  }
}

@media (max-width: 1090px) {
  .container {
    grid-template-columns: 1fr;
    margin: 30px auto;
  }

  .flag-container img {
    width: 130px;
    height: auto;
  }

  .infos {
    font-size: 1.5rem;
  }
}

@media (max-width: 920px) {
  .pilotContainer {
    grid-template-columns: 1fr;
    margin: 30px auto;
  }

  .infos {
    font-size: 2rem;
  }

  .flag-container img {
    width: 170px;
    height: auto;
  }
}

@media (max-width: 600px) {
  .infos {
    font-size: 1.7rem;
  }

  .flag-container img {
    width: 130px;
    height: auto;
  }
}

@media (max-width: 500px) {
  .infos {
    font-size: 1.3rem;
  }

  .flag-container img {
    width: 130px;
    height: auto;
  }

  .infos-pilot {
    gap: 15px;
  }
}

@media (max-width: 420px) {
  .infos {
    font-size: 1rem;
  }

  .flag-container img {
    width: 100px;
    height: auto;
  }
}

.contentt {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 73.67px);
  background-color: black;
}

.mention a {
  text-decoration: none;
  color: white;
}

.legal-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
  color: white;
  line-height: 1.6;
}

.legal-header {
  text-align: center;
  margin-bottom: 50px;
}

.legal-header h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 3px solid red;
  display: inline-block;
  padding-bottom: 10px;
}

.legal-content {
  background: black;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid red;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legal-section {
  margin-bottom: 30px;
}

.legal-section h2 {
  color: white;
  font-size: 1.4rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.legal-section h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: red;
  margin-right: 12px;
  border-radius: 2px;
}

.legal-section p,
.legal-section li {
  color: white;
}

.legal-section ul {
  list-style: none;
  padding-left: 0;
}

.legal-section strong {
  color: white;
}