:root {
  --gris-anthracite: #4A4A4A;
  --blanc-casse: #F8F8F8;
  --corail-doux: #FF6B6B;
  --ombre-legere: rgba(74, 74, 74, 0.1);
  --corail: #e74c3c;
}

/* ========== SECTION PRINCIPALE ========== */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.produit {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.produit img {
  max-width: 350px;
  border-radius: 10px;
}

.produit-info {
  flex: 1;
}

.produit-info h1 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #333;
}

.description-amelioree {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  color: #333;
}

/* ========== STYLES COMMUNS ========== */
.account-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.color-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

.color-select label {
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border: 2px solid #ccc;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.color-select input[type="radio"] {
  display: none;
}

.color-select input[type="radio"]:checked+label {
  border: 2px solid #00aaff;
}

.color-blanc {
  background: #ffffff;
}

.color-noir {
  background: #000000;
}

.color-swatch {
  transition: transform 0.2s;
}

input:checked + .color-swatch {
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--corail);
}

#color-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.color-option {
  display: flex;
  align-items: center;
}

.prix {
  font-size: 2.5rem;
  font-weight: bold;
  color: #e74c3c;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.ancien-prix {
  font-size: 1.5rem;
  text-decoration: line-through;
  color: #7f8c8d;
  margin-left: 1rem;
}

.boutons {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}

.boutons button {
  background: var(--corail);
  color: white;
  border: none;
  padding: 1rem 2rem;
  margin-right: 1rem;
  cursor: pointer;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s, transform 0.3s;
}

.boutons button:hover {
  background: #e95a5a;
  transform: scale(1.05);
}

.boutons button:active {
  background: #e95a5a;
  transform: scale(1);
}

.similaires {
  display: block !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
}

.similaire {
  display: inline-block !important;
  width: 280px !important;
  margin-right: 1.5rem !important;
  vertical-align: top !important;
  white-space: normal !important;
}

.similaire img {
  max-width: 100%;
  border-radius: 10px;
}

.similaire a {
  text-decoration: none;
  color: #00aaff;
  font-weight: bold;
}

.moyens-paiement {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.moyens-paiement img {
  height: 32px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.titre-similaires {
  text-align: center;
  margin: 0.5rem 0 1rem;
  width: 100%;
  font-size: 1.8rem;
  color: #333;
  position: relative;
  padding: 5px 0;
  margin: 0.5rem 0 0.5rem;
}

/* ========== PYRAMIDE INVERSE - OPTIMISÉ SEO ========== */
.sections-specifiques {
    width: 100%;
    margin: 3rem 0;
    padding: 0 1rem;
    box-sizing: border-box;
}

.pyramid-sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pyramid-section {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
}

.pyramid-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ========== PYRAMIDE INVERSE - MODERNE & ÉPURÉE ========== */
.pyramid-top {
    width: 100%;
    background: linear-gradient(135deg, var(--blanc-casse) 0%, #ffffff 100%);
    color: var(--gris-anthracite);
    text-align: center;
    border: 2px solid var(--gris-anthracite);
    box-shadow: 0 5px 20px var(--ombre-legere);
}

.pyramid-middle {
    width: 85%;
    background: linear-gradient(135deg, var(--gris-anthracite) 0%, #3a3a3a 100%);
    color: var(--blanc-casse);
    border: 2px solid var(--corail-doux);
    box-shadow: 0 5px 20px rgba(74, 74, 74, 0.2);
}

.pyramid-bottom {
    width: 70%;
    background: linear-gradient(135deg, var(--corail-doux) 0%, #e55c5c 100%);
    color: var(--blanc-casse);
    border: 2px solid var(--gris-anthracite);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.15);
}

/* Amélioration des en-têtes de section */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pyramid-top .section-header {
    justify-content: center;
}

.section-header i {
    font-size: 1.8rem;
}

.pyramid-top .section-header i {
    color: var(--corail-doux);
}

.pyramid-middle .section-header i {
    color: var(--corail-doux);
}

.pyramid-bottom .section-header i {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Styles du texte */
.pyramid-section h2,
.pyramid-section h3,
.pyramid-section h4 {
    margin: 0;
    font-weight: 700;
    line-height: 1.3;
}

.pyramid-top h2 {
    font-size: 2rem;
    color: var(--gris-anthracite);
}

.pyramid-middle h3 {
    font-size: 1.6rem;
    color: var(--blanc-casse);
}

.pyramid-bottom h4 {
    font-size: 1.4rem;
    color: var(--blanc-casse);
}

/* Listes */
.usage-list,
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usage-list li,
.features-list li {
    padding: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.usage-list li:last-child,
.features-list li:last-child {
    border-bottom: none;
}

.usage-list li i,
.features-list li i {
    color: var(--corail-doux);
    font-size: 0.9rem;
}

/* ========== MEDIA QUERIES ========== */

/* ≤ 992px */
@media (max-width: 992px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 20px;
  }
  .search-bar {
    order: 3;
    flex: 1 1 100%;
    margin: 10px 0;
  }
  .account-cart {
    order: 2;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  /* 1) Contenu principal */
  main {
    padding: 0 1rem !important;
  }

  /* 2) Fiche produit full-width */
  .produit {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 1rem !important;
  }
  .slider-container,
  .produit-info {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .slider-container {
    height: 50vw !important;
    max-height: 300px !important;
  }
  .produit-info {
    padding: 1rem !important;
  }
  .boutons {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .boutons button {
    width: 100% !important;
    margin: 0 !important;
  }

  /* 3) Section Avis full-width + centrée */
  #reviews-section,
  .reviews-wrapper,
  .reviews-container {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box;
    position: relative;
  }
  #reviews-section {
    padding: 1.5rem 0 !important;
  }
  .reviews-container {
    display: flex !important;
    overflow-x: auto !important;
    gap: 1rem !important;
    padding: 0.5rem 0 !important;
  }
  .review-card {
    flex: 0 0 calc(100% - 2rem) !important;
    margin: 0 1rem !important;
  }

.reviews-wrapper .left-arrow,
.reviews-wrapper .right-arrow {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 1.2rem !important;
  background: var(--corail) !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12) !important;
}


  .reviews-wrapper .left-arrow {
    left: 1rem !important;
  }
  .reviews-wrapper .right-arrow {
    right: 1rem !important;
  }

  /* 4) Section Similaires full-width + grille 2 colonnes */
  .titre-similaires,
  .similaires {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
    box-sizing: border-box;
  }
.similaires {
  display: flex !important;
  flex-wrap: nowrap !important; /* Garde nowrap au lieu de wrap */
  justify-content: flex-start !important; /* flex-start au lieu de space-between */
  gap: 1rem !important;
  overflow-x: auto !important; /* auto au lieu de hidden */
}
.similaire {
  flex: 0 0 auto !important; /* auto au lieu de calc(50% - 0.5rem) */
  margin: 0 !important;
  width: 250px !important; /* Largeur fixe pour mobile */
}
}

/* ≤ 576px */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  nav ul {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .account-btn,
  .cart-btn {
    padding: 8px 12px;
  }
  .produit-info h1 {
    font-size: 1.3rem;
  }
  .color-select label {
    width: 25px;
    height: 25px;
  }
  .review-card {
    flex: 0 0 calc(100% - 20px);
    margin: 0 10px;
  }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .slider-container {
    height: 70vw;
    max-height: 300px;
    margin: 0 5px;
  }
  .slider-prev, .slider-next {
    font-size: 1.5rem;
    padding: 5px;
  }
}