/**
 * Styles spécifiques pour la page de démonstration
 * demo.php - BadouBoard
 */

.demo-accounts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.demo-account-card {
	background: white;
	border-radius: 16px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	border: 2px solid transparent;
	opacity: 0;
	transform: translateY(20px);
	animation: slideInUp 0.6s ease forwards;
}

.demo-account-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.demo-account-card:nth-child(2) {
	animation-delay: 0.2s;
}

.demo-account-card.admin {
	border-color: #007ca1;
}

.demo-account-card.employee {
	border-color: #28a745;
}

.demo-icon {
	font-size: 3rem;
	margin-bottom: 20px;
	display: block;
}

.demo-account-card h3 {
	color: #333;
	margin: 0 0 15px 0;
	font-size: 1.4rem;
}

.demo-account-card p {
	color: #666;
	margin: 0 0 20px 0;
	line-height: 1.5;
}

.demo-features {
	text-align: left;
	margin: 20px 0;
	padding-left: 0;
	list-style: none;
}

.demo-features li {
	margin: 8px 0;
	font-size: 14px;
	color: #555;
}

.demo-intro {
	text-align: center;
	margin: 30px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
	border-left: 4px solid #007ca1;
}

.demo-info {
	margin: 40px 0;
	padding: 25px;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border-radius: 12px;
}

.demo-info h3 {
	color: #007ca1;
	margin: 0 0 20px 0;
	text-align: center;
}

.info-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.info-item {
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.info-item strong {
	color: #007ca1;
	display: block;
	margin-bottom: 8px;
}

.info-item p {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.demo-credentials {
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 8px;
	padding: 15px;
	margin: 15px 0;
	font-size: 14px;
}

.demo-credentials strong {
	color: #856404;
}

@keyframes slideInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===========================================
   FORMULAIRE DE DEMANDE DE DEMO
   =========================================== */

.demo-form-container {
	max-width: 500px;
	margin: 30px auto;
	padding: 30px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.demo-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.demo-form .form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.demo-form label {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.demo-form input[type="email"] {
	padding: 14px 16px;
	border: 2px solid #e9ecef;
	border-radius: 8px;
	font-size: 16px;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.demo-form input[type="email"]:focus {
	outline: none;
	border-color: #007ca1;
	box-shadow: 0 0 0 3px rgba(0, 124, 161, 0.1);
}

.demo-form input[type="email"]::placeholder {
	color: #adb5bd;
}

.demo-form .form-help {
	font-size: 12px;
	color: #6c757d;
}

.button-large {
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
}

.btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ===========================================
   MESSAGES DE FEEDBACK
   =========================================== */

.feedback-message {
	text-align: center;
	padding: 30px;
	border-radius: 12px;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.feedback-success {
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	border: 1px solid #28a745;
}

.feedback-success h3 {
	color: #155724;
	margin: 15px 0 10px;
}

.feedback-success p {
	color: #155724;
	margin: 5px 0;
}

.feedback-success .feedback-details {
	font-size: 18px;
	opacity: 0.8;
	margin-bottom: 20px;
}

.feedback-error {
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	border: 1px solid #dc3545;
}

.feedback-error h3 {
	color: #721c24;
	margin: 15px 0 10px;
}

.feedback-error p {
	color: #721c24;
	margin: 5px 0;
}

.feedback-icon {
	font-size: 3rem;
}

/* ===========================================
   SECTION FONCTIONNALITES
   =========================================== */

.demo-features-section {
	margin: 50px 0 30px;
	text-align: center;
}

.demo-features-section h3 {
	color: #333;
	margin-bottom: 30px;
	font-size: 1.3rem;
}

.demo-features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.demo-feature {
	background: white;
	padding: 25px 20px;
	border-radius: 12px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.demo-feature:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.demo-feature .feature-icon {
	font-size: 2.5rem;
	margin-bottom: 15px;
}

.demo-feature h4 {
	color: #007ca1;
	margin: 0 0 10px;
	font-size: 1rem;
}

.demo-feature p {
	color: #666;
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
}

/* ===========================================
   INDICATEUR DE CHARGEMENT (création démo)
   =========================================== */

.loading-indicator {
	padding: 40px 20px;
}

.loading-indicator .spinner {
	display: inline-block;
	width: 50px;
	height: 50px;
	border: 4px solid #e0e0e0;
	border-top-color: #007ca1;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* ===========================================
   SECTION PRINCIPALE : GUIDE (prioritaire)
   =========================================== */

.demo-primary-action {
	text-align: center;
	padding: 25px 20px;
	background: #f8f9fa;
	border-radius: 12px;
	margin: 20px 0 25px;
	border: 1px solid #e9ecef;
}

.demo-primary-action .guide-icon {
	font-size: 2.5rem;
	margin-bottom: 15px;
	display: block;
}

.demo-primary-action h2 {
	color: #007ca1;
	margin-bottom: 15px;
	font-size: 1.6rem;
}

.demo-primary-action .guide-description {
	color: #333;
	font-size: 1.1rem;
	line-height: 1.6;
	max-width: 400px;
	margin: 0 auto 25px;
}

.demo-primary-action .button-guide {
	padding: 14px 30px;
	font-size: 1rem;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.demo-primary-action .guide-time {
	margin-top: 15px;
	font-size: 0.9rem;
	color: #666;
}

/* ===========================================
   SEPARATEUR VISUEL
   =========================================== */

.demo-separator {
	display: flex;
	align-items: center;
	margin: 30px 0;
}

.demo-separator::before,
.demo-separator::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #dee2e6;
}

.demo-separator span {
	padding: 0 20px;
	color: #6c757d;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* ===========================================
   SECTION SECONDAIRE : FORMULAIRE EMAIL
   =========================================== */

.demo-secondary-action {
	text-align: center;
	margin-bottom: 20px;
}

.demo-secondary-action h3 {
	color: #007ca1;
	font-size: 1.3rem;
	margin-bottom: 10px;
}

.demo-secondary-action .secondary-description {
	color: #6c757d;
	font-size: 0.95rem;
	margin: 0;
}

/* Formulaire en mode secondaire */
.demo-form-container.demo-form-secondary {
	background: white;
	border: 2px solid #007ca1;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.demo-form-secondary .no-engagement {
	text-align: center;
	color: #6c757d;
	font-size: 0.85rem;
	margin-top: 15px;
	margin-bottom: 0;
}

/* ===========================================
   RESPONSIVE
   =========================================== */

@media (max-width: 768px) {
	.demo-primary-action {
		padding: 20px 15px;
		margin: 15px 0 20px;
	}

	.demo-primary-action .guide-icon {
		font-size: 2rem;
	}

	.demo-primary-action h2 {
		font-size: 1.3rem;
	}

	.demo-primary-action .button-guide {
		padding: 16px 30px;
		font-size: 1rem;
		width: 100%;
		justify-content: center;
	}

	.demo-separator {
		margin: 20px 0;
	}
	.demo-accounts-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.demo-account-card {
		padding: 20px;
	}

	.demo-icon {
		font-size: 2.5rem;
	}

	.demo-form-container {
		margin: 20px 15px;
		padding: 20px;
	}

	.demo-features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}

	.demo-feature {
		padding: 20px 15px;
	}

	.demo-feature .feature-icon {
		font-size: 2rem;
	}
}

@media (max-width: 480px) {
	.demo-features-grid {
		grid-template-columns: 1fr;
	}
}
