/* Socle Thèmes Hugo 1.2.1 — FICHIER GÉNÉRÉ depuis tokens.json (outils/generer.php) : ne pas modifier à la main. */

/* Sombre — Mode sombre aux couleurs de l'application */
:root, [data-theme="dark"] {
	color-scheme: dark;
	/* Surfaces */
	--bg: #0f0f1a;
	--bg-card: #1a1a2e;
	--bg-card-hover: #22223a;
	--bg-input: #16162b;
	--bg-modal: #1e1e34;
	--overlay: rgba(0, 0, 0, 0.6);
	/* Texte */
	--text: #e8e8f0;
	--text-muted: #9a9ab8;
	--text-dim: #6c6c8a;
	--on-primary: #ffffff;
	/* Marque */
	--primary: var(--brand-primary, #6366f1);
	--primary-hover: color-mix(in srgb, var(--primary) 82%, #000);
	--primary-glow: color-mix(in srgb, var(--primary) 25%, transparent);
	--accent: var(--brand-accent, #00cec9);
	/* États */
	--success: #00b894;
	--success-bg: rgba(0, 184, 148, 0.14);
	--warning: #fdcb6e;
	--warning-bg: rgba(253, 203, 110, 0.14);
	--danger: #ff6b5b;
	--danger-hover: #e74c3c;
	--danger-bg: rgba(231, 76, 60, 0.15);
	--info: #74b9ff;
	--info-bg: rgba(116, 185, 255, 0.14);
	/* Traits */
	--border: #2d2d44;
	--border-focus: var(--primary);
	--border-width: 1px;
	--ink: #e8e8f0;
	/* Formes */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	/* Typographie */
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: var(--font-body);
	--title-weight: 700;
	--title-scale: 1;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: Georgia, 'Times New Roman', serif;
	/* Signature */
	--paper-image: none;
	--paper-size: auto;
	--paper-repeat: repeat;
	--stroke-filter: none;
	--hatch: none;
	--highlight: color-mix(in srgb, var(--primary) 40%, transparent);
	/* Mouvement */
	--transition: 0.2s ease;
	/* Lecture */
	--reading-theme: dark;
}

/* Clair — Mode clair aux couleurs de l'application */
[data-theme="light"] {
	color-scheme: light;
	/* Surfaces */
	--bg: #f5f5fa;
	--bg-card: #ffffff;
	--bg-card-hover: #f0f0f5;
	--bg-input: #e8e8f0;
	--bg-modal: #ffffff;
	--overlay: rgba(15, 15, 30, 0.45);
	/* Texte */
	--text: #1a1a2e;
	--text-muted: #5c5c7a;
	--text-dim: #8a8aa0;
	--on-primary: #ffffff;
	/* Marque */
	--primary: var(--brand-primary-light, var(--brand-primary, #4f46e5));
	--primary-hover: color-mix(in srgb, var(--primary) 82%, #000);
	--primary-glow: color-mix(in srgb, var(--primary) 12%, transparent);
	--accent: var(--brand-accent-light, color-mix(in srgb, var(--brand-accent, #00cec9) 65%, #000));
	/* États */
	--success: #0a8a6c;
	--success-bg: rgba(10, 138, 108, 0.1);
	--warning: #a86a0c;
	--warning-bg: rgba(217, 119, 6, 0.1);
	--danger: #c0392b;
	--danger-hover: #a93226;
	--danger-bg: rgba(192, 57, 43, 0.08);
	--info: #2563eb;
	--info-bg: rgba(37, 99, 235, 0.08);
	/* Traits */
	--border: #d0d0e0;
	--border-focus: var(--primary);
	--border-width: 1px;
	--ink: #1a1a2e;
	/* Formes */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	/* Typographie */
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: var(--font-body);
	--title-weight: 700;
	--title-scale: 1;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: Georgia, 'Times New Roman', serif;
	/* Signature */
	--paper-image: none;
	--paper-size: auto;
	--paper-repeat: repeat;
	--stroke-filter: none;
	--hatch: none;
	--highlight: color-mix(in srgb, var(--primary) 22%, transparent);
	/* Mouvement */
	--transition: 0.2s ease;
	/* Lecture */
	--reading-theme: light;
}

/* Bibliothèque — Papier crème, encre brune, cuir bordeaux ; typographie de lecture */
[data-theme="bibliotheque"] {
	color-scheme: light;
	/* Surfaces */
	--bg: #F3EBDD;
	--bg-card: #FBF7EF;
	--bg-card-hover: #F1E7D6;
	--bg-input: #FFFDF8;
	--bg-modal: #FBF7EF;
	--overlay: rgba(46, 38, 32, 0.55);
	/* Texte */
	--text: #2E2620;
	--text-muted: #6B5B4E;
	--text-dim: #8A7A6C;
	--on-primary: #ffffff;
	/* Marque */
	--primary: #8C2F39;
	--primary-hover: #73252E;
	--primary-glow: rgba(140, 47, 57, 0.14);
	--accent: #2F5D50;
	/* États */
	--success: #2F6B3A;
	--success-bg: #E3EDD9;
	--warning: #9A6412;
	--warning-bg: #F6E7C8;
	--danger: #A12C2C;
	--danger-hover: #862222;
	--danger-bg: #F5DCD6;
	--info: #2F5272;
	--info-bg: #DDE6EE;
	/* Traits */
	--border: #D9CBB4;
	--border-focus: #8C2F39;
	--border-width: 1px;
	--ink: #2E2620;
	/* Formes */
	--radius-sm: 6px;
	--radius: 10px;
	--radius-lg: 14px;
	--shadow-sm: 0 1px 2px rgba(74, 52, 36, 0.12);
	--shadow: 0 2px 10px rgba(74, 52, 36, 0.12);
	/* Typographie */
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: 'Literata', Georgia, 'Times New Roman', serif;
	--title-weight: 600;
	--title-scale: 1;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: 'Literata', Georgia, 'Times New Roman', serif;
	/* Signature */
	--paper-image: radial-gradient(ellipse 140% 520px at 50% 0%, rgba(255, 252, 244, 0.75), transparent 100%);
	--paper-size: auto;
	--paper-repeat: no-repeat;
	--stroke-filter: none;
	--hatch: none;
	--highlight: #EAD9A8;
	/* Mouvement */
	--transition: 0.2s ease;
	/* Lecture */
	--reading-theme: sepia;
}

/* Carnet — Dessiné à la main : papier quadrillé, traits d'encre tremblés, titres manuscrits */
[data-theme="carnet"] {
	color-scheme: light;
	/* Surfaces */
	--bg: #FBF7EC;
	--bg-card: #ffffff;
	--bg-card-hover: #FFF1B8;
	--bg-input: #ffffff;
	--bg-modal: #ffffff;
	--overlay: rgba(38, 37, 46, 0.5);
	/* Texte */
	--text: #26252E;
	--text-muted: #46444F;
	--text-dim: #64616C;
	--on-primary: #ffffff;
	/* Marque */
	--primary: #2F5BD3;
	--primary-hover: #2449AE;
	--primary-glow: rgba(47, 91, 211, 0.12);
	--accent: #C62E25;
	/* États */
	--success: #1F7A44;
	--success-bg: #E3F5E1;
	--warning: #B45309;
	--warning-bg: #FFF1B8;
	--danger: #C62E25;
	--danger-hover: #A3241C;
	--danger-bg: #FDE3E0;
	--info: #2F5BD3;
	--info-bg: #E4ECFB;
	/* Traits */
	--border: #26252E;
	--border-focus: #2F5BD3;
	--border-width: 2px;
	--ink: #26252E;
	/* Formes */
	--radius-sm: 10px;
	--radius: 14px 5px 16px 6px / 6px 15px 5px 14px;
	--radius-lg: 18px 7px 20px 8px / 8px 19px 7px 18px;
	--shadow-sm: 2px 2px 0 var(--ink);
	--shadow: 3px 4px 0 var(--ink);
	/* Typographie */
	--font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
	--title-weight: 700;
	--title-scale: 1.3;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: 'Nunito', Georgia, serif;
	/* Signature */
	--paper-image: linear-gradient(rgba(47, 91, 211, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 91, 211, 0.08) 1px, transparent 1px);
	--paper-size: 22px 22px;
	--paper-repeat: repeat;
	--stroke-filter: url(#th-wob);
	--hatch: repeating-linear-gradient(-45deg, var(--ink) 0 1.3px, transparent 1.3px 5px);
	--highlight: #FFD646;
	/* Mouvement */
	--transition: 0.15s ease;
	/* Lecture */
	--reading-theme: light;
}

/* Nature — Vert forêt, sable et pierre (repris de Séjours) */
[data-theme="nature"] {
	color-scheme: light;
	/* Surfaces */
	--bg: #f5f0e8;
	--bg-card: #ffffff;
	--bg-card-hover: #e8e0d0;
	--bg-input: #ffffff;
	--bg-modal: #ffffff;
	--overlay: rgba(27, 67, 50, 0.45);
	/* Texte */
	--text: #2b2b2b;
	--text-muted: #6b705c;
	--text-dim: #87876f;
	--on-primary: #ffffff;
	/* Marque */
	--primary: #2d6a4f;
	--primary-hover: #1b4332;
	--primary-glow: rgba(45, 106, 79, 0.14);
	--accent: #9c6644;
	/* États */
	--success: #2f7d4f;
	--success-bg: #d8f3dc;
	--warning: #a86a0c;
	--warning-bg: #fbefd5;
	--danger: #c0392b;
	--danger-hover: #a93226;
	--danger-bg: #fde8e4;
	--info: #2f6690;
	--info-bg: #e0ecf5;
	/* Traits */
	--border: #e8e0d0;
	--border-focus: #2d6a4f;
	--border-width: 1px;
	--ink: #2b2b2b;
	/* Formes */
	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	/* Typographie */
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: var(--font-body);
	--title-weight: 700;
	--title-scale: 1;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: Georgia, 'Times New Roman', serif;
	/* Signature */
	--paper-image: none;
	--paper-size: auto;
	--paper-repeat: repeat;
	--stroke-filter: none;
	--hatch: none;
	--highlight: #b7e4c7;
	/* Mouvement */
	--transition: 0.2s ease;
	/* Lecture */
	--reading-theme: light;
}

/* Rétro — Néo-brutaliste : traits épais, ombres pleines, couleurs pastel */
[data-theme="retro"] {
	color-scheme: light;
	/* Surfaces */
	--bg: #FAF7EF;
	--bg-card: #ffffff;
	--bg-card-hover: #FFF3C4;
	--bg-input: #ffffff;
	--bg-modal: #ffffff;
	--overlay: rgba(26, 26, 26, 0.5);
	/* Texte */
	--text: #1a1a1a;
	--text-muted: #3f3f3f;
	--text-dim: #6b6b6b;
	--on-primary: #ffffff;
	/* Marque */
	--primary: #7c5cff;
	--primary-hover: #6847f0;
	--primary-glow: rgba(124, 92, 255, 0.14);
	--accent: #E4572E;
	/* États */
	--success: #15803d;
	--success-bg: #c8f7d2;
	--warning: #d97706;
	--warning-bg: #FFF0A8;
	--danger: #dc2626;
	--danger-hover: #b91c1c;
	--danger-bg: #ffd1d1;
	--info: #2563eb;
	--info-bg: #D4F1FF;
	/* Traits */
	--border: #1a1a1a;
	--border-focus: #7c5cff;
	--border-width: 2.5px;
	--ink: #1a1a1a;
	/* Formes */
	--radius-sm: 10px;
	--radius: 14px;
	--radius-lg: 18px;
	--shadow-sm: 2px 2px 0 var(--ink);
	--shadow: 4px 4px 0 var(--ink);
	/* Typographie */
	--font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--font-title: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
	--title-weight: 700;
	--title-scale: 1;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--font-reading: Georgia, 'Times New Roman', serif;
	/* Signature */
	--paper-image: none;
	--paper-size: auto;
	--paper-repeat: repeat;
	--stroke-filter: none;
	--hatch: none;
	--highlight: #FFE08A;
	/* Mouvement */
	--transition: 0.12s ease;
	/* Lecture */
	--reading-theme: light;
}
