/*
Theme Name: Cabinet Pastel
Description: Thème sur mesure pour un cabinet de sociothérapie : couleurs pastel, touches de fuchsia, titres en Young Serif.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cabinet-pastel
*/

/* Liens soulignés avec un peu d'air */
a {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

/* Bouton « pilule » : services, catégories */
.wp-block-button.is-style-pilule .wp-block-button__link {
	border: 0;
	border-radius: 999px;
	padding: 0.9em 2.2em;
	font-family: var(--wp--preset--font-family--titres);
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: none;
}
.wp-block-button.is-style-pilule .wp-block-button__link:hover {
	filter: brightness(0.95);
}

/* Bouton rectangulaire avec une case flèche */
.wp-block-button.is-style-fleche .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	padding-right: 0;
}
.wp-block-button.is-style-fleche .wp-block-button__link::after {
	content: "→";
	margin-left: 1.5em;
	padding: 0 1em;
	align-self: stretch;
	display: flex;
	align-items: center;
	border-left: 2px solid currentColor;
}

/* Barre épaisse sous les grands titres */
.wp-block-separator.is-style-barre {
	width: 120px;
	max-width: 120px;
	height: 10px;
	border: 0;
	opacity: 1;
	margin-left: auto;
	margin-right: auto;
}

/* Loupe de recherche ronde dans l'en-tête */
.recherche-ronde .wp-block-search__button {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--fuchsia-fonce);
	color: var(--wp--preset--color--blanc);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.recherche-ronde .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}
.recherche-ronde .wp-block-search__input {
	border: 1.5px solid var(--wp--preset--color--encre);
	border-radius: 999px;
	padding: 0.6em 1em;
	font: inherit;
}

/* Lien actif du menu */
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--fuchsia);
	text-decoration-thickness: 3px;
	text-underline-offset: 6px;
}

/* Cartes et blocs arrondis */
.carte {
	border-radius: 28px;
}

/* Vignettes d'articles carrées */
.wp-block-post-featured-image img {
	aspect-ratio: 1;
	object-fit: cover;
}

/* Questions fréquentes */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--encre);
	padding: 1rem 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--titres);
	font-size: var(--wp--preset--font-size--large);
	cursor: pointer;
}

/* Mot en couleur dans un titre : pas de surlignage jaune */
mark.has-inline-color {
	background-color: transparent;
}

/* Texte réservé aux lecteurs d'écran (accessibilité) */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	background-color: var(--wp--preset--color--blanc);
	clip-path: none;
	color: var(--wp--preset--color--encre);
	display: block;
	height: auto;
	left: 5px;
	padding: 15px 23px 14px;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* En-tête de la même couleur que le haut de chaque page */
.entete-couleur {
	background-color: var(--couleur-page, var(--wp--preset--color--mauve));
}
body.couleur-mauve { --couleur-page: var(--wp--preset--color--mauve); }
body.couleur-rose-poudre { --couleur-page: var(--wp--preset--color--rose-poudre); }
body.couleur-bleu-pastel { --couleur-page: var(--wp--preset--color--bleu-pastel); }
