/* css/index.css */

/* ─── SLIDER AVEC HAUTEUR RÉDUITE SUR PC ───────────────── */
.slider {
  width: 100%;
  position: relative;
  margin-bottom: 0.5rem;
  background: #f8f8f8;
}

.slider-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 300px; /* HAUTEUR RÉDUITE pour desktop - ajustez selon vos besoins */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  align-items: center;
  justify-content: center;
}

/* L'image remplit tout l'espace sans bordures */
.slider img,
.slider video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit tout l'espace sans déformation */
  display: block;
  flex-shrink: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 1.5rem;
  padding: 0.8rem;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.slider-arrow.left { 
  left: 1rem; 
}

.slider-arrow.right { 
  right: 1rem; 
}

/* Adaptation Tablette */
@media (max-width: 1024px) {
  .slider-container {
    height: 380px; /* Légèrement réduit pour tablette */
  }
}

/* Adaptation Mobile - GARDÉ COMME AVANT (parfait) */
@media (max-width: 768px) {
  .slider-container {
    height: 350px; /* Gardé inchangé car vous aimez sur mobile */
  }
  
  .slider-arrow {
    padding: 0.6rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}

/* Adaptation Mobile Petit - GARDÉ COMME AVANT */
@media (max-width: 480px) {
  .slider-container {
    height: 250px; /* Gardé inchangé */
  }
  
  .slider-arrow {
    padding: 0.5rem;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .slider-arrow.left {
    left: 0.5rem;
  }
  
  .slider-arrow.right {
    right: 0.5rem;
  }
}
/* ─── MEILLEURES VENTES ─────────────────────────────────────── */
#best-sellers {
  padding: 1rem 0;
  margin-top: 0rem;
}
#best-sellers h2 {
  text-align: center;
  margin-top: 0.5rem;   
  margin-bottom: 1rem;
  font-size: 2rem;
}
#best-sellers .products {
  margin: 0 auto;
  padding: 0 1rem;
  max-width: 1200px;
  box-sizing: border-box;
}

/* ----- Size picker : rectangles arrondis ----- */
/* Conteneur global (déjà présent inline, mais on le renforce proprement) */
.size-picker {
  margin-top: 0.6rem;
  width: 100%;
}

.size-picker .size-label-title {
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texte-fonce, #0f1724);
}

/* Wrapper des options : ligne pouvant revenir à la ligne */
.size-picker .size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
   justify-content: center;
}

/* Container de chaque option - on enlève l'affichage inline-block de l'HTML */
.size-picker .size-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Input radio : invisible mais accessible.
   On conserve le focus pour accessibilité. */
.size-picker .size-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Label style : rectangle avec bords arrondis */
.size-picker .size-option .size-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;           /* touch target minimum */
  padding: 0.4rem 0.75rem;   /* hauteur confortable */
  border-radius: 10px;       /* arrondi des bords */
  border: 1px solid #e6e6e6; /* bord neutre par défaut */
  background: #ffffff;       /* fond neutre */
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--texte-fonce, #111827);
  transition: transform 0.08s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  user-select: none;
}

/* Hover pour desktop / pointer */
.size-picker .size-option .size-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(16,24,40,0.06);
}

/* Etat sélectionné (radio checked) — mise en évidence */
.size-picker .size-option input[type="radio"]:checked + .size-label {
  background: linear-gradient(180deg, rgba(37,99,235,0.12), rgba(37,99,235,0.06));
  border-color: var(--bleu-principal, #2563eb);
  color: var(--bleu-principal, #2563eb);
  box-shadow: 0 8px 18px rgba(37,99,235,0.12);
  transform: translateY(-1px);
}

/* Focus visible pour clavier (accessibilité) */
.size-picker .size-option input[type="radio"]:focus + .size-label,
.size-picker .size-option .size-label:focus {
  outline: 3px solid rgba(37,99,235,0.14);
  outline-offset: 3px;
}

/* Taille active / désactivée */
.size-picker .size-option .size-label[aria-disabled="true"],
.size-picker .size-option input[type="radio"][disabled] + .size-label {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 420px) {
  .size-picker .size-option .size-label {
    min-width: 48px;
    padding: 0.5rem 0.9rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  .size-picker .size-options {
      justify-content: center;
    gap: 0.45rem;
  }
}

/* Optionnel
.size-picker .error-message {
  color: #b00020;
  margin-top: 0.35rem;
  font-size: 0.85rem;
}


/* ─── TÉMOIGNAGES CLIENTS ──────────────────────────────────────── */
.testimonials {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 0;
}
.testimonial-card {
  background-color: #fff;
  border-radius: 0.625rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  margin: 1rem 0;
  padding: 1.25rem;
  text-align: center;
}
.testimonial-card p {
  font-style: italic;
  color: #666;
}
.testimonial-card h3 {
  color: var(--bleu-principal);
  margin-top: 0.625rem;
}



/* ─── MODAL DE REMERCIEMENT ───────────────────────────────────────── */
#thankyou-modal {
  display: none !important;              /* caché par défaut */
  position: fixed;
  inset: 0;                   /* top/right/bottom/left à 0 */
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  /* plus de display:flex ici */
}

/* Lorsqu'on ajoute la classe modal-open, on affiche et on centre */
#thankyou-modal.modal-open {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#thankyou-modal .modal-content {
  background: #fffaf4;
  border: 4px solid var(--corail);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  position: relative;
}

#thankyou-modal h2 {
  color: var(--corail);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

#thankyou-modal p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

#thankyou-modal #modal-order-number {
  display: inline-block;
  font-weight: bold;
  font-size: 1.25rem;
  color: var(--bleu-principal);
}

#thankyou-modal .modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--texte-fonce);
}


