/*
Theme Name: Cyprès
Theme URI: https://maizieres-avocat.com
Author: Maître Benjamin Maizieres
Description: Thème sur mesure du cabinet de Maître Benjamin Maizieres, avocat au Barreau d'Aix-en-Provence. Identité « Cyprès » : vert cyprès, terre de Roussillon, Inter et Inter Tight.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 0.1.13
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cypres
*/

/* Petits compléments que theme.json ne sait pas exprimer. */

.cy-surtitre {
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terre);
}

.has-encre-background-color .cy-surtitre,
.cy-sombre .cy-surtitre {
	color: var(--wp--preset--color--peche);
}

/* Boutons secondaires (contour) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--encre);
	border: 1px solid #C9D1CE;
	font-weight: 500;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--wp--preset--color--encre);
	background: transparent;
}
.has-encre-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--blanc);
	border-color: #4A5A55;
}

/* Boutons blancs sur fond sombre */
.has-encre-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	background: var(--wp--preset--color--blanc);
	color: var(--wp--preset--color--encre);
}
.has-encre-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--wp--preset--color--sauge);
}

/* Liens dans les zones sombres */
.has-encre-background-color a:where(:not(.wp-block-button__link)) {
	color: var(--wp--preset--color--brume-claire);
}
.has-encre-background-color a:where(:not(.wp-block-button__link)):hover {
	color: var(--wp--preset--color--blanc);
}
.has-encre-background-color :where(h1, h2, h3, h4) {
	color: var(--wp--preset--color--blanc);
}

/* Cartes */
.cy-carte {
	background: var(--wp--preset--color--blanc);
	border: 1px solid var(--wp--preset--color--ligne);
	border-radius: 12px;
}
.cy-carte:hover {
	border-color: var(--wp--preset--color--cypres);
	box-shadow: 0 12px 32px rgba(15, 30, 26, .08);
}
.cy-carte a { text-decoration: none; }

/* Listes à puces carrées vertes */
.cy-liste {
	list-style: none;
	padding-left: 0;
	border-top: 1px solid var(--wp--preset--color--ligne);
}
.cy-liste li {
	position: relative;
	padding: 12px 0 12px 22px;
	border-bottom: 1px solid var(--wp--preset--color--ligne);
	color: var(--wp--preset--color--texte);
}
.cy-liste li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 21px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--wp--preset--color--cypres);
}

/* Questions fréquentes (bloc Détails) */
.wp-block-details {
	border-bottom: 1px solid var(--wp--preset--color--ligne);
	padding: 0;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.35;
	padding: 22px 40px 22px 0;
	cursor: pointer;
	list-style: none;
	position: relative;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: 1px solid #C9D1CE;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--cypres);
	font-weight: 500;
}
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--texte); padding-bottom: 12px; }

/* En-tête */
.cy-entete {
	border-bottom: 1px solid var(--wp--preset--color--ligne);
}
.cy-entete .wp-block-navigation a:hover { color: var(--wp--preset--color--cypres); }

/* Pied de page */
.cy-pied-liens { list-style: none; margin: 0; }
.cy-pied-liens li { padding: 4px 0; }
.cy-pied a { text-decoration: none; }
.cy-pied a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Contenu des pages : pas de marge parasite entre sections pleine largeur */
.wp-site-blocks > main.wp-block-group { margin-block-start: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* ---------- Accueil ---------- */
.cy-points {
	list-style: none;
	padding: 20px 0 0;
	margin: 8px 0 0;
	border-top: 1px solid var(--wp--preset--color--ligne);
	display: flex;
	flex-wrap: wrap;
	gap: 12px 32px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--texte);
}
.cy-points li { display: flex; align-items: center; gap: 10px; }
.cy-points li::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--wp--preset--color--cypres);
	flex: none;
}
.cy-portrait img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 18%;
	border-radius: 12px;
	background: var(--wp--preset--color--ligne);
}
.cy-carte h3 a, .cy-carte h2 a, .cy-carte .wp-block-post-title a { color: var(--wp--preset--color--encre); text-decoration: none; }
.cy-carte h3 a::after { content: ""; position: absolute; inset: 0; } /* toute la carte est cliquable */
.cy-carte { position: relative; }
.cy-carte > .wp-block-paragraph:not(.cy-plus) { flex-grow: 1; }
.cy-plus, .cy-plus a, .wp-block-read-more.cy-plus {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--cypres);
	text-decoration: none;
	margin-top: auto;
}

/* Étapes numérotées (fond sombre) */
.cy-etape {
	padding-top: 32px;
	border-top: 1px solid var(--wp--preset--color--ligne-sombre);
}
.cy-etape h3 { color: var(--wp--preset--color--blanc); }
.cy-num {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--wp--preset--color--peche);
	font-variant-numeric: tabular-nums;
}

/* Fiche libellé / valeur */
.cy-fiche {
	list-style: none;
	padding: 24px 0 0;
	margin: 12px 0 0;
	border-top: 1px solid var(--wp--preset--color--ligne);
	display: grid;
	gap: 14px;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.cy-fiche li { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); gap: 24px; }
.cy-fiche strong { font-weight: 400; color: var(--wp--preset--color--gris); }
.cy-fiche-sombre { border-top-color: var(--wp--preset--color--ligne-sombre); font-size: 1rem; gap: 18px; padding-top: 28px; }
.cy-fiche-sombre strong { color: var(--wp--preset--color--brume); }
.cy-fiche-sombre li { color: var(--wp--preset--color--brume-claire); }
@media (max-width: 560px) {
	.cy-fiche li { grid-template-columns: 1fr; gap: 2px; }
}

/* Citation */
.cy-citation {
	border-left: 0;
	border-top: 2px solid var(--wp--preset--color--encre);
	padding: 40px 0 0;
	margin: 0;
}
.cy-citation p {
	font-family: var(--wp--preset--font-family--inter-tight);
	font-size: clamp(1.625rem, 3vw, 2.5rem);
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--encre);
}

/* Boutons pleine largeur sur mobile */
@media (max-width: 560px) {
	.cy-hero .wp-block-button, .cy-sombre .wp-block-button { width: 100%; }
	.cy-hero .wp-block-button__link, .cy-sombre .wp-block-button__link { width: 100%; }
}

/* ---------- En-tête (maquette Claude Design « Cyprès ») ---------- */
.cy-entete-barre { gap: 32px; }
.cy-entete-droite { gap: 28px; align-items: center; }
.cy-entete .cy-logo { margin: 0; }
.cy-entete .cy-menu { font-size: 0.9375rem; font-weight: 500; }
.cy-entete .cy-menu a { color: var(--wp--preset--color--texte); text-decoration: none; padding-top: 12px; padding-bottom: 12px; }
.cy-entete .cy-menu a:hover,
.cy-entete .cy-menu .current-menu-item > a { color: var(--wp--preset--color--encre); }
.cy-entete .cy-menu .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--ligne) !important; border-radius: 10px; padding: 8px !important;
	box-shadow: 0 12px 32px rgba(15, 30, 26, .08); min-width: 240px !important;
}
.cy-entete .cy-menu .wp-block-navigation__submenu-container a { padding: 10px 12px; border-radius: 6px; }
.cy-entete .cy-menu .wp-block-navigation__submenu-container a:hover { background: var(--wp--preset--color--gris-clair); }
.cy-entete .cy-menu .cy-nav-mobile { display: none; }
.cy-entete-actions { display: flex; align-items: center; gap: 12px; }
.cy-bouton-tel, .cy-bouton-rdv {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
	border-radius: 8px; font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.cy-bouton-tel {
	padding: 0 18px; border: 1px solid #C9D1CE; color: var(--wp--preset--color--encre);
	font-weight: 500; font-variant-numeric: tabular-nums;
}
.cy-bouton-tel:hover { border-color: var(--wp--preset--color--encre); }
.cy-bouton-rdv { padding: 0 20px; background: var(--wp--preset--color--cypres); color: var(--wp--preset--color--blanc); font-weight: 600; }
.cy-bouton-rdv:hover { background: var(--wp--preset--color--cypres-fonce); color: var(--wp--preset--color--blanc); }
.cy-bouton-tel:focus-visible, .cy-bouton-rdv:focus-visible, .cy-entete .cy-menu a:focus-visible { outline: 2px solid var(--wp--preset--color--terre); outline-offset: 3px; border-radius: 6px; }

/* Écran moyen : le téléphone devient une icône. */
@media (max-width: 1180px) {
	.cy-bouton-tel { width: 44px; padding: 0; }
	.cy-bouton-tel-numero { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Tablette et mobile : menu replié (bouton « Menu »), le téléphone et le rendez-vous restent visibles. */
@media (max-width: 1000px) {
	.cy-entete-droite { gap: 12px; }
	.cy-entete .cy-menu { order: 2; }
	.cy-entete .cy-menu .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.cy-entete .cy-menu .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.cy-entete .cy-menu .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; align-items: center; justify-content: center; }
	.cy-entete .cy-menu .is-menu-open .cy-nav-mobile { display: block; }
	.cy-entete .cy-menu .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 24px; }
	.cy-entete .cy-menu .is-menu-open .wp-block-navigation-item { font-size: 1.375rem; }
	.cy-entete .cy-menu .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 16px !important; }
}
@media (max-width: 600px) {
	.cy-bouton-rdv { display: none; }
	.cy-entete .cy-logo img { width: 140px !important; }
}
/* Menu mobile ouvert : panneau blanc plein écran, liens alignés à gauche. */
.cy-entete .cy-menu .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--blanc) !important; color: var(--wp--preset--color--encre);
	padding: 20px 24px 40px;
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	--navigation-layout-align: flex-start;
}
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__responsive-container-content,
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 4px !important; }
.cy-entete .cy-menu .is-menu-open .wp-block-navigation-item__content { color: var(--wp--preset--color--encre); padding: 10px 0; }
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.125rem; color: var(--wp--preset--color--texte); padding: 8px 0; }
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__responsive-container-close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; top: 16px; right: 16px; }
.cy-entete .cy-menu .is-menu-open .wp-block-navigation-item,
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.cy-entete .cy-menu .is-menu-open .wp-block-navigation__submenu-container { padding-left: 16px !important; }

/* ---------- Icônes des cartes (domaines et publications) ---------- */
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-des-affaires"])::before,
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-immobilier"])::before,
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-de-la-consommation"])::before,
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="avocat-contentieux"])::before { content: ""; display: block; flex: none; width: 44px; height: 44px; border-radius: 10px; background-color: var(--wp--preset--color--sauge); background-repeat: no-repeat; background-position: center; background-size: 22px 22px; }
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-des-affaires"])::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%207V5a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M3%2013h18%22%2F%3E%3C%2Fsvg%3E"); }
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-immobilier"])::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-7%209%207%22%2F%3E%3Cpath%20d%3D%22M5%2010v10h14V10%22%2F%3E%3Cpath%20d%3D%22M10%2020v-6h4v6%22%2F%3E%3C%2Fsvg%3E"); }
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="droit-de-la-consommation"])::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%207h12l-1%2013H7L6%207z%22%2F%3E%3Cpath%20d%3D%22M9%207a3%203%200%200%201%206%200%22%2F%3E%3C%2Fsvg%3E"); }
:is(#competences, #domaines) .cy-carte:has(h3 a[href*="avocat-contentieux"])::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203v18%22%2F%3E%3Cpath%20d%3D%22M7%2021h10%22%2F%3E%3Cpath%20d%3D%22M5%207h14%22%2F%3E%3Cpath%20d%3D%22M5%207l-3%206a3%203%200%200%200%206%200L5%207z%22%2F%3E%3Cpath%20d%3D%22M19%207l-3%206a3%203%200%200%200%206%200l-3-6z%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-consommation > .cy-carte::before, .cy-carte-article.cy-cat-consommation::before,
.wp-block-post.category-bancaire > .cy-carte::before, .cy-carte-article.cy-cat-bancaire::before,
.wp-block-post.category-societes > .cy-carte::before, .cy-carte-article.cy-cat-societes::before,
.wp-block-post.category-affaires > .cy-carte::before, .cy-carte-article.cy-cat-affaires::before,
.wp-block-post.category-immobilier > .cy-carte::before, .cy-carte-article.cy-cat-immobilier::before,
.wp-block-post.category-recouvrement > .cy-carte::before, .cy-carte-article.cy-cat-recouvrement::before,
.wp-block-post.category-automobile > .cy-carte::before, .cy-carte-article.cy-cat-automobile::before { content: ""; display: block; flex: none; width: 36px; height: 36px; border-radius: 10px; background-color: var(--wp--preset--color--sauge); background-repeat: no-repeat; background-position: center; background-size: 18px 18px; }
.wp-block-post.category-consommation > .cy-carte::before, .cy-carte-article.cy-cat-consommation::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%207h12l-1%2013H7L6%207z%22%2F%3E%3Cpath%20d%3D%22M9%207a3%203%200%200%201%206%200%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-bancaire > .cy-carte::before, .cy-carte-article.cy-cat-bancaire::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2212%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M3%2010h18%22%2F%3E%3Cpath%20d%3D%22M7%2015h3%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-societes > .cy-carte::before, .cy-carte-article.cy-cat-societes::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2021V5a1%201%200%200%201%201-1h8a1%201%200%200%201%201%201v16%22%2F%3E%3Cpath%20d%3D%22M14%209h5a1%201%200%200%201%201%201v11%22%2F%3E%3Cpath%20d%3D%22M3%2021h18%22%2F%3E%3Cpath%20d%3D%22M8%208h2M8%2012h2M8%2016h2%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-affaires > .cy-carte::before, .cy-carte-article.cy-cat-affaires::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%207V5a2%202%200%200%201%202-2h2a2%202%200%200%201%202%202v2%22%2F%3E%3Cpath%20d%3D%22M3%2013h18%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-immobilier > .cy-carte::before, .cy-carte-article.cy-cat-immobilier::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2011l9-7%209%207%22%2F%3E%3Cpath%20d%3D%22M5%2010v10h14V10%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2214%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-recouvrement > .cy-carte::before, .cy-carte-article.cy-cat-recouvrement::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12v18l-3-2-3%202-3-2-3%202V3z%22%2F%3E%3Cpath%20d%3D%22M9%208h6M9%2012h6%22%2F%3E%3C%2Fsvg%3E"); }
.wp-block-post.category-automobile > .cy-carte::before, .cy-carte-article.cy-cat-automobile::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%231E4D3F%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2016V12l2-5h10l2%205v4%22%2F%3E%3Cpath%20d%3D%22M3%2016h18v2H3z%22%2F%3E%3Ccircle%20cx%3D%227.5%22%20cy%3D%2218%22%20r%3D%221.5%22%2F%3E%3Ccircle%20cx%3D%2216.5%22%20cy%3D%2218%22%20r%3D%221.5%22%2F%3E%3C%2Fsvg%3E"); }

/* ---------- Finitions (règles Vercel) ---------- */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--terre); outline-offset: 3px; border-radius: 4px;
}
:where(.cy-sombre, .has-encre-background-color) :where(a, button, summary):focus-visible { outline-color: var(--wp--preset--color--peche); }
h1, h2, h3, h4 { text-wrap: balance; }
p, li { text-wrap: pretty; }
a, button, summary, label, input, textarea, select { touch-action: manipulation; }
.cy-entete .cy-menu .wp-block-navigation__responsive-container.is-menu-open { overscroll-behavior: contain; }

/* Surtitre employé comme titre de section (« Venir au cabinet ») et grand texte « Espace Lumina ». */
h2.cy-surtitre-titre { font-family: var(--wp--preset--font-family--inter); font-size: 0.875rem !important; line-height: 1.4; letter-spacing: 0.08em; margin: 0; }
.cy-display {
	font-family: var(--wp--preset--font-family--inter-tight); font-weight: 600;
	font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -0.045em;
	color: var(--wp--preset--color--blanc); margin: 0;
}

/* ---------- Boutons : une hauteur, un style par rôle ---------- */
.wp-block-button__link, .cy-bouton-tel, .cy-bouton-rdv, .cy-formulaire button {
	min-height: 48px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
	padding-top: 0 !important; padding-bottom: 0 !important;
}
.cy-bouton-tel { min-width: 48px; }
@media (max-width: 1180px) { .cy-bouton-tel { width: 48px; } }
/* Sur fond sombre, l'action principale reste verte (même apparence que partout ailleurs). */
.has-encre-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link,
.cy-sombre .cy-formulaire button {
	background: var(--wp--preset--color--cypres); color: var(--wp--preset--color--blanc);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.has-encre-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
.cy-sombre .cy-formulaire button:hover { background: #2A6352; color: var(--wp--preset--color--blanc); }

/* ---------- Micro-animations ----------
   Guide « motion » : tout mouvement n'est déclaré que si le visiteur n'a pas demandé à réduire les animations.
   Sans ce réglage, la page est complète et immobile (aucune annulation à prévoir). */
.cy-visuel, .single-post .wp-block-post-content .wp-block-image { overflow: hidden; border-radius: 12px; }
/* Liens « Lire l'article », « Voir le domaine » : soulignés à l'état de repos, soulignement qui se dessine avec animation. */
.cy-plus a, a.cy-plus, .cy-carte-article .cy-plus, .wp-block-read-more.cy-plus { text-decoration: none; }
.cy-plus a:hover, a.cy-plus:hover, .cy-carte:hover .cy-plus, .cy-carte:hover .wp-block-read-more.cy-plus { text-decoration: underline; text-underline-offset: 4px; }

@media (prefers-reduced-motion: no-preference) {
	/* Passage d'une page à l'autre en fondu (guide view-transitions, navigation entre documents). */
	@view-transition { navigation: auto; }

	.cy-carte { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
	.cy-carte:hover { transform: translateY(-2px); }

	.wp-block-button__link, .cy-bouton-tel, .cy-bouton-rdv, .cy-formulaire button, .cy-filtre, .cy-plan-bouton {
		transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	}
	.wp-block-button__link:hover, .cy-bouton-tel:hover, .cy-bouton-rdv:hover, .cy-formulaire button:hover, .cy-filtre:hover, .cy-plan-bouton:hover { transform: translateY(-1px); }
	.wp-block-button__link:active, .cy-bouton-tel:active, .cy-bouton-rdv:active, .cy-formulaire button:active, .cy-filtre:active, .cy-plan-bouton:active { transform: translateY(1px) scale(.99); }

	/* Photos : léger zoom dans leur cadre. */
	.cy-visuel img, .single-post .wp-block-post-content .wp-block-image img { transition: transform .5s ease; }
	.cy-visuel:hover img, .single-post .wp-block-post-content .wp-block-image:hover img { transform: scale(1.025); }

	.cy-plus a, a.cy-plus, .cy-carte-article .cy-plus, .wp-block-read-more.cy-plus {
		background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
		background-position: 0 100%; background-size: 0 1px; transition: background-size .25s ease;
	}
	.cy-plus a:hover, a.cy-plus:hover, .cy-carte:hover .cy-plus, .cy-carte:hover .wp-block-read-more.cy-plus { text-decoration: none; background-size: 100% 1px; }

	/* Entrée du haut de page : une seule fois, au chargement (le texte reste visible dès la première image). */
	@keyframes cy-entree { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }
	.cy-hero .wp-block-column > *, .cy-hero-page .wp-block-group > *, .cy-hero-page .wp-block-column > * { animation: cy-entree .7s cubic-bezier(.2, .7, .2, 1) both; }
	.cy-hero .wp-block-column > *:nth-child(2), .cy-hero-page .wp-block-group > *:nth-child(2), .cy-hero-page .wp-block-column > *:nth-child(2) { animation-delay: .06s; }
	.cy-hero .wp-block-column > *:nth-child(3), .cy-hero-page .wp-block-group > *:nth-child(3), .cy-hero-page .wp-block-column > *:nth-child(3) { animation-delay: .12s; }
	.cy-hero .wp-block-column > *:nth-child(n+4), .cy-hero-page .wp-block-group > *:nth-child(n+4), .cy-hero-page .wp-block-column > *:nth-child(n+4) { animation-delay: .18s; }
}

/* Très petits téléphones (320 px) : en-tête plus compact. */
@media (max-width: 400px) {
	.cy-entete .cy-logo img { width: 118px !important; }
	.cy-entete-barre { gap: 12px; }
	.cy-entete-droite { gap: 8px; }
}
/* « Espace Lumina » : titre de section, grand mais jamais plus grand que le titre de la page. */
h2.cy-display { font-size: clamp(2.25rem, 5vw, 4rem) !important; }

/* Rappel après l'uniformisation des boutons : le logo ne rétrécit jamais, « Prendre rendez-vous » passe dans le menu sous 600 px. */
.cy-entete .cy-logo { flex-shrink: 0; }
@media (max-width: 600px) { .cy-entete .cy-entete-actions .cy-bouton-rdv { display: none; } }

/* ---------- Interface du navigateur et polices (guides browser-ui-theming, visually-stable-font-fallbacks) ---------- */
:root { color-scheme: light; accent-color: var(--wp--preset--color--cypres); }
::selection { background: var(--wp--preset--color--sauge); color: var(--wp--preset--color--encre); }
@supports (font-size-adjust: from-font) { body { font-size-adjust: from-font; } }
