/* ===========================
   YAN STORE OFFICIEL — style.css
   Global + Images + Layout
   by Emmanuel Bony
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,600;0,700;0,800;1,400&family=Bebas+Neue&display=swap');

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

/* ---- Base ---- */
:root {
  --blue:    #0516e2;
  --blue-dk: #030da8;
  --cyan:    #00eeff;
  --dark:    #0a0a0f;
  --mid:     #1a1a2e;
  --light:   #f0f0f5;
  --white:   #ffffff;
  --gray:    #888;
  --gold:    #f5c518;
  --green:   #25D366;
  --radius:  16px;
  --shadow:  0 8px 32px rgba(5,22,226,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   HEADER / NAV
=========================== */
header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  padding: 12px 0;
  border-radius: 0 0 24px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(5,22,226,.45);
}

nav {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  gap: 16px;
}

nav .logo { justify-self: start; }
nav .nav-links { justify-self: center; }
nav .music-wrapper,
nav .cart-btn { justify-self: end; }

.logo a {
  color: var(--white);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6em;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.nav-links a {
  position: relative;
  font-size: 0.95em;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.35s ease;
  z-index: 1;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
  transform: scale(1.08);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  height: 2px;
  width: 0;
  background: var(--cyan);
  border-radius: 2px;
  transition: width 0.35s ease, left 0.35s ease;
}

.nav-links a:hover::after {
  width: 60%;
  left: 20%;
}

.nav-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, var(--cyan), #ff00f7, #00ffb3);
  background-size: 400% 400%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 10px;
  animation: rgbBg 8s ease infinite;
}

.nav-links a:hover::before { opacity: 0.18; }

@keyframes rgbBg {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Panier badge */
.cart-btn {
  position: relative;
  background: rgba(255,255,255,.12);
  border: 1.5px solid var(--cyan);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-btn:hover {
  background: var(--cyan);
  color: var(--dark);
}

.cart-count {
  background: #ff3860;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  font-weight: 800;
}

/* Music */
.music-wrapper audio {
  height: 28px;
  width: 110px;
  border-radius: 6px;
  outline: none;
  filter: brightness(1.2);
}

/* ===========================
   HERO SECTION
=========================== */
.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(ellipse at 60% 40%, rgba(5,22,226,.35) 0%, transparent 70%),
              radial-gradient(ellipse at 20% 80%, rgba(0,238,255,.12) 0%, transparent 60%),
              var(--dark);
  padding: 60px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230516e2' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.85em;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeUp 0.8s ease both;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(60px, 10vw, 120px);
  letter-spacing: 4px;
  line-height: 1;
  background: linear-gradient(135deg, var(--white) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.9s 0.1s ease both;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.15em;
  color: rgba(255,255,255,.65);
  max-width: 480px;
  animation: fadeUp 1s 0.2s ease both;
  margin-bottom: 40px;
}

.cta-button {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1em;
  letter-spacing: 1px;
  transition: all 0.35s;
  animation: fadeUp 1.1s 0.3s ease both;
  box-shadow: 0 0 30px rgba(0,238,255,.3);
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 50px rgba(0,238,255,.5);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   KEY STATS
=========================== */
.key-stats {
  text-align: center;
  padding: 70px 20px;
  background: var(--mid);
  margin: 0;
}

.key-stats h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4em;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 40px;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,238,255,.15);
  padding: 32px 40px;
  border-radius: 20px;
  min-width: 160px;
  transition: transform 0.3s, border-color 0.3s;
  animation: fadeInUp 0.8s ease both;
  opacity: 0;
}

.stat:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
}

.stat:nth-child(2) { animation-delay: 0.2s; }
.stat:nth-child(3) { animation-delay: 0.4s; }

.number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8em;
  letter-spacing: 2px;
  color: var(--white);
  display: block;
}

.stat p {
  color: rgba(255,255,255,.55);
  font-size: 0.88em;
  margin-top: 6px;
}

/* ===========================
   SECTION TITLES
=========================== */
.section-title {
  text-align: center;
  padding: 60px 20px 30px;
}

.section-title h2 {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2em;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  padding: 12px 40px;
  border-radius: 50px;
}

/* ===========================
   FEATURED ARTICLES (accueil)
=========================== */
.featured-destinations {
  max-width: 1200px;
  margin: 0 auto 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
}

.destination {
  background: var(--mid);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  width: 320px;
  flex-shrink: 0;
}

.destination:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(5,22,226,.35);
}

.image-container {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

.destination:hover .image-container img {
  transform: scale(1.08);
}

.dest-info {
  padding: 20px;
}

.dest-info h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 6px;
}

.dest-info p {
  font-size: 0.83em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===========================
   ADD TO CART BUTTON
=========================== */
.btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9em;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.btn-cart:hover {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 20px rgba(0,238,255,.4);
  transform: scale(1.02);
}

.btn-cart svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===========================
   PRICE TAG
=========================== */
.price {
  font-size: 1.1em;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
}

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials {
  background: var(--mid);
  padding: 80px 20px;
  text-align: center;
}

.testimonials h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2em;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 50px;
}

.testimonial-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonial {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(0,238,255,.12);
  padding: 32px 28px 28px;
  border-radius: 20px;
  max-width: 320px;
  text-align: left;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}

.testimonial:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.testimonial::before {
  content: "\201C";
  font-size: 72px;
  line-height: 1;
  color: var(--blue);
  position: absolute;
  top: 10px;
  left: 16px;
  font-family: Georgia, serif;
}

.testimonial p { font-size: 0.95em; color: rgba(255,255,255,.75); margin-top: 20px; }
.testimonial .author { font-weight: 700; color: var(--cyan); margin-top: 16px; font-size: 0.88em; }

/* Stars */
.stars-rating {
  color: var(--gold);
  font-size: 1em;
  margin-bottom: 8px;
  display: block;
}

/* ===========================
   CONTACT SECTION (accueil)
=========================== */
.contact {
  padding: 80px 20px;
  background: var(--dark);
  max-width: 700px;
  margin: 0 auto;
}

.contact h2 {
  font-family: 'Bebas Neue', sans-serif;
  text-align: center;
  font-size: 2.2em;
  letter-spacing: 3px;
  color: var(--white);
  margin-bottom: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: var(--white);
  font-size: 1em;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color 0.3s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form select option { background: var(--mid); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0,238,255,.05);
}

.contact-form button[type="submit"] {
  padding: 15px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.contact-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,238,255,.4);
}

/* Success message */
.success-msg {
  display: none;
  background: rgba(37,211,102,.15);
  border: 1px solid var(--green);
  color: var(--green);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  margin-top: 10px;
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--mid);
  border-top: 1px solid rgba(0,238,255,.1);
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 24px 0;
  font-size: 0.88em;
}

footer a { color: var(--cyan); text-decoration: none; }

/* ===========================
   SCROLL TOP
=========================== */
.scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.4em;
  box-shadow: 0 8px 20px rgba(5,22,226,.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(0,238,255,.5);
}

/* ===========================
   CART NOTIFICATION
=========================== */
.cart-notification {
  position: fixed;
  top: 100px;
  right: 32px;
  background: var(--blue);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9em;
  box-shadow: 0 8px 30px rgba(5,22,226,.5);
  z-index: 2000;
  transform: translateX(200%);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--cyan);
}

.cart-notification.show { transform: translateX(0); }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .featured-destinations { grid-template-columns: repeat(2,1fr); }
  nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { gap: 4px; }
  .nav-links a { font-size: 0.82em; padding: 6px 10px; }
}

@media (max-width: 600px) {
  .featured-destinations { grid-template-columns: 1fr; }
  .hero h1 { font-size: 60px; }
  .stats-container { gap: 16px; }
}