/* ---------------- RESET ---------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #fff; /* couleur page de garde */
  color: #111;
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 1s ease;
}

body.loaded {
  opacity: 1;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 48px 24px 48px; /* plus d'espace au-dessus et entre logo/nav */
  transition: transform 0.4s ease, opacity 0.4s ease; 
}
.site-header.hidden { transform:translateY(-100%); opacity:0; }

.logo {
  font-family: 'Syncopate', sans-serif;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

.logo span {
  margin-left: 6px;
  color: #000000; /* accent rouge comme page de garde */
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 32px; /* plus d'espace entre les liens */
}

.main-nav a {
  text-decoration: none;
  color: #111;
  font-size: 16px;
  padding-bottom: 8px;
}

.main-nav a.active {
  border-bottom: 2px solid #111;
}

/* ---------------- BOUTON INSTAGRAM ---------------- */
.insta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #111;
  cursor: pointer;
  transition: all 0.3s ease;
}

.insta-btn:hover {
  background: #111;
}

.insta-btn svg {
  width: 22px;
  height: 22px;
  fill: #111;
  transition: fill 0.3s ease;
}

.insta-btn:hover svg {
  fill: #fff;
}

/* ---------------- FILTRES ---------------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 50px 0;
}

input[type="text"], select {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  background: #f1f1f1;
  color: #111;
  font-size: 14px;
  outline: none;
  transition: background 0.3s, color 0.3s;
}

input[type="text"]:focus, select:focus {
  background: #e5e5e5;
}

/* ---------------- CARTES ---------------- */
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 40px;
}

.card {
  background: #f9f9f9;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 20px;
}

.car-name {
  font-family: 'Syncopate', sans-serif;
  font-size: 18px;
  margin-bottom: 5px;
  color: #111;
}

.car-brand {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.rarity span {
  color: gold;
  font-size: 16px;
}

/* ---------------- CARTES LOCKED ---------------- */
.locked {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 280px;
  background: linear-gradient(145deg, #f1f1f1, #e5e5e5);
  border-radius: 18px;
  overflow: hidden;
}

.locked::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  backdrop-filter: blur(3px);
  z-index: 0;
}

.locked-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syncopate', sans-serif;
  font-size: 100px;
  font-weight: bold;
  color: rgba(0,0,0,0.1);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 25px rgba(0,0,0,0.05);
  animation: flicker 3s infinite ease-in-out;
}

.locked-banner {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(230, 57, 70, 0.1);
  border-top: 1px solid rgba(230, 57, 70, 0.2);
  color: #e63946;
  font-family: 'Syncopate', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 0;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(4px);
  z-index: 2;
  transition: all 0.3s ease;
}

.locked-banner:hover {
  background: rgba(230, 57, 70, 0.25);
  color: #fff;
  box-shadow: 0 -2px 15px rgba(230, 57, 70, 0.2);
}

.locked .card-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #111;
}

.shiftdown { object-position: center 65%; }
.shiftdownn { object-position: center 75%; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  text-align: center;
  padding: 16px 0;
  font-size: 12px;
  color: #555;
  background: #fff;
  border-top: 1px solid #eee;
}

/* BURGER */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 600;
  position: relative;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.menu-open .mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

body.menu-open .mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 400;
}

body.menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-overlay a {
  font-size: 20px;
  color: #111;
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.mobile-menu-overlay a:hover {
  color: #555;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .main-nav { display: none; }
  .about-wrapper { grid-template-columns: 1fr; gap: 40px; padding: 40px 6vw; }
  .about-image img { height: 50vh; }
  .about-text h1 { font-size: 26px; }
  .insta-btn { display: none; }
}


/* ---------------- ANIMATIONS ---------------- */
@keyframes flicker {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05); }
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1100px) {
  main { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
}

@media (max-width: 768px) {
  .site-header { flex-direction: column; gap: 15px; padding: 30px 20px; }
  .main-nav { position: static; transform: none; flex-wrap: wrap; justify-content: center; gap: 20px; }
  main { padding: 0 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .filters { flex-direction: column; gap: 15px; margin: 30px 0; }
  .logo { font-size: 24px; }
  .main-nav a { font-size: 14px; }
  .insta-btn { width: 36px; height: 36px; }
  .insta-btn svg { width: 20px; height: 20px; }
}

