/* --- Début du script CSS optimisé --- */

/* Corps de la page */
/* Corps de la page */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #000000, #000000); /* Nouveau dégradé de bleu élégant */
    color: #ffffff;
    overflow-x: hidden;
    transition: all 0.3s ease-in-out;
    position: relative; /* Nécessaire pour gérer l'arrière-plan avec les points */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 2px, transparent 2px); /* Points visibles */
    background-size: 50px 50px; /* Taille des points */
    animation: move-particles 12s linear infinite;
    opacity: 0.5; /* Opacité ajustée pour la visibilité des points */
}

@keyframes move-particles {
    from { background-position: 0 0; }
    to { background-position: 100px 100px; }
}


/* Définir l'animation "fade-pulse" */
@keyframes fadePulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.announcement {
  animation: fadePulse 3s infinite ease-in-out;  /* Animation de 3 secondes */
}

/* Animation parallax */
.parallax {
    background-image: url('your-image.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    height: 500px;
    width: 100%;
    position: relative;
}

/* Effet de défilement horizontal pour sections importantes */
.horizontal-scroll {
    display: flex;
    justify-content: space-between;
    overflow-x: scroll;
    padding: 50px 0;
}

.horizontal-scroll .item {
    min-width: 300px;
    margin: 0 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 20px;
    color: rgb(0, 0, 0);
    transition: transform 0.3s ease;
}

.horizontal-scroll .item:hover {
    transform: scale(1.05);
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.testimonials {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 20px;
    background: #000000;
    color: #00AEEF;
}

.testimonial-card {
    background: #00AEEF;
    padding: 30px;
    border-radius: 15px;
    margin: 10px;
    width: 300px;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.6s forwards;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-card h3 {
    font-weight: bold;
    color: #00AEEF;
}

.subscribe-form {
    background: linear-gradient(135deg, #ffffff, #fffefe);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 50px;
}

.subscribe-form input[type="email"] {
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    width: 70%;
    margin-right: 10px;
}

.subscribe-form button {
    padding: 15px 30px;
    border-radius: 10px;
    background: #00AEEF;
    border: none;
    color: #00AEEF;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: #00AEEF;
}

.card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgb(0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgb(0, 0, 0);
}



@keyframes iconPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Animation de défilement --- */
[data-scroll] {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

[data-scroll].visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgb(0, 0, 0);
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(0, 0, 0, 0.95);
}

.navbar .logo {
    font-size: 28px;
    font-weight: bold;
    color: #00AEEF;
    text-transform: uppercase;
    text-shadow: 0 0 8px #00AEEF;
}

.navbar-nav {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.5s ease, transform 0.5s ease;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #000000, #000000);
    transition: width 0.5s ease;
}

.navbar-nav .nav-link:hover {
    color: #00CFFF;
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.navbar-nav .nav-link:hover::before {
    width: 100%;
}

/* Bloc texte et image */
.text-image-block {
    position: relative;
    padding: 120px 20px;
    background: linear-gradient(135deg, #000000 10%, #00CFFF 90%); /* Nouveau dégradé bleu */
    color: #fff;
    text-align: center;
    clip-path: polygon(0 0, 100% 8%, 100% 92%, 0 100%);
    box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    animation: fade-in-block 1.5s ease forwards;
}



@keyframes fade-in-block {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.text-image-block img {
    max-width: 80%;
    border-radius: 15px;
    box-shadow: 0px 15px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.text-image-block img:hover {
    transform: scale(1.1);
    box-shadow: 0px 25px 80px rgb(0, 0, 0);
}

.text-image-block h2 {
    font-size: 52px;
    font-weight: bold;
    background: linear-gradient(90deg, #c6f3ff, #d4e9ff, #cce1ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(234, 242, 247, 0.6);
    animation: gradient-move 3s infinite;
}

.text-image-block p {
    font-size: 20px;
    font-weight: bold;
    background: linear-gradient(90deg, #ffffff, #d4e9ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(234, 242, 247, 0.6);
    animation: gradient-move 3s infinite;
}

.text-image-block .btn {
    padding: 15px 30px;
    background: linear-gradient(120deg, #000000, #000000);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.text-image-block .btn:hover {
    background: linear-gradient(120deg, #000000, #000000);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0px 15px 40px rgba(0, 0, 0, 0.8);
}

.product-card {
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product-card {
  background: #111;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.product {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: rotateX(8deg) rotateY(8deg) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}


/* --- Fin du script CSS optimisé --- */
/* ============================================================
   CORRECTIF GLOBAL : RESET COMPLET DU COMPORTEMENT DES CARTES UPSELL
   ============================================================ */

/* 1. On force le conteneur flex à s'étendre et à centrer les éléments */
.product-wrapper + .container div[class*="d-flex"], 
.product-wrapper ~ .container div[class*="d-flex"],
.mb-5.text-center div[class*="d-flex"] {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

/* 2. On brise de force l'effet "colonne écrasée" sur CHAQUE carte */
.product-wrapper + .container div[class*="d-flex"] > div,
.product-wrapper ~ .container div[class*="d-flex"] > div,
.mb-5.text-center div[class*="d-flex"] > div,
.fix-upsell-card {
    flex: 0 0 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;
    width: 280px !important;
    display: block !important;
}

/* 3. On force la structure interne de la carte (product-card) à occuper tout l'espace des 280px */
.product-wrapper + .container .product-card,
.product-wrapper ~ .container .product-card,
.product-wrapper + .container .sa-product-card,
.product-wrapper ~ .container .sa-product-card {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    transform: none !important; /* Annule les conflits 3D éventuels */
}

/* 4. Fix de l'image pour qu'elle ne soit pas déformée */
.product-wrapper + .container .product-card img,
.product-wrapper ~ .container .sa-product-card img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
}

/* 1. Animation d'arrivée (Slide In Down) */
@keyframes slideInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.product-wrapper {
  animation: slideInDown 0.8s ease-out forwards;
}

/* 2. Modernisation des boîtes de variantes (Classes .variants) */
.variants {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Cible les éléments enfants dans tes variants pour enlever les bordures cyan */
.variants > div {
  border: 1px solid rgba(0, 0, 0, 0.08) !important; /* Bordure très discrète */
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  transition: all 0.3s ease !important;
}

/* Style quand une variante est sélectionnée */
.variants > div.active {
  border: 1px solid #00bfff !important; /* Couleur vive seulement quand actif */
  background: rgba(0, 191, 255, 0.05) !important;
}

/* Suppression des effets agressifs sur les boutons */
.btn-outline-primary {
  border: none !important;
}

/* 1. Rendre le conteneur des variantes plus compact */
.variants {
    display: flex !important;
    flex-direction: row !important; /* Pour aligner les boutons côte à côte */
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* 2. Transformer les grosses boîtes en sélecteurs compacts */
.variants > div {
    flex: 1 !important; /* Ils se partagent l'espace équitablement */
    min-width: 100px !important;
    padding: 10px 15px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    background: #090e17 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
}

/* 3. Style au survol et sélection */
.variants > div:hover {
    border-color: #00bfff !important;
    background: #111827 !important;
}

.variants > div.active {
    border: 1px solid #00bfff !important;
    background: rgba(0, 191, 255, 0.1) !important;
}

/* 4. Masquer les éléments inutiles à l'intérieur (comme le texte "1 In Stock" si tu veux épurer) */
.variants > div .stock-text {
    display: none !important;
}