/* =========================================================================
   Five Yoga Club · styles du thème (en complément de theme.json)
   Charte H3 : tuiles arrondies, Asul + Quicksand, palette douce.
   ========================================================================= */

:root {
	--five-rayon-tuile: 40px;
	--five-rayon-carte: 32px;
	--five-ombre-survol: 0 18px 36px rgba(61, 44, 38, .10);
	--five-section: clamp(56px, 6.6vw, 96px);
}
@media (max-width: 760px) {
	:root { --five-rayon-tuile: 30px; --five-rayon-carte: 26px; }
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Défilement doux vers les ancres (la molette est adoucie par navigation.js) */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Accueil : sections un peu plus aérées */
body.home { --five-section: clamp(80px, 9vw, 136px); }
@media (max-width: 781px) { body.home { --five-section: 68px; } }
img { height: auto; }
::selection { background: var(--wp--preset--color--peche); color: var(--wp--preset--color--encre); }

/* Lien d'évitement (accessibilité) */
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--encre); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 100000; }

/* ---------- En-tête ---------- */
.five-entete-zone { background: var(--wp--preset--color--creme); position: relative; z-index: 50; }
.five-bandeau { padding-top: 10px; padding-bottom: 10px; }
.five-bandeau p { margin: 0; font-weight: 700; line-height: 1.35; }
.five-bandeau a { color: inherit; text-decoration: none; }
.five-bandeau a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Bandeau pêche (proposition A validée le 2026-11-25) : pastille blanche « J'en profite → » sur ordinateur, simple flèche sur téléphone. */
.five-bandeau-pastille { display: inline-block; margin-left: 8px; padding: 2px 12px; border-radius: 99px; background: #fff; color: var(--wp--preset--color--accent); font-size: 14px; line-height: 1.5; transition: background-color .2s ease, color .2s ease; }
.five-bandeau a:hover .five-bandeau-pastille { background: var(--wp--preset--color--accent); color: #fff; }
.five-bandeau a:hover { text-decoration: none; }
@media (max-width: 781px) {
	.five-bandeau-pastille { margin-left: 2px; padding: 0; background: none; color: inherit; font-size: inherit; line-height: inherit; }
	.five-bandeau-appel { display: none; }
	.five-bandeau a:hover .five-bandeau-pastille { background: none; color: inherit; }
}

.five-entete {
	max-width: 1240px;
	margin-inline: auto;
	min-height: 97px;
	padding: 10px clamp(20px, 2.3vw, 32px);
	gap: 24px;
}
.five-logo img { width: 72px; height: auto; }
.five-cta .wp-block-button__link { white-space: nowrap; }

/* Menu de l'ordinateur (premier niveau) */
.five-nav { font-weight: 600; font-size: 16px; gap: 6px; }
.five-nav .wp-block-navigation-item__content { padding: 10px 12px; transition: color .2s ease; }
/* La pastille du survol est posée sur l'élément entier : le texte et le chevron du sous-menu sont dedans. */
.five-nav .wp-block-navigation__container > .wp-block-navigation-item { border-radius: 999px; transition: background-color .2s ease; }
.five-nav .wp-block-navigation__container > .wp-block-navigation-item:hover,
.five-nav .wp-block-navigation__container > .has-child:focus-within { background: var(--wp--preset--color--jaune-pale); }
.five-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.five-nav .wp-block-navigation__container > .has-child:focus-within > .wp-block-navigation-item__content,
.five-nav .wp-block-navigation__container > .has-child:hover > .wp-block-navigation__submenu-icon,
.five-nav .wp-block-navigation__container > .has-child:focus-within > .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--accent); }
.five-nav .wp-block-navigation-item__content[aria-current="page"] { color: var(--wp--preset--color--bouton); }
.five-nav .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content { padding-right: 4px; }
.five-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon { margin: 0 12px 0 0; transition: color .2s ease; }

/* Sous-menus simples (Soins, Tarifs) */
html body .five-nav .has-child > .wp-block-navigation__submenu-container {
	background: #fff;
	border: 0 !important;
	border-radius: 22px;
	padding: 12px !important;
	box-shadow: 0 18px 40px rgba(61, 44, 38, .16);
	transition: opacity .18s ease;
}
html body .five-nav .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 11px 12px;
	border-radius: 12px;
	white-space: normal;
}
html body .five-nav .has-child > .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--accent); }
html body .five-nav .has-child > .wp-block-navigation__submenu-container { min-width: 330px !important; }
.five-nav li.five-tout > .wp-block-navigation-item__content { margin-top: 6px; background: var(--wp--preset--color--jaune-pale); color: var(--wp--preset--color--bouton); font-weight: 800; }
html body .five-nav li.five-onglet-tarifs > .wp-block-navigation__submenu-container { min-width: 360px !important; gap: 4px; }
html body .five-nav li.five-onglet-tarifs li .wp-block-navigation-item__content { display: block !important; padding: 12px 14px; border-radius: 14px; }
.five-nav li.five-onglet-tarifs li:first-child .wp-block-navigation-item__content { background: var(--wp--preset--color--creme); }
.five-nav li.five-onglet-tarifs li .wp-block-navigation-item__label { display: block; font-weight: 800; color: var(--wp--preset--color--encre); }
.five-nav .five-onglet-tarifs .wp-block-navigation-item__description,
.five-nav .five-mega .wp-block-navigation-item__description { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--wp--preset--color--texte); }

/* Méga-menu Yoga & Pilates : pleine largeur sous l'en-tête */
@media (min-width: 1024px) {
	.five-entete .five-nav,
	.five-entete .five-nav .wp-block-navigation__responsive-container,
	.five-entete .five-nav .wp-block-navigation__responsive-container-content,
	.five-entete .five-nav .wp-block-navigation__container,
	.five-entete .five-nav li.five-mega { position: static; }

	html body .five-nav li.five-mega > .wp-block-navigation__submenu-container {
		left: 0;
		right: 0;
		top: 100%;
		min-width: 0 !important;
		box-sizing: border-box;
		background: var(--wp--preset--color--creme);
		border-top: 1px solid var(--wp--preset--color--filet) !important;
		border-radius: 0;
		box-shadow: 0 24px 40px rgba(61, 44, 38, .14);
		padding: 36px max(32px, calc((100% - 1240px) / 2 + 32px)) 32px !important;
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.55fr);
		column-gap: 32px;
		align-items: start;
	}
	/* Pont invisible entre « Yoga & Pilates » et le panneau, pour que la souris ne le referme pas en chemin */
	html body .five-nav li.five-mega > .wp-block-navigation__submenu-container::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 30px; }
	/* Voile sur la page sous le panneau */
	html body .five-nav li.five-mega > .wp-block-navigation__submenu-container::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(61, 44, 38, .28); pointer-events: none; }

	html body .five-nav li.five-mega > .wp-block-navigation__submenu-container > li { display: block; padding: 0; margin-top: 0 !important; }
	.five-nav li.five-famille > .wp-block-navigation-item__content {
		pointer-events: none;
		padding: 0 0 12px;
		font-size: 13px;
		font-weight: 800;
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--wp--preset--color--accent);
	}
	.five-nav li.five-famille > .wp-block-navigation-submenu__toggle { display: none; }
	html body .five-nav li.five-famille > .wp-block-navigation__submenu-container {
		position: static;
		visibility: visible;
		opacity: 1;
		width: auto;
		height: auto;
		min-width: 0 !important;
		overflow: visible;
		display: block;
		padding: 0 !important;
		background: transparent;
		box-shadow: none;
		border: 0 !important;
	}
	html body .five-nav li.five-famille li .wp-block-navigation-item__content { display: block !important; padding: 8px 0; border-radius: 0; background: transparent; }
	.five-nav li.five-famille li .wp-block-navigation-item__label { display: block; font-family: var(--wp--preset--font-family--asul); font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--wp--preset--color--encre); transition: color .2s ease; }
	.five-nav li.five-famille li .wp-block-navigation-item__content:hover .wp-block-navigation-item__label { color: var(--wp--preset--color--bouton); }
	html body .five-nav li.five-mega li.five-planning { display: none !important; }
	html body .five-nav li.five-mega li.five-tout { grid-column: 3; grid-row: 2; }
	html body .five-nav li.five-mega li.five-tout > .wp-block-navigation-item__content { display: inline-block; margin-top: 0; padding: 6px 0; background: transparent; }
	html body .five-nav li.five-mega li.five-mega-carte { grid-column: 4; grid-row: 1; align-self: stretch; }
}

/* Carte « Nouveau au club ? » du méga-menu (partie de modèle) */
.five-mega-carte .wp-block-template-part { height: 100%; }
.five-mega-carte-contenu { gap: 18px; padding: 16px; border-radius: 28px; height: 100%; box-sizing: border-box; font-weight: 500; }
.five-mega-carte-photo { flex: none; display: flex; margin: 0; }
.five-mega-carte-photo img { display: block; width: 124px; height: 100%; min-height: 170px; object-fit: cover; border-radius: 62px 62px 14px 14px; }
.five-mega-carte-texte { gap: 8px; flex: 1 1 0; min-width: 0; }
.five-mega-carte-texte p { margin: 0; }
.five-mega-carte-titre { font-family: var(--wp--preset--font-family--asul); font-size: 21px; line-height: 1.2; text-wrap: balance; }
@media (max-width: 1279px) {
	.five-mega-carte-contenu { gap: 14px; padding: 14px; }
	.five-mega-carte-photo img { width: 96px; min-height: 132px; border-radius: 48px 48px 12px 12px; }
	.five-mega-carte-titre { font-size: 19px; }
}
.five-mega-carte-titre a { color: var(--wp--preset--color--encre); text-decoration: none; }
.five-mega-carte-titre a:hover { text-decoration: underline; text-underline-offset: 4px; }
.five-mega-carte-bouton .wp-block-button__link { margin-top: 6px; padding: 11px 18px; font-size: 15px; }

/* ---------- En-tête collant (ordinateur) ----------
   Le bandeau lilas défile ; le logo, le menu et le bouton « Réserver » restent en haut de l'écran.
   --five-bandeau-h et --five-entete-h sont mesurées par navigation.js (valeurs de secours sans JavaScript).
   Sur téléphone et tablette, la navigation est la barre d'onglets, déjà fixée en bas de l'écran. */
@media (min-width: 1024px) {
	:root { --five-haut-colle: calc(var(--wp-admin--admin-bar--height, 0px) + var(--five-entete-h, 106px)); }
	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--five-bandeau-h, 60px));
		z-index: 60;
	}
	.five-entete-zone { transition: box-shadow .25s ease; }
	.five-entete-colle .five-entete-zone { box-shadow: 0 10px 30px rgba(61, 44, 38, .09); }
	/* Une fois collé, l'en-tête rétrécit (logo et marges plus petits). La place qu'il occupe dans la page ne change pas
	   (hauteur figée par navigation.js) : rien ne saute pendant le défilement ; le bas devenu vide laisse passer les clics. */
	.wp-site-blocks > header.wp-block-template-part { height: var(--five-entete-plein, auto); pointer-events: none; }
	.five-entete-zone { pointer-events: auto; }
	.five-entete { transition: min-height .35s ease, padding .35s ease; }
	.five-logo img { transition: width .35s ease; }
	.five-entete-colle .five-entete { min-height: 70px; padding-top: 4px; padding-bottom: 4px; }
	.five-entete-colle .five-logo img { width: 52px; }
	/* Les ancres (#abonnements…) s'arrêtent sous le menu au lieu de passer dessous. */
	html { scroll-padding-top: calc(var(--five-haut-colle) + 16px); }
}

/* Petits ordinateurs et tablettes à l'horizontale : le menu tient sur une seule ligne. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.five-entete { gap: 16px; }
	.five-nav, .five-nav .wp-block-navigation__container { gap: 2px; }
	.five-nav .wp-block-navigation-item__content { padding-inline: 8px; }
	.five-nav .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content { padding-right: 3px; }
	.five-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon { margin-right: 8px; }
}

/* ---------- Téléphone et tablette : en-tête réduit au logo, navigation par la barre d'onglets ---------- */
.five-barre { display: none; }
@media (max-width: 1023px) {
	.five-entete .five-nav,
	.five-entete .five-cta { display: none !important; }
	.five-barre { display: block; }
	.five-pied { padding-bottom: calc(26px + 84px + env(safe-area-inset-bottom)) !important; }
	/* Le logo est seul dans l'en-tête (menu dans la barre du bas) : il est centré, et la page commence juste en dessous. */
	.five-entete { justify-content: center !important; min-height: 0; padding-top: 10px; padding-bottom: 4px; }
	.wp-site-blocks > header.wp-block-template-part + * { margin-block-start: 0 !important; }
}
@media (max-width: 781px) {
	.five-logo img { width: 68px; }
}

.five-onglets {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	height: calc(84px + env(safe-area-inset-bottom));
	box-sizing: border-box;
	padding: 8px 6px calc(14px + env(safe-area-inset-bottom));
	background: #fff;
	border-top: 1px solid var(--wp--preset--color--filet);
	box-shadow: 0 -8px 24px rgba(61, 44, 38, .08);
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: end;
}
.five-onglet {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 4px;
	min-height: 48px;
	border: 0;
	padding: 0;
	background: transparent;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--wp--preset--color--texte);
	text-decoration: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.five-onglet .five-picto { width: 24px; height: 24px; }
.five-onglet.est-actif,
.five-onglet[aria-expanded="true"] { color: var(--wp--preset--color--bouton); }
.five-onglet:focus-visible { outline: 2px solid var(--wp--preset--color--bouton); outline-offset: 2px; border-radius: 12px; }
.five-onglet-reserver,
.five-onglet-reserver[aria-expanded="true"] { color: var(--wp--preset--color--encre); }
.five-onglet-rond {
	margin-top: -30px;
	width: 62px;
	height: 62px;
	box-sizing: border-box;
	border-radius: 999px;
	border: 4px solid #fff;
	background: var(--wp--preset--color--bouton);
	box-shadow: 0 6px 16px rgba(184, 70, 27, .35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: background-color .2s ease;
}
.five-onglet-rond .five-picto { width: 26px; height: 26px; stroke-width: 2; }
.five-onglet-reserver[aria-expanded="true"] .five-onglet-rond { background: var(--wp--preset--color--encre); }

.five-barre-voile {
	position: fixed;
	inset: 0 0 calc(84px + env(safe-area-inset-bottom)) 0;
	z-index: 98;
	background: rgba(61, 44, 38, .5);
	opacity: 0;
	pointer-events: none;
	transition: opacity .3s ease;
}
.five-barre.a-un-volet .five-barre-voile { opacity: 1; pointer-events: auto; }
html.five-volet-ouvert { overflow: hidden; }

.five-volet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: calc(84px + env(safe-area-inset-bottom));
	z-index: 99;
	max-width: 640px;
	margin-inline: auto;
	max-height: calc(100vh - 84px - 48px);
	max-height: calc(100dvh - 84px - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	box-sizing: border-box;
	padding: 18px 20px 22px;
	background: var(--wp--preset--color--creme);
	border-radius: 28px 28px 0 0;
	box-shadow: 0 -10px 30px rgba(61, 44, 38, .12);
	color: var(--wp--preset--color--texte);
	font-size: 15px;
	transform: translateY(calc(100% + 100px));
	visibility: hidden;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
}
.five-volet.est-ouvert { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }
.five-volet a { text-decoration: none; }
.five-volet-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.five-volet-titre { margin: 0; font-family: var(--wp--preset--font-family--asul); font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--wp--preset--color--encre); }
.five-volet-fermer { flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--wp--preset--color--jaune-pale); color: var(--wp--preset--color--encre); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.five-volet-fermer .five-picto { width: 20px; height: 20px; }

/* Volet Cours */
.five-volet-planning { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px; background: var(--wp--preset--color--encre); color: var(--wp--preset--color--creme); font-weight: 700; font-size: 16px; }
.five-volet-planning .five-picto { width: 20px; height: 20px; }
.five-volet-famille { margin: 16px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.five-volet-pastilles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.five-volet-pastilles a { display: block; padding: 11px 14px; border-radius: 14px; background: var(--wp--preset--color--jaune-pale); font-weight: 700; color: var(--wp--preset--color--encre); }
.five-volet-tout { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--wp--preset--color--bouton); }
@media (min-width: 600px) { .five-volet-pastilles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Volets Réserver et Tarifs */
.five-volet-cartes { display: flex; flex-direction: column; gap: 10px; }
.five-volet-carte { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: var(--wp--preset--color--jaune-pale); color: var(--wp--preset--color--encre); }
.five-volet-carte.est-mise-en-avant { background: #F8DCC8; }
.five-volet-carte.est-forte { background: var(--wp--preset--color--bouton); color: #fff; }
.five-volet-carte-picto { flex: none; width: 44px; height: 44px; border-radius: 14px; background: var(--wp--preset--color--creme); display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--bouton); }
.five-volet-carte-picto .five-picto { width: 22px; height: 22px; }
.est-forte .five-volet-carte-picto { background: rgba(251, 247, 239, .18); color: #fff; }
.five-volet-carte-texte { flex: 1; min-width: 0; }
.five-volet-carte-titre { display: block; font-weight: 800; font-size: 17px; line-height: 1.3; }
.five-volet-carte-desc { display: block; font-size: 14px; line-height: 1.4; color: var(--wp--preset--color--texte); }
.est-forte .five-volet-carte-desc { color: #FBE3D3; }
.five-volet-carte-fleche { font-size: 22px; line-height: 1; color: var(--wp--preset--color--bouton); }
.est-forte .five-volet-carte-fleche { color: #fff; }
.five-volet-note { margin: 14px 0 0; font-size: 13px; color: #6E6560; }
.five-volet-note a { color: var(--wp--preset--color--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Volet Menu */
.five-volet-liste { list-style: none; margin: 0; padding: 0; }
.five-volet-liste a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; border-bottom: 1px solid var(--wp--preset--color--filet); font-family: var(--wp--preset--font-family--asul); font-size: 22px; color: var(--wp--preset--color--encre); }
.five-volet-liste li:last-child a { border-bottom: 0; }
.five-volet-liste a span { font-family: var(--wp--preset--font-family--quicksand); color: var(--wp--preset--color--bouton); }
.five-barre-infos { margin-top: 12px; padding: 16px; border-radius: 22px; }
.five-barre-infos p { margin: 0 0 6px; }
.five-barre-infos p:last-child { margin-bottom: 0; }
.five-barre-infos-nom { font-weight: 800; color: var(--wp--preset--color--encre); }
.five-barre-infos-liens { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; }
.five-barre-infos-liens a { color: var(--wp--preset--color--accent); }

/* ---------- Pied de page ---------- */
.five-lettre-zone { padding-top: var(--five-section); }
.five-lettre { gap: 28px clamp(28px, 5vw, 72px); }
.five-lettre-texte { flex: 1 1 420px; min-width: 0; }
.five-lettre-formulaire { flex: 1 1 340px; min-width: 0; }
.five-lettre-titre { font-size: clamp(26px, 2.6vw, 37px); margin: 0; }

.five-pied {
	margin-top: var(--five-section);
	border-radius: 48px 48px 0 0;
	color: #FFF3EC;
	padding-top: clamp(44px, 5vw, 68px);
	padding-bottom: 26px;
}
.five-pied a { color: #FFF3EC; text-decoration: none; }
.five-pied a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.five-pied p { margin: 0; }
.five-pied-titre { font-weight: 700; color: #fff; margin-bottom: 8px !important; }
.five-pied-liens { line-height: 2; }
/* Icônes des réseaux sociaux (bloc natif, d'autres réseaux s'ajoutent dans l'éditeur) : rond clair, icône blanche */
.five-pied .wp-block-social-links.five-pied-reseaux { gap: 10px; margin: 4px 0 10px; padding: 0; }
.five-pied .five-pied-reseaux .wp-social-link { margin: 0; }
.five-pied .five-pied-reseaux .wp-social-link a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0 !important; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.five-pied .five-pied-reseaux .wp-social-link,
.five-pied .five-pied-reseaux .wp-social-link a { color: #fff !important; }
.five-pied .five-pied-reseaux .wp-social-link a:hover { background: #fff; color: var(--wp--preset--color--corail) !important; transform: translateY(-2px); }
.five-pied .five-pied-reseaux .wp-social-link a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.five-pied .five-pied-reseaux .wp-social-link svg { width: 22px; height: 22px; fill: currentColor; }
.five-pied-mentions { margin-top: 32px !important; padding-top: 18px; border-top: 1px solid rgba(255, 243, 236, .3); }
@media (max-width: 781px) {
	.five-pied { border-radius: 36px 36px 0 0; }
	.five-pied-colonnes { gap: 24px; }
}

/* ---------- Tuiles (variantes de groupes et de colonnes) ---------- */
[class*="is-style-tuile-"] {
	border-radius: var(--five-rayon-tuile);
	padding: clamp(26px, 3vw, 44px);
	overflow: hidden;
	position: relative;
}
.is-style-tuile-jaune-pale { background: radial-gradient(90% 70% at 100% 100%, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 60%), var(--wp--preset--color--jaune-pale); color: var(--wp--preset--color--encre); }
.is-style-tuile-jaune { background: radial-gradient(70% 90% at 100% 0%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%), var(--wp--preset--color--jaune); color: var(--wp--preset--color--encre); }
.is-style-tuile-peche { background: radial-gradient(90% 80% at 0% 0%, rgba(255,255,255,.45) 0%, rgba(255,255,255,0) 60%), var(--wp--preset--color--peche); color: var(--wp--preset--color--encre); }
.is-style-tuile-corail { background: radial-gradient(80% 80% at 100% 100%, #F1A98C 0%, rgba(241,169,140,0) 65%), var(--wp--preset--color--corail); color: #fff; }
.is-style-tuile-corail :where(h1, h2, h3, h4, a) { color: #fff; }
.is-style-tuile-lilas { background: radial-gradient(60% 90% at 100% 100%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%), var(--wp--preset--color--lilas); color: var(--wp--preset--color--lilas-texte); }
.is-style-tuile-blanche { background: #fff; border: 1px solid var(--wp--preset--color--filet); color: var(--wp--preset--color--texte); }

/* ---------- Images, boutons, surtitres ---------- */
.is-style-arrondie img,
.wp-block-image.is-style-arrondie img,
.wp-block-post-featured-image.is-style-arrondie img,
.wp-block-cover.is-style-arrondie { border-radius: var(--five-rayon-tuile); }
.wp-block-cover.is-style-arrondie { overflow: hidden; }

.wp-block-button.is-style-secondaire .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent);
	box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--orange);
}
.wp-block-button.is-style-secondaire .wp-block-button__link:hover { background: var(--wp--preset--color--orange); color: #fff; }

.is-style-surtitre {
	font-weight: 600;
	font-size: 15px;
	color: var(--wp--preset--color--orange);
	letter-spacing: .01em;
	margin-bottom: .25rem !important;
}

/* ---------- Gabarits ---------- */
.five-principal { padding-top: 8px; }
.five-article-tete { text-align: center; padding-top: clamp(24px, 4vw, 56px); }
.five-article-date, .five-article-categorie { font-weight: 600; font-size: 15px; color: var(--wp--preset--color--accent); }
.five-article-suite { margin-top: var(--wp--preset--spacing--60); padding-top: 24px; border-top: 1px solid var(--wp--preset--color--filet); }
.five-cartes .five-carte { height: 100%; padding: 18px 18px 24px; transition: transform .22s ease, box-shadow .22s ease; }
.five-cartes .five-carte:hover { transform: translateY(-3px); box-shadow: var(--five-ombre-survol); }
.five-carte-titre { font-size: 22px; }
.five-carte-titre a { color: var(--wp--preset--color--encre); text-decoration: none; }
.five-carte-categorie { font-size: 14px; font-weight: 700; }
.five-404 { padding-top: var(--five-section); }

/* Repère « à brancher » visible seulement sur la copie de travail */
.five-a-venir { border: 1.5px dashed rgba(78, 58, 85, .35); border-radius: 20px; padding: 14px 18px; }

/* ---------- Transition : contenus encore en blocs Kadence ----------
   Les pages pas encore converties utilisent les couleurs globales de Kadence (palette « second-palette » du site actuel).
   À retirer une fois tous les contenus convertis en blocs natifs.
   « html:root » passe devant la palette par défaut que Kadence Blocks injecte quand le thème Kadence n'est plus actif. */
html:root {
	--global-palette1: #e74b19;
	--global-palette2: #db6847;
	--global-palette3: #F0BA9A;
	--global-palette4: #f3e7b1;
	--global-palette5: #B492BE;
	--global-palette6: #df623a;
	--global-palette7: #EDF2F7;
	--global-palette8: #fdfbf3;
	--global-palette9: #FFFFFF;
	--global-palette-highlight: var(--global-palette1);
	--global-palette-highlight-alt: var(--global-palette2);
	--global-palette-btn-bg: var(--global-palette1);
	--global-palette-btn: var(--global-palette9);
	--global-content-width: 1240px;
	--global-content-edge-padding: 1.5rem;
}
/* Sans le thème Kadence, Kadence Blocks cale l'intérieur de ses rangées sur la largeur « texte » du thème (760 px) :
   les pages encore en Kadence (soins, pratiques…) étaient toutes serrées. On leur rend la largeur du site actuel (1240 px). */
.wp-block-kadence-rowlayout { --wp--style--global--content-size: var(--global-content-width); }

/* ---------- Mouvements réduits ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
