@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Share+Tech+Mono&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background: 
    /* Couche 1 : Lignes horizontales (scanlines) */
    repeating-linear-gradient(to bottom, transparent, transparent 2px, rgba(0,0,0,0.15) 3px),
    /* Couche 2 : Micro-colonnes RGB */
    linear-gradient(90deg, rgba(255, 0, 0, 0.01) 0%, rgba(0, 255, 0, 0.01) 50%, rgba(0, 0, 255, 0.01) 100%),
    /* Couche 3 : Votre dégradé beige d'origine */
    linear-gradient(to bottom, #d6c7b7 0%, #a8937f 100%);

  /* Tailles respectives : Scanlines, Colonnes RGB, et Fond fixe */
  background-size: 100% 3px, 3px 100%, cover;
  
  background-position: center;
  background-attachment: fixed;
  box-shadow: inset 0 0 0 20px #f7f0e7, inset 0 0 20px rgba(0,0,0,0.1);
  border: 20px solid #f7f0e7;
  clip-path: polygon(5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%);
  min-height: 100vh;
  font-family: 'Press Start 2P', cursive;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 20px 100px;
}

/* =============================================
   CONTAINER
   ============================================= */
.main-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* =============================================
   HEADER — carte postale flottante
   ============================================= */
.trip-header {
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 4px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: floatHeader 5s ease-in-out infinite;
}

@keyframes floatHeader {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.header-left {}

.back-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: block;
  margin-bottom: 14px;
  transition: color 0.2s;
}
.back-btn:hover { color: #fff; }

.page-title {
  font-size: 16px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  line-height: 1.8;
}

.page-title span {
  color: #ffe600;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4), 0 0 20px rgba(255,230,0,0.5);
}

.header-stamp {
  backdrop-filter: blur(6px);
  background: rgba(255,230,0,0.25);
  border: 3px solid #ffe600;
  padding: 14px 18px;
  text-align: center;
  transform: rotate(3deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.2);
}

.stamp-num {
  font-size: 28px;
  color: #ffe600;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.4);
  display: block;
  line-height: 1;
}

.stamp-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

/* =============================================
   GRILLE
   ============================================= */
.trips-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* =============================================
   CARTE VOYAGE
   ============================================= */
.trip-card {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s;
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  animation: floatCard 5s ease-in-out infinite;
}

.trip-card:nth-child(2) { animation-delay: 1.2s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}

.trip-card:nth-child(2) {
  transform: rotate(1.5deg);
}
@keyframes floatCard2 {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}
.trip-card:nth-child(2) { animation-name: floatCard2; }

.trip-card:hover {
  transform: rotate(0deg) scale(1.03) translateY(-12px) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  border-color: rgba(255,255,255,0.8);
  animation: none;
  z-index: 10;
}

/* IMAGE */
.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.trip-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

/* Sticker coloré sur l'image */
.card-sticker {
  position: absolute;
  top: 260px;
  right: 14px;
  background: #ff3d6b;
  color: #fff;
  font-size: 12px;
  padding: 8px 12px;
  transform: rotate(6deg);
  border: 2px solid #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.25);
  z-index: 5;
 
}

.card-sticker.yellow {
  background: #ffe600;
  color: #000;
  right: auto;
  left: 14px;
  top: 5px;
  transform: rotate(-5deg);
  animation-delay: 0.8s;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(6deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.08); }
}
.card-sticker.yellow {
  animation-name: wiggleLeft;
}
@keyframes wiggleLeft {
  0%, 100% { transform: rotate(-5deg) scale(1); }
  50% { transform: rotate(-9deg) scale(1.08); }
}

/* BODY de la carte */
.card-body {
  padding: 16px 18px 20px;
}

.card-dest {
  font-size: 15px;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.4);
  display: block;
  margin-bottom: 8px;
}

.card-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-year-tag {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 3px 8px;
  color: #fff;
  font-size: 9px;
}

/* =============================================
   PLACEHOLDER
   ============================================= */
.trip-placeholder {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.08);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 4px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  animation: floatCard 6s ease-in-out infinite 2s;
}

.placeholder-emoji { font-size: 36px; }

.placeholder-text {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 2;
}

/* =============================================
   FOOTER
   ============================================= */
.trips-footer {
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 4px;
  padding: 18px 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.footer-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 8px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: 11px;
  color: #ffe600;
  text-shadow: 0 0 10px rgba(255,230,0,0.5);
}

.footer-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .trips-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 12px; }
  .trip-header { flex-direction: column; gap: 20px; }
}