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

:root {
	--bg: #f5f6f8;
	--surface: #ffffff;
	--border: #dde0e4;
	--text: #1a1d23;
	--text-secondary: #5f6670;
	--primary: #2563eb;
	--primary-hover: #1d4ed8;
	--danger: #dc2626;
	--danger-hover: #b91c1c;
	--success: #16a34a;
	--warning: #ea580c;
	--radius: 8px;
	--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.5;
	min-height: 100vh;
}

.container {
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 20px;
}

h1 {
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
	margin-bottom: 8px;
}

.subtitle {
	text-align: center;
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 32px;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: var(--shadow);
	margin-bottom: 24px;
}

/* Zone de dépose de fichiers */
.dropzone {
	border: 2px dashed var(--border);
	border-radius: var(--radius);
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

.dropzone.dragover {
	border-color: var(--primary);
	background: rgba(37, 99, 235, 0.04);
}

.dropzone-text {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.dropzone-text strong {
	color: var(--primary);
	cursor: pointer;
}

.dropzone input[type="file"] {
	display: none;
}

/* Liste de fichiers */
.file-list {
	margin-top: 16px;
}

.file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 0.875rem;
}

.file-item-info {
	flex: 1;
	min-width: 0;
}

.file-item-name {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.file-item-size {
	color: var(--text-secondary);
	font-size: 0.8rem;
}

.file-item-error {
	color: var(--danger);
	font-size: 0.8rem;
}

.file-item-remove {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	padding: 4px 8px;
	font-size: 1.1rem;
	line-height: 1;
	border-radius: 4px;
	flex-shrink: 0;
}

.file-item-remove:hover {
	color: var(--danger);
	background: rgba(220, 38, 38, 0.08);
}

/* Sélecteur de catégories de données */
.category-details {
	margin-top: 12px;
	font-size: 0.85rem;
}

.category-details summary {
	cursor: pointer;
	color: var(--text-secondary);
	font-size: 0.8rem;
}

.category-details select {
	margin-top: 6px;
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
	background: var(--surface);
	color: var(--text);
}

/* Boutons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s;
	text-decoration: none;
}

.btn-primary {
	background: var(--primary);
	color: #fff;
	margin-top: 16px;
}

.btn-primary:hover:not(:disabled) {
	background: var(--primary-hover);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-secondary {
	background: var(--bg);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--border);
}

.btn-small {
	padding: 6px 12px;
	font-size: 0.8rem;
}

/* Progression */
.progress-container {
	margin-top: 16px;
	display: none;
}

.progress-container.active {
	display: block;
}

.progress-bar-wrapper {
	background: var(--bg);
	border-radius: 4px;
	height: 8px;
	overflow: hidden;
}

.progress-bar {
	height: 100%;
	background: var(--primary);
	border-radius: 4px;
	width: 0%;
	transition: width 0.3s ease;
}

/* Barre de progression animée durant le téléchargement */
.progress-bar.fetching {
	background-image: linear-gradient(
		 -45deg,
		 rgba(255,255,255,0.2) 25%,
		 transparent 25%,
		 transparent 50%,
		 rgba(255,255,255,0.2) 50%,
		 rgba(255,255,255,0.2) 75%,
		 transparent 75%,
		 transparent
	);
	background-size: 20px 20px;
	animation: progress-stripes 0.8s linear infinite;
}

@keyframes progress-stripes {
	from { background-position: 20px 0; }
	to   { background-position: 0 0; }
}

.progress-text {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-top: 6px;
	text-align: center;
}

/* Résultat */
.result {
	display: none;
	margin-top: 20px;
}

.result.active {
	display: block;
}

/* Onglets */
.result-tabs {
	display: flex;
	border-bottom: 2px solid var(--border);
	margin-bottom: 16px;
}

.result-tab {
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: none;
	color: var(--text-secondary);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.result-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.result-tab:hover:not(.active) {
	color: var(--text);
}

.result-tab-content {
	display: none;
}

.result-tab-content.active {
	display: block;
}

.result-link-box {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 12px;
}

.result-link {
	flex: 1;
	padding: 10px 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.8rem;
	word-break: break-all;
	font-family: monospace;
}

.result-warning {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 6px;
	font-size: 0.8rem;
	color: #92400e;
}

.result-info {
	margin-top: 12px;
	padding: 10px 12px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 6px;
	font-size: 0.8rem;
	color: #1e40af;
}

/* Vue du téléchargement */
.download-file {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 8px;
}

.download-file-info {
	flex: 1;
	min-width: 0;
}

.download-file-name {
	font-weight: 500;
	font-size: 0.9rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.download-file-meta {
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.download-actions {
	margin-top: 16px;
	display: flex;
	gap: 8px;
}

.download-actions .btn {
	flex: 1;
}

/* Statut & messages d'erreur */
.message {
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
	margin-top: 16px;
}

.message-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: var(--danger);
}

.message-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: var(--primary);
}

/* Onglets principaux (Upload / Historique) */
.main-tabs {
	display: flex;
	border-bottom: 2px solid var(--border);
	margin-bottom: 20px;
}

.main-tab {
	padding: 10px 20px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	border: none;
	background: none;
	color: var(--text-secondary);
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: color 0.2s, border-color 0.2s;
}

.main-tab.active {
	color: var(--primary);
	border-bottom-color: var(--primary);
}

.main-tab:hover:not(.active) {
	color: var(--text);
}

.main-tab .badge {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
}

.main-tab-content {
	display: none;
}

.main-tab-content.active {
	display: block;
}

/* Pagination */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin-top: 16px;
}

.pagination button {
	padding: 6px 10px;
	font-size: 0.8rem;
	border: 1px solid var(--border);
	border-radius: 4px;
	background: var(--surface);
	color: var(--text);
	cursor: pointer;
}

.pagination button:hover:not(:disabled):not(.active) {
	background: var(--bg);
}

.pagination button.active {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

.pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Journal en ligne dans l'historique */
.history-journal-inline {
	margin-top: 10px;
	padding: 12px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
}

.history-journal-inline .journal-section {
	margin-bottom: 12px;
}

.history-journal-inline .journal-section:last-child {
	margin-bottom: 0;
}

.btn-journal-toggle {
	background: none;
	border: none;
	color: var(--success);
	font-size: 0.75rem;
	cursor: pointer;
	padding: 0;
}

.btn-journal-toggle:hover {
	text-decoration: underline;
}

/* Ligne d'en-tête dans l'historique (titre & suppression) */
.history-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.btn-delete-history {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 1.1rem;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 4px;
	flex-shrink: 0;
}

.btn-delete-history:hover {
	color: var(--danger);
	background: rgba(220, 38, 38, 0.08);
}

/* Overlay pour la popup de confirmation */
.confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.confirm-dialog {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	padding: 24px;
	max-width: 420px;
	width: calc(100% - 40px);
}

.confirm-dialog p {
	font-size: 0.875rem;
	margin-bottom: 14px;
	line-height: 1.5;
}

.confirm-dialog input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.85rem;
	margin-bottom: 14px;
}

.confirm-dialog-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.confirm-dialog-actions .btn {
	padding: 8px 18px;
	font-size: 0.85rem;
}

/* Historique */
.history-item {
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 8px;
	background: var(--surface);
}

.history-item.files-expired {
	opacity: 0.6;
}

.history-files {
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-bottom: 6px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.history-link-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.history-link {
	flex: 1;
	font-size: 0.75rem;
	color: var(--primary);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-family: monospace;
}

.history-link:hover {
	text-decoration: underline;
}

.history-link.disabled {
	color: var(--text-secondary);
	pointer-events: none;
	text-decoration: line-through;
}

.history-journal-link {
	font-size: 0.75rem;
	color: var(--success);
	text-decoration: none;
}

.history-journal-link:hover {
	text-decoration: underline;
}

/* Jauge TTL */
.gauge-wrapper {
	background: var(--bg);
	border-radius: 3px;
	height: 6px;
	overflow: hidden;
}

.gauge-bar {
	height: 100%;
	border-radius: 3px;
	transition: width 0.5s ease;
}

.gauge-bar.green  { background: var(--success); }
.gauge-bar.orange { background: var(--warning); }
.gauge-bar.red    { background: var(--danger); }

.gauge-text {
	font-size: 0.7rem;
	color: var(--text-secondary);
	margin-top: 3px;
}

/* Vue du journal */
.journal-section {
	margin-bottom: 20px;
}

.journal-section h3 {
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--border);
}

.journal-field {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	font-size: 0.85rem;
	border-bottom: 1px solid #f0f0f0;
}

.journal-field-label {
	color: var(--text-secondary);
}

.journal-field-value {
	font-weight: 500;
	text-align: right;
}

.journal-log-entry {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: 6px;
	margin-bottom: 6px;
	font-size: 0.8rem;
}

.journal-log-event {
	font-weight: 600;
	color: var(--primary);
}

.journal-log-time {
	color: var(--text-secondary);
	font-size: 0.75rem;
}

.journal-log-ip {
	color: var(--text-secondary);
	font-size: 0.75rem;
}

/* Indicateur "Diode" */
.diode {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	vertical-align: middle;
}

.diode.green  { background: var(--success); }
.diode.orange { background: var(--warning); }
.diode.red    { background: var(--danger); }
.diode.gray   { background: #9ca3af; }

/* En-tête avec le menu hamburger */
.header-row {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	margin-bottom: 8px;
}

.header-row h1 {
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-logo {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.btn-hamburger {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 8px 7px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.btn-hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
}

.btn-hamburger:hover {
	background: var(--bg);
}

/* Menu propre à la synchro */
.sync-menu {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 16px;
	box-shadow: var(--shadow);
	margin-bottom: 16px;
}

.sync-menu-section {
	margin-bottom: 14px;
}

.sync-menu-section:last-child {
	margin-bottom: 0;
}

.sync-menu-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 6px;
}

.sync-token-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.sync-token {
	flex: 1;
	font-size: 0.7rem;
	background: var(--bg);
	padding: 6px 8px;
	border-radius: 4px;
	border: 1px solid var(--border);
	word-break: break-all;
	min-height: 30px;
	display: flex;
	align-items: center;
}

.sync-restore-row {
	display: flex;
	gap: 6px;
}

.sync-restore-input {
	flex: 1;
	padding: 6px 8px;
	border: 1px solid var(--border);
	border-radius: 6px;
	font-size: 0.8rem;
	font-family: monospace;
}

.sync-status {
	font-size: 0.75rem;
	margin-top: 6px;
	min-height: 1em;
}

.sync-status-error {
	color: var(--danger);
}

.sync-status-ok {
	color: var(--success);
}

/* ============ PAGE D'ACCUEIL ============ */

.landing {
	background: #fff;
}

.landing-nav {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.landing-logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--text);
	text-decoration: none;
	letter-spacing: -0.02em;
	display: flex;
	align-items: center;
	gap: 0.5rem; 
}

.landing-logo img {
	vertical-align: middle;
	height: 1.5em;
	width: auto;
}

.landing-logo span {
	color: var(--primary);
}

.landing-nav-link {
	font-size: 0.85rem;
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.landing-nav-link:hover {
	color: var(--primary);
}

/* Hero */
.landing-hero {
	max-width: 720px;
	margin: 0 auto;
	padding: 80px 24px 64px;
	text-align: center;
}

.landing-hero h1 {
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.03em;
	margin-bottom: 20px;
	color: var(--text);
}

.landing-hero h1 span {
	color: var(--primary);
}

.landing-hero p {
	font-size: 1.1rem;
	color: var(--text-secondary);
	line-height: 1.6;
	max-width: 540px;
	margin: 0 auto 36px;
}

.landing-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s, transform 0.15s;
}

.landing-cta:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
}

.landing-cta svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Barre des valeurs primaires */
.landing-trust {
	text-align: center;
	padding: 16px 24px 0;
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.landing-trust span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 12px;
}

.landing-trust svg {
	width: 14px;
	height: 14px;
	fill: var(--success);
	flex-shrink: 0;
}

/* Fonctionnalités */
.landing-features {
	max-width: 960px;
	margin: 0 auto;
	padding: 64px 24px;
}

.landing-features h2 {
	font-size: 1.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 40px;
	letter-spacing: -0.02em;
}

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

.feature-card {
	padding: 28px 24px;
	background: var(--bg);
	border-radius: 12px;
	border: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
	border-color: var(--border);
	box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.feature-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.feature-icon svg {
	width: 22px;
	height: 22px;
}

.feature-icon.blue   { background: #eff6ff; color: var(--primary); }
.feature-icon.blue svg  { fill: var(--primary); }
.feature-icon.green  { background: #f0fdf4; color: var(--success); }
.feature-icon.green svg { fill: var(--success); }
.feature-icon.amber  { background: #fffbeb; color: #d97706; }
.feature-icon.amber svg { fill: #d97706; }
.feature-icon.red    { background: #fef2f2; color: var(--danger); }
.feature-icon.red svg   { fill: var(--danger); }
.feature-icon.violet { background: #f5f3ff; color: #7c3aed; }
.feature-icon.violet svg { fill: #7c3aed; }
.feature-icon.slate  { background: #f1f5f9; color: #475569; }
.feature-icon.slate svg  { fill: #475569; }

.feature-card h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.feature-card p {
	font-size: 0.85rem;
	color: var(--text-secondary);
	line-height: 1.55;
}

/* Séparateur entre accueil et application */
.landing-divider {
	height: 1px;
	background: var(--border);
	max-width: 960px;
	margin: 0 auto;
}

.landing-footer {
	text-align: center;
	padding: 18px 0 8px;
	font-size: 0.8rem;
	color: var(--text-secondary);
}

.landing-footer a {
	color: var(--text-secondary);
	text-decoration: none;
}

.landing-footer a:hover {
	text-decoration: underline;
}

/* Popup de la politique de confidentialité */
.privacy-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.privacy-modal {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
	max-width: 640px;
	width: calc(100% - 40px);
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.privacy-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--border);
	flex-shrink: 0;
}

.privacy-modal-header h2 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
}

.privacy-modal-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--text-secondary);
	padding: 0 4px;
	line-height: 1;
}

.privacy-modal-close:hover {
	color: var(--text);
}

.privacy-modal-body {
	padding: 20px;
	overflow-y: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}

.privacy-modal-body h3 {
	font-size: 0.95rem;
	font-weight: 600;
	margin: 18px 0 8px;
}

.privacy-modal-body h3:first-child {
	margin-top: 0;
}

.privacy-modal-body p {
	margin: 0 0 10px;
}

.privacy-modal-body ul {
	margin: 0 0 10px;
	padding-left: 20px;
}

.privacy-modal-body li {
	margin-bottom: 4px;
}

.privacy-modal-body table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 12px;
	font-size: 0.82rem;
}

.privacy-modal-body th,
.privacy-modal-body td {
	border: 1px solid var(--border);
	padding: 6px 10px;
	text-align: left;
}

.privacy-modal-body th {
	background: var(--bg);
	font-weight: 600;
}

.privacy-modal-body code {
	background: var(--bg);
	padding: 1px 4px;
	border-radius: 3px;
	font-size: 0.82rem;
}

/* Popup de contact */
.contact-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.contact-modal {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	width: 90%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.contact-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.contact-modal-header h2 {
	font-size: 1.1rem;
	font-weight: 600;
	margin: 0;
}

.contact-modal-close {
	background: none;
	border: none;
	font-size: 1.4rem;
	cursor: pointer;
	color: var(--text-secondary);
	padding: 0 4px;
	line-height: 1;
}

.contact-modal-close:hover {
	color: var(--text);
}

.contact-modal textarea {
	width: 100%;
	min-height: 140px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.5;
	resize: vertical;
	margin-bottom: 12px;
}

.contact-modal textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.contact-modal-btn {
	background: var(--primary);
	color: #fff;
	border: none;
	border-radius: var(--radius);
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	align-self: flex-end;
}

.contact-modal-btn:hover {
	background: var(--primary-hover);
}

.contact-modal-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.contact-status {
	font-size: 0.82rem;
	margin-top: 10px;
	text-align: center;
}

.contact-status-ok {
	color: var(--success);
}

.contact-status-error {
	color: var(--danger);
}

.contact-honeypot {
	display: none;
}

/* Section applicative ancrée pour les liens / boutons */
.app-section {
	scroll-margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
	.landing-hero h1 {
		 font-size: 1.85rem;
	}

	.landing-hero p {
		 font-size: 0.95rem;
	}

	.features-grid {
		 grid-template-columns: 1fr;
	}

	.landing-trust span {
		 display: flex;
		 justify-content: center;
		 margin: 4px 0;
	}
}

/* Bascule de langue */
.lang-switcher {
	display: flex;
	gap: 2px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 2px;
}

.lang-btn {
	background: none;
	border: none;
	padding: 4px 8px;
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 4px;
	color: var(--text-secondary);
	transition: background 0.2s, color 0.2s;
	line-height: 1;
}

.lang-btn.active {
	background: var(--primary);
	color: #fff;
}

.lang-btn:hover:not(.active) {
	background: var(--border);
	color: var(--text);
}

/* Actions dans l'en-tête (hamburger + langues) */
.header-actions {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-actions .btn-hamburger {
	position: static;
	transform: none;
}

/* Bascule de langue dans la barre */
.landing-nav-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hidden { display: none !important; }

/* Spinner de chargement */
.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid var(--border);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.6s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

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