/* ACCESSOIRES & RECONDITIONNÉS */

/* Styles pour le bouton + et la fenêtre modale */
.plus-btn {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #41a9da;
  color: white;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.plus-btn:hover {
  background-color: #4dc6ff;
}

/* Styles pour la fenêtre modale */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.close-modal:hover {
  color: #4dc6ff;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.modal-image-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.modal-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.modal-image-container img:hover {
  transform: scale(1.05);
}

.page-hero {
  padding: 2.5rem 1rem 2rem;
}

.page-hero .container {
  max-width: 1100px;
  margin: 0 auto;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
}
.page-hero p {
  margin: 0;
  color: #374151;
}

main {
  padding: 1rem;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

/* Grille services */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.icon-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.access-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  .plus-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    /* autres propriétés... */
    z-index: 5;
  }
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.access-media img,
.access-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.icon-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.icon-item p {
  margin: 0;
  color: #374151;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.product-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.product-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.product-card p {
  margin: 0;
  color: #374151;
}

.note {
  color: #6b7280;
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .icon-grid,
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .icon-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }
}
