* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

header {
  background-color: #222;
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  background-color: #444;
  text-align: center;
  padding: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
}

nav a:hover {
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  color: #222;
  margin-bottom: 24px;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 100px;
 
}


.cartes {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.carte {
  background: white;
  border: 1px solid #ddd;
  padding: 20px;
  flex: 1;
  text-align: center;
}

.carte h3 {
  margin-bottom: 10px;
}

.carte img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 12px;
}

.carte p {
  color: #666;
  font-size: 0.9rem;
}

.carte .prix {
  color: #b8860b;
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
}


table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  margin-top: 20px;
}

th {
  background-color: #222;
  color: white;
  padding: 12px;
  text-align: left;
}

td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background-color: #f9f9f9;
}

.prix {
  color: #b8860b;
  font-weight: bold;
}

.logo-marque {
  height: 30px;
  vertical-align: middle;
  margin-right: 8px;
}



.carousel-container {
  position: relative;
  margin-top: 10px;
}


.carousel-track-wrapper {
  overflow: hidden;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease;
  will-change: transform;
}


.carte-carousel {
  flex: 0 0 calc(25% - 15px);   
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  cursor: default;
}

.carte-carousel:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}


.carte-image-wrap {
  width: 100%;
  height: 250px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carte-montre-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.carte-carousel:hover .carte-montre-img {
  transform: scale(1.05);
}


.carte-body {
  padding: 16px;
}

.carte-marque {
  font-size: 0.78rem;
  color: #555;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}



.carte-modele {
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.3;
}

.carte-matiere {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 10px;
}


.carte-carousel .prix {
  font-size: 1.05rem;
  margin-top: 0;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);    
  z-index: 10;
  width: 40px;
  height: 40px;
  background: #222;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.carousel-btn:hover  { background: #b8860b; }
.carousel-btn:disabled { opacity: 0.35; cursor: not-allowed; }

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


.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}

.carousel-dot.active {
  background: #b8860b;
  transform: scale(1.3);
}

.carousel-dot:hover:not(.active) {
  background: #999;
}


@media (max-width: 1200px) {
  .carte-carousel { flex: 0 0 calc(33.333% - 14px); }  
}

@media (max-width: 900px) {
  .carte-carousel { flex: 0 0 calc(50% - 10px); }    
  .carousel-btn-prev { left:  -10px; }
  .carousel-btn-next { right: -10px; }
}

@media (max-width: 600px) {
  .carte-carousel { flex: 0 0 100%; }               
  .carousel-btn-prev { left:  0; }
  .carousel-btn-next { right: 0; }
}

@media (max-width: 576px) {

  
   nav {
        display: flex;
        flex-direction: column;
       padding: 8px 0;
    }

   nav a {
       display: block;
        margin: 0;
       padding: 10px 20px;
        border-bottom: 1px solid #555;
    }

   nav a:last-child {
       border-bottom: none;
   }

   
   .cartes {
        flex-direction: column;
    }

    .carte {
        width: 100%;
   }


    table thead tr th:nth-child(3),
    table tbody tr td:nth-child(3) {
       display: none;
    }

   th, td {
        padding: 8px;
       font-size: 0.85rem;
   }
   
    .logo-marque {
       height: 22px;
    }

   
    .search-box {
       padding: 20px;
    }

    .btn-row {
        flex-direction: column;
   }

   .btn-retour {
       text-align: center;
       justify-content: center;
   }

   
   .resultats-grid {
        flex-direction: column;
   }

   .resultats-grid .carte {
        flex: 1 1 100%;
   }
}

