/* Public styles for WooCommerce Parrainage */

/* === FORMULAIRE D'INSCRIPTION PARRAIN === */
.epa-registration-form {
	max-width: 500px;
	margin: 0 auto;
	padding: 2rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.epa-form-row {
	margin-bottom: 1.5rem;
}

.epa-form-row label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: #374151;
}

.epa-form-row input[type="text"],
.epa-form-row input[type="email"],
.epa-form-row input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.epa-form-row input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.epa-form-actions {
	text-align: center;
	margin-top: 2rem;
}

/* === BOUTONS === */
.epa-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-block;
}

.epa-btn--primary {
	background: #3b82f6;
	color: white;
}

.epa-btn--primary:hover {
	background: #2563eb;
	color: white;
	text-decoration: none;
}

/* === NOTICES === */
.epa-notice {
	padding: 1rem;
	margin: 1rem 0;
	border-radius: 4px;
}

.epa-notice--info {
	background: #dbeafe;
	border: 1px solid #93c5fd;
	color: #1e40af;
}

.epa-notice--warning {
	background: #fef3c7;
	border: 1px solid #fbbf24;
	color: #92400e;
}

.epa-notice--success {
	background: #d1fae5;
	border: 1px solid #34d399;
	color: #065f46;
}

/* === PAGE DE SUCCÈS === */
.epa-success-message {
	text-align: center;
	padding: 3rem 1rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	max-width: 600px;
	margin: 2rem auto;
}

.epa-success-message h2 {
	color: #374151;
	margin-bottom: 1rem;
}

.epa-success-message p {
	color: #6b7280;
	margin-bottom: 1rem;
}

/* === STATISTIQUES === */
.epa-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 2rem 0;
}

.epa-stat-card {
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.epa-stat-card h3 {
	margin: 0;
	color: #374151;
	font-size: 1.5rem;
}

.epa-stat-card p {
	margin: 0.5rem 0 0 0;
	color: #6b7280;
	font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
	.epa-registration-form {
		margin: 1rem;
		padding: 1.5rem;
	}
	
	.epa-stats-grid {
		grid-template-columns: 1fr;
		gap: 0.5rem;
	}
	
	.epa-stat-card {
		padding: 1rem;
	}
	
	.epa-success-message {
		margin: 1rem;
		padding: 2rem 1rem;
	}
}

/* === DASHBOARD PARRAIN === */
.epa-dashboard {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.epa-dashboard h1,
.epa-dashboard h2,
.epa-dashboard h3 {
	color: #374151;
}

.epa-dashboard-section {
	background: #fff;
	border-radius: 8px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* === TABLEAUX === */
.epa-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.epa-table th,
.epa-table td {
	padding: 0.75rem;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.epa-table th {
	background: #f9fafb;
	font-weight: 600;
	color: #374151;
}

.epa-table tbody tr:hover {
	background: #f9fafb;
}

/* === ÉTATS VIDES === */
.epa-empty-state {
	text-align: center;
	padding: 3rem 1rem;
	color: #6b7280;
}

.epa-empty-state h3 {
	margin: 0 0 0.5rem 0;
	color: #6b7280;
}

.epa-empty-state p {
	margin: 0;
	color: #9ca3af;
}

/* === DASHBOARD MODERNE === */
.elevenpro-dashboard {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* En-tête du dashboard */
.epa-dashboard-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem;
	border-radius: 12px;
	margin-bottom: 2rem;
	text-align: center;
}

.epa-dashboard-header h1 {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
}

.epa-dashboard-header p {
	margin: 0.5rem 0 0 0;
	opacity: 0.9;
}

/* Grille de statistiques moderne */
.epa-stats-grid-modern {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

/* Carte de statistique */
.epa-stat-card-modern {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.epa-stat-card-modern--blue {
	border-top: 4px solid #3b82f6;
}

.epa-stat-card-modern--green {
	border-top: 4px solid #10b981;
}

.epa-stat-card-modern--orange {
	border-top: 4px solid #f59e0b;
}

.epa-stat-card-modern--purple {
	border-top: 4px solid #8b5cf6;
}

/* Contenu de la carte */
.epa-stat-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.epa-stat-value h3 {
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	color: #1f2937;
}

.epa-stat-value p {
	margin: 0;
	color: #6b7280;
	font-size: 0.9rem;
}

/* Icônes de statistiques */
.epa-stat-icon {
	padding: 0.75rem;
	border-radius: 50%;
	font-size: 1.5rem;
}

.epa-stat-icon--blue {
	background: #dbeafe;
	color: #3b82f6;
}

.epa-stat-icon--green {
	background: #d1fae5;
	color: #10b981;
}

.epa-stat-icon--orange {
	background: #fef3c7;
	color: #f59e0b;
}

.epa-stat-icon--purple {
	background: #ede9fe;
	color: #8b5cf6;
}

/* Section card (pour tableaux) */
.epa-section-card {
	background: white;
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
}

/* Titre de section */
.epa-section-title {
	margin: 0 0 1.5rem 0;
	color: #1f2937;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
}

.epa-section-title span {
	margin-right: 0.5rem;
}

/* Wrapper pour tableaux */
.epa-table-wrapper {
	overflow-x: auto;
}

.epa-table-wrapper table {
	width: 100%;
}

/* État vide moderne */
.epa-empty-state-modern {
	text-align: center;
	padding: 3rem;
	background: #f9fafb;
	border-radius: 8px;
	border: 2px dashed #d1d5db;
}

.epa-empty-state-modern-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.5;
}

.epa-empty-state-modern h3 {
	margin: 0 0 0.5rem 0;
	color: #6b7280;
}

.epa-empty-state-modern p {
	margin: 0;
	color: #9ca3af;
}

/* === SUCCESS MESSAGE CONTENT === */
.epa-success-content {
	text-align: center;
	padding: 3rem 1rem;
}

.epa-success-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
}

/* === SHORTCODE STATS === */
.epa-stat-icon-simple {
	font-size: 2rem;
	margin-bottom: 0.5rem;
}

.epa-stat-card--gray {
	background: #f8fafc;
}

.epa-stat-card--light-green {
	background: #f0fdf4;
}

.epa-stat-card--green {
	background: #ecfdf5;
}

.epa-stat-card--yellow {
	background: #fef3c7;
}

/* === NOUVELLES COULEURS DE CARTES === */
.epa-stat-card-modern--yellow {
	border-top: 4px solid #eab308;
}

.epa-stat-card-modern--red {
	border-top: 4px solid #ef4444;
}

.epa-stat-card-modern--teal {
	border-top: 4px solid #14b8a6;
}

.epa-stat-card-modern--indigo {
	border-top: 4px solid #6366f1;
}

.epa-stat-icon--yellow {
	background: #fef3c7;
	color: #eab308;
}

.epa-stat-icon--red {
	background: #fee2e2;
	color: #ef4444;
}

.epa-stat-icon--teal {
	background: #ccfbf1;
	color: #14b8a6;
}

.epa-stat-icon--indigo {
	background: #e0e7ff;
	color: #6366f1;
}

/* === STATUTS DES COMMISSIONS === */
.epa-status {
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	display: inline-block;
}

.epa-status--paid {
	background: #dcfce7;
	color: #166534;
}

.epa-status--due {
	background: #fed7aa;
	color: #9a3412;
}

.epa-status--pending {
	background: #ddd6fe;
	color: #5b21b6;
}

.epa-status--cancelled {
	background: #fee2e2;
	color: #991b1b;
}

/* === GRIDS DE STATISTIQUES PAR STATUT === */
.epa-sponsor-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0;
}

.epa-sponsor-stat {
	padding: 1.5rem;
	border-radius: 8px;
	text-align: center;
}

.epa-sponsor-stat h3 {
	margin: 0 0 0.5rem 0;
	font-size: 1.75rem;
}

.epa-sponsor-stat p {
	margin: 0;
	font-weight: 600;
	font-size: 0.9rem;
}

/* === SECTION BADGES === */
.epa-badges-section {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border-radius: 12px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border: 2px solid #fbbf24;
}

.epa-badges-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	margin-top: 1rem;
}

.epa-badge-card {
	background: white;
	border-radius: 10px;
	padding: 1.5rem;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 2px solid transparent;
}

.epa-badge-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
	border-color: #fbbf24;
}

.epa-badge-icon {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.epa-badge-info {
	flex: 1;
	min-width: 0;
}

.epa-badge-title {
	margin: 0 0 0.5rem 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1f2937;
}

.epa-badge-description {
	margin: 0 0 0.75rem 0;
	font-size: 0.9rem;
	color: #6b7280;
	line-height: 1.4;
}

.epa-badge-date {
	display: inline-block;
	font-size: 0.75rem;
	color: #9ca3af;
	background: #f3f4f6;
	padding: 0.25rem 0.75rem;
	border-radius: 12px;
	font-weight: 500;
}

/* Responsive badges */
@media (max-width: 768px) {
	.epa-badges-grid {
		grid-template-columns: 1fr;
	}
	
	.epa-badge-card {
		padding: 1rem;
	}
	
	.epa-badge-icon {
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}
}
