/*
Theme Name: MOÉ
Theme URI: https://moe-naturel.fr
Author: MOÉ – Bien-être au naturel
Description: Thème sur mesure pour MOÉ, massages et soins bien-être dans une tiny house à Yutz. Charte terre, bois et sauge ; polices Fraunces et Jost hébergées sur le site.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: moe
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 2px solid var(--wp--preset--color--ecorce); outline-offset: 3px; }
img { height: auto; }

/* ---------- En-tête ---------- */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; position: relative; } }
.moe-header { background: var(--wp--preset--color--lin); border-bottom: 1px solid var(--wp--preset--color--sable); }
.moe-header__inner { min-height: 84px; }
.moe-logo { margin: 0; line-height: 0; }
.moe-logo img { height: 60px; width: auto; display: block; margin-left: -34px; }
.moe-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--ecorce); }
.moe-header .wp-block-navigation a:hover, .moe-header .wp-block-navigation .current-menu-item a { color: var(--wp--preset--color--terracotta); text-decoration: underline; text-underline-offset: 6px; }
.moe-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--lin); padding: 32px 24px; }
.moe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--fraunces); font-size: 26px; }
@media (max-width: 600px) {
	.moe-logo img { height: 48px; margin-left: -26px; }
	.moe-header__cta .wp-block-button__link { padding: 10px 18px; font-size: 13px; }
}

/* ---------- Sections ---------- */
.moe-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
.moe-section--tight { padding-top: var(--wp--preset--spacing--50); padding-bottom: var(--wp--preset--spacing--50); }
.moe-section--hero { padding-top: var(--wp--preset--spacing--50); }
.moe-section > * + * { margin-block-start: 0; }
.moe-head { margin-bottom: var(--wp--preset--spacing--50) !important; }
.moe-head > * + * { margin-block-start: 12px; }
.moe-center { text-align: center; }
.moe-center .wp-block-buttons { justify-content: center; }
.moe-border-y { border-top: 1px solid var(--wp--preset--color--sable); border-bottom: 1px solid var(--wp--preset--color--sable); }

/* Surtitre */
.is-style-eyebrow, .moe-eyebrow { font-size: 12px !important; line-height: 16px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--wp--preset--color--ecorce-doux); margin-bottom: 0; }
.has-terracotta-background-color .is-style-eyebrow, .has-ecorce-background-color .is-style-eyebrow { color: var(--wp--preset--color--creme); }
.has-sauge-background-color .is-style-eyebrow { color: var(--wp--preset--color--ecorce); }

/* Chapeau */
.moe-lead { font-size: var(--wp--preset--font-size--large); line-height: 1.6; font-weight: 300; max-width: 560px; }
.moe-center .moe-lead { margin-left: auto; margin-right: auto; }

/* Prix */
.moe-prix { font-size: 15px; line-height: 22px; font-weight: 500; letter-spacing: .04em; color: var(--wp--preset--color--terracotta); }
.has-terracotta-background-color .moe-prix { color: var(--wp--preset--color--creme); }
.moe-note { font-size: 14px; line-height: 22px; color: var(--wp--preset--color--ecorce-doux); }

/* ---------- Images ---------- */
.wp-block-image img { border-radius: 16px; }
.is-style-arch img { border-radius: 999px 999px 16px 16px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.is-style-arch.moe-tall img { aspect-ratio: 5 / 7; }
.moe-ratio-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 16px 16px 0 0; }
.moe-ratio-wide img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.moe-ratio-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- Cartes ---------- */
.moe-cards { gap: 24px !important; }
.moe-cards > .wp-block-column { display: flex; }
.moe-card { background: var(--wp--preset--color--creme); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; width: 100%; padding: 0 !important; }
.moe-card > .wp-block-image { margin: 0 !important; }
.moe-card__body { padding: 24px 24px 28px !important; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.moe-card__body > * { margin: 0 !important; }
.moe-card__body h3 { margin-top: 4px !important; }
.moe-card__body .moe-grow { flex-grow: 1; }
.moe-card__body .moe-more { margin-top: 8px !important; font-weight: 500; }
.moe-card--accent { background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--creme); padding: 32px !important; justify-content: space-between; gap: 20px; }
.moe-card--accent h3 { color: var(--wp--preset--color--creme); font-weight: 300; font-size: 30px; line-height: 1.2; }
.moe-card--accent .wp-block-button__link { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--terracotta); border-color: var(--wp--preset--color--creme); }
.moe-card--plain { padding: 32px !important; }
.moe-card--plain > * { margin: 0 !important; }
.moe-card--plain > * + * { margin-top: 12px !important; }

/* Bandeau de réassurance */
.moe-reassure p { margin: 0; font-size: 14px; line-height: 22px; padding-left: 30px; position: relative; }
.moe-reassure p::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 32px; background: url(assets/images/graine-terracotta.svg) no-repeat center / contain; }
.moe-reassure strong { font-weight: 500; }
.moe-reassure span { color: var(--wp--preset--color--ecorce-doux); }

/* Listes à graines */
ul.is-style-graine { list-style: none; padding-left: 0; }
ul.is-style-graine li { position: relative; padding-left: 30px; margin-bottom: 10px; }
ul.is-style-graine li::before { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 24px; background: url(assets/images/graine-terracotta.svg) no-repeat center / contain; }

/* Étapes */
.moe-step { border-top: 1px solid var(--wp--preset--color--sable); padding-top: 24px; }
.moe-step > * { margin: 0 !important; }
.moe-step > * + * { margin-top: 12px !important; }
.moe-step-num { font-family: var(--wp--preset--font-family--fraunces); font-weight: 300; font-size: 44px; line-height: 1; color: var(--wp--preset--color--terracotta); }

/* Liste de prestations */
.moe-service { border-top: 1px solid var(--wp--preset--color--sable); padding-top: 20px; padding-bottom: 8px; }
.moe-service > * { margin: 0 !important; }
.moe-service > * + * { margin-top: 6px !important; }
.moe-service h3 { font-size: 24px; }

/* Avis */
.wp-block-quote.moe-review { background: var(--wp--preset--color--creme); border-radius: 16px; padding: 32px; margin: 0; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.wp-block-quote.moe-review p { margin: 0; }
.wp-block-quote cite { font-family: var(--wp--preset--font-family--jost); font-style: normal; font-size: 14px; color: var(--wp--preset--color--ecorce-doux); }
.moe-review-col { display: flex; }
.moe-stars { color: var(--wp--preset--color--terracotta); letter-spacing: 2px; }

/* Carte cadeau visuelle */
.moe-giftcard { background: var(--wp--preset--color--creme); border-radius: 16px; box-shadow: 0 24px 48px rgba(61, 43, 32, .28); transform: rotate(-4deg); max-width: 420px; margin: 0 auto !important; aspect-ratio: 85 / 55; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.moe-giftcard .wp-block-image { margin: 0; width: 72%; }
.moe-giftcard .wp-block-image img { border-radius: 0; }
.moe-giftcard p { color: var(--wp--preset--color--terracotta); margin: 0; }

/* Encadré */
.moe-box { border-radius: 16px; padding: 40px !important; }
.moe-box > * { margin: 0 !important; }
.moe-box > * + * { margin-top: 14px !important; }

/* FAQ */
.wp-block-details { padding: 18px 0; margin: 0 !important; }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--wp--preset--color--sable); }
.wp-block-details summary { font-size: 18px; line-height: 26px; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--wp--preset--color--terracotta); font-size: 22px; line-height: 1; }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > p { margin-top: 12px; }

/* Tableaux (horaires, tarifs) */
.wp-block-table.moe-table table { border-collapse: collapse; width: 100%; }
.wp-block-table.moe-table td { border: 0; border-top: 1px solid var(--wp--preset--color--sable); padding: 10px 0; }
.wp-block-table.moe-table tr:last-child td { border-bottom: 1px solid var(--wp--preset--color--sable); }
.wp-block-table.moe-table td:last-child { text-align: right; white-space: nowrap; }

/* Boutons */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--wp--preset--color--terracotta); border-color: var(--wp--preset--color--terracotta); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--terracotta); color: var(--wp--preset--color--creme); }
.has-terracotta-background-color .wp-block-button__link { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--terracotta); border-color: var(--wp--preset--color--creme); }
.has-terracotta-background-color .wp-block-button__link:hover { background: var(--wp--preset--color--ecorce); color: var(--wp--preset--color--creme); border-color: var(--wp--preset--color--ecorce); }
.has-terracotta-background-color a:not(.wp-block-button__link), .has-ecorce-background-color a:not(.wp-block-button__link) { color: var(--wp--preset--color--creme); }

/* Fil d'Ariane */
.moe-breadcrumb { font-size: 14px; color: var(--wp--preset--color--ecorce-doux); margin-bottom: 32px !important; }
.moe-breadcrumb a { color: var(--wp--preset--color--ecorce-doux); }

/* ---------- Pied de page ---------- */
.moe-footer { background: var(--wp--preset--color--ecorce); color: var(--wp--preset--color--creme); }
.moe-footer a { color: var(--wp--preset--color--creme); text-decoration: none; }
.moe-footer a:hover { text-decoration: underline; color: var(--wp--preset--color--creme); }
.moe-footer .moe-footer__logo img { width: 220px; margin-left: -60px; border-radius: 0; }
.moe-footer .is-style-eyebrow { color: var(--wp--preset--color--sable); margin-bottom: 6px; }
.moe-footer p { font-size: 15px; line-height: 24px; margin: 0; }
.moe-footer .moe-footer__col > * + * { margin-top: 8px !important; }
.moe-footer .moe-footer__muted { color: var(--wp--preset--color--sable); }
.moe-footer__bottom { border-top: 1px solid var(--wp--preset--color--ecorce-doux); font-size: 13px; color: var(--wp--preset--color--sable); }
.moe-footer__bottom p { font-size: 13px; }

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.moe-order-first-mobile { order: -1; }
	.moe-giftcard { transform: rotate(-2deg); }
	.moe-box { padding: 28px !important; }
	.moe-hide-mobile { display: none !important; }
}

/* Titres sur fonds colorés */
.has-text-color h1, .has-text-color h2, .has-text-color h3, .has-text-color h4 { color: inherit; }
.has-terracotta-background-color .moe-note, .has-ecorce-background-color .moe-note { color: var(--wp--preset--color--sable); }
.wp-block-quote:not(.moe-review) { margin-left: 0; padding-left: 0; }
.wp-block-quote:not(.moe-review) p { margin: 0 0 6px; }

/* Correctifs aperçu */
.moe-giftcard .is-style-eyebrow { color: var(--wp--preset--color--terracotta) !important; margin-top: 8px !important; }
.moe-footer .moe-footer__logo img { width: 260px; max-width: none; }

/* Menu mobile */
.moe-header .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--wp--preset--color--lin); color: var(--wp--preset--color--ecorce); }
.moe-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content, .moe-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start; }
.moe-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 18px; padding-top: 40px; }

/* Accueil : image pleine largeur du jardin */
.wp-block-cover.moe-hero { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); color: var(--wp--preset--color--creme); }
.wp-block-cover.moe-hero .wp-block-cover__background { background: linear-gradient(90deg, rgba(61,43,32,.82) 0%, rgba(61,43,32,.55) 45%, rgba(61,43,32,.12) 100%) !important; opacity: 1 !important; }
.wp-block-cover.moe-hero .wp-block-cover__inner-container { width: 100%; max-width: var(--wp--style--global--wide-size, 1200px); margin: 0 auto; }
.wp-block-cover.moe-hero .moe-hero__content { max-width: 600px; margin-left: 0 !important; }
.wp-block-cover.moe-hero .moe-hero__content > * + * { margin-top: 22px; }
.wp-block-cover.moe-hero h1 { color: var(--wp--preset--color--creme); }
.wp-block-cover.moe-hero .is-style-eyebrow, .wp-block-cover.moe-hero .moe-note { color: var(--wp--preset--color--sable); }
.wp-block-cover.moe-hero .moe-stars { color: var(--wp--preset--color--sable); }
.wp-block-cover.moe-hero .moe-lead { color: var(--wp--preset--color--creme); }
.wp-block-cover.moe-hero .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--creme); border-color: var(--wp--preset--color--creme); }
.wp-block-cover.moe-hero .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--creme); color: var(--wp--preset--color--terracotta); }
@media (max-width: 781px) {
	.wp-block-cover.moe-hero { min-height: 92vh !important; align-items: flex-end; }
	.wp-block-cover.moe-hero .wp-block-cover__background { background: linear-gradient(0deg, rgba(61,43,32,.88) 0%, rgba(61,43,32,.6) 55%, rgba(61,43,32,.2) 100%) !important; }
}

/* Fiches (formation, drainage) */
.moe-fact { font-family: var(--wp--preset--font-family--fraunces); font-size: 24px; line-height: 1.3; margin-top: 6px !important; }

/* Hero plein cadre collé au header */
.wp-site-blocks > main:has(> .moe-hero:first-child),
.wp-site-blocks > main:has(> .wp-block-post-content > .moe-hero:first-child){margin-block-start:0}

/* Hero dans le contenu de la page : mêmes marges que les autres sections */
.wp-block-post-content > .moe-hero{padding-left:var(--wp--style--root--padding-left);padding-right:var(--wp--style--root--padding-right)}
.wp-block-cover.moe-hero.has-custom-content-position.has-custom-content-position .wp-block-cover__inner-container{width:100%;max-width:var(--wp--style--global--wide-size,1200px);margin:0 auto}

/* Tablette : menu replié (burger) jusqu'à 1024 px, bouton Réserver sur une ligne */
.moe-header__cta .wp-block-button__link{white-space:nowrap}
@media (max-width:1024px){
.moe-header .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}
.moe-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open){display:none}
}

/* Cadrage photo : garder le haut de l'image (visages) */
.moe-img-top img{object-position:50% 0 !important}
