/**
 * Bah Psy — Styles de base.
 *
 * Variables, reset, typographie.
 */

:root {
	/* Palette Soft Sanctuary */
	--color-bg: #F4EFEA;
	--color-accent: #C9A27E;
	--color-secondary: #173B36;
	--color-text: #6B5E56;

	/* Typographie */
	--font-body: 'Georgia', 'Times New Roman', serif;
	--font-heading: 'Georgia', 'Times New Roman', serif;

	/* Espacements */
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 2rem;
	--space-lg: 4rem;
	--space-xl: 6rem;

	/* Conteneur */
	--container-width: 1200px;
	--container-padding: 1.5rem;

	/* Transitions */
	--transition-base: 0.3s ease;
}

@media (max-width: 767px) {
	:root {
		--container-padding: 1rem;
	}
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.8;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	line-height: 1.3;
	color: var(--color-text);
	margin-top: 0;
	margin-bottom: var(--space-sm);
}

h1 {
	font-size: 2.5rem;
}

h2 {
	font-size: 2rem;
}

h3 {
	font-size: 1.5rem;
}

p {
	margin-top: 0;
	margin-bottom: var(--space-md);
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-text);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

ul,
ol {
	padding-left: var(--space-md);
}

figure {
	margin: 0 0 var(--space-md);
}

blockquote {
	margin: var(--space-md) 0;
	padding-left: var(--space-md);
	border-left: 3px solid var(--color-accent);
	font-style: italic;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: var(--space-md);
}

th,
td {
	padding: var(--space-xs);
	border-bottom: 1px solid var(--color-accent);
	text-align: left;
}

/* Accessibilité */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--color-bg);
	clip: auto !important;
	clip-path: none;
	color: var(--color-text);
	display: block;
	font-size: 1rem;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999999;
}

.skip-link:focus {
	left: 6px;
	top: 7px;
}

/* Focus visible */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

/* Animations discrètes */
.is-hidden {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.is-visible {
	opacity: 1;
	transform: translateY(0);
}
