/* =========================================================
   SOURIRE PRESTIGE — Base
   Reset, typographie de base, accessibilité, focus states.
   ========================================================= */

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

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

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

body.sp-no-scroll { overflow: hidden; }

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 500;
	line-height: var(--lh-heading);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 var(--space-4);
	color: var(--sp-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--font-body); font-weight: 600; letter-spacing: var(--tracking-normal); }

p { margin: 0 0 var(--space-4); color: var(--sp-text-muted); }
p:last-child { margin-bottom: 0; }

a {
	color: inherit;
	text-decoration: none;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
	font-family: inherit;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
}

input, textarea, select {
	font-family: inherit;
	font-size: var(--fs-body);
	color: var(--sp-text);
}

::selection {
	background: var(--sp-black);
	color: var(--sp-white);
}

/* ---- Eyebrow / micro-label (comme le wordmark du logo) ---- */
.sp-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--fs-caption);
	font-weight: 600;
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--sp-gold-text);
}
.sp-eyebrow .sp-icon { width: 10px; height: 10px; color: var(--sp-accent); }
.sp-section--bg-dark .sp-eyebrow { color: var(--sp-gold-light); }

/* ---- Accessibilité ---- */
.sp-skip-link {
	position: absolute;
	left: 1rem;
	top: -60px;
	background: var(--sp-black);
	color: var(--sp-white);
	padding: 0.85rem 1.5rem;
	z-index: 1000;
	border-radius: var(--radius-md);
	transition: top var(--duration-fast) var(--ease-premium);
	font-size: var(--fs-small);
	letter-spacing: var(--tracking-wide);
}
.sp-skip-link:focus {
	top: 1rem;
}

:focus-visible {
	outline: 2px solid var(--sp-accent);
	outline-offset: 3px;
}

.sp-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Contenu générique (pages sans gabarit dédié, articles) ---- */
.sp-generic-content h2 { margin-top: var(--space-8); }
.sp-generic-content h3 { margin-top: var(--space-6); }
.sp-generic-content ul, .sp-generic-content ol { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--space-4); color: var(--sp-text-muted); }
.sp-generic-content ol { list-style: decimal; }
.sp-generic-content a { color: var(--sp-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.sp-generic-content img { border-radius: var(--radius-md); margin-block: var(--space-6); }
.sp-generic-content blockquote { border-left: 2px solid var(--sp-accent); padding-left: var(--space-5); font-family: var(--font-display); font-size: var(--fs-h4); font-style: italic; margin: var(--space-6) 0; }

/* ---- Curseur personnalisé (desktop uniquement, cf. core.js) ---- */
.sp-cursor {
	position: fixed;
	top: 0; left: 0;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--sp-black);
	pointer-events: none;
	z-index: var(--z-cursor);
	transform: translate(-50%, -50%);
	transition: width var(--duration-fast) var(--ease-premium), height var(--duration-fast) var(--ease-premium), background var(--duration-fast) var(--ease-premium), opacity var(--duration-fast) ease;
	mix-blend-mode: difference;
	will-change: transform;
	opacity: 0;
}
.sp-cursor.is-active { opacity: 1; }
.sp-cursor.is-hover { width: 44px; height: 44px; background: var(--sp-accent); }
@media (hover: none), (pointer: coarse) {
	.sp-cursor { display: none; }
}

/* ---- Composition tonale (cf. sp_placeholder()) ----
   Tant qu'aucune photo réelle n'est déposée, ces zones ne sont jamais des
   boîtes vides : dégradé tonal chaud, grain, grand motif graphique (dent du
   logo) et cadre doré fin — pensé comme une pièce graphique à part entière. */
.sp-placeholder {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	background:
		radial-gradient(90% 70% at 15% 0%, rgba(15, 78, 140, 0.35), transparent 60%),
		radial-gradient(80% 70% at 100% 100%, rgba(15, 78, 140, 0.2), transparent 55%),
		radial-gradient(70% 60% at 100% 0%, rgba(10, 10, 9, 0.08), transparent 60%),
		linear-gradient(155deg, #fbf8f2 0%, var(--sp-sand) 45%, var(--sp-grey-100) 100%);
	color: var(--sp-grey-500);
	overflow: hidden;
	aspect-ratio: 4 / 5;
}
.sp-placeholder::before {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0.5;
	mix-blend-mode: multiply;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}
.sp-placeholder::after {
	content: '';
	position: absolute;
	inset: var(--space-4);
	border: 1px solid var(--sp-gold-dim);
	pointer-events: none;
}
.sp-placeholder--landscape { aspect-ratio: 3 / 2; }
.sp-placeholder--square { aspect-ratio: 1 / 1; }
.sp-placeholder--hero { aspect-ratio: 16 / 9; }
.sp-placeholder--before, .sp-placeholder--after { aspect-ratio: 4 / 5; }
.sp-placeholder__motif {
	position: absolute;
	top: 50%; left: 50%;
	width: 62%;
	transform: translate(-50%, -50%);
	color: var(--sp-gold);
	opacity: 0.22;
}
.sp-placeholder__label {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--fs-caption);
	letter-spacing: var(--tracking-widest);
	text-transform: uppercase;
	color: var(--sp-charcoal);
	background: var(--sp-white);
	padding: 0.65rem 1.1rem;
	margin: var(--space-5);
}
.sp-placeholder__label::before {
	content: '';
	width: 5px; height: 5px;
	background: var(--sp-gold);
	transform: rotate(45deg);
	flex-shrink: 0;
}
