/* ========================================
   VDLV Vape Quiz - Styles
   ======================================== */

.vdlv-vape-quiz-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== TITRE ===== */
.vdlv-vape-quiz-title {
	font-size: 32px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: #1a1a1a;
}

/* ===== FORMULAIRE ===== */
.vdlv-vape-quiz-form {
	background: #f9f9f9;
	border-radius: 8px;
	padding: 40px;
	margin-bottom: 40px;
}

.vdlv-vape-quiz-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}

.vdlv-vape-quiz-field {
	display: flex;
	flex-direction: column;
}

.vdlv-vape-quiz-label {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #1a1a1a;
}

.vdlv-vape-quiz-select {
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: white;
	cursor: pointer;
	transition: border-color 0.2s;
}

.vdlv-vape-quiz-select:hover,
.vdlv-vape-quiz-select:focus {
	border-color: #008B8B;
	outline: none;
}

/* ===== SUBMIT ===== */
.vdlv-vape-quiz-submit {
	text-align: center;
	margin-bottom: 20px;
}

.vdlv-vape-quiz-btn {
	padding: 14px 40px;
	border: none;
	border-radius: 25px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: inline-block;
}

.vdlv-vape-quiz-btn-primary {
	background: #1a1a2e;
	color: white;
}

.vdlv-vape-quiz-btn-primary:hover {
	background: #008B8B;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 139, 139, 0.3);
}

.vdlv-vape-quiz-btn-secondary {
	background: transparent;
	color: #008B8B;
	border: 2px solid #008B8B;
}

.vdlv-vape-quiz-btn-secondary:hover {
	background: #008B8B;
	color: white;
}

/* ===== LOADER ===== */
.vdlv-vape-quiz-loader {
	text-align: center;
	padding: 20px;
	color: #666;
}

.vdlv-vape-quiz-loader p {
	font-size: 14px;
}

/* ===== ERREUR ===== */
.vdlv-vape-quiz-error {
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
}

/* ===== RÉSULTAT ===== */
.vdlv-vape-quiz-result-title {
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	color: #1a1a1a;
}

.vdlv-vape-quiz-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

.vdlv-vape-quiz-product-card {
	background: white;
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 20px;
	transition: box-shadow 0.2s;
}

.vdlv-vape-quiz-product-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vdlv-vape-quiz-product-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.vdlv-vape-quiz-product-image {
	margin-bottom: 15px;
	text-align: center;
	flex: 1;
}

.vdlv-vape-quiz-product-image img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.vdlv-vape-quiz-product-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #1a1a1a;
}

/* ===== VARIATIONS ===== */
.vdlv-vape-quiz-product-variations {
	margin-bottom: 15px;
}

.vdlv-vape-quiz-attribute {
	margin-bottom: 12px;
}

.vdlv-vape-quiz-attribute-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.vdlv-vape-quiz-attribute-select {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	background: white;
	cursor: pointer;
	transition: border-color 0.2s;
}

.vdlv-vape-quiz-attribute-select:hover,
.vdlv-vape-quiz-attribute-select:focus {
	border-color: #008B8B;
	outline: none;
}

/* ===== PRIX ===== */
.vdlv-vape-quiz-product-price {
	font-size: 18px;
	font-weight: 700;
	color: #008B8B;
	margin-bottom: 15px;
}

/* ===== RÉSUMÉ & BOUTON PANIER ===== */
.vdlv-vape-quiz-summary {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.vdlv-vape-quiz-price-section {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vdlv-vape-quiz-price-label {
	font-size: 14px;
	font-weight: 600;
	color: #666;
}

.vdlv-vape-quiz-price-value {
	font-size: 20px;
	font-weight: 700;
	color: #008B8B;
}

.vdlv-vape-quiz-add-to-cart {
	flex-shrink: 0;
}

/* ===== BOUTON RETOUR ===== */
.vdlv-vape-quiz-reset {
	display: block;
	margin: 0 auto;
}

/* ===== MODAL POPUP ===== */
.vdlv-vape-quiz-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	animation: fadeIn 0.3s ease-in;
}

.vdlv-vape-quiz-modal-overlay.active {
	display: flex;
}

.vdlv-vape-quiz-modal {
	background: white;
	border-radius: 8px;
	padding: 40px;
	max-width: 500px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	animation: slideUp 0.3s ease-out;
}

.vdlv-vape-quiz-modal-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

.vdlv-vape-quiz-modal-title {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 15px;
	color: #1a1a1a;
}

.vdlv-vape-quiz-modal-products {
	background: #f9f9f9;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #666;
}

.vdlv-vape-quiz-modal-product {
	margin-bottom: 8px;
}

.vdlv-vape-quiz-modal-product:last-child {
	margin-bottom: 0;
}

.vdlv-vape-quiz-modal-product-name {
	font-weight: 600;
	color: #1a1a1a;
}

.vdlv-vape-quiz-modal-price {
	font-size: 18px;
	font-weight: 700;
	color: #008B8B;
	margin: 15px 0;
}

.vdlv-vape-quiz-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.vdlv-vape-quiz-modal-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	flex: 1;
}

.vdlv-vape-quiz-modal-btn-primary {
	background: #1a1a2e;
	color: white;
}

.vdlv-vape-quiz-modal-btn-primary:hover {
	background: #008B8B;
}

.vdlv-vape-quiz-modal-btn-secondary {
	background: #f0f0f0;
	color: #1a1a1a;
}

.vdlv-vape-quiz-modal-btn-secondary:hover {
	background: #ddd;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.vdlv-vape-quiz-title {
		font-size: 24px;
	}

	.vdlv-vape-quiz-form {
		padding: 20px;
	}

	.vdlv-vape-quiz-fields {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.vdlv-vape-quiz-products {
		grid-template-columns: 1fr;
	}

	.vdlv-vape-quiz-summary {
		flex-direction: column;
		align-items: stretch;
	}

	.vdlv-vape-quiz-add-to-cart {
		width: 100%;
	}

	.vdlv-vape-quiz-modal {
		margin: 20px;
		max-width: calc(100% - 40px);
	}

	.vdlv-vape-quiz-modal-buttons {
		flex-direction: column;
	}
}
