/* ==========================================================================
   SORA — Charte graphique IA · feuille de style front
   ========================================================================== */

.sora-app {
	--sora-bg: #0f0e17;
	--sora-surface: #ffffff;
	--sora-ink: #1c1b29;
	--sora-muted: #6b6a7d;
	--sora-line: #ece9f5;
	--sora-grad: linear-gradient(135deg, #6c4cf1 0%, #b14cf1 50%, #f14c9a 100%);
	--sora-grad-soft: linear-gradient(135deg, rgba(108, 76, 241, .12), rgba(241, 76, 154, .12));
	--sora-radius: 20px;
	--sora-shadow: 0 18px 50px rgba(26, 19, 64, .12);

	max-width: 980px;
	margin: 0 auto;
	padding: 0;
	color: var(--sora-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.sora-app *,
.sora-app *::before,
.sora-app *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Formulaire
   -------------------------------------------------------------------------- */
.sora-form {
	position: relative;
	background: var(--sora-surface);
	border-radius: var(--sora-radius);
	padding: 44px 44px 40px;
	box-shadow: var(--sora-shadow);
	border: 1px solid var(--sora-line);
	overflow: hidden;
}

.sora-form::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 6px;
	background: var(--sora-grad);
}

.sora-form__head {
	text-align: center;
	margin-bottom: 28px;
}

.sora-form__badge {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	padding: 7px 16px;
	border-radius: 50px;
	color: #6c4cf1;
	background: var(--sora-grad-soft);
	margin-bottom: 18px;
}

.sora-form__title {
	font-size: 30px;
	line-height: 1.15;
	margin: 0 0 12px;
	font-weight: 800;
	color: var(--sora-ink);
}

.sora-form__subtitle {
	color: var(--sora-muted);
	font-size: 16px;
	margin: 0 auto;
	max-width: 520px;
}

.sora-tabs {
	display: flex;
	gap: 8px;
	background: #f4f2fb;
	padding: 6px;
	border-radius: 14px;
	margin-bottom: 24px;
}

.sora-tab {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sora-muted);
	cursor: pointer;
	transition: all .2s ease;
	font-family: inherit;
}

.sora-tab.is-active {
	background: #fff;
	color: var(--sora-ink);
	box-shadow: 0 4px 14px rgba(26, 19, 64, .1);
}

.sora-field {
	margin-bottom: 18px;
}

.sora-field label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--sora-ink);
}

.sora-optional {
	font-weight: 400;
	color: var(--sora-muted);
}

.sora-field input,
.sora-field textarea {
	width: 100%;
	border: 1.5px solid var(--sora-line);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 16px;
	font-family: inherit;
	color: var(--sora-ink);
	background: #fbfaff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.sora-field input:focus,
.sora-field textarea:focus {
	outline: none;
	border-color: #6c4cf1;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(108, 76, 241, .12);
}

.sora-field textarea {
	resize: vertical;
	min-height: 130px;
}

.sora-pane.is-hidden {
	display: none;
}

.sora-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.sora-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	color: var(--sora-muted);
	margin: 6px 0 22px;
	cursor: pointer;
}

.sora-consent input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: #6c4cf1;
	flex: 0 0 auto;
}

.sora-submit {
	position: relative;
	width: 100%;
	border: 0;
	background: var(--sora-grad);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	padding: 17px 24px;
	border-radius: 14px;
	cursor: pointer;
	font-family: inherit;
	transition: transform .15s ease, box-shadow .2s ease, opacity .2s;
	box-shadow: 0 12px 30px rgba(108, 76, 241, .35);
}

.sora-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px rgba(108, 76, 241, .45);
}

.sora-submit:disabled {
	cursor: wait;
	opacity: .85;
}

.sora-submit__spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, .4);
	border-top-color: #fff;
	border-radius: 50%;
	margin-left: 10px;
	vertical-align: middle;
	animation: sora-spin .7s linear infinite;
}

.sora-submit.is-loading .sora-submit__spinner {
	display: inline-block;
}

.sora-submit.is-loading .sora-submit__label {
	opacity: .85;
}

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

.sora-form__message {
	display: none;
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14.5px;
	font-weight: 500;
}

.sora-form__message.is-visible {
	display: block;
}

.sora-form__message--success {
	background: #e8f8ef;
	color: #15703f;
	border: 1px solid #b6e6c9;
}

.sora-form__message--error {
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f6c9c5;
}

/* --------------------------------------------------------------------------
   Chargement (page résultat en cours)
   -------------------------------------------------------------------------- */
.sora-loading {
	text-align: center;
	padding: 70px 30px;
	background: var(--sora-surface);
	border-radius: var(--sora-radius);
	box-shadow: var(--sora-shadow);
	border: 1px solid var(--sora-line);
}

.sora-loading__orb {
	width: 88px;
	height: 88px;
	margin: 0 auto 28px;
	border-radius: 50%;
	background: var(--sora-grad);
	box-shadow: 0 0 0 0 rgba(108, 76, 241, .5);
	animation: sora-pulse 1.8s ease-out infinite;
}

@keyframes sora-pulse {
	0% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(108, 76, 241, .45); }
	70% { transform: scale(1); box-shadow: 0 0 0 26px rgba(108, 76, 241, 0); }
	100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(108, 76, 241, 0); }
}

.sora-loading h2 {
	font-size: 24px;
	margin: 0 0 12px;
	font-weight: 800;
}

.sora-loading p {
	color: var(--sora-muted);
	max-width: 480px;
	margin: 0 auto 28px;
}

.sora-loading__steps {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.sora-loading__steps span {
	font-size: 13px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 50px;
	background: #f4f2fb;
	color: var(--sora-muted);
	transition: all .4s ease;
}

.sora-loading__steps span.is-active {
	background: var(--sora-grad);
	color: #fff;
}

.sora-result-empty {
	text-align: center;
	padding: 70px 30px;
	background: var(--sora-surface);
	border-radius: var(--sora-radius);
	box-shadow: var(--sora-shadow);
	border: 1px solid var(--sora-line);
}

.sora-result-empty h2 {
	font-size: 24px;
	margin: 0 0 10px;
}

.sora-result-empty p {
	color: var(--sora-muted);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Charte graphique
   -------------------------------------------------------------------------- */
.sora-charte {
	background: var(--sora-surface);
	border-radius: var(--sora-radius);
	box-shadow: var(--sora-shadow);
	border: 1px solid var(--sora-line);
	overflow: hidden;
}

.sora-hero {
	background: var(--sora-bg);
	background-image: radial-gradient(circle at 20% 20%, rgba(108, 76, 241, .45), transparent 45%),
		radial-gradient(circle at 80% 30%, rgba(241, 76, 154, .4), transparent 45%),
		radial-gradient(circle at 50% 90%, rgba(177, 76, 241, .35), transparent 50%);
	color: #fff;
	text-align: center;
	padding: 64px 40px 56px;
}

.sora-hero__badge {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	padding: 7px 16px;
	border-radius: 50px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	margin-bottom: 22px;
	backdrop-filter: blur(6px);
}

.sora-hero__title {
	font-size: 48px;
	line-height: 1.05;
	margin: 0 0 14px;
	font-weight: 800;
	letter-spacing: -.5px;
}

.sora-hero__tagline {
	font-size: 19px;
	font-style: italic;
	color: rgba(255, 255, 255, .9);
	margin: 0 0 24px;
}

.sora-hero .sora-chips {
	justify-content: center;
}

.sora-hero .sora-chip {
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
}

/* Sections */
.sora-section {
	padding: 44px 48px;
	border-bottom: 1px solid var(--sora-line);
}

.sora-section:last-of-type {
	border-bottom: 0;
}

.sora-section--summary {
	background: var(--sora-grad-soft);
}

.sora-section--mood {
	background: #faf9ff;
}

.sora-section__title {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--sora-ink);
	margin: 0 0 24px;
}

.sora-section__title span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--sora-grad);
	color: #fff;
	font-size: 14px;
	letter-spacing: 0;
}

.sora-section__hint {
	margin: -14px 0 22px;
	color: var(--sora-muted);
	font-size: 14px;
}

.sora-lead {
	font-size: 18px;
	line-height: 1.7;
	color: #3a3950;
	margin: 0;
}

.sora-note {
	font-size: 14px;
	color: var(--sora-muted);
	background: #f6f5fb;
	padding: 12px 16px;
	border-radius: 10px;
	margin: 16px 0 0;
}

/* Chips */
.sora-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.sora-chip {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 50px;
	background: #f0edfb;
	color: #5b41c9;
	font-size: 14px;
	font-weight: 600;
}

/* Couleurs */
.sora-color-group {
	margin-bottom: 30px;
}

.sora-color-group:last-child {
	margin-bottom: 0;
}

.sora-color-group__title {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--sora-ink);
}

.sora-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
}

.sora-swatch {
	position: relative;
	border: 0;
	border-radius: 14px;
	padding: 26px 16px 18px;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-height: 110px;
	justify-content: flex-end;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
	transition: transform .15s ease;
}

.sora-swatch:hover {
	transform: translateY(-3px);
}

.sora-swatch__name {
	font-size: 14px;
	font-weight: 700;
}

.sora-swatch__hex {
	font-size: 13px;
	opacity: .85;
	font-variant-numeric: tabular-nums;
	letter-spacing: .5px;
}

.sora-swatch__copy {
	position: absolute;
	top: 10px;
	right: 10px;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 50px;
	background: rgba(255, 255, 255, .25);
	opacity: 0;
	transition: opacity .2s ease;
}

.sora-swatch:hover .sora-swatch__copy {
	opacity: 1;
}

.sora-swatch.is-copied .sora-swatch__copy {
	opacity: 1;
	content: "Copié";
}

.sora-swatch.is-copied .sora-swatch__copy::after {
	content: " ✓";
}

.sora-color-legend {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: grid;
	gap: 6px;
}

.sora-color-legend li {
	font-size: 13.5px;
	color: var(--sora-muted);
}

/* Typographie */
.sora-type {
	padding: 24px 0;
	border-bottom: 1px dashed var(--sora-line);
}

.sora-type:last-of-type {
	border-bottom: 0;
}

.sora-type__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	margin-bottom: 14px;
}

.sora-type__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 800;
	color: #fff;
	background: var(--sora-grad);
	padding: 4px 10px;
	border-radius: 6px;
}

.sora-type__name {
	font-size: 20px;
	font-weight: 700;
	color: var(--sora-ink);
}

.sora-type__weights,
.sora-type__usage {
	font-size: 13px;
	color: var(--sora-muted);
}

.sora-type__specimen {
	font-size: 44px;
	line-height: 1.1;
	color: var(--sora-ink);
	margin-bottom: 6px;
}

.sora-type__sample {
	font-size: 20px;
	color: #3a3950;
}

.sora-type__rationale {
	font-size: 14px;
	color: var(--sora-muted);
	margin: 12px 0 0;
}

/* Grilles & cartes */
.sora-grid {
	display: grid;
	gap: 18px;
}

.sora-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.sora-grid--3 {
	grid-template-columns: repeat(3, 1fr);
}

.sora-card {
	background: #fbfaff;
	border: 1px solid var(--sora-line);
	border-radius: 14px;
	padding: 22px 22px;
}

.sora-card h4 {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--sora-ink);
}

.sora-card__sub {
	margin-top: 16px !important;
}

.sora-card p {
	margin: 0;
	color: #45445a;
	font-size: 15px;
}

.sora-card--do {
	background: #f0fbf4;
	border-color: #c9ecd6;
}

.sora-card--dont {
	background: #fdf2f2;
	border-color: #f4cfcb;
}

/* Listes */
.sora-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 9px;
}

.sora-list li {
	position: relative;
	padding-left: 26px;
	font-size: 14.5px;
	color: #45445a;
}

.sora-list li::before {
	position: absolute;
	left: 0;
	top: 0;
	font-weight: 700;
}

.sora-list--do li::before {
	content: "✓";
	color: #198754;
}

.sora-list--dont li::before {
	content: "✕";
	color: #d63638;
}

/* Citations */
.sora-quotes {
	display: grid;
	gap: 14px;
	margin-top: 22px;
}

.sora-quote {
	margin: 0;
	padding: 18px 22px;
	background: #faf9ff;
	border-left: 4px solid #6c4cf1;
	border-radius: 0 12px 12px 0;
	font-size: 16px;
	font-style: italic;
	color: #3a3950;
}

/* Footer */
.sora-charte__footer {
	background: var(--sora-bg);
	color: rgba(255, 255, 255, .65);
	text-align: center;
	padding: 24px 40px;
	font-size: 13px;
}

.sora-charte__footer strong {
	color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
	.sora-form {
		padding: 32px 22px 28px;
	}

	.sora-hero {
		padding: 48px 24px 40px;
	}

	.sora-hero__title {
		font-size: 34px;
	}

	.sora-section {
		padding: 32px 24px;
	}

	.sora-grid--2,
	.sora-grid--3 {
		grid-template-columns: 1fr;
	}

	.sora-type__specimen {
		font-size: 34px;
	}
}
