/* ==========================================================================
   CRÉA — Base : reset doux, typographie, éléments natifs
   Mobile-first. Tout se lit d'abord à 375px.
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--crea-header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--crea-bg);
	color: var(--crea-text);
	font-family: var(--crea-font-body);
	font-size: var(--crea-fs-body);
	font-weight: 400;
	line-height: var(--crea-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Titres — The Seasons, posés, jamais criards
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.crea-display {
	margin: 0 0 var(--crea-sp-4);
	color: var(--crea-heading);
	font-family: var(--crea-font-display);
	font-weight: 400;
	line-height: var(--crea-lh-heading);
	letter-spacing: var(--crea-ls-display);
	text-wrap: balance;
}

.crea-display { font-size: var(--crea-fs-display); line-height: var(--crea-lh-display); }
h1 { font-size: var(--crea-fs-h1); }
h2 { font-size: var(--crea-fs-h2); }
h3 { font-size: var(--crea-fs-h3); }
h4 { font-size: var(--crea-fs-h4); }
h5, h6 { font-size: var(--crea-fs-body); }

/* --------------------------------------------------------------------------
   Texte courant
   -------------------------------------------------------------------------- */

p { margin: 0 0 var(--crea-sp-5); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }
em, i { font-style: italic; }

small { font-size: var(--crea-fs-small); }

a {
	color: var(--crea-navy);
	text-decoration-color: var(--crea-rule-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: .22em;
	transition: color var(--crea-dur-fast) var(--crea-ease),
	            text-decoration-color var(--crea-dur-fast) var(--crea-ease);
}
a:hover { color: var(--crea-terracotta); text-decoration-color: currentColor; }

ul, ol { margin: 0 0 var(--crea-sp-5); padding-left: 1.25em; }
li { margin-bottom: var(--crea-sp-2); }
li:last-child { margin-bottom: 0; }

blockquote {
	margin: var(--crea-sp-6) 0;
	padding-left: var(--crea-sp-5);
	border-left: 2px solid var(--crea-gold);
	color: var(--crea-navy);
	font-family: var(--crea-font-display);
	font-size: var(--crea-fs-h3);
	font-style: italic;
	line-height: 1.4;
}

hr {
	height: 0;
	margin: var(--crea-sp-7) 0;
	border: 0;
	border-top: 1px solid var(--crea-rule);
}

/* --------------------------------------------------------------------------
   Média
   -------------------------------------------------------------------------- */

img, svg, video, picture, canvas {
	display: block;
	max-width: 100%;
	height: auto;
}

figure { margin: 0; }

figcaption {
	margin-top: var(--crea-sp-3);
	color: var(--crea-text-muted);
	font-size: var(--crea-fs-small);
	letter-spacing: .02em;
}

/* --------------------------------------------------------------------------
   Formulaires — champs sobres, alignés sur la charte
   -------------------------------------------------------------------------- */

input, select, textarea, button {
	font: inherit;
	color: inherit;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"],
input[type="date"], select, textarea {
	width: 100%;
	/*
	 * Le thème parent impose une hauteur fixe aux champs, trop courte pour le
	 * rembourrage : le texte des listes déroulantes s'y trouvait rogné.
	 * Une hauteur minimale laisse le champ grandir avec son contenu, et tient
	 * la cible tactile de 52 px.
	 */
	min-height: 52px;
	height: auto;
	padding: .85rem 1rem;
	background: var(--crea-white);
	border: 1px solid var(--crea-rule);
	border-radius: var(--crea-radius);
	color: var(--crea-ink);
	font-size: 1rem; /* 16px minimum : évite le zoom automatique iOS */
	line-height: 1.4;
	transition: border-color var(--crea-dur-fast) var(--crea-ease),
	            box-shadow var(--crea-dur-fast) var(--crea-ease);
	appearance: none;
}

textarea { min-height: 9rem; resize: vertical; }

select {
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23002f6c' stroke-width='1.4' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px 8px;
	cursor: pointer;
}

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--crea-gold);
	box-shadow: 0 0 0 3px rgba(217, 164, 65, .18);
}

input::placeholder, textarea::placeholder {
	color: var(--crea-text-muted);
	opacity: .7;
}

label {
	display: block;
	margin-bottom: var(--crea-sp-2);
	color: var(--crea-navy);
	font-size: var(--crea-fs-small);
	font-weight: 500;
	letter-spacing: .04em;
}

/* Accessibilité : le focus clavier reste toujours visible */
:focus-visible {
	outline: 2px solid var(--crea-gold);
	outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Sélection & barre de défilement
   -------------------------------------------------------------------------- */

::selection {
	background: var(--crea-navy);
	color: var(--crea-cream);
}

/* --------------------------------------------------------------------------
   Utilitaires
   -------------------------------------------------------------------------- */

.screen-reader-text, .crea-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 1rem; left: 1rem;
	z-index: 9999;
	padding: .75rem 1.25rem;
	background: var(--crea-navy);
	color: var(--crea-cream);
	text-decoration: none;
}

.crea-text-center { text-align: center; }
.crea-mb-0 { margin-bottom: 0 !important; }
