/* ER – couche de design (2026-10-29). Composants communs aux pages et articles : encadrés, boutons,
   FAQ, tableaux, formulaire, accordéon, cartes, titres. Couleurs du site : vert foncé #3e555a,
   vert d'eau #e8f1ef (sitka-food-light-accent), saumon des liens du thème conservé. */

:root {
	--er-vert: #3e555a;
	--er-vert-fonce: #2f4246;
	--er-eau: #e8f1ef;
	--er-trait: #d5e2de;
	--er-gris: #6b7b7e;
}

/* --- Rythme vertical et titres ------------------------------------------------------- */
.post-entry h2 { margin-top: 1.7em; margin-bottom: .6em; line-height: 1.25; }
.post-entry h3 { margin-top: 1.4em; margin-bottom: .5em; line-height: 1.3; }
.post-entry h2:first-child, .post-entry h3:first-child { margin-top: 0; }
.post-entry ul li, .post-entry ol li { margin-bottom: .45em; }
.post-entry .has-small-font-size { color: var(--er-gris); line-height: 1.6; }

/* --- Encadrés (« En résumé », adresse, appel à l'action) ------------------------------ */
.post-entry p.has-sitka-food-light-accent-background-color,
.post-entry .wp-block-group.has-sitka-food-light-accent-background-color:not(.alignwide) {
	padding: 22px 26px 22px 28px;
	border-left: 4px solid var(--er-vert);
	line-height: 1.7;
	margin: 1.6em 0;
}
.post-entry p.has-sitka-food-light-accent-background-color > strong:first-child {
	display: block;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--er-vert);
	margin-bottom: .5em;
}

/* --- Boutons ---------------------------------------------------------------------- */
.wp-block-button__link {
	padding: 15px 30px;
	font-size: 13px;
	letter-spacing: .14em;
	font-weight: 600;
	border-radius: 999px;
	transition: background-color .2s, transform .2s, box-shadow .2s;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:focus-visible,
.wp-block-button__link.has-background:hover,
.wp-block-button__link.has-background:focus-visible {
	background-color: var(--er-vert-fonce) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(62, 85, 90, .22);
}

/* --- FAQ Yoast -------------------------------------------------------------------- */
.schema-faq { border-top: 1px solid var(--er-trait); margin-top: 1em; }
.schema-faq-section {
	padding: 18px 0 18px 22px;
	border-bottom: 1px solid var(--er-trait);
	position: relative;
}
.schema-faq-section::before {
	content: "";
	position: absolute;
	left: 0;
	top: 26px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--er-vert);
}
.schema-faq-question { display: block; font-size: 18px; line-height: 1.4; color: var(--er-vert); margin-bottom: 8px; }
.schema-faq-answer { margin: 0 !important; color: #444; }

/* --- Tableaux --------------------------------------------------------------------- */
.wp-block-table { overflow-x: auto; margin: 1.5em 0; }
.wp-block-table table { border-collapse: collapse; width: 100%; font-size: 15px; }
.wp-block-table th, .wp-block-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--er-trait); text-align: left; vertical-align: top; }
.wp-block-table thead th { background: var(--er-eau); color: var(--er-vert); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.wp-block-table tbody tr:nth-child(even) td { background: #f6faf9; }
.wp-block-table tbody td:first-child { font-weight: 600; }
.wp-block-table figcaption { font-size: 14px; color: var(--er-gris); text-align: left; margin-top: 8px; }

/* --- Cartes Google et iframes ------------------------------------------------------- */
.post-entry iframe[src*="google.com/maps"] { display: block; width: 100%; height: 380px; border: 0; margin: 1em 0 1.5em; }

/* --- Accordéon Easy Accordion (FAQ de la page RDV) --------------------------------- */
.sp-easy-accordion > .sp-ea-single { background: #fff !important; border: 1px solid var(--er-trait) !important; margin-bottom: 8px !important; }
.sp-easy-accordion > .sp-ea-single > .ea-header a { color: var(--er-vert) !important; font-weight: 600; }
.sp-easy-accordion > .sp-ea-single > .ea-header a .ea-expand-icon { color: var(--er-vert) !important; }
.sp-easy-accordion > .sp-ea-single > .sp-collapse > .ea-body { color: #444 !important; line-height: 1.7; }

/* --- Formulaire de contact (Contact Form 7) ---------------------------------------- */
.wpcf7 form { margin: 1.5em 0; }
.wpcf7 form > p { margin-bottom: 18px; }
.wpcf7 label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--er-vert); font-weight: 600; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	margin-top: 6px;
	border: 1px solid var(--er-trait);
	border-radius: 4px;
	background: #fff;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color .2s, box-shadow .2s;
}
.wpcf7 input:focus, .wpcf7 textarea:focus { outline: 0; border-color: var(--er-vert); box-shadow: 0 0 0 3px rgba(62, 85, 90, .15); }
.wpcf7 textarea { min-height: 160px; }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit {
	background: var(--er-vert);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: 15px 34px;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .2s, transform .2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--er-vert-fonce); transform: translateY(-1px); }
.wpcf7 .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.wpcf7 .wpcf7-response-output { border-radius: 4px; padding: 12px 16px; }

/* --- Page RDV : conteneur du module SimplyBook (hauteur réservée, pas de saut de page) --- */
#sb-widget { min-height: 640px; margin: 0 0 1.5em; }
#sb-widget iframe { border: 0 !important; }

/* --- Page À propos : colonne de droite (portrait + logos) ----------------------------- */
.page-id-204 .wp-block-columns.has-2-columns > .wp-block-column:last-child { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.page-id-204 .wp-block-columns.has-2-columns > .wp-block-column:last-child figure { margin: 0; }
.page-id-204 .wp-block-columns.has-2-columns > .wp-block-column:last-child figure img { height: auto; }
.page-id-204 .er-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; width: 100%; }
.page-id-204 .er-logos figure img { width: auto !important; max-height: 90px !important; height: 90px !important; object-fit: contain; }
.page-id-204 .er-logos figure a { display: inline-block; transition: transform .2s, opacity .2s; }
.page-id-204 .er-logos figure a:hover { transform: translateY(-2px); opacity: .85; }
@media (min-width: 782px) {
	.page-id-204 .wp-block-columns.has-2-columns > .wp-block-column:last-child { position: sticky; top: 110px; align-self: flex-start; }
}

/* --- Page naturopathie : image de tête -------------------------------------------- */
.page-id-1539 .post-entry > .wp-block-image.aligncenter img { max-height: 260px; width: auto; }

/* --- Avis Google (Trustindex) : respiration ----------------------------------------- */
.ti-widget { margin: 2em 0; }

/* --- Mobile ----------------------------------------------------------------------- */
@media (max-width: 767px) {
	.post-entry p.has-sitka-food-light-accent-background-color { padding: 18px 18px 18px 20px; }
	.schema-faq-question { font-size: 17px; }
	.wp-block-table table { font-size: 14px; }
	.wp-block-table th, .wp-block-table td { padding: 9px 10px; }
	.post-entry iframe[src*="google.com/maps"] { height: 280px; }
	#sb-widget { min-height: 560px; }
}

/* --- Bouton secondaire « Laisser un avis Google » (2026-10-29) ---------------------- */
.er-avis { margin: 0 0 2.5em; }
.er-avis .wp-block-button__link {
	background: #fff;
	color: var(--er-vert) !important;
	border: 1.5px solid var(--er-vert);
	padding: 13px 28px;
}
.er-avis .wp-block-button__link:hover, .er-avis .wp-block-button__link:focus-visible {
	background: var(--er-vert) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(62, 85, 90, .22);
}
.er-avis-intro { margin-top: -1em; color: var(--er-gris); }
