@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    background-color: #0a0a0a;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px;
    background-color: #1a1a1a;
}

.logo img {
    height: 67px;
    width: 80px;
}

nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #9a7445;
}

.hero {
    min-height: calc(100vh - 97px - 40px); /* Ajuste selon la taille exacte de ton header/footer */
    background-image: url('/New_IMG/1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.btn-jouer {
    background-color: #c3a26f;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-jouer a {
    color: white;
    text-decoration: none;
}

.btn-jouer:hover {
    background-color: #9a7445;
}

.hero {
    background-image: url('/New_IMG/1.jpg');
    background-size: cover;
    background-position: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 40px;
}

.hero-content {
    width: 60%;
}

.hero-content h1 {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 2px;
    font-size: 3rem;
    margin-top: 20px;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-top: 30px;
    font-weight: bold;
}

.cards {
  margin: auto;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-gap: 88px;
  max-width: 1554px;
  width: 100%;
  position: relative;
  margin-top: 0px;
}
.card {
  position: relative;
  padding-bottom: 150%;
}

.card-background {
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  filter: brightness(0.75) saturate(1.2) contrast(0.85);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  transform-origin: center;
  transition: .2s;
}
.card:hover .card-background {
  transform: scale(1.05) translateZ(0);
}

.cards:hover > .card:not(:hover) .card-background {
  filter: brightness(0.5) saturate(0) contrast(1.2) blur(20px);
}

.card:hover {
    cursor: default;
}
.card-content {
  padding: 24px;
  position: absolute;
  font-family: arial, sans-serif;
}

.card-content p {
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-content h3 {
  color: rgba(255, 255, 255, .9);
  font-size: 1.9rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.2);
}
@media (max-width: 1500px) and (max-height: 1500px){
.card-content h3 {
    font-size: 1.2em;
}
}
@media(min-width: 540px){
    .header {
    height: auto;
    
    background: url("/IMG/bg2.jpg");
    background-size: cover;
    background-position: center;
    padding: 50px;
}
  .cards {
    
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media(min-width: 960px){
  .cards {
    margin-top: 161px;
    grid-template-columns: repeat(4, 1fr); 
  }
}

.features {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 50px 20px;
    background-color: #121212;
}

.feature {
    max-width: 300px;
    text-align: center;
    color: white;
}

.feature h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ff4655;
}

.feature p {
    font-size: 1rem;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #1a1a1a;
    font-size: 0.9rem;
    color: white;
}