/* ============================================================
   CSF Evaluator — Styles matching Figma design
   ============================================================ */

:root {
	/* Colors */
	--blue-50: #eaf1fb;
	--blue-400: #2189f8;
	--blue-500: #0073e6;
	--blue-600: #1360ae;
	--blue-800: #243b53;
	--navy: #00005c;
	--navy-light: #00004b;
	--green-50: #e6f0e4;
	--green-500: #4aa82d;
	--green-dark: rgba(16, 97, 0, 0.56);
	--red-50: #fef2f2;
	--red-400: #ff6467;
	--red-800: #9f0712;
	--orange-50: #fefaf6;
	--orange-400: #fb892d;
	--orange-800: #853200;
	--yellow-50: #fefce8;
	--yellow-400: #facc15;
	--yellow-800: #854d0e;
	--teal-50: #f0fdfa;
	--teal-400: #00d5be;
	--teal-800: #005f5a;
	--text-default: #2f313c;
	--text-title: #00004b;
	--text-subtle: #494e5f;
	--text-muted: #9da9bd;
	--text-dark: #181d27;
	--border-default: #e7eaef;
	--border-light: #f2f2f3;
	--layer-white: #ffffff;
	--layer-subtle: #f3f5f7;
	--surface-subtle: #f5f5f5;
	--slate-400: #90a1b9;
	--shadow-xs: 0px 1px 2px 0px rgba(20, 34, 38, 0.05);
	--shadow-md: 0px 2px 4px -2px rgba(20, 34, 38, 0.06), 0px 4px 8px -2px rgba(20, 34, 38, 0.1);

	/* Spacing */
	--header-height: 72px;
	--side-padding: 120px;
	--sidebar-width: 316px;
	--gap: 40px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Raleway', sans-serif;
	color: var(--text-default);
	background: #f8f9fb;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
	font-feature-settings:
		'lnum' 1,
		'pnum' 1;
}

/* ============================================================
   CHART.JS TOOLTIP OVERRIDES — Premier plan
   ============================================================ */
.chartjs-tooltip {
	z-index: 99999 !important;
	pointer-events: none;
	position: fixed !important;
	box-shadow: var(--shadow-md) !important;
}

/* Ensure radar container doesn't interfere with tooltip */
.radar-container {
	position: relative;
	z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
	background: var(--layer-white);
	border-bottom: 1px solid var(--border-default);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1440px;
	height: var(--header-height);
	margin: 0 auto;
	padding: 16px var(--side-padding);
}

.header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.logo {
	flex-shrink: 0;
}

.logo-image {
	display: block;
	width: 94px;
	height: 32px;
}

.header-separator {
	width: 1px;
	height: 24px;
	background: var(--border-default);
}

.header-title {
	display: flex;
	flex-direction: column;
}

.header-title-main {
	font-size: 16px;
	font-weight: 600;
	line-height: 24px;
	color: var(--text-default);
}

.header-title-sub {
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	color: var(--text-default);
	text-decoration: underline;
	text-underline-offset: 2px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.header-title-sub span {
	display: inline;
}

.header-title-sub-icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	color: var(--text-default);
	transition: transform 0.2s ease;
}

.header-title-sub:hover .header-title-sub-icon {
	transform: translate(1px, -1px);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 32px;
	padding: 6px 12px;
	border-radius: 6px;
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: var(--shadow-xs);
	border: none;
	transition: opacity 0.15s;
}
.btn:hover {
	opacity: 0.85;
}

.btn-icon {
	display: block;
	flex-shrink: 0;
}

.btn-icon-reset {
	transform: scaleX(-1);
	transform-origin: center;
}

.btn-icon-export {
	width: 20px;
	height: 20px;
}

.btn-secondary {
	background: var(--layer-white);
	color: var(--text-title);
	border: 1px solid var(--border-default);
	position: relative;
}

.btn-secondary.open svg {
	transform: rotate(180deg);
}

.btn-primary {
	background: var(--blue-500);
	color: white;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ============================================================
   LANGUAGE DROPDOWN
   ============================================================ */
.language-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 110px;
	background: var(--layer-white);
	border: 1px solid var(--border-default);
	border-radius: 8px;
	padding: 8px;
	box-shadow: var(--shadow-md);
	z-index: 1000;
	display: none;
	flex-direction: column;
	gap: 4px;
}

.language-dropdown.open {
	display: flex;
}

.language-option {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 8px 12px;
	border-radius: 6px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--text-default);
	text-align: left;
	transition: background-color 0.15s;
}

.language-option:hover {
	background: var(--blue-50);
}

.language-option.active {
	background: var(--blue-500);
	color: white;
}

.language-flag {
	font-size: 16px;
	display: block;
	width: 20px;
	text-align: center;
}

.language-text {
	flex: 1;
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.main-container {
	position: relative;
	min-height: calc(100vh - var(--header-height));
}

/* ============================================================
   INTRO SECTION
   ============================================================ */
.intro-section {
	position: relative;
	z-index: 1;
	padding: 40px var(--side-padding) 0;
	max-width: 1440px;
	margin: 0 auto;
}

.intro-container {
	max-width: 800px;
}

.intro-title {
	font-family: 'Raleway', sans-serif;
	font-size: 32px;
	font-weight: 675;
	line-height: 40px;
	color: var(--navy-light);
	margin: 0 0 16px 0;
}

.intro-description {
	font-family: 'Raleway', sans-serif;
	font-size: 16px;
	font-weight: 550;
	line-height: 24px;
	color: var(--text-default);
	margin: 0;
	max-width: 720px;
}

.content-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	gap: var(--gap);
	padding: 32px var(--side-padding);
	max-width: 1440px;
	margin: 0 auto;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
	width: var(--sidebar-width);
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: calc(var(--header-height) + 32px);
	align-self: flex-start;
}

/* CTA Card */
.cta-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background:
		url('assets/call_center.jpg') 90% center/cover no-repeat,
		var(--navy);
}

.cta-bg-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 92, 0.4) 0%, #00005c 78%);
	z-index: 1;
}

.cta-content {
	position: relative;
	z-index: 2;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 80px;
}

.cta-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 182px;
	padding: 8px 12px 8px 8px;
	height: 32px;
	width: fit-content;
	color: white;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
}

.cta-dot-outer {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--green-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cta-dot-inner {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #7aea57;
}

.cta-body {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cta-title {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	color: white;
	max-width: 276px;
}

.cta-steps {
	display: flex;
	flex-direction: column;
}

.cta-step {
	display: flex;
	align-items: center;
	gap: 8px;
	color: white;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.cta-circle {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	color: white;
	flex-shrink: 0;
}

.cta-step-line {
	display: flex;
	align-items: center;
	padding-left: 11px;
	height: 20px;
}

.cta-vline {
	width: 1px;
	height: 100%;
	background: white;
}

.btn-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 40px;
	width: 276px;
	padding: 10px 12px 10px 16px;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	box-shadow: var(--shadow-xs);
	font-family: 'Raleway', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--text-title);
	cursor: pointer;
	transition: opacity 0.15s;
}
.btn-cta:hover {
	opacity: 0.85;
}

/* Score Card */
.score-card,
.radar-card {
	background: var(--layer-white);
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 20px;
	overflow: hidden;
}

.radar-card {
	overflow: visible;
}

.card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--text-title);
}

.card-description {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--text-secondary);
	margin-top: 8px;
}

.score-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	margin-top: 40px;
}

.gauge-container {
	position: relative;
	width: 140px;
	height: 140px;
	flex-shrink: 0;
}

.gauge-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.gauge-value {
	font-size: 32px;
	font-weight: 700;
	line-height: 47px;
	color: var(--text-dark);
}

.gauge-max {
	font-size: 16px;
	font-weight: 500;
	line-height: 23px;
	color: #a2a2a2;
}

.score-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.score-percent {
	font-size: 20px;
	font-weight: 700;
	line-height: 24px;
	color: var(--text-dark);
}

.score-label {
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.72px;
}

/* Radar Card */
.radar-card {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.radar-container {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.radar-container canvas {
	max-width: 320px;
	max-height: 320px;
	cursor: pointer;
}

/* ============================================================
   MAIN CONTENT — SOV CARDS
   ============================================================ */
.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

/* SOV Card */
.sov-card {
	background: var(--layer-white);
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 20px 24px 24px;
	transition: border-color 0.2s ease;
}

.sov-card.is-most-visible {
	border-color: var(--blue-500);
}

.sov-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.sov-header-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sov-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 8px;
	border-radius: 9999px;
	background: var(--blue-50);
	color: var(--blue-600);
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}

.sov-card.is-most-visible .sov-badge {
	background: var(--blue-500);
	color: white;
}

.sov-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	color: var(--navy);
	white-space: nowrap;
}

.sov-header-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.sov-weight-wrapper {
	position: relative;
}

.sov-weight {
	display: flex;
	align-items: center;
	gap: 2px;
	height: 24px;
	padding: 0 4px 0 8px;
	border: 1px solid var(--border-default);
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--text-default);
	cursor: pointer;
	background: none;
	font-family: 'Raleway', sans-serif;
}
.sov-weight svg {
	width: 20px;
	height: 20px;
	transition: transform 0.2s;
}
.sov-weight.open svg {
	transform: rotate(180deg);
}

/* Weight Dropdown */
.weight-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background: var(--layer-white);
	border: 1px solid var(--border-default);
	border-radius: 8px;
	padding: 16px;
	box-shadow: var(--shadow-md);
	z-index: 50;
	display: none;
	flex-direction: column;
	gap: 12px;
}
.weight-dropdown.open {
	display: flex;
}

.weight-dropdown-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.weight-dropdown-title {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--text-default);
}

.weight-dropdown-title svg {
	width: 16px;
	height: 16px;
	opacity: 0.5;
}

.weight-dropdown-value {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--text-dark);
}

.weight-slider-container {
	position: relative;
	cursor: pointer;
}

.weight-slider-track {
	width: 100%;
	height: 12px;
	background: var(--surface-subtle);
	border: 1px solid var(--border-default);
	border-radius: 9999px;
	padding: 2px;
	position: relative;
}

.weight-slider-fill {
	height: 8px;
	background: var(--blue-500);
	border-radius: 999px;
	transition: width 0.1s;
}

.weight-slider-disabled {
	position: absolute;
	top: 0;
	height: 8px;
	background: var(--slate-200);
	border-radius: 999px;
	opacity: 0.6;
	pointer-events: none;
	z-index: 1;
}

.weight-slider-dot {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--blue-500);
	border: 3px solid white;
	box-shadow: 0 0 0 1px var(--border-default);
	z-index: 2;
	transition: left 0.1s;
	cursor: grab;
}
.weight-slider-dot:active {
	cursor: grabbing;
}

.weight-slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: var(--slate-400);
}

.sov-status {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--green-50);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sov-status-inner {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--green-500);
}

.sov-status.is-alert {
	background: var(--red-50);
}

.sov-status.is-alert .sov-status-inner {
	background: var(--red-400);
}

/* Seal Levels */
.seal-section {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.seal-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--text-subtle);
}

.seal-levels {
	display: flex;
	border: 1px solid var(--border-default);
	border-radius: 8px;
	overflow: hidden;
}

.seal-level {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 16px;
	min-height: 90px;
	border-right: 1px solid var(--border-default);
	cursor: pointer;
	transition:
		background 0.15s,
		color 0.15s;
	text-align: center;
	background: white;
	color: var(--text-default);
}
.seal-level:last-child {
	border-right: none;
}

.seal-level:hover {
	background: var(--blue-50);
}

.seal-level.selected {
	background: var(--blue-500);
	color: white;
}

.seal-level-num {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
}

.seal-level-text {
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	max-width: 130px;
}

/* Seal Description — gray background section */
.seal-desc {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 16px;
	background: var(--layer-subtle);
	border-radius: 8px;
	padding: 16px;
}

.seal-desc-header {
	display: flex;
	align-items: center;
	gap: 8px;
}

/* SEAL badge — bordered rectangle style */
.seal-desc-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: auto;
	padding: 2px 6px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	white-space: nowrap;
	border: 1px solid;
}

/* SEAL badge colors aligned with conformity status */
.seal-desc-tag.is-alert {
	background: var(--red-50);
	border-color: var(--red-400);
	color: var(--red-800);
}

.seal-desc-tag.is-ok {
	background: var(--teal-50);
	border-color: var(--teal-400);
	color: var(--teal-800);
}

.seal-desc-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: black;
}

.seal-desc-info {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.5;
	cursor: help;
}

.seal-desc-text {
	font-size: 12px;
	font-weight: 500;
	line-height: 16px;
	color: var(--text-subtle);
}

/* Minimum Required */
.min-required {
	margin-top: 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.min-required-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.min-required-left {
	display: flex;
	align-items: center;
	gap: 4px;
}

.min-required-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 20px;
	color: var(--text-subtle);
}

.min-required-info {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.5;
	cursor: help;
}

.min-required-value {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	color: var(--text-dark);
	text-align: center;
}

/* Slider — pill progress bar style */
.slider-wrapper {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.slider-container {
	position: relative;
	width: 100%;
	cursor: pointer;
}

.slider-track {
	width: 100%;
	height: 12px;
	background: var(--surface-subtle);
	border: 1px solid var(--border-default);
	border-radius: 9999px;
	padding: 2px;
	overflow: visible;
	position: relative;
}

.slider-fill {
	height: 8px;
	background: var(--blue-500);
	border-radius: 999px;
	transition: width 0.2s;
}

.slider-dot {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--blue-500);
	border: 3px solid white;
	box-shadow: 0 0 0 1px var(--border-default);
	z-index: 2;
	transition: left 0.2s;
	cursor: grab;
}
.slider-dot:active {
	cursor: grabbing;
}

/* Slider marks for SEAL levels */
.slider-marks {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 100%;
	pointer-events: none;
}

.slider-mark {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 2px;
	height: 8px;
	background: var(--border-default);
	border-radius: 1px;
	z-index: 1;
}

.slider-mark[data-level='2'] {
	left: 33.33%;
}

.slider-mark[data-level='3'] {
	left: 66.67%;
}

/* Active state for slider marks */
.slider-mark.active {
	height: 10px;
}

.slider-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	color: var(--slate-400);
}

/* ============================================================
   PRINT STYLES
   ============================================================ */

/* Hide print elements in normal view */
.print-header,
.print-summary {
	display: none;
}

@media print {
	.print-header,
	.print-summary {
		display: block;
	}
	* {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	@page {
		size: A4;
		margin: 15mm 12mm;
	}

	/* Hide non-printing elements */
	.header,
	.header-actions,
	.intro-section,
	.btn,
	.btn-cta,
	.cta-card,
	.weight-dropdown,
	.weight-slider-container,
	.slider-wrapper,
	.seal-levels {
		display: none !important;
	}

	/* Print body */
	body {
		background: white;
		margin: 0;
		padding: 0;
		min-height: auto;
	}

	.main-container {
		min-height: auto;
	}

	.content-wrapper {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 0;
		margin: 0;
		max-width: 100%;
	}

	/* Print header with logo, title, date */
	.print-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 24px;
		padding-bottom: 12px;
		border-bottom: 2px solid var(--border-default);
		page-break-after: avoid;
	}

	.print-header-left {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.print-header-logo {
		width: 60px;
		height: 20px;
		object-fit: contain;
	}

	.print-header-title {
		font-size: 14px;
		font-weight: 700;
		color: var(--text-title);
	}

	.print-header-date {
		font-size: 12px;
		font-weight: 500;
		color: var(--text-muted);
	}

	/* Sidebar — now full width at top, organized horizontally */
	.sidebar {
		width: 100%;
		flex-direction: row;
		gap: 12px;
		position: static;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: stretch;
		margin-bottom: 24px;
		page-break-after: avoid;
	}

	.sidebar > div {
		min-width: 0;
	}

	.score-card,
	.radar-card {
		border: 1px solid var(--border-light);
		padding: 16px;
		border-radius: 6px;
		display: flex;
		flex-direction: column;
	}

	.score-card .score-content {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.radar-card .radar-container {
		flex: 1;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.card-title {
		font-size: 14px;
		font-weight: 700;
		margin-bottom: 12px;
	}

	.score-content {
		gap: 16px;
		margin-top: 16px;
	}

	.gauge-container {
		width: 140px;
		height: 140px;
		flex-shrink: 0;
	}

	.radar-container {
		width: 100%;
		max-width: 100%;
		margin: 0 auto;
	}

	.radar-container canvas {
		width: 100% !important;
		height: auto !important;
	}

	/* Main content — SOV cards */
	.main-content {
		gap: 16px;
		flex: 1;
	}

	.sov-card {
		page-break-inside: avoid;
		border: 1px solid var(--border-light);
		padding: 16px;
		margin-bottom: 8px;
		background: white;
		width: 99%;
	}

	.sov-card.is-most-visible {
		border-color: var(--border-light);
	}

	.sov-header {
		margin-bottom: 16px;
		gap: 8px;
	}

	.sov-badge {
		font-size: 12px;
		padding: 4px 8px;
		height: auto;
	}

	.sov-title {
		font-size: 14px;
	}

	.sov-header-right {
		display: flex;
		gap: 8px;
		align-items: center;
	}

	.sov-weight {
		font-size: 12px;
		padding: 4px 8px;
		height: auto;
	}

	.sov-status {
		width: 16px;
		height: 16px;
	}

	.sov-status-inner {
		width: 12px;
		height: 12px;
	}

	.seal-section {
		gap: 12px;
	}

	.seal-label {
		font-size: 12px;
	}

	.seal-desc {
		margin-top: 12px;
		padding: 12px;
		background: var(--layer-subtle);
	}

	.seal-desc-header {
		gap: 6px;
	}

	.seal-desc-name {
		font-size: 12px;
	}

	.seal-desc-text {
		font-size: 11px;
		line-height: 1.4;
	}

	.min-required {
		margin-top: 16px;
	}

	.min-required-value {
		font-size: 14px;
	}

	/* Print conformity summary (top of page 1, after header) */
	.print-summary {
		display: flex;
		justify-content: space-between;
		padding: 12px;
		background: var(--blue-50);
		border: 1px solid var(--blue-400);
		border-radius: 6px;
		margin-bottom: 16px;
		font-size: 12px;
		page-break-after: avoid;
	}

	.print-summary-item {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.print-summary-label {
		font-weight: 700;
		color: var(--text-subtle);
	}

	.print-summary-value {
		font-size: 14px;
		font-weight: 700;
		color: var(--text-dark);
	}
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
	:root {
		--side-padding: 40px;
	}
}

@media (max-width: 960px) {
	:root {
		--side-padding: 20px;
	}
	.content-wrapper {
		flex-direction: column;
	}
	.sidebar {
		width: 100%;
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
	}
	.cta-card,
	.score-card,
	.radar-card {
		flex: 1;
		min-width: 280px;
	}
	.seal-levels {
		flex-wrap: wrap;
	}
	.seal-level {
		min-width: 120px;
	}
}

/* ============================================================
   Contact Drawer — Lead generation form
   ============================================================ */

.drawer-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #0000008f;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.drawer-overlay.active {
	opacity: 1;
	visibility: visible;
}

.drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: 480px;
	max-width: 90vw;
	height: 100vh;
	background: var(--layer-white);
	box-shadow: -8px 0 24px rgba(20, 34, 38, 0.15);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	z-index: 1001;
}

.drawer-overlay.active .drawer {
	transform: translateX(0);
}

.drawer-header {
	position: sticky;
	top: 0;
	background: var(--layer-white);
	padding: 24px 32px 16px;
	border-bottom: 1px solid var(--border-default);
	display: flex;
	justify-content: flex-end;
	z-index: 1;
}

.drawer-close {
	/* Styles par défaut (si pas de classes btn) */
	width: 40px;
	height: 40px;
	border: none;
	background: var(--layer-subtle);
	border-radius: 8px;
	color: var(--text-subtle);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

/* Override pour les boutons avec les classes btn */
.drawer-close.btn {
	width: auto;
	height: 32px;
	padding: 6px 12px;
	border-radius: 6px;
}

.drawer-close:hover {
	background: var(--border-default);
	color: var(--text-default);
}

/* Override pour les boutons avec les classes btn */
.drawer-close.btn:hover {
	opacity: 0.85;
	background: var(--border-default);
}

.drawer-content {
	padding: 24px 32px 40px;
}

.drawer-title {
	margin-bottom: 32px;
}

.drawer-title h2 {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-title);
	margin: 0 0 12px 0;
}

.drawer-title p {
	font-size: 16px;
	color: var(--text-subtle);
	margin: 0;
	line-height: 1.5;
}

.drawer-note {
	background: var(--layer-subtle);
	border: 1px solid var(--border-subtle);
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 24px;
}

.drawer-note p {
	font-size: 14px;
	color: var(--text-secondary);
	margin: 0;
	line-height: 1.4;
}

/* Form Styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

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

.form-group label {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-default);
}

.form-group input,
.form-group textarea {
	padding: 12px 16px;
	border: 1px solid var(--border-default);
	border-radius: 8px;
	font-size: 16px;
	color: var(--text-default);
	background: var(--layer-white);
	transition: all 0.2s ease;
	font-family: 'Raleway', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--blue-500);
	box-shadow: 0 0 0 3px rgba(1, 115, 230, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 100px;
}

/* Character counter */
.char-counter {
	font-size: 13px;
	color: var(--text-subtle);
	font-weight: 500;
	flex-shrink: 0;
	align-self: flex-end;
}

/* Attachment Section */
.form-attachment {
	background: var(--layer-subtle);
	border-radius: 12px;
	padding: 20px;
	border: 1px solid var(--border-light);
}

.attachment-option {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.attachment-option input[type='checkbox'] {
	width: 18px;
	height: 18px;
	accent-color: var(--blue-500);
}

.attachment-option label {
	font-size: 16px;
	font-weight: 500;
	color: var(--text-default);
	cursor: pointer;
}

.evaluation-preview {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px;
	background: var(--layer-white);
	border-radius: 8px;
	border: 1px solid var(--border-default);
}

.eval-icon {
	position: relative;
	width: 40px;
	height: 40px;
}

.eval-icon svg {
	transform: rotate(-90deg);
}

.eval-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.eval-text span {
	font-size: 14px;
	color: var(--text-subtle);
}

.eval-text strong {
	font-size: 16px;
	font-weight: 600;
	color: var(--blue-600);
}

/* Submit Button */
.btn-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 24px;
	background: var(--blue-500);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	font-family: 'Raleway', sans-serif;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 8px;
}

.btn-submit:hover {
	background: var(--blue-600);
	transform: translateY(-1px);
}

.btn-submit:active {
	transform: translateY(0);
}

/* État désactivé du bouton */
.btn-submit:disabled {
	background: var(--slate-400);
	color: rgba(255, 255, 255, 0.7);
	cursor: not-allowed;
	transform: none;
	pointer-events: none;
}

.btn-submit:disabled:hover {
	background: var(--slate-400);
	transform: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.drawer {
		width: 100%;
		max-width: 100vw;
	}

	.drawer-content {
		padding: 20px 24px 32px;
	}

	.drawer-title h2 {
		font-size: 24px;
	}
}

/* ============================================================
   FORM VALIDATION STYLES — Real-time feedback
   ============================================================ */

/* Validation states */
.csf-form-group.csf-error input,
.csf-form-group.csf-error textarea {
	border-color: var(--red-400);
	box-shadow: 0 0 0 3px rgba(255, 100, 103, 0.1);
}

.csf-form-group.csf-success input,
.csf-form-group.csf-success textarea {
	border-color: var(--green-500);
	box-shadow: 0 0 0 3px rgba(74, 168, 45, 0.1);
}

/* Validation message */

.contact-message-info {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-top: 6px;
	min-height: 20px;
}

.csf-validation-message {
	display: flex;
	font-size: 14px;
	line-height: 1.4;
	padding: 8px 12px;
	border-radius: 6px;
	font-weight: 500;
	animation: csf-fadeInUp 0.2s ease;
	flex: 1;
	min-width: 0;
}

.csf-validation-message.csf-error {
	display: flex;
	color: var(--red-800);
	background: var(--red-50);
	border: 1px solid rgba(255, 100, 103, 0.2);
}

.csf-validation-message.csf-success {
	display: flex;
	color: var(--green-dark);
	background: var(--green-50);
	border: 1px solid rgba(74, 168, 45, 0.2);
}

.csf-validation-icon {
	position: absolute;
	right: 12px;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

/* Position spécifique pour chaque type d'icône */
.csf-validation-icon.csf-error-icon {
	top: 41%;
}

.csf-validation-icon.csf-success-icon {
	top: 51%;
}

.csf-form-group {
	position: relative;
}

.csf-form-group.csf-error .csf-validation-icon.csf-error-icon,
.csf-form-group.csf-success .csf-validation-icon.csf-success-icon {
	opacity: 1;
}

/* Animation for validation message appearance */
@keyframes csf-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================================
   HEADER RESPONSIVE — Progressive Mobile Optimization
   ============================================================ */

/* Étape 1: 840px-768px — Compression Douce */
@media (max-width: 840px) {
	.header-left {
		gap: 12px; /* Réduction de 16px → 12px */
	}
	
	.header-actions {
		gap: 8px; /* Réduction de 12px → 8px */
	}
	
	.header-title-main {
		font-size: 15px; /* Réduction de 16px → 15px */
	}
	
	.header-title-sub {
		font-size: 11px; /* Réduction de 12px → 11px */
	}
	
	/* Réduction padding latéral des boutons */
	.btn {
		padding-left: 14px; /* Réduction de 2px */
		padding-right: 14px;
	}
}

/* Étape 2: 1000px-600px — Sous-titre Compact */
@media (max-width: 1000px) {
	.header-title-sub span {
		/* Masquer le texte original */
		font-size: 0;
		line-height: 0;
	}
	
	.header-title-sub span::after {
		/* Afficher texte compact */
		content: "CSF 1.2.1";
		font-size: 11px;
		line-height: 16px;
		display: inline;
	}
	
	/* L'icône reste visible normalement */
	
	/* Intro Section responsive */
	.intro-section {
		padding: 32px var(--side-padding) 0;
	}
	
	.intro-title {
		font-size: 28px;
		line-height: 36px;
	}
}

/* Étape 3: 670px-480px — Menu Hamburger */
@media (max-width: 670px) {
	/* Fix titre entre 601-634px */
	.header-title-main {
		font-size: 14px;
		line-height: 20px;
		word-break: break-word;
	}
	
	/* Masquer boutons individuels pour menu hamburger */
	#langBtn,
	#resetBtn,
	#exportBtn {
		display: none;
	}
	
	/* Afficher menu hamburger */
	.hamburger-menu {
		display: flex !important;
	}
	
	/* Intro Section responsive */
	.intro-section {
		padding: 24px 24px 0;
	}
	
	.intro-title {
		font-size: 24px;
		line-height: 32px;
		margin-bottom: 12px;
	}
	
	.intro-description {
		font-size: 15px;
		line-height: 22px;
	}
	
	.header-left {
		gap: 10px;
	}
	
	.header-actions {
		gap: 8px;
		align-items: center;
		/* Seul le menu hamburger reste visible */
		justify-content: flex-end;
	}
	
	/* Menu hamburger */
	.hamburger-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border: 1px solid var(--border-default);
		background: var(--layer-white);
		border-radius: 8px;
		cursor: pointer;
		transition: all 0.2s ease;
		padding: 0;
	}
	
	.hamburger-btn:hover {
		background: var(--slate-50);
		border-color: var(--border-hover);
	}
	
	.hamburger-icon {
		width: 20px;
		height: 20px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		align-items: center;
	}
	
	.hamburger-icon span {
		display: block;
		height: 2px;
		width: 16px;
		background: var(--text-default);
		border-radius: 1px;
		transition: all 0.3s ease;
	}
	
	/* Animation hamburger ouvert */
	.hamburger-btn.open .hamburger-icon span:nth-child(1) {
		transform: rotate(45deg) translate(6px, 6px);
	}
	
	.hamburger-btn.open .hamburger-icon span:nth-child(2) {
		opacity: 0;
	}
	
	.hamburger-btn.open .hamburger-icon span:nth-child(3) {
		transform: rotate(-45deg) translate(6px, -6px);
	}
	
	/* Menu déroulant */
	.hamburger-dropdown {
		position: absolute;
		top: calc(100% + 8px);
		right: 0;
		background: var(--layer-white);
		border: 1px solid var(--border-default);
		border-radius: 12px;
		box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
		min-width: 220px; /* Augmentation pour boutons langue */
		z-index: 1000;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: all 0.2s ease;
		padding: 8px;
	}
	
	.hamburger-dropdown.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	
	.hamburger-dropdown .btn {
		width: 100%;
		justify-content: flex-start;
		margin-bottom: 4px;
		padding: 10px 14px;
		font-size: 14px;
	}
	
	.hamburger-dropdown .btn:last-child {
		margin-bottom: 0;
	}
	
	/* Section langue dans hamburger */
	.hamburger-lang-section {
		display: flex;
		gap: 4px;
		margin-bottom: 4px;
	}
	
	.btn-lang {
		flex: 1;
		padding: 8px 10px !important;
		font-size: 13px !important;
		font-weight: 600;
		text-align: center;
		justify-content: center !important;
		border: 1px solid var(--border-default) !important;
		background: var(--layer-white) !important;
		color: var(--text-subdued) !important;
		transition: all 0.2s ease;
	}
	
	.btn-lang.active {
		background: var(--blue-500) !important;
		color: white !important;
		border-color: var(--blue-500) !important;
	}
	
	.btn-lang:hover {
		background: var(--slate-50) !important;
		border-color: var(--border-hover) !important;
	}
	
	.btn-lang.active:hover {
		background: var(--navy-dark) !important;
	}
	
	/* Séparateur dans hamburger */
	.hamburger-divider {
		height: 1px;
		background: var(--border-default);
		margin: 8px 0;
	}
}

/* Étape 4: <480px — Layout Mobile Compact */
@media (max-width: 480px) {
	.header-inner {
		padding: 12px var(--side-padding); /* Réduction padding vertical */
		height: auto; /* Hauteur flexible */
		min-height: 60px;
	}
	
	.header-left {
		gap: 8px;
	}
	
	.logo-image {
		width: 70px; /* Réduction de 94px → 70px */
		height: 24px; /* Proportionnel */
	}
	
	.header-title-main {
		font-size: 13px; /* Encore plus petit sur très petit écran */
		line-height: 16px;
		/* Permettre retour à la ligne si nécessaire */
		word-break: break-word;
	}
	
	/* Ajustement séparateur pour petit écran */
	.header-separator {
		height: 20px; /* Réduction de 24px → 20px */
	}
	
	/* Optimisation bouton Export et hamburger restant */
	.btn {
		padding: 8px 12px; /* Plus compact */
	}
	
	/* Intro Section responsive mobile */
	.intro-section {
		padding: 20px 16px 0;
	}
	
	.intro-title {
		font-size: 22px;
		line-height: 28px;
		margin-bottom: 10px;
	}
	
	.intro-description {
		font-size: 14px;
		line-height: 20px;
	}
	
	/* Menu hamburger plus compact */
	.hamburger-btn {
		width: 36px;
		height: 36px;
	}
	
	.hamburger-dropdown {
		min-width: 200px; /* Ajusté pour boutons langue */
	}
}

/* ============================================================
   SOV TITLES RESPONSIVE — Fix débordement titres longs
   ============================================================ */

/* Étape 5: <600px — Fix débordement SOV header global */
@media (max-width: 600px) {
	/* Restructuration complète du header SOV */
	.sov-header {
		flex-wrap: wrap; /* Permettre retour à la ligne */
		gap: 12px 8px; /* Espacement vertical et horizontal */
		justify-content: flex-start; /* Alignement naturel */
		align-items: flex-start; /* Alignement en haut pour éléments multi-lignes */
	}
	
	/* Section gauche : badge + titre */
	.sov-header-left {
		flex: 1 1 0; /* Flexible, prend l'espace disponible */
		min-width: 0; /* Permet rétrécissement */
		max-width: calc(100% - 120px); /* Réserve espace pour éléments droite */
	}
	
	/* Section droite : poids + status */
	.sov-header-right {
		flex: 0 0 auto; /* Taille fixe */
		gap: 6px; /* Réduction espacement */
	}
	
	/* Titre : permettre retour à la ligne */
	.sov-title {
		white-space: normal; /* Override nowrap */
		font-size: 15px; /* Réduction */
		line-height: 20px;
		word-break: break-word; /* Gestion mots longs */
		hyphens: auto; /* Césures automatiques si supporté */
	}
	
	/* Badge plus compact */
	.sov-badge {
		font-size: 13px;
		padding: 2px 6px;
		height: auto; /* Hauteur flexible */
		min-width: 44px; /* Largeur minimale */
		flex-shrink: 0; /* Ne pas rétrécir */
	}
	
	/* Bouton poids plus compact */
	.sov-weight {
		font-size: 13px;
		padding: 0 3px 0 6px;
		height: 22px;
		gap: 1px;
	}
	
	.sov-weight svg {
		width: 18px;
		height: 18px;
	}
	
	/* Status plus compact */
	.sov-status {
		width: 18px;
		height: 18px;
	}
	
	.sov-status-inner {
		width: 13px;
		height: 13px;
	}
}

/* Étape 6: <569px — Optimisations supplémentaires */
@media (max-width: 569px) {
	/* Header SOV en mode colonne si vraiment trop étroit */
	.sov-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	
	/* Section droite alignée à droite même en mode colonne */
	.sov-header-right {
		align-self: flex-end;
		margin-top: -4px; /* Compensation visuelle */
	}
	
	/* Titre encore plus compact */
	.sov-title {
		font-size: 14px;
		line-height: 18px;
	}
	
	/* Badge encore plus compact */
	.sov-badge {
		font-size: 12px;
		padding: 1px 5px;
		min-width: 40px;
	}
	
	/* Assurer que le header entier utilise l'espace correctement */
	.sov-header {
		margin-bottom: 24px; /* Réduction de 32px */
	}
	
	/* Prévenir débordement global container */
	.sov-card {
		overflow: hidden; /* Sécurité anti-débordement */
		padding: 16px 20px 20px; /* Réduction du padding */
	}
}

/* ============================================================
   NOTIFICATIONS SYSTÈME — Gestion d'erreur export PDF
   ============================================================ */
.csf-notification {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%) translateY(-100px);
	opacity: 0;
	z-index: 10000;
	min-width: 320px;
	max-width: 500px;
	background: var(--layer-white);
	border-radius: 8px;
	border: 1px solid var(--border-default);
	box-shadow: var(--shadow-md);
	padding: 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	transition: all 0.3s ease;
	font-family: 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
}

.csf-notification--show {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
}

.csf-notification--info {
	border-left: 4px solid var(--blue-500);
}

.csf-notification--error {
	border-left: 4px solid var(--red-400);
}

.csf-notification__content {
	flex: 1;
}

.csf-notification__title {
	font-weight: 600;
	color: var(--text-title);
	font-size: 14px;
	margin-bottom: 4px;
}

.csf-notification__message {
	color: var(--text-default);
	font-size: 13px;
	line-height: 18px;
}

.csf-notification__close {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-muted);
	padding: 4px;
	border-radius: 4px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.csf-notification__close:hover {
	color: var(--text-default);
	background-color: var(--layer-subtle);
}

/* Mobile notifications */
@media (max-width: 480px) {
	.csf-notification {
		left: 16px;
		right: 16px;
		transform: translateY(-100px);
		max-width: none;
		min-width: auto;
	}
	
	.csf-notification--show {
		transform: translateY(0);
	}
}

/* ============================================================
   MODE IMPRESSION — Optimisation export PDF
   ============================================================ */
@media print {
	/* Masquer les éléments non pertinents pour l'impression */
	.header,
	.btn,
	.hamburger-menu,
	.csf-notification {
		display: none !important;
	}
	
	/* Ajuster la mise en page pour l'impression */
	body {
		margin: 0;
		padding: 20px;
		font-size: 12pt;
		line-height: 1.4;
		color: #000;
	}
	
	.app-container {
		display: block;
		margin: 0;
		padding: 0;
	}
	
	.main-content {
		margin: 0;
		padding: 0;
		width: 100%;
	}
	
	.sidebar {
		width: 100%;
		margin-bottom: 30px;
	}
	
	/* Optimiser la taille des cartes pour l'impression */
	.sov-card {
		break-inside: avoid;
		margin-bottom: 20px;
		box-shadow: none;
		border: 1px solid #ddd;
	}
	
	/* S'assurer que les graphiques sont visibles */
	.radar-container,
	.score-container {
		break-inside: avoid;
		margin-bottom: 20px;
	}
	
	/* Ajuster les couleurs pour l'impression N&B */
	.sov-badge--compliant {
		background: #e6f0e4 !important;
		color: #000 !important;
	}
	
	.sov-badge--non-compliant {
		background: #fef2f2 !important;
		color: #000 !important;
	}
}

/* Classe pour masquer certains éléments pendant l'export */
.print-mode .csf-notification {
	display: none !important;
}
