/* =========================
   RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #fff;
    background: #000;
}

/* =========================
   HEADER
========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(41, 41, 41, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.logo-link {
    display: inline-block;
}

.logo-img {
    height: 70px;
    width: auto;
}

/* =========================
   NAVIGATION
========================= */
nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #00ffff;
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* =========================
   PAGE ACCUEIL (FOND FIXE SANS BUG)
========================= */
.home-page {
    background: url('asset/fond.png') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    padding-top: 120px;
    position: relative;
}

/* léger filtre */
.home-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 0;
}

/* =========================
   MAIN
========================= */
main {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
}

/* =========================
   HERO
========================= */
.hero {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 60px;
    animation: fadeUp 0.8s ease;
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    opacity: 0.9;
}

/* =========================
   BOUTONS
========================= */
.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 30px;
    border-radius: 50px;
    background: linear-gradient(90deg, #007bff, #00ffff);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.4);
}

/* =========================
   PRESENTATION
========================= */
.presentation {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: fadeUp 1s ease;
}

.presentation h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

/* =========================
   PRODUITS
========================= */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.product:hover {
    transform: translateY(-8px);
}

.product img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product h3 {
    margin: 15px 0;
}

/* =========================
   GALERIE
========================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.4s ease;
}

.gallery img:hover {
    transform: scale(1.04);
}

/* =========================
   FOOTER
========================= */
footer {
    margin-top: 80px;
    padding: 30px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.9rem;
}

/* =========================
   ANIMATIONS LÉGÈRES
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    nav {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* =========================
   GOOGLE FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');
/* =====================================
   FIX FINAL BOUTIQUE (HTML INTACT)
===================================== */

/* 1️⃣ Le fond animé ne doit JAMAIS bloquer les clics */
.floating-elements {
    pointer-events: none;
    z-index: 0;
}

/* 2️⃣ Le contenu boutique passe au-dessus */
.boutique-page main,
.boutique-header,
.products-container,
.why-buy {
    position: relative;
    z-index: 2;
}

/* 3️⃣ Centrage propre de la boutique */
.products-container {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 4️⃣ Grille produits stable */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    width: 100%;
}

/* 5️⃣ Carte produit = base saine */
.product-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 255, 255, 0.15);
}

/* 6️⃣ Badge produit (nouveau / populaire / limité) */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: #00ffff;
    color: #000;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-badge.popular {
    background: #ffcc00;
}

.product-badge.limited {
    background: #ff4d4d;
    color: #fff;
}

/* 7️⃣ Image produit */
.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover zoom (léger, pas de lag) */
.product-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-image:hover .product-hover {
    opacity: 1;
}

.product-hover i {
    color: #00ffff;
    font-size: 2rem;
}

/* 8️⃣ Infos produit */
.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 8px;
}

.product-info .description {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* 9️⃣ Prix + bouton */
.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
}

.buy-button {
    background: linear-gradient(90deg, #007bff, #00ffff);
    border: none;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.buy-button:hover {
    transform: translateY(-2px);
}

/* 🔟 Responsive clean */
@media (max-width: 768px) {
    .price-container {
        flex-direction: column;
        gap: 10px;
    }
}
/* =====================================
   FIX "POURQUOI ACHETER CHEZ NOUS ?"
===================================== */

.why-buy {
    max-width: 1100px;
    margin: 80px auto 0;
    padding: 0 20px;
    text-align: center;
}

.why-buy h2 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Grille des avantages */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Carte */
.feature {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 255, 255, 0.18);
}

/* Icône */
.feature i {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #00ffff;
}

/* Titre */
.feature h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Texte */
.feature p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .why-buy {
        margin-top: 60px;
    }
}
/* =====================================
   FIX HEADER FIXED → DÉCALAGE CONTENU
===================================== */

/* Hauteur réelle du header */
header {
    height: 90px;
}

/* Décale TOUT le contenu sous le header */
.boutique-page main {
    padding-top: 140px; /* header + marge confortable */
}

/* Sécurité : titre bien visible */
.boutique-header {
    margin-top: 20px;
}
/* =====================================
   WARNING SÉCURITÉ (CENTRÉ EN HAUT)
===================================== */

.boutique-header {
    position: relative;
}

/* Le badge warning */
.boutique-header .warning {
    position: absolute;
    top: -60px;                 /* juste sous le header */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.4);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(6px);
}

/* Icône */
.boutique-header .warning i {
    color: #00ffff;
    font-size: 1rem;
}

/* Mobile */
@media (max-width: 768px) {
    .boutique-header .warning {
        top: -45px;
        font-size: 0.8rem;
        padding: 8px 16px;
        white-space: normal;
        text-align: center;
    }
}
.mini-train-container {
  position: fixed;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 45px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Train */
.mini-train {
  display: flex;
  align-items: flex-end;
  animation: train-move 22s linear infinite;
}

/* === LOCOMOTIVE (AVANT DU TRAIN) === */
.loco {
  width: 48px;
  height: 22px;
  background: linear-gradient(180deg, #3fa9f5, #1e90ff);
  border-radius: 8px 5px 4px 4px; /* avant arrondi */
  margin-right: 6px;
  position: relative;
}

/* Cheminée À L’AVANT */
.loco .chimney {
  position: absolute;
  top: -8px;
  right: 10px; /* ← correction clé */
  width: 8px;
  height: 8px;
  background: #1e90ff;
  border-radius: 2px 2px 0 0;
}

/* Roues loco */
.loco .wheel {
  position: absolute;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: #0f4c81;
  border-radius: 50%;
}

.loco .wheel:nth-child(2) { left: 10px; }
.loco .wheel:nth-child(3) { right: 10px; }

/* === WAGONS === */
.wagon {
  width: 40px;
  height: 20px;
  background: linear-gradient(180deg, #7cc6ff, #4aa3ff);
  border-radius: 4px;
  margin-right: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Texte TTS */
.wagon .label {
  font-size: 8px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Roues wagons */
.wagon::before,
.wagon::after {
  content: "";
  position: absolute;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: #0f4c81;
  border-radius: 50%;
}

.wagon::before { left: 6px; }
.wagon::after  { right: 6px; }

/* Animation gauche → droite */
@keyframes train-move {
  from { transform: translateX(110vw); }
  to   { transform: translateX(-300px); }
}
