/* ============================================
   Générateur de Mentions Légales - Jeff-Web
   ============================================ */

:root {
	--gmjw-primary: #2563eb;
	--gmjw-primary-hover: #1d4ed8;
	--gmjw-bg: #f8fafc;
	--gmjw-card-bg: #ffffff;
	--gmjw-border: #e2e8f0;
	--gmjw-text: #1e293b;
	--gmjw-text-light: #64748b;
	--gmjw-success: #16a34a;
	--gmjw-radius: 12px;
	--gmjw-shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
	--gmjw-shadow-lg: 0 4px 14px rgba(0,0,0,.1);
}

/* Reset scope */
.gmjw-wrap,
.gmjw-wrap * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.gmjw-wrap {
	max-width: 820px;
	margin: 2rem auto;
	padding: 2rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--gmjw-text);
	background: var(--gmjw-bg);
	border-radius: var(--gmjw-radius);
}

/* Steps */
.gmjw-step {
	display: none;
}
.gmjw-step.gmjw-active {
	display: block;
	animation: gmjwFadeIn .3s ease;
}

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

/* Titles */
.gmjw-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--gmjw-text);
	margin-bottom: .5rem;
	line-height: 1.3;
}

.gmjw-subtitle {
	color: var(--gmjw-text-light);
	font-size: .95rem;
	margin-bottom: 1.5rem;
}

/* Cards - Step 1 */
.gmjw-cards {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

.gmjw-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
	padding: 1.5rem 1rem;
	background: var(--gmjw-card-bg);
	border: 2px solid var(--gmjw-border);
	border-radius: var(--gmjw-radius);
	cursor: pointer;
	transition: all .2s ease;
	text-align: center;
	font-family: inherit;
	color: var(--gmjw-text);
}

.gmjw-card:hover {
	border-color: var(--gmjw-primary);
	box-shadow: var(--gmjw-shadow-lg);
	transform: translateY(-2px);
}

.gmjw-card-icon {
	font-size: 2rem;
	line-height: 1;
}

.gmjw-card-title {
	font-size: 1.05rem;
	font-weight: 600;
}

.gmjw-card-desc {
	font-size: .82rem;
	color: var(--gmjw-text-light);
	line-height: 1.3;
}

/* Back button */
.gmjw-back {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	background: none;
	border: none;
	color: var(--gmjw-primary);
	font-size: .9rem;
	font-weight: 500;
	cursor: pointer;
	margin-bottom: 1rem;
	padding: .3rem 0;
	font-family: inherit;
}
.gmjw-back:hover {
	text-decoration: underline;
}

/* Form - Step 2 */
.gmjw-form {
	background: var(--gmjw-card-bg);
	border: 1px solid var(--gmjw-border);
	border-radius: var(--gmjw-radius);
	padding: 1.5rem;
}

.gmjw-field {
	margin-bottom: 1.2rem;
}

.gmjw-field label {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: var(--gmjw-text);
	margin-bottom: .35rem;
}

.gmjw-field label .gmjw-optional {
	font-weight: 400;
	color: var(--gmjw-text-light);
	font-size: .8rem;
}

.gmjw-field input[type="text"],
.gmjw-field input[type="email"],
.gmjw-field input[type="url"],
.gmjw-field input[type="number"],
.gmjw-field input[type="tel"],
.gmjw-field textarea,
.gmjw-field select {
	width: 100%;
	padding: .6rem .8rem;
	border: 1px solid var(--gmjw-border);
	border-radius: 8px;
	font-size: .9rem;
	font-family: inherit;
	color: var(--gmjw-text);
	background: #fff;
	transition: border-color .2s;
}

.gmjw-field input:focus,
.gmjw-field textarea:focus,
.gmjw-field select:focus {
	outline: none;
	border-color: var(--gmjw-primary);
	box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.gmjw-field textarea {
	resize: vertical;
	min-height: 70px;
}

.gmjw-field select {
	cursor: pointer;
}

/* Checkbox group */
.gmjw-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem .8rem;
	margin-top: .3rem;
}

.gmjw-checkbox-group label {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 400;
	font-size: .88rem;
	cursor: pointer;
}

.gmjw-checkbox-group input[type="checkbox"] {
	accent-color: var(--gmjw-primary);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* Radio group */
.gmjw-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1rem;
	margin-top: .3rem;
}

.gmjw-radio-group label {
	display: flex;
	align-items: center;
	gap: .35rem;
	font-weight: 400;
	font-size: .88rem;
	cursor: pointer;
}

.gmjw-radio-group input[type="radio"] {
	accent-color: var(--gmjw-primary);
	width: 16px;
	height: 16px;
	cursor: pointer;
}

/* Section divider in form */
.gmjw-section-title {
	font-size: .95rem;
	font-weight: 700;
	color: var(--gmjw-primary);
	border-bottom: 2px solid var(--gmjw-primary);
	padding-bottom: .3rem;
	margin: 1.5rem 0 1rem;
}
.gmjw-section-title:first-child {
	margin-top: 0;
}

/* Buttons */
.gmjw-btn {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .65rem 1.3rem;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all .2s;
	line-height: 1.3;
}

.gmjw-btn-primary {
	background: var(--gmjw-primary);
	color: #fff;
}
.gmjw-btn-primary:hover {
	background: var(--gmjw-primary-hover);
}

.gmjw-btn-secondary {
	background: var(--gmjw-card-bg);
	color: var(--gmjw-primary);
	border-color: var(--gmjw-primary);
}
.gmjw-btn-secondary:hover {
	background: var(--gmjw-primary);
	color: #fff;
}

.gmjw-btn-outline {
	background: transparent;
	color: var(--gmjw-text-light);
	border-color: var(--gmjw-border);
}
.gmjw-btn-outline:hover {
	border-color: var(--gmjw-text-light);
	color: var(--gmjw-text);
}

.gmjw-btn-success {
	background: var(--gmjw-success);
	color: #fff;
}

.gmjw-form-actions {
	margin-top: 1.5rem;
	text-align: center;
}

/* Result - Step 3 */
.gmjw-result-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-bottom: 1.2rem;
}

.gmjw-output {
	background: var(--gmjw-card-bg);
	border: 1px solid var(--gmjw-border);
	border-radius: var(--gmjw-radius);
	padding: 1.8rem;
	line-height: 1.7;
	font-size: .92rem;
	color: var(--gmjw-text);
	margin-bottom: 1rem;
}

.gmjw-output h1 {
	font-size: 1.4rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: var(--gmjw-text);
}

.gmjw-output h2 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 1.5rem 0 .5rem;
	color: var(--gmjw-text);
}

.gmjw-output h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 1rem 0 .4rem;
	color: var(--gmjw-text);
}

.gmjw-output p {
	margin: .4rem 0;
}

.gmjw-output ul {
	margin: .4rem 0 .4rem 1.2rem;
	padding: 0;
}

.gmjw-output ul li {
	margin-bottom: .2rem;
}

/* Credit line */
.gmjw-credit {
	text-align: center;
	font-size: .8rem;
	color: var(--gmjw-text-light);
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--gmjw-border);
}
.gmjw-credit a {
	color: var(--gmjw-primary);
	text-decoration: none;
	font-weight: 600;
}
.gmjw-credit a:hover {
	text-decoration: underline;
}

/* Toast notification */
.gmjw-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	background: var(--gmjw-text);
	color: #fff;
	padding: .7rem 1.4rem;
	border-radius: 8px;
	font-size: .9rem;
	font-weight: 500;
	opacity: 0;
	transition: all .3s ease;
	z-index: 99999;
	pointer-events: none;
}
.gmjw-toast.gmjw-toast-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Required asterisk */
.gmjw-required {
	color: #ef4444;
}

/* Responsive */
@media (max-width: 640px) {
	.gmjw-wrap {
		padding: 1rem;
		margin: 1rem auto;
	}

	.gmjw-cards {
		grid-template-columns: 1fr;
	}

	.gmjw-title {
		font-size: 1.2rem;
	}

	.gmjw-form {
		padding: 1rem;
	}

	.gmjw-output {
		padding: 1.2rem;
	}

	.gmjw-result-actions {
		flex-direction: column;
	}

	.gmjw-result-actions .gmjw-btn {
		width: 100%;
		justify-content: center;
	}
}

/* Print styles */
@media print {
	body * {
		visibility: hidden !important;
	}

	.gmjw-output,
	.gmjw-output * {
		visibility: visible !important;
	}

	.gmjw-output {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		border: none;
		box-shadow: none;
		padding: 2cm;
		font-size: 11pt;
		line-height: 1.6;
		color: #000;
		background: #fff;
	}

	.gmjw-output h1 {
		font-size: 16pt;
		margin-bottom: 12pt;
	}

	.gmjw-output h2 {
		font-size: 13pt;
		margin-top: 14pt;
		margin-bottom: 6pt;
	}
}
