/* ==========================================================================
   Cabinet Vétérinaire du Dessus — design system du thème
   Base : modèle Claude Design (crème/vert/ocre/terracotta, Bricolage
   Grotesque + Kaushan Script, ombres dures, rotations légères).
   ========================================================================== */

/* --- 1. Variables ------------------------------------------------------- */

:root {
	--creme: #FAF6EC;
	--encre: #33322E;
	--vert: #4A7C3A;
	--vert-clair: #7FC25E;
	--vert-pale: #CFE6BE;
	--sauge: #E4EDDD;
	--ocre: #E8A13C;
	--terracotta: #E2603F;
	--gris: #6B6A64;
	--blanc: #FFFFFF;

	--police: 'Bricolage Grotesque', system-ui, sans-serif;
	--police-script: 'Kaushan Script', cursive;

	--rayon: 20px;
	--rayon-grand: 32px;
	--bordure: 2px solid var(--encre);
	--ombre-dure: 4px 4px 0 var(--encre);
	--transition: 0.2s ease;

	--largeur: 1240px;
}

/* --- 2. Base ------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--creme);
	color: var(--encre);
	font-family: var(--police);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--vert); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--encre); }

::selection { background: var(--vert); color: var(--creme); }

h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.5px; }

.conteneur {
	max-width: var(--largeur);
	margin: 0 auto;
	padding-inline: 28px;
}

.lien-evitement {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--encre);
	color: var(--creme);
	padding: 12px 20px;
	z-index: 100;
}
.lien-evitement:focus { left: 0; color: var(--creme); }

/* --- 3. Utilitaires ----------------------------------------------------- */

.surtitre {
	margin: 0;
	display: inline-block;
	font-family: var(--police-script);
	font-size: 28px;
	color: var(--vert);
	transform: rotate(-2deg);
}
.surtitre--clair { color: var(--vert-clair); }
.surtitre--pale { color: var(--vert-pale); }
.surtitre--ocre { color: var(--ocre); }

.titre-section {
	margin: 8px 0 16px;
	font-size: clamp(32px, 4vw, 50px);
}

.intro-section {
	margin: 0 0 44px;
	max-width: 560px;
	color: var(--gris);
}

.bouton {
	display: inline-block;
	padding: 15px 30px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	border: 2px solid var(--encre);
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.bouton--plein {
	background: var(--vert);
	border-color: var(--encre);
	color: var(--creme);
	box-shadow: var(--ombre-dure);
}
.bouton--plein:hover {
	color: var(--creme);
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--encre);
}
.bouton--contour {
	background: transparent;
	color: var(--encre);
}
.bouton--contour:hover { background: var(--encre); color: var(--creme); }
.bouton--creme {
	background: var(--creme);
	color: var(--encre);
	box-shadow: var(--ombre-dure);
}
.bouton--creme:hover {
	color: var(--encre);
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--encre);
}

.badge {
	display: inline-block;
	background: var(--creme);
	border: var(--bordure);
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transform: rotate(-2deg);
	box-shadow: 3px 3px 0 var(--ocre);
}

.souligne { position: relative; display: inline-block; }
.souligne svg {
	position: absolute;
	left: 0;
	bottom: -0.18em;
	width: 100%;
	height: 0.22em;
}

.penche-g { transform: rotate(-1.2deg); }
.penche-d { transform: rotate(1.1deg); }
.penche-g, .penche-d { transition: transform var(--transition), box-shadow var(--transition); }
.penche-g:hover, .penche-d:hover { transform: rotate(0deg); }

/* Révélation au défilement (JS ajoute .visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Combinaisons révélation + inclinaison : la rotation doit survivre au reveal. */
.reveal.penche-g { transform: translateY(26px) rotate(-1.2deg); }
.reveal.penche-d { transform: translateY(26px) rotate(1.1deg); }
.reveal.visible.penche-g { transform: rotate(-1.2deg); }
.reveal.visible.penche-d { transform: rotate(1.1deg); }
.reveal.visible.penche-g:hover,
.reveal.visible.penche-d:hover { transform: rotate(0deg); }

/* --- 4. En-tête --------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 246, 236, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid var(--encre);
}

.site-header__barre {
	display: flex;
	align-items: center;
	gap: 26px;
	padding-block: 12px;
}

.site-header__logo img { height: 62px; width: auto; }

.site-header__nav { margin-left: auto; }
.site-header__nav .menu {
	display: flex;
	gap: 26px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 600;
	font-size: 15.5px;
}
.site-header__nav a { color: var(--encre); }
.site-header__nav a:hover { color: var(--vert); }
.site-header__nav .current-menu-item > a,
.site-header__nav .current_page_item > a { color: var(--vert); }

.bouton-urgences {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--encre);
	color: var(--creme);
	padding: 12px 22px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
	transform: rotate(-1.5deg);
	transition: transform var(--transition), background var(--transition);
}
.bouton-urgences:hover {
	background: var(--vert);
	color: var(--creme);
	transform: rotate(0deg) scale(1.04);
}
.bouton-urgences__point {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--vert-clair);
	animation: pulsation 2s ease-in-out infinite;
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: var(--bordure);
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
}
.burger span {
	display: block;
	width: 22px;
	height: 2.5px;
	background: var(--encre);
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.menu-mobile {
	border-top: 2px solid var(--encre);
	padding: 20px 28px 26px;
	display: grid;
	gap: 6px;
}
/* L'attribut hidden doit toujours gagner sur le display: grid ci-dessus. */
.menu-mobile[hidden] { display: none; }
/* Sur desktop, le panneau mobile n'existe pas, même ouvert. */
@media (min-width: 1081px) {
	.menu-mobile { display: none; }
}
.menu-mobile .menu {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: grid;
	gap: 4px;
}
.menu-mobile .menu a {
	display: block;
	padding: 10px 0;
	font-weight: 700;
	font-size: 19px;
	color: var(--encre);
	border-bottom: 1px solid rgba(51, 50, 46, 0.12);
}
.menu-mobile .bouton { text-align: center; }

/* --- 5. Hero ------------------------------------------------------------ */

.hero {
	position: relative;
	padding: 72px 0 48px;
	overflow: hidden;
}

.hero__blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	animation: blobmove 10s ease-in-out infinite;
}
.hero__blob--ocre { top: 30px; left: -120px; width: 420px; height: 420px; background: radial-gradient(circle, rgba(232, 161, 60, 0.30), transparent 65%); }
.hero__blob--vert { top: 220px; right: 60px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(127, 194, 94, 0.28), transparent 65%); animation-delay: 1.2s; }
.hero__blob--terra { bottom: -60px; left: 32%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(226, 96, 63, 0.16), transparent 65%); animation-delay: 2.4s; }

.hero__grille {
	position: relative;
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 56px;
	align-items: center;
}

.hero h1 {
	font-size: clamp(42px, 5.6vw, 76px);
	letter-spacing: -1.5px;
	margin: 18px 0 0;
	max-width: 640px;
}
.hero h1 .script {
	font-family: var(--police-script);
	font-weight: 400;
	color: var(--vert);
	letter-spacing: 0;
	font-size: 0.94em;
}

.hero__texte > * { animation: rise 0.7s ease both; }
.hero__texte > *:nth-child(2) { animation-delay: 0.1s; }
.hero__texte > *:nth-child(3) { animation-delay: 0.2s; }
.hero__texte > *:nth-child(4) { animation-delay: 0.3s; }

.hero__sous-titre {
	margin: 24px 0 0;
	font-size: 19px;
	max-width: 540px;
}

.hero__actions {
	display: flex;
	gap: 16px;
	margin-top: 34px;
	flex-wrap: wrap;
}

.hero__visuel { position: relative; animation: rise 0.8s 0.25s ease both; }
.hero__visuel img.hero__photo {
	border-radius: var(--rayon-grand);
	border: var(--bordure);
	box-shadow: 8px 8px 0 var(--vert);
	transform: rotate(1.6deg);
	object-fit: cover;
	aspect-ratio: 4 / 3;
	width: 100%;
}
.hero__illustration {
	position: absolute;
	bottom: -26px;
	left: -34px;
	width: 130px;
	opacity: 0.9;
	transform: rotate(-5deg);
	animation: floaty 6s ease-in-out infinite;
}

.badge-rond {
	position: absolute;
	top: -34px;
	right: -18px;
	background: var(--vert);
	color: var(--creme);
	border-radius: 50%;
	width: 138px;
	height: 138px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: 6px 8px 0 var(--encre);
	animation: floaty 6s ease-in-out infinite;
	z-index: 2;
}
.badge-rond .script { font-family: var(--police-script); font-size: 24px; line-height: 1; }
.badge-rond strong { font-size: 40px; font-weight: 800; line-height: 1.05; }
.badge-rond small { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* --- 6. Ticker ---------------------------------------------------------- */

.ticker {
	background: var(--encre);
	color: var(--creme);
	transform: rotate(-1.2deg) scale(1.02);
	margin-block: 34px;
	padding-block: 14px;
	overflow: hidden;
}
.ticker__piste {
	display: flex;
	width: max-content;
	animation: defilement 28s linear infinite;
}
.ticker__groupe {
	display: flex;
	gap: 40px;
	padding-right: 40px;
	font-size: 19px;
	font-weight: 700;
	white-space: nowrap;
	align-items: center;
}
.ticker .script { font-family: var(--police-script); font-weight: 400; }
.ticker .c-vert { color: var(--vert-clair); }
.ticker .c-ocre { color: var(--ocre); }
.ticker .c-terra { color: var(--terracotta); }

/* --- 7. Sections -------------------------------------------------------- */

.section { padding-block: 84px; }

.section--sombre {
	background: var(--encre);
	color: var(--creme);
	clip-path: polygon(0 2%, 100% 0, 100% 98%, 0 100%);
	padding-block: 96px;
}
.section--sombre .intro-section { color: rgba(250, 246, 236, 0.75); }
.section--sombre a { color: var(--vert-clair); }
.section--sombre a:hover { color: var(--creme); }

.grille-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grille-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

/* --- 8. Cartes ---------------------------------------------------------- */

.carte-stat {
	background: var(--blanc);
	border: var(--bordure);
	border-radius: var(--rayon);
	padding: 24px 28px;
}
.carte-stat--vert { box-shadow: 5px 5px 0 var(--vert); }
.carte-stat--terra { box-shadow: 5px 5px 0 var(--terracotta); }
.carte-stat--ocre { box-shadow: 5px 5px 0 var(--ocre); }
.carte-stat__chiffre { font-size: 44px; font-weight: 800; line-height: 1; }
.carte-stat--vert .carte-stat__chiffre { color: var(--vert); }
.carte-stat--terra .carte-stat__chiffre { color: var(--terracotta); }
.carte-stat--ocre .carte-stat__chiffre { color: var(--ocre); }
.carte-stat__chiffre--script { font-family: var(--police-script); font-weight: 400; font-size: 30px; }
.carte-stat p { margin: 6px 0 0; font-weight: 700; }
.carte-stat small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--gris); }

.carte-stat--sombre {
	background: var(--encre);
	color: var(--creme);
	border-color: var(--encre);
}
.carte-stat--sombre .carte-stat__chiffre { color: var(--vert-clair); }
.carte-stat--sombre small { color: rgba(250, 246, 236, 0.7); }

.carte-pole {
	background: var(--creme);
	color: var(--encre);
	border-radius: 24px;
	padding: 32px;
	border-top: 8px solid var(--vert);
	transition: transform var(--transition), box-shadow var(--transition);
}
.carte-pole:hover { transform: rotate(0deg) translateY(-4px); }
.carte-pole--vert { border-top-color: var(--vert); }
.carte-pole--vert:hover { box-shadow: 0 14px 0 var(--vert); }
.carte-pole--ocre { border-top-color: var(--ocre); }
.carte-pole--ocre:hover { box-shadow: 0 14px 0 var(--ocre); }
.carte-pole--terra { border-top-color: var(--terracotta); }
.carte-pole--terra:hover { box-shadow: 0 14px 0 var(--terracotta); }
.carte-pole--plein {
	background: var(--vert);
	color: var(--creme);
	border-top: none;
}
.carte-pole--plein:hover { box-shadow: 0 14px 0 var(--creme); }
.carte-pole--plein .carte-pole__desc { color: rgba(250, 246, 236, 0.85); }

.carte-pole__entete {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}
.carte-pole h3 { font-size: 25px; }
.carte-pole__numero { font-family: var(--police-script); font-size: 23px; }
.carte-pole--vert .carte-pole__numero { color: var(--vert); }
.carte-pole--ocre .carte-pole__numero { color: var(--ocre); }
.carte-pole--terra .carte-pole__numero { color: var(--terracotta); }
.carte-pole__desc { margin: 12px 0 16px; font-size: 15px; color: var(--gris); }

.liste-soins {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
}
.liste-soins li { display: flex; gap: 10px; align-items: baseline; }
.liste-soins li::before { content: '✳'; color: var(--vert); flex-shrink: 0; }
.carte-pole--plein .liste-soins li::before { color: var(--creme); }
.carte-pole--ocre .liste-soins li::before { color: var(--ocre); }
.carte-pole--terra .liste-soins li::before { color: var(--terracotta); }

.carte-pole__lien { display: inline-block; margin-top: 18px; font-weight: 700; }

/* Cartes actualités */
.carte-actu {
	background: var(--blanc);
	border: var(--bordure);
	border-radius: var(--rayon);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}
.carte-actu:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 5px 7px 0 var(--vert); }
.carte-actu__image { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: var(--bordure); background: var(--sauge); }
.carte-actu__image img { width: 100%; height: 100%; object-fit: cover; }
.carte-actu__corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.carte-actu__date {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--vert);
}
.carte-actu h3 { font-size: 21px; line-height: 1.2; }
.carte-actu h3 a { color: var(--encre); }
.carte-actu h3 a:hover { color: var(--vert); }
.carte-actu p { margin: 0; font-size: 15px; color: var(--gris); }

/* Carte équipe */
.carte-equipe {
	background: var(--blanc);
	border: var(--bordure);
	border-radius: var(--rayon);
	padding: 22px;
	display: flex;
	gap: 16px;
	align-items: center;
	position: relative;
	overflow: hidden;
	transition: transform var(--transition), box-shadow var(--transition);
}
.carte-equipe:hover { transform: rotate(0deg) translateY(-3px); box-shadow: 4px 6px 0 var(--vert); }
.carte-equipe__avatar {
	width: 58px;
	height: 58px;
	flex-shrink: 0;
	border-radius: 50%;
	border: var(--bordure);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--police-script);
	font-size: 21px;
}
.carte-equipe__nom { margin: 0; font-weight: 800; font-size: 16.5px; line-height: 1.2; }
.carte-equipe__role { margin: 5px 0 0; font-size: 13.5px; color: var(--gris); line-height: 1.4; }

/* Cartes d'information (contact) */
.carte-info {
	background: var(--blanc);
	border: var(--bordure);
	border-radius: var(--rayon);
	padding: 22px 26px;
}
.carte-info__titre {
	margin: 0 0 6px;
	font-weight: 800;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--vert);
}
.carte-info p { margin: 0; font-weight: 600; }
.carte-info small { display: block; margin-top: 6px; color: var(--gris); font-weight: 400; }

/* Bloc bande verte (contact / CTA) */
.bande-verte {
	background: var(--vert);
	color: var(--creme);
	border-radius: var(--rayon-grand);
	padding: 56px;
	position: relative;
	overflow: hidden;
}
.bande-verte .surtitre { color: var(--vert-pale); }
.bande-verte h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 8px 0 18px; }
.bande-verte p { opacity: 0.92; }
.bande-verte__cercle {
	position: absolute;
	top: -60px;
	right: -60px;
	width: 260px;
	height: 260px;
	border: 2px dashed rgba(250, 246, 236, 0.35);
	border-radius: 50%;
	animation: rotation 40s linear infinite;
	pointer-events: none;
}
.bande-verte__illustration {
	position: absolute;
	bottom: 18px;
	right: 42px;
	width: 110px;
	opacity: 0.55;
	pointer-events: none;
}
.bande-verte a { color: var(--creme); }
.bande-verte .carte-translucide {
	background: rgba(250, 246, 236, 0.12);
	border: 1px solid rgba(250, 246, 236, 0.3);
	border-radius: 18px;
	padding: 18px 22px;
}
.bande-verte .carte-translucide .carte-info__titre { color: var(--vert-pale); }
.bande-verte .carte-translucide p { color: var(--creme); }

/* Encart placeholder réseaux sociaux */
.encart-social {
	border: 2px dashed var(--gris);
	border-radius: var(--rayon);
	padding: 30px;
	text-align: center;
	color: var(--gris);
	background: var(--sauge);
	margin-bottom: 44px;
}
.encart-social strong { color: var(--encre); }

/* --- 9. Page prestations (sections détaillées) -------------------------- */

.pole-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 44px; }
.pole-detail__visuel img {
	border-radius: var(--rayon-grand);
	border: var(--bordure);
	object-fit: cover;
	aspect-ratio: 4 / 3;
	width: 100%;
}
.pole-detail--vert .pole-detail__visuel img { box-shadow: 8px 8px 0 var(--vert); transform: rotate(-1.2deg); }
.pole-detail--ocre .pole-detail__visuel img { box-shadow: 8px 8px 0 var(--ocre); transform: rotate(1.2deg); }
.pole-detail--terra .pole-detail__visuel img { box-shadow: 8px 8px 0 var(--terracotta); transform: rotate(-1deg); }
.pole-detail h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 14px; }
.pole-detail .liste-soins { font-size: 16px; }
.pole-detail__intro { color: var(--gris); margin: 0 0 18px; }

/* --- 10. Formulaire ----------------------------------------------------- */

.formulaire { display: grid; gap: 18px; }
.formulaire label { font-weight: 700; font-size: 15px; display: grid; gap: 8px; }
.formulaire input[type="text"],
.formulaire input[type="email"],
.formulaire input[type="tel"],
.formulaire select,
.formulaire textarea {
	width: 100%;
	padding: 14px 16px;
	border: var(--bordure);
	border-radius: 14px;
	background: var(--blanc);
	font-family: var(--police);
	font-size: 16px;
	color: var(--encre);
	transition: box-shadow var(--transition);
}
.formulaire input:focus,
.formulaire select:focus,
.formulaire textarea:focus {
	outline: none;
	box-shadow: 3px 3px 0 var(--vert);
}
.formulaire textarea { resize: vertical; min-height: 140px; }
.formulaire .champ-cache { position: absolute; left: -9999px; }

.note-formulaire { font-size: 13.5px; color: var(--gris); margin: 0; }

.avis {
	border-radius: 14px;
	padding: 16px 20px;
	font-weight: 700;
	margin-bottom: 22px;
	border: var(--bordure);
}
.avis--ok { background: var(--vert-pale); }
.avis--err { background: #F6D5CB; }

/* --- 11. Pied de page --------------------------------------------------- */

.site-footer {
	background: var(--encre);
	color: var(--creme);
	padding: 64px 0 28px;
	margin-top: 90px;
}
.site-footer__grille {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 44px;
	align-items: start;
}
.site-footer__marque img { height: 96px; width: auto; opacity: 0.95; }
.site-footer__marque p {
	margin: 16px 0 0;
	font-size: 14px;
	opacity: 0.7;
	max-width: 340px;
}
.site-footer__titre {
	margin: 0 0 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	color: var(--vert-clair);
}
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--creme); opacity: 0.85; }
.site-footer a:hover { color: var(--vert-clair); opacity: 1; }
.site-footer__contact p { margin: 0 0 8px; opacity: 0.9; }
.site-footer__tel { font-weight: 700; font-size: 19px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__bas {
	margin-top: 44px;
	padding-top: 20px;
	border-top: 1px solid rgba(250, 246, 236, 0.15);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 13px;
	opacity: 0.65;
}

/* --- 12. Pages internes / prose ----------------------------------------- */

.entete-page { padding: 64px 0 20px; position: relative; }
.entete-page h1 { font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -1.2px; max-width: 800px; }
.entete-page .intro-section { margin-top: 18px; }

.prose { max-width: 760px; }
.prose h2 { font-size: 27px; margin: 36px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }

.pagination-actu { display: flex; gap: 10px; justify-content: center; margin-top: 48px; font-weight: 700; }
.pagination-actu .page-numbers {
	border: var(--bordure);
	border-radius: 12px;
	padding: 8px 16px;
	color: var(--encre);
	background: var(--blanc);
}
.pagination-actu .page-numbers.current { background: var(--vert); color: var(--creme); border-color: var(--encre); }
.pagination-actu .page-numbers:hover { background: var(--sauge); color: var(--encre); }

/* Article actualité */
.article-actu { max-width: 820px; margin-inline: auto; }
.article-actu__image img {
	border-radius: var(--rayon-grand);
	border: var(--bordure);
	box-shadow: 6px 6px 0 var(--vert);
	width: 100%;
	object-fit: cover;
	max-height: 480px;
}
.article-actu__contenu { margin-top: 36px; font-size: 17.5px; }
.article-actu__contenu img { border-radius: var(--rayon); }
.article-actu__retour { display: inline-block; margin-top: 40px; font-weight: 700; }

/* Page 404 */
.page-404 { text-align: center; padding: 80px 0; }
.page-404 img.photo-404 {
	width: min(420px, 80%);
	margin: 0 auto 30px;
	border-radius: var(--rayon-grand);
	border: var(--bordure);
	box-shadow: 6px 6px 0 var(--ocre);
	transform: rotate(-2deg);
}
.page-404 h1 { font-size: clamp(36px, 5vw, 58px); }
.page-404 p { color: var(--gris); max-width: 460px; margin: 16px auto 30px; }

/* Illustrations décoratives issues du logo */
.illustration-flottante {
	position: absolute;
	width: 120px;
	opacity: 0.35;
	pointer-events: none;
	user-select: none;
}

/* --- 13. Animations ----------------------------------------------------- */

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes defilement { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
@keyframes rotation { to { transform: rotate(360deg); } }
@keyframes blobmove { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -20px) scale(1.08); } }
@keyframes pulsation { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

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

/* --- 13b. Défileur horizontal (grandes cartes) --------------------------- */

.section--relative { position: relative; overflow: hidden; }

.mot-geant {
	position: absolute;
	right: 1%;
	top: 8px;
	font-family: var(--police-script);
	font-size: clamp(100px, 15vw, 210px);
	color: var(--encre);
	opacity: 0.05;
	pointer-events: none;
	user-select: none;
	white-space: nowrap;
	line-height: 1;
	transform: rotate(-4deg);
}
.section--sombre .mot-geant { color: var(--creme); opacity: 0.06; }

.defileur-tete {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.defileur-fleches { display: flex; gap: 12px; flex-shrink: 0; margin-bottom: 18px; }

.fleche-defileur {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid var(--encre);
	background: var(--creme);
	color: var(--encre);
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: 3px 3px 0 var(--encre);
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.fleche-defileur:hover { background: var(--vert); color: var(--creme); }
.fleche-defileur:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--encre); }
.section--sombre .fleche-defileur {
	background: transparent;
	color: var(--creme);
	border-color: var(--creme);
	box-shadow: 3px 3px 0 rgba(250, 246, 236, 0.3);
}
.section--sombre .fleche-defileur:hover { background: var(--vert-clair); color: var(--encre); }

.defileur {
	display: flex;
	gap: 26px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 16px 4px 28px;
	cursor: grab;
	scrollbar-width: thin;
	scrollbar-color: var(--vert) rgba(51, 50, 46, 0.1);
}
.defileur.attrape { cursor: grabbing; scroll-snap-type: none; }
.defileur::-webkit-scrollbar { height: 8px; }
.defileur::-webkit-scrollbar-track { background: rgba(51, 50, 46, 0.1); border-radius: 999px; }
.defileur::-webkit-scrollbar-thumb { background: var(--vert); border-radius: 999px; }
.defileur > * { scroll-snap-align: start; flex-shrink: 0; }
.section--sombre .defileur { scrollbar-color: var(--vert-clair) rgba(250, 246, 236, 0.12); }
.section--sombre .defileur::-webkit-scrollbar-track { background: rgba(250, 246, 236, 0.12); }
.section--sombre .defileur::-webkit-scrollbar-thumb { background: var(--vert-clair); }

/* Grande carte de prestation (défileur) — photo bandeau compacte */
.carte-grande {
	width: min(370px, 82vw);
	background: var(--creme);
	color: var(--encre);
	border: var(--bordure);
	border-radius: 26px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform var(--transition), box-shadow var(--transition);
}
.carte-grande:hover { transform: rotate(0deg) translateY(-6px); }
.carte-grande--vert:hover { box-shadow: 0 12px 0 var(--vert); }
.carte-grande--ocre:hover { box-shadow: 0 12px 0 var(--ocre); }
.carte-grande--terra:hover { box-shadow: 0 12px 0 var(--terracotta); }
.carte-grande--plein { background: var(--vert); color: var(--creme); }
.carte-grande--plein:hover { box-shadow: 0 12px 0 var(--creme); }
.carte-grande--plein .liste-soins li::before { color: var(--creme); }

.carte-grande__photo { position: relative; height: 150px; border-bottom: var(--bordure); }
.carte-grande__photo img { width: 100%; height: 100%; object-fit: cover; }
.carte-grande__numero {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--creme);
	border: var(--bordure);
	border-radius: 999px;
	padding: 5px 15px;
	font-family: var(--police-script);
	font-size: 19px;
	color: var(--encre);
}
.carte-grande__corps { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.carte-grande h3 { font-size: 22px; }
.carte-grande__desc { margin: 0; font-size: 15px; color: var(--gris); }
.carte-grande--plein .carte-grande__desc { color: rgba(250, 246, 236, 0.85); }
.carte-grande .liste-soins { font-size: 14.5px; }
.carte-grande__lien { margin-top: auto; padding-top: 10px; font-weight: 700; }

/* Grande carte équipe (défileur) */
.carte-equipe--grande {
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	width: min(290px, 78vw);
	padding: 28px;
	position: relative;
	overflow: hidden;
}
.carte-equipe--grande .carte-equipe__avatar { width: 84px; height: 84px; font-size: 30px; }
.carte-equipe--grande .carte-equipe__nom { font-size: 20px; }
.carte-equipe--grande .carte-equipe__role { font-size: 14px; }
.carte-equipe__deco {
	position: absolute;
	right: -12px;
	bottom: -8px;
	width: 64px;
	opacity: 0.12;
	transform: rotate(6deg);
	pointer-events: none;
}
.carte-equipe--grande .carte-equipe__deco { width: 84px; }

/* --- 13c. Marquee de polaroids ------------------------------------------ */

.marquee-photos { overflow: hidden; padding-block: 30px; }
.marquee-photos__piste { display: flex; width: max-content; animation: defilement 60s linear infinite; }
.marquee-photos:hover .marquee-photos__piste { animation-play-state: paused; }
.marquee-photos__groupe { display: flex; gap: 36px; padding-right: 36px; align-items: center; }

.polaroid {
	margin: 0;
	background: var(--blanc);
	border: var(--bordure);
	border-radius: 8px;
	padding: 10px 10px 12px;
	width: 230px;
	flex-shrink: 0;
	box-shadow: 5px 6px 0 rgba(51, 50, 46, 0.18);
	transition: transform var(--transition);
}
.marquee-photos__groupe .polaroid:nth-child(odd) { transform: rotate(-2.2deg); }
.marquee-photos__groupe .polaroid:nth-child(even) { transform: rotate(2deg); }
.marquee-photos__groupe .polaroid:hover { transform: rotate(0deg) scale(1.05); }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.polaroid figcaption {
	font-family: var(--police-script);
	text-align: center;
	font-size: 20px;
	margin-top: 9px;
	color: var(--encre);
}

/* --- 13d. Navigation par ancres (pills) --------------------------------- */

.nav-ancres {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	padding: 8px 2px 16px;
	scrollbar-width: none;
}
.nav-ancres::-webkit-scrollbar { display: none; }
.nav-ancres a {
	border: var(--bordure);
	border-radius: 999px;
	padding: 10px 20px;
	font-weight: 700;
	font-size: 15px;
	color: var(--encre);
	white-space: nowrap;
	background: var(--blanc);
	transition: transform var(--transition), box-shadow var(--transition);
}
.nav-ancres a:hover { transform: translateY(-2px); color: var(--encre); }
.nav-ancres a[data-pole="vert"]:hover { box-shadow: 3px 4px 0 var(--vert); }
.nav-ancres a[data-pole="ocre"]:hover { box-shadow: 3px 4px 0 var(--ocre); }
.nav-ancres a[data-pole="terra"]:hover { box-shadow: 3px 4px 0 var(--terracotta); }
.nav-ancres a[data-pole="encre"]:hover { box-shadow: 3px 4px 0 var(--encre); }

/* --- 13e. Composants À propos ------------------------------------------- */

.bande-sauge {
	background: var(--sauge);
	border-block: 2px solid var(--encre);
}

.a-deco { position: relative; overflow: hidden; }
.deco-coin {
	position: absolute;
	right: -14px;
	bottom: -10px;
	width: 110px;
	opacity: 0.12;
	transform: rotate(6deg);
	pointer-events: none;
}

.photo-cadre {
	border-radius: var(--rayon-grand);
	border: var(--bordure);
	object-fit: cover;
	aspect-ratio: 4 / 3;
	width: 100%;
}
.photo-cadre--vert { box-shadow: 8px 8px 0 var(--vert); }
.photo-cadre--ocre { box-shadow: 8px 8px 0 var(--ocre); }
.photo-cadre--terra { box-shadow: 8px 8px 0 var(--terracotta); }

.citation {
	text-align: center;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 600;
	line-height: 1.5;
	max-width: 720px;
	margin-inline: auto;
}
.citation .script {
	font-family: var(--police-script);
	font-weight: 400;
	color: var(--vert);
	font-size: 1.15em;
}

/* --- 13f. Garde-fous de contraste des boutons ---------------------------
   Les liens de section (.bande-verte a, .section--sombre a) ne doivent
   jamais recolorer le texte des boutons. */

a.bouton--creme,
.bande-verte a.bouton--creme,
.section--sombre a.bouton--creme,
.carte-pole--plein a.bouton--creme,
.carte-grande--plein a.bouton--creme { color: var(--encre); }
a.bouton--creme:hover,
.bande-verte a.bouton--creme:hover,
.section--sombre a.bouton--creme:hover { color: var(--encre); }

a.bouton--plein,
.bande-verte a.bouton--plein,
.section--sombre a.bouton--plein { color: var(--creme); }
a.bouton--plein:hover,
.bande-verte a.bouton--plein:hover,
.section--sombre a.bouton--plein:hover { color: var(--creme); }

/* --- 14. Responsive ----------------------------------------------------- */

@media (max-width: 1080px) {
	.site-header__nav { display: none; }
	.bouton-urgences__texte { font-size: 14px; }
	.burger { display: flex; margin-left: auto; }
	.bouton-urgences { margin-left: auto; }
	.site-header__barre { gap: 14px; }
}

@media (max-width: 900px) {
	.hero__grille { grid-template-columns: 1fr; gap: 44px; }
	.hero__visuel { max-width: 560px; }
	.grille-2 { grid-template-columns: 1fr; gap: 40px; }
	.grille-3 { grid-template-columns: repeat(2, 1fr); }
	.grille-4 { grid-template-columns: 1fr; }
	.pole-detail { grid-template-columns: 1fr; gap: 30px; }
	.pole-detail--ocre .pole-detail__visuel, .pole-detail--inverse .pole-detail__visuel { order: -1; }
	.bande-verte { padding: 40px 30px; }
	.site-footer__grille { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.conteneur { padding-inline: 20px; }
	.grille-3 { grid-template-columns: 1fr; }
	.section { padding-block: 60px; }
	.bouton-urgences__texte { display: none; }
	.bouton-urgences { padding: 12px 14px; }
	.bouton-urgences::after { content: 'Urgences'; font-size: 14px; }
	.badge-rond { width: 112px; height: 112px; top: -22px; right: -6px; }
	.badge-rond strong { font-size: 32px; }
	.hero { padding-top: 48px; }
	.hero__illustration { width: 90px; left: -12px; }
	.ticker__groupe { font-size: 16px; gap: 26px; padding-right: 26px; }
}
