/*
Theme Name: Piscin3
Theme URI: https://piscin3.fr
Author: Seobooster LTD
Description: Thème code-pur de piscin3.fr — le bassin vu d'en haut, un jour de plein été.
Version: 1.0.0
Text Domain: piscin3
*/

/* =========================================================================
   0. RESET MINIMAL
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body { margin: 0; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
table { width: 100%; border-collapse: collapse; }

/* =========================================================================
   1. POLICES — self-hébergées (P-086)
   ========================================================================= */
@font-face {
	font-family: 'Mohave';
	src: url('assets/fonts/mohave-variable.woff2') format('woff2-variations'),
	     url('assets/fonts/mohave-variable.woff2') format('woff2');
	font-weight: 300 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Mohave';
	src: url('assets/fonts/mohave-italic-variable.woff2') format('woff2-variations'),
	     url('assets/fonts/mohave-italic-variable.woff2') format('woff2');
	font-weight: 300 700;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: 'Urbanist';
	src: url('assets/fonts/urbanist-variable.woff2') format('woff2-variations'),
	     url('assets/fonts/urbanist-variable.woff2') format('woff2');
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

/* =========================================================================
   2. VARIABLES DE CONTRASTE — mode clair uniquement (DA §0, GD-030)
   ========================================================================= */
:root {
	/* Palette (DA §3) */
	--margelle: #F9F9F5;
	--carreau: #FFFFFF;
	--anthracite: #152022;
	--eau: #00D0C6;
	--eau-fonce: #00A69D;
	--eau-claire: #D3F5F1;
	--bouee: #FF6A2B;
	--joint: #566466;
	--filet: #E3E6E1;

	/* Rôles sémantiques */
	--bg: var(--margelle);
	--surface: var(--carreau);
	--encre: var(--anthracite);
	--encre-douce: var(--joint);
	--accent: var(--eau);
	--accent-survol: var(--eau-fonce);
	--accent-clair: var(--eau-claire);
	--urgence: var(--bouee);
	--bordure: var(--filet);

	/* Texte posé sur accent / anthracite : contraste vérifié DA */
	--sur-accent: var(--anthracite); /* 8,6:1 */
	--sur-anthracite: #FFFFFF;
	--sur-anthracite-douce: #C9D2D3;
	--sur-urgence: var(--anthracite); /* 5,8:1 sur anthracite / suffisant sur bouée */

	/* Typo */
	--f-titre: 'Mohave', sans-serif;
	--f-corps: 'Urbanist', sans-serif;

	/* Rythme */
	--rayon: 6px;
	--conteneur: 1280px;
	--marge: 24px;
}

@media (max-width: 480px) {
	:root { --marge: 16px; }
}

/* =========================================================================
   3. TYPOGRAPHIE DE BASE
   ========================================================================= */
body {
	background: var(--bg);
	color: var(--encre);
	font-family: var(--f-corps);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--f-titre); color: var(--encre); line-height: 0.98; }

h1 { font-weight: 700; }
h2 { font-size: 34px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }

.piscin3_surtitre {
	display: block;
	font-family: var(--f-corps);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--joint);
}

p { max-width: 68ch; }
p.piscin3_chapo { font-size: 22px; font-weight: 500; max-width: 60ch; color: var(--encre); }

/* =========================================================================
   4. STRUCTURE / UTILITAIRES
   ========================================================================= */
.piscin3_conteneur {
	max-width: var(--conteneur);
	margin: 0 auto;
	padding: 0 var(--marge);
	min-width: 0;
}

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

.piscin3_saut {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--anthracite); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--rayon) 0;
}
.piscin3_saut:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
	outline: 3px solid var(--eau-fonce);
	outline-offset: 2px;
}

/* Liens dans le texte éditorial (DA §3) */
.piscin3_corps a {
	color: var(--encre);
	text-decoration: underline;
	text-decoration-color: var(--eau);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	border-radius: 2px;
	transition: background-color 200ms ease;
}
.piscin3_corps a:hover { background: var(--eau-claire); }

/* Boutons (procédé transversal) */
.piscin3_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border-radius: var(--rayon);
	font-family: var(--f-corps);
	font-size: 15px;
	font-weight: 700;
	border: 2px solid var(--anthracite);
	background: transparent;
	color: var(--anthracite);
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}
.piscin3_btn:hover { transform: translateY(-1px); }
.piscin3_btn_accent {
	border-color: var(--eau);
	background: var(--eau);
	color: var(--sur-accent);
}
.piscin3_btn_accent:hover { background: var(--eau-fonce); border-color: var(--eau-fonce); color: #fff; }
.piscin3_btn_clair {
	border-color: #fff;
	background: #fff;
	color: var(--anthracite);
}
.piscin3_btn_clair:hover { background: var(--eau-claire); }
.piscin3_btn_fantome {
	border-color: rgba(255,255,255,0.5);
	color: #fff;
}
.piscin3_btn_fantome:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

img { object-fit: cover; }
