﻿/* ============================================
   BOUTIQUE - STYLES GÉNÉRAUX
   ============================================ */

/* Variables pour cohérence avec le site */
:root {
    --color-bg-dark: #0F172A;
    --color-yellow-vif: #FFC947;
}

/* Bandeau promo en haut */
.bandeau-promo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(238, 90, 111, 0.3);
    animation: slideDown 0.5s ease-out;
}

.bandeau-promo strong {
    font-weight: 700;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 20px rgba(255, 107, 107, 0.8);
    }
}

/* Sections avec containers dark */
section {
    background: linear-gradient(145deg, var(--color-bg-dark), #1a1f2e);
    margin: 0 var(--marge-gauche-droite);
    color: white;
    font-size: 18px;
    padding: 20px;
    border-radius: var(--adouss-border);
    margin-bottom: var(--espace-sous-section);
    border: 3px solid var(--color-yellow-vif);
    box-shadow:
        0 8px 20px rgba(255, 201, 71, 0.2),
        0 0 40px rgba(255, 201, 71, 0.25),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

section .titre_P {
    color: var(--color-yellow-vif);
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
}

.img-pacman {
    height: 64px;
    width: auto;
}

.section-description {
    text-align: center;
    font-size: 1.1em;
    color: #cbd5e1;
    margin: -10px 0 30px 0;
}

/* ============================================
   GRILLE DE PRODUITS
   ============================================ */

.produits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0 20px;
}

/* Carte produit */
.produit-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 201, 71, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.produit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 201, 71, 0.3);
    border-color: var(--color-yellow-vif);
}

/* Badge sur la carte */
.produit-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.produit-badge.bestseller {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

.produit-badge.promo {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.produit-badge.gratuit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.produit-badge.prochainement {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}

/* Image du produit */
.produit-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.produit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.produit-card:hover .produit-image img {
    transform: scale(1.05);
}

.bonus-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bonus-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Pack image */
.pack-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-preview {
    position: relative;
    width: 150px;
    height: 150px;
}

.pack-preview img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pack-plus {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: white;
    color: #667eea;
    font-weight: bold;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Overlay pour produits indisponibles */
.produit-indisponible {
    opacity: 0.7;
}

.overlay-indisponible {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
}

/* Contenu de la carte */
.produit-content {
    padding: 20px;
    flex-grow: 1;
}

.produit-content h3 {
    font-size: 1.5em;
    color: var(--color-yellow-vif);
    margin: 0 0 10px 0;
}

.produit-description {
    color: #cbd5e1;
    font-size: 0.95em;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Features */
.produit-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 201, 71, 0.2);
}

.produit-features span {
    font-size: 0.9em;
    color: #cbd5e1;
}

.pack-includes span {
    color: #28a745;
    font-weight: 500;
}

/* Stats */
.produit-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 201, 71, 0.2);
    font-size: 0.9em;
    color: #cbd5e1;
}

/* Footer de la carte */
.produit-footer {
    padding: 20px;
    background: rgba(15, 23, 42, 0.5);
    border-top: 2px solid rgba(255, 201, 71, 0.3);
}

/* Aligne la taille du bouton "Jouer maintenant"/"Recharger" sur celle du bouton "Ajouter au panier" */
.produit-actions .btn-arcade {
    font-size: 0.95em;
    padding: 12px 24px;
}

/* Prix */
.produit-prix {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.prix-barre {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
}

.prix-actuel {
    font-size: 2em;
    font-weight: bold;
    color: var(--color-yellow-vif);
}

.prix-detail {
    font-size: 0.85em;
    color: #cbd5e1;
}

.economie {
    background: #28a745;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 500;
}

.gratuit-text {
    color: #28a745;
}

/* Boutons */
.btn-acheter,
.btn-notifier {
    display: block;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box; /* Inclut padding et border dans la largeur */
}

.btn-acheter {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-acheter:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-gratuit {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-notifier {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-pack {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
}

/* ============================================
   SECTION AVANTAGES
   ============================================ */

.avantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 0 20px;
}

.avantage-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 201, 71, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.avantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 201, 71, 0.3);
    border-color: var(--color-yellow-vif);
}

.avantage-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.avantage-item h3 {
    font-size: 1.3em;
    color: var(--color-yellow-vif);
    margin: 10px 0;
}

.avantage-item p {
    color: #cbd5e1;
    font-size: 0.95em;
    line-height: 1.5;
}

/* ============================================
   TÉMOIGNAGES
   ============================================ */

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
    padding: 0 20px;
}

.avis-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-yellow-vif);
}

.avis-etoiles {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.avis-texte {
    color: #cbd5e1;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.avis-auteur {
    color: var(--color-yellow-vif);
    font-size: 0.95em;
}

.stats-temoignages {
    text-align: center;
    font-size: 1.1em;
    color: #cbd5e1;
    margin-top: 30px;
}

.stats-temoignages strong {
    color: var(--color-yellow-vif);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .produits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .bandeau-promo {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .prix-actuel {
        font-size: 1.5em;
    }

    .avantages-grid,
    .avis-grid {
        grid-template-columns: 1fr;
    }
}

/* Grille spécifique pour défis bonus */
.defis-bonus-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.bonus-card {
    max-width: 400px;
    margin: 0 auto;
}
/* ============================================
   PRODUIT BIENTÃ”T DISPONIBLE (avec contenu visible)
   ============================================ */

.produit-bientot-dispo {
	opacity: 0.9;
}

.produit-bientot-dispo .produit-content,
.produit-bientot-dispo .produit-footer {
	opacity: 0.85;
}

/* Masque pour l'image avec filigrane */
.masque-bientot-dispo-boutique {
	position: relative;
	display: inline-block;
	width: 100%;
}

/* Filigrane bientÃ´t disponible pour boutique */
.filigrane-bientot-dispo-boutique {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(45deg,
			rgba(255, 216, 2, 0.05) 0%,
			rgba(255, 216, 2, 0.15) 25%,
			rgba(255, 216, 2, 0.05) 50%,
			rgba(255, 216, 2, 0.15) 75%,
			rgba(255, 216, 2, 0.05) 100%);
	background-size: 40px 40px;
	animation: filigrane-move-boutique 10s linear infinite;
	border-radius: 15px;
	z-index: 2;
	pointer-events: none;
}

.filigrane-content-bientot-boutique {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #FFD802;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
	background: rgba(3, 34, 76, 0.85);
	padding: 15px 25px;
	border-radius: 15px;
	border: 2px solid #FFD802;
	backdrop-filter: blur(5px);
	animation: filigrane-pulse-boutique 2s ease-in-out infinite;
}

.filigrane-icon-bientot-boutique {
	font-size: 28px;
	margin-bottom: 8px;
	animation: icon-rotate-boutique 3s linear infinite;
}

.filigrane-text-bientot-boutique {
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 2px;
	margin-bottom: 5px;
}

.filigrane-date-bientot-boutique {
	font-size: 11px;
	opacity: 0.9;
	font-style: italic;
}

/* Animations boutique */
@keyframes filigrane-move-boutique {
	0% {
		background-position: 0 0;
	}
	100% {
		background-position: 40px 40px;
	}
}

@keyframes filigrane-pulse-boutique {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.05);
		opacity: 0.95;
	}
}

@keyframes icon-rotate-boutique {
	0%, 100% {
		transform: rotate(-5deg);
	}
	50% {
		transform: rotate(5deg);
	}
}

/* Bouton bientÃ´t disponible */
.btn-bientot-dispo {
	background: linear-gradient(135deg, #999 0%, #666 100%) !important;
	cursor: not-allowed !important;
	pointer-events: none !important;
}