/* Styles pour les pages de produits */

/* Section Produit avec logo en arrière-plan */
.produit-section {
    padding: 120px 5% 60px;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.produit-section:before {
    display: none;
}

.produit-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.produit-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    border: 1px solid rgba(255, 70, 85, 0.2);
    overflow: visible;
    background-color: var(--dark);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    position: relative;
    /* Ajout d'un display flex pour centrer le contenu verticalement si besoin */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.produit-image-inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.produit-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.produit-info {
    flex: 1;
    min-width: 300px;
}

.produit-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.produit-info h1 .badge {
    font-size: 0.9rem;
    background-color: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.produit-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status.disponible {
    color: var(--success);
}

.status.indisponible {
    color: var(--danger);
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--accent);
}

.rating-count {
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 5px;
}

.produit-price {
    margin-bottom: 25px;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 70, 85, 0.15) 0%, rgba(255, 70, 85, 0.05) 100%);
    display: inline-flex;
    align-items: baseline;
    border-left: 3px solid var(--primary);
    border-radius: 4px;
}

.produit-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.produit-price .period {
    font-size: 1rem;
    color: var(--gray);
    margin-left: 5px;
}

.produit-description {
    margin-bottom: 30px;
    color: var(--gray);
    line-height: 1.7;
}

.produit-features {
    margin-bottom: 30px;
}

.produit-features h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.produit-features ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.produit-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--light);
}

.produit-features li i {
    color: var(--primary);
}

.produit-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-lg {
    padding: 12px 25px;
    font-size: 1.1rem;
}

.produit-garantie {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.garantie-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
}

.garantie-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Section Détails Produit */
.produit-details {
    padding: 60px 5%;
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.produit-details:before {
    display: none;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.details-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active:after {
    transform: scaleX(1);
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-content {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-pane h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.tab-pane h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--primary);
}

.tab-pane p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 15px;
}

.tab-pane ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.tab-pane li {
    color: var(--gray);
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
}

.tab-pane li:before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.tab-pane li strong {
    color: var(--light);
    font-weight: 600;
}

/* Configuration requise */
.config-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.config-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

/* Avis clients */
.avis-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.avis-moyenne {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
}

.moyenne {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.avis-moyenne .stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin: 10px 0;
}

.total-avis {
    color: var(--gray);
    font-size: 0.9rem;
}

.avis-distribution {
    flex: 1;
    min-width: 300px;
}

.avis-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stars-count {
    width: 60px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars-count i {
    color: var(--accent);
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--primary);
}

.percent {
    width: 40px;
    text-align: right;
    color: var(--gray);
}

.avis-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.avis-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.avis-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.avis-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avis-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.user-info h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 5px;
}

.date {
    color: var(--gray);
    font-size: 0.9rem;
}

.avis-rating {
    color: var(--accent);
}

.avis-content p {
    color: var(--gray);
    line-height: 1.7;
}

/* Section Produits Similaires */
.produits-similaires {
    padding: 60px 5%;
    background-color: var(--bg-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .produit-container {
        flex-direction: column;
        align-items: center;
    }
    
    .produit-image {
        max-width: 100%;
    }
    
    .produit-cta {
        flex-direction: column;
    }
    
    .details-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        text-align: center;
    }
    
    .avis-header {
        flex-direction: column;
        gap: 15px;
    }
} 

/* Styles pour les options de prix */
.produit-pricing {
    margin-bottom: 25px;
}

.produit-pricing h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.pricing-option {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 70, 85, 0.2);
    border-radius: 8px;
    padding: 20px 15px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-option:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.2);
}

.pricing-option.active {
    background-color: rgba(255, 70, 85, 0.1);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(255, 70, 85, 0.2);
}

/* Suppression du slash sous l'option active */
.pricing-option.active:after {
    display: none;
}

.option-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--primary);
    color: white;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
}

.option-header {
    margin-bottom: 10px;
    text-align: center;
}

.option-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.stock {
    font-size: 0.8rem;
    color: var(--gray);
}

.option-price {
    text-align: center;
}

.option-price .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.option-cta {
    text-align: center;
}

.option-cta .btn {
    width: 100%;
    padding: 8px 15px;
    font-size: 0.9rem;
} 

/* Bouton play centré sur l'image principale */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(80, 0, 120, 0.85);
  border: none;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s;
}
.play-btn:hover {
  background: rgba(120, 0, 200, 0.95);
}
.play-btn i {
  color: #fff;
  font-size: 2.5rem;
  pointer-events: none;
} 