 *,
 *::after,
 *::before {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  font-size: 20px;
  color: white;

  background-image: url("../img/fond_1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

ul {
  list-style-type: none;
  margin: 50;
  padding: 0;
  overflow: hidden;
  position: sticky;
  top: 0;
  margin-right: 100px ;
}

ul li {
  float: right;
  margin-right: 20px;
}

ul li a:hover {
  background-color: #111111;
}

.content {
  text-align: center;
  padding: 50px 30px;
  font-size: 1.25rem;
  color: #fff;
  background-color:rgb(55, 54, 54);
  margin-bottom: 100px;
}

p{
  text-align: left;
}

.logo{
  height: 50px; /* taille du logo */
  width: auto;  /* garde les proportions */
}

.title{
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.corps{
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

/* Mise en page desktop à partir de 768px */

@media screen and (min-width: 768px) {

  nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 20px;

    list-style: none;
    margin: 0;
    padding: 20px;
  }
}

.circuitcontainer{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 100px;
}
.pilotecontainer{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 100px;
}
 .card {
    width: 250px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
    display: flex;           /* ← ajoute ça */
    flex-direction: column;  /* ← et ça */
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;    /* ratio fixe pour toutes les images */
    object-fit: contain;     /* image entière, sans coupure */
    background: #f5f5f5;     /* fond neutre si l'image ne remplit pas */
}

.card-content {
    padding: 15px;
    flex: 1;                 /* ← le contenu prend l'espace restant */
}

.card:hover{
    transform: translateY(-5px);
}

.card h2{
    margin-top: 0;
    font-size: 20px;
    color: #111111;
}

.card p{
    color: #555;
}

a {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  text-decoration: none;
  cursor: pointer;

  /* Ton glassmorphisme */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); /* Safari */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);

  /* Transition au survol */
  transition: all 0.2s ease;
}

a:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

a:active {
  transform: translateY(0px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}


.seachbar {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* aligne à gauche */
  gap: 5px;
}

/* Barre de recherche */
.seachbar input {
  border: none;
  outline: none;
  padding: 5px 100px;
  border-radius: 20px; /* arrondi */
}

/* Bouton loupe */
.seachbar button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.nav-logo {
  height: 40px;      
  width: auto;
  vertical-align: middle;
  border-radius: 5px; 
}

footer {
  display: flex;
  gap: 200px;
}
