* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Russo One", sans-serif;
            font-weight: 400;
            font-style: normal;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: white;
  color: black;
  scroll-behavior: smooth;
  
  /* --- MODIFICATIONS ICI --- */
  min-height: 100vh; /* 100vh au lieu de 100% pour prendre toute la hauteur de l'écran */
  display: flex;     /* Transforme le body en conteneur flexible */
  flex-direction: column; /* Aligne les éléments de haut en bas */
}

header {
  background-color: #fff;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header a.logo {
  text-decoration: none;
  font-weight: bold;
  color: black;
  font-size: 2rem;
  letter-spacing: 2px;
  transition: transform 0.3s;
  width: 100px;
}

header a.logo:hover {
  transform: scale(1.05);
  color: grey;
  cursor: pointer;
}

header img.logo_rouh {
  width: min(100%, 100px);
}

nav {
  position: relative;
}


    #cart-link {
      position: relative;
      display: inline-block;
      margin-left: auto;
    }

    #cart-icon {
      width: 30px;
      height: auto;
      vertical-align: middle;
    }

    #cart-count {
      position: absolute;
      top: -6px;
      right: -6px;
      background: grey;
      color: #111;
      font-size: 12px;
      font-weight: bold;
      padding: 2px 6px;
      border-radius: 50%;
      display: none;
    }

    #cart-count.show {
      display: inline-block;
    }

    nav {
      position: relative;
    }

   .menu-button {
  background-color: transparent;
  border: none;
  color: black;
  font-size: 1rem;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
}

.menu-button:hover {
  color: grey;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #222;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.3);
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  animation: fadeIn 0.3s ease-in-out;
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background 0.2s, padding-left 0.2s;
}

.dropdown-content a:hover {
  background-color: #333;
  padding-left: 22px;
}


    nav:hover .dropdown-content {
      display: block;
    }

    .nav-container {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
    }

    .menu-nav {
      position: relative;
    }

    .menu-nav:hover .dropdown-content {
      display: block;
    }

.contact{
  width: 30px;
  height: auto;
  margin-top: 5px;
  margin-right: 10px;
}
/*debut page*/

    main {
      max-width: 100%;
      margin: 40px auto;
      display: grid;
      grid-template-columns: repeat(auto-fit,minmax(min(500px,100%), 1fr));
      gap: 40px; 
    justify-items: center;
    }

    .img_article{
      max-width: 70%;
    }

    .carousel {
      position: relative;
      overflow: hidden;
      border-radius: 10px;
      flex: 1 1 50%;
      max-width: 550px;
    }

    .carousel-track {
      display: flex;
      transition: transform 0.5s ease;
      max-width: 100%;
    }

    .carousel img {
      max-width: 100%;
      flex-shrink: 0;
      height: 550px;
      object-fit: cover;
      border-radius: 10px;
    }

    .carousel-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(0, 0, 0, 0.5);
      border: none;
      color: white;
      font-size: 2rem;
      padding: 10px 15px;
      cursor: pointer;
      z-index: 2;
      border-radius: 5px;
      user-select: none;
    }

    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    .dots {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 15px;
      margin-bottom: 30px;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: white;
      opacity: 0.5;
      cursor: pointer;
      transition: background-color 0.3s, transform 0.3s;
      box-shadow: 0px 4px 12px rgba(79, 48, 74, 0.4);
    }

    .dot.active {
      background-color: grey;
      opacity: 1;
      transform: scale(1.2);
    }

    .product-info {
      justify-self: start;
      margin-left: 15px;
      flex: 1 1 45%;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
    }

    h1.product-title {
      font-size: 2.5rem;
      margin-bottom: 10px;
    }

    .price {
      font-size: 2rem;
      color: grey;
      margin-bottom: 20px;
      font-weight: 700;
    }

    .sizes {
      margin-bottom: 25px;
    }

    .sizes p {
      margin-bottom: 10px;
      font-weight: bold;
      color: #808080;
    }

    .size-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .size-options input[type="radio"] {
      display: none;
    }

    .size-options label {
      padding: 10px 18px;
      border: 2px solid grey;
      border-radius: 50px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: bold;
      background-color: transparent;
      color: grey;
      user-select: none;
    }

    .size-options input[type="radio"]:checked + label {
      background-color: grey;
      color: #111;
      transform: scale(1.05);
    }

    .btn-add {
      background: grey;
      color: #111;
      padding: 15px 30px;
      border: none;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      margin-bottom: 20px;
      font-size: 1.1rem;
      transition: background 0.3s, transform 0.3s;
      width: fit-content;
      user-select: none;
      box-shadow: 0px 4px 12px rgba(100, 100, 100, 0.4);
    }

    .btn-add:hover {
  background-color: rgb(178, 178, 178);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(80, 80, 80, 0.6);
}

    .stock {
      margin-bottom: 20px;
      font-weight: bold;
      font-size: 1.1rem;
      color: grey;
    }

    .description {
      color: #808080;
      margin-bottom: 30px;
      line-height: 1.5;
      font-size: 1rem;
    }

    .size_guide{
      max-width: 100%;
    }

    .btn_size{
      max-width: 50% ;
      cursor: pointer;
      background: none;
      border: none;
    }

    .back-link {
      color: grey;
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      display: inline-block;
      user-select: none;
    }

    .back-link:hover {
      text-decoration: underline;
    }

    section.info-section {
      max-width: 1100px;
      margin: 60px auto 40px;
      color: #ccc;
    }

    section.info-section h2 {
      color: grey;
      margin-bottom: 15px;
      font-size: 1.8rem;
    }

    section.info-section p {
      font-size: 1rem;
      margin-bottom: 25px;
      line-height: 1.5;
      color: #808080;
    }

    footer {
      background: #111;
      text-align: center;
      padding: 20px;
      color: #aaa;
      margin-top: 40px;
      font-size: 0.9rem;
      user-select: none;
      margin-top: auto;
    }


    /*image aggrandi ig */
    /* Style de l'arrière-plan sombre (caché par défaut) */
.modal-overlay {
  display: none; 
  position: fixed;
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; /* La seule vraie modification est ici */
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Style de l'image agrandie au centre */
.modal-content {
  max-width: 90%;
  max-height: 90vh; /* Ne dépasse jamais l'écran */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  
  /* Petite animation d'apparition */
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}




/*pop up*/

/* --- POP-UP (TOAST) PERSONNALISÉ --- */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #222;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10000;
  
  /* État caché par défaut */
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* État affiché */
.toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Bordures colorées selon le type de message */
.toast.error {
  border-left: 5px solid red;
}

.toast.success {
  border-left: 5px solid grey; /* Reprend la couleur de tes boutons */
}

#toast-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

#toast-close:hover {
  color: white;
}