@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
    padding-top: 150px;
}

video.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4);
    pointer-events: none;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: -2;
    background: black;
}

header {
    background: transparent;
    color: #fff;
    padding: 20px 30px 10px;
    position: relative;
    z-index: 10;
}

header h1,
header a {
    margin: 0;
    font-size: 2em;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 10px 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

main {
    padding: 40px 20px;
    z-index: 1;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Grille des produits */
#acheter {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.property {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s;
}

.property:hover {
    transform: scale(1.03);
}

.property img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Boutons */
button {
    background-color: #111;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #333;
    transform: translateY(-1px);
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #ff0;
}

/* Cart icon */
.cart-icon {
    position: fixed;
    top: 25px;
    right: 25px;
    font-size: 28px;
    color: white;
    cursor: pointer;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cart-icon:hover {
    transform: scale(1.1);
}

#cart-count-icon {
    font-size: 14px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    position: absolute;
    top: 0;
    right: 0;
}

/* Panier latéral */
.side-cart {
    position: fixed;
    top: 100px;
    right: -400px;
    width: 350px;
    max-height: 500px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: right 0.4s ease;
    z-index: 1001;
    overflow-y: auto;
    border-radius: 12px 0 12px 12px;
    backdrop-filter: blur(6px);
}

.side-cart.open {
    right: 20px;
}

/* Formulaires */
form {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border: 1px solid #ddd;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
}

form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form input:focus {
    outline: none;
    border-color: #111;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
}

/* Pseudonyme */
header p {
    margin: 0;
    font-weight: bold;
}

/* Responsive */

/* Grille améliorée pour la liste de produits */
.produits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.produit {
    width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.produit:hover {
    transform: scale(1.03);
}

.produit img {
    width: 100%;
    height: 200px;
    object-fit: contain;
}


.produit p {
    margin: 10px 0;
    font-weight: 600;
}

/* Texte pour produit en rupture de stock */
.rupture {
    color: red;
    font-weight: bold;
    font-size: 1.1em;
}

/* Cart-count en haut à droite */
.cart-count {
    background: red;
    color: white;
    padding: 2px 6px;
    font-size: 14px;
    border-radius: 50%;
    margin-left: 5px;
}

/* Select taille */
form select {
    margin-top: 10px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #aaa;
    width: 100%;
}

/* Connexion utilisateur */
header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header nav a {
    margin: 0 10px;
    font-weight: 600;
}

.menu-principal {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.categories-centrees {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.categories-centrees a {
    background-color: black;
    padding: 8px 14px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.categories-centrees a:hover {
    background-color: #222;
}

.actions-droite {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.connexion-lien {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.connexion-lien:hover {
    text-decoration: underline;
}

body {
    font-family: Arial, sans-serif;
    background: white;
    color: #111;
    padding-top: 150px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

input,
select {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    margin-top: 8px;
}

.btn {
    background: black;
    color: white;
    border: none;
    padding: 14px 30px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
}

.btn.secondary {
    background: #f2f2f2;
    color: #111;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.summary {
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.recap {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.connexion-lien {
    margin-left: 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.bienvenue {
    margin-right: 10px;
    color: white;
}

/* --- Amélioration générale visibilité sur la vidéo --- */
main,
.property,
header,
nav,
.categories-centrees {
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.property {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.property p,
.property h2,
.property select,
.property button {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.categories-centrees a {
    font-size: 1.2em;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.categories-centrees a:hover {
    background-color: #ff3838;
    color: #fff;
}

/* --- Cart icon effet --- */
.cart-icon {
    background: linear-gradient(to right, #000, #333);
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* --- Titre produit --- */
.property h2 {
    font-size: 1.3em;
    font-weight: bold;
}

/* --- Footer sombre et stylé --- */
footer {
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.9em;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    letter-spacing: 0.5px;
}

/* --- Bouton modernisé --- */
button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    background-color: #1e1e1e;
    padding: 10px 20px;
    border-radius: 50px;
}

button:hover {
    background-color: #444;
    transform: translateY(-2px);
}


.property {
    animation: fadeInUp 0.6s ease-in-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.property h2,
.property p,
.property select,
.property label {
    color: #111 !important;
    text-shadow: none !important;
}
.produit h2,
.produit p,
.produit select {
    color: #111 !important;
}

h2.categories-titre {
    padding-left: 40px;
    margin-top: 60px;
    font-size: 1.8em;
}
.btn {
    letter-spacing: 1px;
    border-radius: 50px;
    font-weight: 600;
}
.actions-droite {
    display: flex;
    align-items: center;
    gap: 15px;
}

.connexion-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}
.produit {
    animation: fadeInUp 0.6s ease-in-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
button, .btn {
    transition: background 0.3s, transform 0.2s;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    background: #222;
}
footer {
    background: #111;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    border-top: 1px solid #333;
    margin-top: 50px;
}
/* --- Améliorations de style Nike-like --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 30px;
}

.connexion-lien {
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.connexion-lien:hover {
    color: #ff3838;
}

/* Titre "Nos catégories" bien aligné */
h2.title-categories {
    text-align: left;
    padding-left: 40px;
    margin-top: 60px;
    font-size: 1.8em;
    color: white;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

/* Animation d'apparition des cartes produits */
.produit {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

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

/* Barre de recherche */
.search-bar {
    display: flex;
    justify-content: center;
    margin: 40px auto 10px;
}

.search-bar input {
    width: 300px;
    padding: 10px 15px;
    border-radius: 30px;
    border: none;
    font-size: 1em;
}

/* Filtres produits */
.filtres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px auto;
}

.filtres select {
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 1em;
}

/* Tag Nouveau / Promo */
.tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e60023;
    color: white;
    padding: 4px 10px;
    font-size: 0.8em;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
}

.produit {
    position: relative;
}

.produit h3 {
    color: #000000; /* noir */
    font-weight: 600;
    margin: 10px 0;
    text-align: center;
    font-size: 1.1rem;
}

.user-name {
    color: white;
    font-weight: bold;
    margin-right: 15px;
}
.connexion-lien {
    margin-left: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.connexion-lien:hover {
    color: #ccc;
}


/* GENERAL HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  position: relative;
}

.logo {
  font-size: 32px;
  font-weight: bold;
}

.header-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.cart-icon {
  position: relative;
  font-size: 22px;
}

.cart-icon .notif {
  position: absolute;
  top: -8px;
  right: -10px;
  background: red;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  padding: 2px 6px;
}

/* CATEGORIES */
.categories {
  display: flex;
  gap: 10px;
}

.categories a {
  background: rgba(0, 0, 0, 0.8);
  padding: 5px 12px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* RESPONSIVE MOBILE */
@media screen and (max-width: 768px) {
  .burger {
    display: block;
  }

  .categories {
    display: none;
    flex-direction: row;
    justify-content: start;
    gap: 10px;
    position: absolute;
    top: 60px;
    left: 15px;
    z-index: 999;
  }

  .categories.active {
    display: flex;
  }

  .header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .header-right {
    margin-left: auto;
    display: flex;
    gap: 12px;
  }
}


/* -------- BURGER invisible en desktop -------- */
@media screen and (min-width: 769px) {
    .burger {
        display: none;
    }

    .categories-centrees {
        display: flex !important;
        justify-content: center;
        gap: 10px;
        margin: 15px 0;
    }
}