/*------------------------------------------------------------
	Theme Name:		Anna Evans
	Theme URI:		https://annaevans.org/
	Description:	Thème enfant Anna Evans basé sur Ollie
	Template:		ollie
	Version:		1.11 (2026-06-12)
	Author:			Thibaut Parent
	Author URI:		https://www.thibautparent.com
---------------------------------------------------------*/

/* Reset & Base */
*, *::before, *::after {box-sizing: border-box}
body {background-color: var(--wp--preset--color--cream); color: var(--wp--preset--color--text-dark); margin: 0}
main.wp-block-group {background: var(--wp--preset--color--cream); position: relative; animation: page-fadein .6s ease forwards; margin-top: 0; margin-bottom: 0}
@keyframes page-fadein {from {opacity: 0} to {opacity: 1}}
img {max-width: 100%; height: auto; display: block}
a {transition: color .3s ease, background .3s ease, opacity .3s ease; text-decoration: none}

/* Layout : sections templates */
.ae-hero {padding-top: var(--wp--preset--spacing--md); padding-bottom: var(--wp--preset--spacing--md)}
.ae-title {padding-top: var(--wp--preset--spacing--md); padding-bottom: var(--wp--preset--spacing--md)}
.ae-content {padding-bottom: var(--wp--preset--spacing--xl)}
.ae-content.has-padding-top {padding-top: var(--wp--preset--spacing--lg)}
.ae-post-row {border-bottom: 1px solid var(--wp--preset--color--purple-light); padding-top: var(--wp--preset--spacing--sm); padding-bottom: var(--wp--preset--spacing--sm)}
.ae-post-row-sm {border-bottom: 1px solid var(--wp--preset--color--purple-light); padding-top: var(--wp--preset--spacing--xs); padding-bottom: var(--wp--preset--spacing--xs)}
a:hover {text-decoration: none}
ul, ol {padding-left: 1.5em}
li {list-style: disc}
html {scroll-behavior: smooth}

/* Typographie */
h1, h2, h3, h4, h5, h6 {font-family: 'Trebuchet MS', Verdana, sans-serif; color: var(--wp--preset--color--text-dark); line-height: 1.2}
h1::before {content: ""; display: none}
h1::after {content: ""; display: block; width: 50px; height: 3px; background: var(--wp--preset--color--purple); margin-top: .4em}
@keyframes h1-line {from {width: 0} to {width: 50px}}
.wp-block-query-title {letter-spacing: .02em}
.wp-block-heading.has-sm-font-size {font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--wp--preset--spacing--sm)}
.entry-content p:not(:last-child) {margin-bottom: 1em}
.entry-content .wp-block-group p:last-child {margin-bottom: 1em}
.entry-content p + h2, .entry-content p + h3, .entry-content p + h4, .entry-content p + h5, .entry-content p + h6 {margin-top: .6em}
.entry-content h2:not(.wp-block-post-title)::after {display: block; content: ""; width: 50px; height: 3px; background: var(--wp--preset--color--purple); margin: .6em 0}
.entry-content h3:not(.wp-block-post-title, .wp-block-accordion-heading)::after {display: block; content: ""; width: 20px; height: 3px; background: var(--wp--preset--color--purple); margin: .6em 0}
.entry-content ul, .entry-content ol {padding-left: 2em; margin-bottom: 1em}
.entry-content li {margin-bottom: .3em}

/* Signature (classe utilitaire pour les citations/signatures manuscrites) */
.ae-signature {font-family: 'Caveat', cursive; font-size: var(--wp--preset--font-size--xl)}

/* Header */
.wp-block-template-part[data-slug="header"], header.wp-block-template-part {background: var(--wp--preset--color--white); border-bottom: 1px solid var(--wp--preset--color--purple-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.06)}
.admin-bar .wp-block-template-part[data-slug="header"], .admin-bar header.wp-block-template-part {top: 32px}
.wp-block-template-part[data-slug="header"] > .wp-block-group > .alignwide, header.wp-block-template-part > .wp-block-group > .alignwide {padding: var(--wp--preset--spacing--sm) 0; transition: padding .3s ease}
.wp-block-template-part[data-slug="header"].scrolled > .wp-block-group > .alignwide, header.wp-block-template-part.scrolled > .wp-block-group > .alignwide {padding: calc(var(--wp--preset--spacing--sm) / 2) 0}
.wp-block-template-part[data-slug="header"] .wp-block-site-logo img, header.wp-block-template-part .wp-block-site-logo img {width: 200px; max-width: 100%; height: auto; transition: width .3s ease}
.wp-block-template-part[data-slug="header"].scrolled .wp-block-site-logo img, header.wp-block-template-part.scrolled .wp-block-site-logo img {width: 140px}

/* Navigation */
.wp-block-navigation a {font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: var(--wp--preset--font-size--base); letter-spacing: .03em; color: var(--wp--preset--color--text-dark); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color .3s ease, border-color .3s ease}
.wp-block-navigation a:hover {color: var(--wp--preset--color--purple-dark); border-bottom-color: var(--wp--preset--color--purple)}
.wp-block-navigation .current-menu-item > a {text-decoration: none !important; border-bottom-color: var(--wp--preset--color--purple)}
.wp-block-navigation .current-menu-item > a:hover {border-bottom-color: var(--wp--preset--color--purple)}
.wp-block-navigation .wp-block-navigation__container {gap: var(--wp--preset--spacing--md)}
.wp-block-navigation .wp-block-navigation__submenu-container {background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--purple-light); box-shadow: 0 4px 12px rgba(0,0,0,.08); border-radius: 6px; padding: .6em 0; min-width: 220px; z-index: 10; position: absolute; left: 0; top: 100%}
.wp-block-navigation-item.has-child {position: relative}
.wp-block-navigation-item.has-child > .wp-block-navigation__submenu-container {display: none !important; opacity: 0; visibility: hidden}
.wp-block-navigation-item.has-child:hover > .wp-block-navigation__submenu-container, .wp-block-navigation-item.has-child:focus-within > .wp-block-navigation__submenu-container {display: block !important; opacity: 1; visibility: visible}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a {color: var(--wp--preset--color--text-medium); padding: .7em 1.4em !important; border-bottom: 2px solid transparent; font-size: var(--wp--preset--font-size--sm); font-family: 'Trebuchet MS', Verdana, sans-serif; letter-spacing: .02em; display: block; transition: color .3s ease, border-color .3s ease}
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {color: var(--wp--preset--color--purple-dark); border-bottom-color: var(--wp--preset--color--purple); background: none !important}
.wp-block-navigation__responsive-container.is-menu-open {background: var(--wp--preset--color--white) !important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {background: var(--wp--preset--color--white) !important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {color: var(--wp--preset--color--text-dark)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {background: var(--wp--preset--color--white) !important}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {color: var(--wp--preset--color--text-dark); margin-top: var(--wp--preset--spacing--sm); margin-right: var(--wp--preset--spacing--sm)}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg {fill: var(--wp--preset--color--text-dark)}

/* Liens dans le contenu */
.entry-content p a, .wp-block-post-content p a, .entry-content ul li a, .wp-block-post-content ul li a, .entry-content ol li a, .wp-block-post-content ol li a {color: var(--wp--preset--color--text-dark); text-decoration: underline; text-decoration-color: var(--wp--preset--color--purple); text-underline-offset: 3px; transition: text-decoration-color .3s ease, color .3s ease}
.entry-content p a:hover, .wp-block-post-content p a:hover, .entry-content ul li a:hover, .wp-block-post-content ul li a:hover, .entry-content ol li a:hover, .wp-block-post-content ol li a:hover {color: var(--wp--preset--color--purple-dark); text-decoration-color: var(--wp--preset--color--purple-dark)}
.page .entry-content h2[id], .page .entry-content h3[id] {scroll-margin-top: 80px}
.single .entry-content h2[id], .single .entry-content h3[id] {scroll-margin-top: 120px}

/* Images */
.entry-content img, .wp-block-post-content img, .wp-block-image img {border-radius: 8px; margin-bottom: 1.3em; margin-left: auto; margin-right: auto}
.wp-block-post-featured-image img {width: 100%; height: auto; border-radius: 8px}
.entry-content figure.wp-block-image, .wp-block-post-content figure.wp-block-image {margin-left: auto; margin-right: auto; text-align: center}

/* Blockquote */
blockquote, .wp-block-quote {border: none; background: none; padding: 1em 1em 1em 3em; margin-left: 0; margin-right: 0; color: var(--wp--preset--color--text-medium); font-style: italic; position: relative}
blockquote::before, .wp-block-quote::before {content: "\201C"; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: 4rem; color: var(--wp--preset--color--purple); position: absolute; top: .1em; left: 0; line-height: 1}

/* Boutons */
.wp-block-buttons {gap: .6em; margin-bottom: 1.3em; justify-content: center}
.wp-block-button__link, .wp-element-button, input[type="submit"], button {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white); border: none; border-radius: 6px; padding: .7em 1.8em; font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 700; font-size: .875rem; letter-spacing: .03em; cursor: pointer; transition: background .3s ease}
.wp-block-button__link:hover, .wp-element-button:hover, input[type="submit"]:hover, button:hover {background: var(--wp--preset--color--plum-dark); color: var(--wp--preset--color--white)}
/* Variante bouton outline (défaut) */
.wp-block-button.is-style-outline .wp-block-button__link {background: transparent; border: 2px solid var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--purple-dark)}
.wp-block-button.is-style-outline .wp-block-button__link:hover {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white)}
/* Variante CTA : Communication Intuitive */
.is-style-ci .wp-block-button__link {background: var(--wp--preset--color--ci); color: var(--wp--preset--color--text-dark)}
.is-style-ci .wp-block-button__link:hover {background: var(--wp--preset--color--purple); color: var(--wp--preset--color--text-dark)}
.is-style-ci.is-style-outline .wp-block-button__link {background: transparent; border-color: var(--wp--preset--color--ci); color: var(--wp--preset--color--ci)}
.is-style-ci.is-style-outline .wp-block-button__link:hover {background: var(--wp--preset--color--ci); color: var(--wp--preset--color--text-dark)}
/* Variante CTA : Santé Holistique Animale */
.is-style-sha .wp-block-button__link {background: var(--wp--preset--color--sha); color: var(--wp--preset--color--text-dark)}
.is-style-sha .wp-block-button__link:hover {background: var(--wp--preset--color--olive); color: var(--wp--preset--color--text-dark)}
.is-style-sha.is-style-outline .wp-block-button__link {background: transparent; border-color: var(--wp--preset--color--sha); color: var(--wp--preset--color--sha)}
.is-style-sha.is-style-outline .wp-block-button__link:hover {background: var(--wp--preset--color--sha); color: var(--wp--preset--color--text-dark)}

/* Accordéon */
.wp-block-accordion {background: var(--wp--preset--color--white); border-radius: 8px; border-left: 3px solid var(--wp--preset--color--purple); overflow: hidden; margin-bottom: 1.3em; box-shadow: 0 1px 4px rgba(0,0,0,.06)}
.wp-block-accordion-item {border-bottom: 1px solid var(--wp--preset--color--purple-light)}
.wp-block-accordion-item:last-child {border-bottom: none}
.wp-block-accordion-heading {margin: 0}
.wp-block-accordion-heading h3 {margin: 0}
.wp-block-accordion-heading h3::after {display: none}
.wp-block-accordion-heading button {background: none; border: none; width: 100%; text-align: left; padding: 1em 1.5em; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: background .3s ease}
.wp-block-accordion-heading button:hover {background: var(--wp--preset--color--ci)}
.wp-block-accordion-heading__toggle-title {font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: var(--wp--preset--font-size--sm); font-weight: 700; letter-spacing: .03em; color: var(--wp--preset--color--text-dark); text-decoration: none}
.wp-block-accordion-heading__toggle-title:hover {text-decoration: none}
.wp-block-accordion-heading button:hover .wp-block-accordion-heading__toggle-title {color: var(--wp--preset--color--purple-dark); text-decoration: none}
.wp-block-accordion-panel {padding: 1em 1.5em; color: var(--wp--preset--color--text-medium)}

/* Catégorie / Tag badge */
.taxonomy-category a {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white); padding: .2em .6em; border-radius: 6px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .03em; transition: background .3s ease}
.taxonomy-category a:hover {background: var(--wp--preset--color--plum-dark); color: var(--wp--preset--color--white)}
.taxonomy-post_tag {display: inline-flex; flex-wrap: wrap; gap: .4em}
.taxonomy-post_tag a {background: var(--wp--preset--color--ci); color: var(--wp--preset--color--purple-dark); padding: .2em .6em; border-radius: 6px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .03em; transition: background .3s, color .3s}
.taxonomy-post_tag a:hover {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white)}
.wp-block-post-terms a, .post-category a {padding: .2em .6em; border-radius: 6px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .03em; transition: background .3s ease}

/* Cards / Query Loop */
.wp-block-query .wp-block-post {border-radius: 8px; overflow: hidden; transition: transform .3s ease; background: var(--wp--preset--color--white); box-shadow: 0 1px 4px rgba(0,0,0,.06)}
.wp-block-query .wp-block-post:hover {transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1)}
.wp-block-query .wp-block-post-featured-image img {border-radius: 0; width: 100%; height: auto; margin-bottom: 0}
.wp-block-query .wp-block-post-title, .wp-block-query h3.wp-block-post-title {font-size: var(--wp--preset--font-size--base)}
.ae-hero .wp-block-column:first-child .wp-block-post-title, .ae-hero .wp-block-column:first-child h3.wp-block-post-title {font-size: var(--wp--preset--font-size--xl)}
.ae-hero .wp-block-column:last-child .wp-block-post-title, .ae-hero .wp-block-column:last-child h3.wp-block-post-title {font-size: var(--wp--preset--font-size--lg)}
.ae-content .wp-block-post-title, .ae-content h2.wp-block-post-title, .ae-content h3.wp-block-post-title {font-size: var(--wp--preset--font-size--lg)}
.wp-block-query .wp-block-post-title a {color: var(--wp--preset--color--text-dark); font-family: 'Trebuchet MS', Verdana, sans-serif; transition: color .3s ease}
.wp-block-query .wp-block-post-title a:hover {color: var(--wp--preset--color--purple-dark)}
.wp-block-query .wp-block-post:hover .wp-block-post-title a {color: var(--wp--preset--color--purple-dark)}
.wp-block-query .wp-block-post-date {color: var(--wp--preset--color--text-light); font-size: .875rem}
.wp-block-query .wp-block-post-excerpt {color: var(--wp--preset--color--text-medium); font-size: .9rem}

/* Titre page / archive */
.ae-search-count {color: var(--wp--preset--color--text-medium); font-size: var(--wp--preset--font-size--sm)}

/* Titres section */
.ae-hero h2.wp-block-heading, .ae-content > h2.wp-block-heading {font-size: var(--wp--preset--font-size--xl); letter-spacing: .04em; margin-bottom: var(--wp--preset--spacing--sm)}
.ae-sidebar h2.wp-block-heading {font-size: 1rem; letter-spacing: .04em; margin-bottom: var(--wp--preset--spacing--sm)}

/* Séparateur */
.wp-block-separator {border-color: var(--wp--preset--color--purple-light); border-width: 1px; margin: 2em 0}

/* Page auteur */
.ae-author-box {display: flex; gap: var(--wp--preset--spacing--md); align-items: flex-start; padding: var(--wp--preset--spacing--md) 0}
.ae-author-avatar img {border-radius: 50%; width: 120px; height: 120px}
.ae-author-info {flex: 1}
.ae-author-name {margin: 0 0 .4em}
.ae-author-realname {font-size: var(--wp--preset--font-size--base); color: var(--wp--preset--color--text-light); font-weight: 400}
.ae-author-links {display: flex; gap: var(--wp--preset--spacing--sm); margin-bottom: var(--wp--preset--spacing--sm)}
.ae-author-links a {color: var(--wp--preset--color--text-light); transition: color .3s ease}
.ae-author-links a:hover {color: var(--wp--preset--color--purple-dark)}

/* Tableau influences */
.ae-table table {border-collapse: collapse; width: 100%; font-size: var(--wp--preset--font-size--sm)}
.ae-table thead {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white)}
.ae-table thead th {padding: .8em 1em; font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 700; text-align: left}
.ae-table tbody td {padding: .6em 1em; border-bottom: 1px solid var(--wp--preset--color--purple-light)}
.ae-table tbody tr:hover {background: var(--wp--preset--color--ci)}

/* Sidebar */
.ae-sidebar {padding-top: var(--wp--preset--spacing--sm)}
.ae-sidebar .wp-block-group {background: var(--wp--preset--color--white); border-radius: 8px; padding: var(--wp--preset--spacing--sm); margin-bottom: var(--wp--preset--spacing--sm); box-shadow: 0 1px 4px rgba(0,0,0,.06)}
.wp-block-search__inside-wrapper {display: flex}
.wp-block-search__input {flex: 1; padding: .5em .9em; background: var(--wp--preset--color--cream-light); border: 1px solid var(--wp--preset--color--purple-light); color: var(--wp--preset--color--text-dark); border-radius: 6px 0 0 6px; font-size: 1rem; transition: border-color .3s ease}
.wp-block-search__input:focus {border-color: var(--wp--preset--color--purple); outline: none}
.wp-block-search__input::placeholder {color: var(--wp--preset--color--text-light)}
.wp-block-search__button {background: var(--wp--preset--color--purple); color: var(--wp--preset--color--white); border: none; border-radius: 0 6px 6px 0; padding: .5em 1em; cursor: pointer; transition: background .3s ease}
.wp-block-search__button:hover {background: var(--wp--preset--color--purple-dark)}
.ae-sidebar .wp-block-post-featured-image {flex-shrink: 0}
.ae-sidebar .wp-block-post-featured-image img {width: 54px; height: 30px; object-fit: cover}
.ae-content .wp-block-post-featured-image {flex-shrink: 0}
.ae-content .wp-block-post-featured-image img {width: 110px; height: 62px; object-fit: cover}
.wp-block-latest-posts li {border-bottom: 1px solid var(--wp--preset--color--purple-light); padding: .6em 0; list-style: none}
.wp-block-latest-posts li:last-child {border-bottom: none}
.wp-block-latest-posts a {color: var(--wp--preset--color--text-medium); font-size: .9rem; transition: color .3s ease}
.wp-block-latest-posts a:hover {color: var(--wp--preset--color--purple-dark)}

/* Sommaire */
.ae-toc ul {list-style: none; padding: 0 0 0 1.3em; margin: 0}
.ae-toc li {padding: .3em 0; border-bottom: 1px solid var(--wp--preset--color--purple-light)}
.ae-toc li:last-child {border-bottom: none}
.ae-toc a {color: var(--wp--preset--color--text-dark); font-size: .875rem; transition: color .3s ease}
.ae-toc a:hover {color: var(--wp--preset--color--purple-dark)}

/* Footer */
.wp-block-template-part[data-slug="footer"], footer.wp-block-template-part {background: var(--wp--preset--color--purple-dark); border-top: none; color: var(--wp--preset--color--white)}
.ae-footer-main {padding: var(--wp--preset--spacing--lg) 0}
.ae-footer-main .wp-social-link a {transition: opacity .3s ease}
.ae-footer-main .wp-social-link a:hover {opacity: .8}
footer .wp-block-site-logo, .wp-block-template-part[data-slug="footer"] .wp-block-site-logo {margin-bottom: var(--wp--preset--spacing--md)}
footer .wp-block-site-logo img, .wp-block-template-part[data-slug="footer"] .wp-block-site-logo img {width: 200px; max-width: 100%; height: auto}
.ae-footer-content h2 {font-size: var(--wp--preset--font-size--xxl); line-height: 1.25; margin-bottom: .6em; color: var(--wp--preset--color--white)}
.ae-footer-content h2::after {display: block; content: ""; width: 50px; height: 3px; background: var(--wp--preset--color--purple); margin: .6em 0}
.ae-footer-content p {color: var(--wp--preset--color--cream); font-size: .875rem; line-height: 1.65}
.ae-footer-content p:not(:last-child) {margin-bottom: 1em}
.ae-footer-content p a {color: var(--wp--preset--color--white); text-decoration: underline; text-decoration-color: var(--wp--preset--color--purple); text-underline-offset: 3px; transition: text-decoration-color .3s ease}
.ae-footer-content p a:hover {text-decoration-color: var(--wp--preset--color--white)}
.ae-footer-content .wp-block-site-title {font-size: var(--wp--preset--font-size--xxl); font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 700; line-height: 1.25; margin-bottom: .6em; color: var(--wp--preset--color--white)}
.ae-footer-content .wp-block-site-title::after {display: block; content: ""; width: 50px; height: 3px; background: var(--wp--preset--color--purple); margin: .6em 0}
.ae-footer-copyright {padding: var(--wp--preset--spacing--sm) 0; border-top: 1px solid rgba(255,255,255,.2); gap: var(--wp--preset--spacing--md)}
.ae-footer-copyright p {font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .875rem; color: var(--wp--preset--color--cream); letter-spacing: .03em}
.ae-footer-copyright p a {color: var(--wp--preset--color--white); text-decoration: underline; text-underline-offset: 3px; transition: text-decoration-color .3s ease}
.ae-footer-copyright p a:hover {text-decoration-color: transparent}
.ae-footer-copyright .wp-block-navigation a {font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .875rem; color: var(--wp--preset--color--cream) !important; letter-spacing: .03em; text-decoration: underline; text-underline-offset: 3px; padding: 0; transition: color .3s ease}
.ae-footer-copyright .wp-block-navigation a:hover {color: var(--wp--preset--color--white) !important}
.ae-footer-copyright .wp-block-navigation {gap: var(--wp--preset--spacing--sm)}

/* Back to top */
#back-to-top {position: fixed; bottom: 2rem; right: 2rem; width: 40px; height: 40px; min-width: 40px; min-height: 40px; padding: 0; background: var(--wp--preset--color--purple); color: var(--wp--preset--color--white); border: none; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s ease, background .3s ease; z-index: 999; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.15)}
#back-to-top.visible {opacity: 1; pointer-events: auto}
#back-to-top:hover {background: var(--wp--preset--color--purple-dark)}

/* Vidéos / iframes */
.wp-block-embed, .wp-block-video {margin: 1.5em auto; width: 100%; max-width: 100%}
.wp-block-embed__wrapper {position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; width: 100%}
.wp-block-embed__wrapper iframe {width: 100%; height: 100%; border-radius: 8px; position: absolute; top: 0; left: 0}
.entry-content p > iframe, .entry-content iframe {width: 100% !important; height: auto !important; aspect-ratio: 16/9; border-radius: 8px}
.entry-content iframe:not(.wp-block-embed__wrapper iframe) {display: block; margin: 0 auto}

/* Lightbox */
#tipi-lightbox {display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9999; align-items: center; justify-content: center; cursor: pointer; flex-direction: column}
#tipi-lightbox.active {display: flex}
#tipi-lightbox figure {position: relative; margin: 0; text-align: center; cursor: default}
#tipi-lightbox img {max-width: 90vw; max-height: 80vh; border-radius: 8px; display: block; box-shadow: 0 0 40px rgba(0,0,0,.8)}
#tipi-lightbox figcaption {color: var(--wp--preset--color--white); font-size: .9rem; text-align: center; margin-top: .6em; opacity: .8}
#tipi-lightbox-close {position: absolute; top: 1rem; right: 1.2rem; color: var(--wp--preset--color--white); font-size: 2rem; line-height: 1; cursor: pointer; background: none; border: none; padding: 0; opacity: .7; transition: opacity .2s}
#tipi-lightbox-close:hover {opacity: 1}
#tipi-lightbox-prev, #tipi-lightbox-next {position: absolute; top: 50%; transform: translateY(-50%); color: var(--wp--preset--color--white); font-size: 3rem; line-height: 1; cursor: pointer; background: none; border: none; padding: 0 1rem; opacity: .6; transition: opacity .2s; z-index: 10000}
#tipi-lightbox-prev {left: 0}
#tipi-lightbox-next {right: 0}
#tipi-lightbox-prev:hover, #tipi-lightbox-next:hover {opacity: 1}

/* CF7 */
.wpcf7-form textarea, .wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form input[type="tel"] {display: block; width: 100%; padding: .6em .9em !important; background: var(--wp--preset--color--white) !important; border: 1px solid var(--wp--preset--color--purple-light) !important; color: var(--wp--preset--color--text-dark) !important; border-radius: 6px !important; font-size: 1rem; line-height: 1.5; box-shadow: none !important; transition: border-color .3s, box-shadow .3s}
.wpcf7-form textarea::placeholder, .wpcf7-form input::placeholder {color: var(--wp--preset--color--text-light); opacity: 1}
.wpcf7-form textarea:focus, .wpcf7-form input[type="text"]:focus, .wpcf7-form input[type="email"]:focus, .wpcf7-form input[type="tel"]:focus {background: var(--wp--preset--color--white) !important; border-color: var(--wp--preset--color--purple) !important; box-shadow: 0 0 0 1px var(--wp--preset--color--purple) !important; outline: none; color: var(--wp--preset--color--text-dark) !important}
input.wpcf7-submit {display: block; margin: 0 auto; background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white); border: none; border-radius: 6px; padding: .7em 1.8em; font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 700; letter-spacing: .03em; cursor: pointer; transition: background .3s ease}
input.wpcf7-submit:hover {background: var(--wp--preset--color--plum-dark)}
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wpcf7 form .wpcf7-response-output {margin: 1.3em 0; padding: .9em 1.5em; border-radius: 6px; color: var(--wp--preset--color--plum-dark); border: 1px solid var(--wp--preset--color--plum-dark)}
.wpcf7 form.sent .wpcf7-response-output {border-color: var(--wp--preset--color--gold); color: var(--wp--preset--color--gold)}
.wpcf7 form.sent h2, .wpcf7 form.sent p {display: none}
span.wpcf7-not-valid-tip {color: var(--wp--preset--color--plum-dark); font-size: .85rem; padding-top: var(--wp--preset--spacing--sm)}

/* Pagination */
.wp-block-query-pagination {gap: .4em}
.wp-block-query-pagination .page-numbers {background: var(--wp--preset--color--white); color: var(--wp--preset--color--text-dark); padding: .4em .8em; border-radius: 6px; font-family: 'Trebuchet MS', Verdana, sans-serif; font-size: .875rem; font-weight: 700; transition: background .3s ease, color .3s ease; border: 1px solid var(--wp--preset--color--purple-light)}
.wp-block-query-pagination .page-numbers:hover {background: var(--wp--preset--color--ci); color: var(--wp--preset--color--purple-dark)}
.wp-block-query-pagination .page-numbers.current {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--purple-dark)}

/* Accessibilité */
:focus-visible {outline: 2px solid var(--wp--preset--color--purple); outline-offset: 2px}
.screen-reader-text {border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px}

/* =============================================
   Front-page : Hero
   ============================================= */
.ae-hero-cover {padding-top: var(--wp--preset--spacing--xxl); padding-bottom: var(--wp--preset--spacing--xxl)}
.ae-hero-subtitle {color: var(--wp--preset--color--ci); font-size: var(--wp--preset--font-size--sm); margin-bottom: 0}
.ae-hero-title {color: var(--wp--preset--color--white)}
.ae-hero-desc {color: var(--wp--preset--color--white)}
.ae-btn-white .wp-block-button__link {color: var(--wp--preset--color--white); border-color: var(--wp--preset--color--white); border-width: 2px}
.ae-btn-white .wp-block-button__link:hover {background: var(--wp--preset--color--white); color: var(--wp--preset--color--purple-dark)}

/* Front-page : Slogan */
.ae-slogan {padding-top: var(--wp--preset--spacing--lg); padding-bottom: var(--wp--preset--spacing--lg)}
.ae-slogan-text {font-family: 'Caveat', cursive; font-size: 1.8rem; color: var(--wp--preset--color--purple-dark)}

/* Front-page : Sections */
.ae-section {padding-top: var(--wp--preset--spacing--xl); padding-bottom: var(--wp--preset--spacing--xl)}
.ae-section-subtitle {color: var(--wp--preset--color--text-medium)}
.ae-section-cta {margin-top: var(--wp--preset--spacing--lg)}
.ae-highlight-purple {color: var(--wp--preset--color--purple-dark)}
.ae-rounded-img img {border-radius: 12px}

/* Front-page : Stats */
.ae-stats {gap: var(--wp--preset--spacing--md)}
.ae-stat-number {font-size: var(--wp--preset--font-size--xxl); font-weight: 700; line-height: 1.2; margin-bottom: 0}
.ae-stat-purple {color: var(--wp--preset--color--purple-dark)}
.ae-stat-green {color: var(--wp--preset--color--olive)}
.ae-stat-label {font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-medium)}

/* Front-page : Audience */
.ae-audience-list {display: flex; flex-direction: column; gap: var(--wp--preset--spacing--xs)}
.ae-audience-pro {color: var(--wp--preset--color--purple-dark); font-size: var(--wp--preset--font-size--md); font-weight: 700; margin-bottom: 0}
.ae-audience-public {color: var(--wp--preset--color--olive); font-size: var(--wp--preset--font-size--md); font-weight: 700; margin-bottom: 0}
.ae-audience-detail {font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--text-medium); margin-bottom: var(--wp--preset--spacing--sm)}

/* Cards : égalisation hauteur */
.wp-block-columns:has(.ae-card) {align-items: stretch}
.wp-block-columns:has(.ae-card) > .wp-block-column {display: flex; flex-direction: column}
.ae-card {flex: 1; display: flex; flex-direction: column}

/* Front-page : Cards formations */
.ae-card {padding: var(--wp--preset--spacing--md); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.1); transition: transform .3s ease, box-shadow .3s ease}
.ae-card:hover {transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.2)}
.ae-card-icon {font-size: var(--wp--preset--font-size--display); line-height: 1; margin-bottom: 0}

/* Front-page : Blog cards */
.ae-blog-card {border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); transition: transform .3s ease, box-shadow .3s ease}
.ae-blog-card:hover {transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.1)}
.ae-blog-card-img img {border-radius: 0; margin-bottom: 0}
.ae-blog-card-body {padding: var(--wp--preset--spacing--sm)}
.ae-blog-card-body .wp-block-post-title {font-size: var(--wp--preset--font-size--base)}
.ae-blog-card-body .wp-block-post-title a {color: var(--wp--preset--color--text-dark); transition: color .3s ease}
.ae-blog-card-body .wp-block-post-title a:hover {color: var(--wp--preset--color--purple-dark)}
.ae-blog-card-body .wp-block-post-date {color: var(--wp--preset--color--text-light); font-size: var(--wp--preset--font-size--sm)}

/* Single : Post meta */
.ae-post-meta {gap: var(--wp--preset--spacing--xs)}
.ae-meta-sep {color: var(--wp--preset--color--text-light)}
.ae-post-meta .wp-block-post-date {color: var(--wp--preset--color--text-light)}
.ae-post-meta .wp-block-post-author {color: var(--wp--preset--color--text-dark)}
.ae-post-meta .wp-block-post-author a {color: var(--wp--preset--color--text-dark); transition: color .3s ease}
.ae-post-meta .wp-block-post-author a:hover {color: var(--wp--preset--color--purple-dark)}

/* Footer : structure */
.ae-footer {padding-top: 0; padding-bottom: 0}
.ae-footer-heading {color: var(--wp--preset--color--white); font-size: var(--wp--preset--font-size--lg); margin-bottom: var(--wp--preset--spacing--sm)}
.ae-footer-heading::after {display: none}
.ae-footer-desc {color: var(--wp--preset--color--cream); font-size: var(--wp--preset--font-size--sm)}
.ae-footer-brand {text-align: center}
.ae-footer-social {margin-top: var(--wp--preset--spacing--sm)}
.ae-footer-newsletter-label {color: var(--wp--preset--color--cream); font-size: var(--wp--preset--font-size--sm)}
.ae-footer-search .wp-block-search__input {background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: var(--wp--preset--color--white)}
.ae-footer-search .wp-block-search__input::placeholder {color: var(--wp--preset--color--cream)}
.ae-footer-search .wp-block-search__button {background: var(--wp--preset--color--purple)}
.ae-footer-search .wp-block-search__button:hover {background: var(--wp--preset--color--plum-dark)}

/* 404 */
.ae-404 {min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--wp--preset--color--ci) 0%, var(--wp--preset--color--cream) 50%, var(--wp--preset--color--sha) 100%); padding: var(--wp--preset--spacing--lg)}
.ae-404-content {text-align: center; max-width: 500px}
.ae-404-code {font-size: clamp(48px, 10vw, 80px); font-weight: 700; color: var(--wp--preset--color--purple); font-family: 'Trebuchet MS', Verdana, sans-serif; line-height: 1; margin-bottom: var(--wp--preset--spacing--sm)}
.ae-404-title {font-size: var(--wp--preset--font-size--xl); font-family: 'Trebuchet MS', Verdana, sans-serif; color: var(--wp--preset--color--text-dark)}
.ae-404-desc {color: var(--wp--preset--color--text-medium); line-height: 1.8}
.ae-404-signature {font-family: 'Caveat', cursive; font-size: 1.3rem; color: var(--wp--preset--color--purple); margin-top: var(--wp--preset--spacing--lg)}

/* WooCommerce (si activé) */
.woocommerce .price {color: var(--wp--preset--color--purple-dark); font-family: 'Trebuchet MS', Verdana, sans-serif; font-weight: 700}
.woocommerce .button, .woocommerce a.button {background: var(--wp--preset--color--purple-dark); color: var(--wp--preset--color--white); border-radius: 6px; transition: background .3s ease}
.woocommerce .button:hover, .woocommerce a.button:hover {background: var(--wp--preset--color--plum-dark); color: var(--wp--preset--color--white)}

/* =============================================
   Accents par section CI / SHA
   ============================================= */
/* Communication Intuitive : barres décoratives */
.ae-section-ci h1::after,
.ae-section-ci .entry-content h2:not(.wp-block-post-title)::after,
.ae-section-ci .entry-content h3:not(.wp-block-post-title, .wp-block-accordion-heading)::after {background: var(--wp--preset--color--ci)}
.ae-section-ci blockquote::before, .ae-section-ci .wp-block-quote::before {color: var(--wp--preset--color--ci)}
.ae-section-ci .wp-block-accordion {border-left-color: var(--wp--preset--color--ci)}
.ae-section-ci :focus-visible {outline-color: var(--wp--preset--color--ci)}
/* CI : liens contenu */
.ae-section-ci .entry-content p a, .ae-section-ci .wp-block-post-content p a,
.ae-section-ci .entry-content ul li a, .ae-section-ci .entry-content ol li a {text-decoration-color: var(--wp--preset--color--ci)}
.ae-section-ci .entry-content p a:hover, .ae-section-ci .wp-block-post-content p a:hover,
.ae-section-ci .entry-content ul li a:hover, .ae-section-ci .entry-content ol li a:hover {color: var(--wp--preset--color--purple-dark); text-decoration-color: var(--wp--preset--color--purple-dark)}
/* CI : boutons par défaut dans la section */
.ae-section-ci .wp-block-button:not(.is-style-outline):not(.is-style-sha) .wp-block-button__link {background: var(--wp--preset--color--ci); color: var(--wp--preset--color--text-dark)}
.ae-section-ci .wp-block-button:not(.is-style-outline):not(.is-style-sha) .wp-block-button__link:hover {background: var(--wp--preset--color--purple); color: var(--wp--preset--color--text-dark)}

/* Santé Holistique Animale : barres décoratives */
.ae-section-sha h1::after,
.ae-section-sha .entry-content h2:not(.wp-block-post-title)::after,
.ae-section-sha .entry-content h3:not(.wp-block-post-title, .wp-block-accordion-heading)::after {background: var(--wp--preset--color--sha)}
.ae-section-sha blockquote::before, .ae-section-sha .wp-block-quote::before {color: var(--wp--preset--color--sha)}
.ae-section-sha .wp-block-accordion {border-left-color: var(--wp--preset--color--sha)}
.ae-section-sha :focus-visible {outline-color: var(--wp--preset--color--sha)}
/* SHA : liens contenu */
.ae-section-sha .entry-content p a, .ae-section-sha .wp-block-post-content p a,
.ae-section-sha .entry-content ul li a, .ae-section-sha .entry-content ol li a {text-decoration-color: var(--wp--preset--color--sha)}
.ae-section-sha .entry-content p a:hover, .ae-section-sha .wp-block-post-content p a:hover,
.ae-section-sha .entry-content ul li a:hover, .ae-section-sha .entry-content ol li a:hover {color: var(--wp--preset--color--olive); text-decoration-color: var(--wp--preset--color--olive)}
/* SHA : boutons par défaut dans la section */
.ae-section-sha .wp-block-button:not(.is-style-outline):not(.is-style-ci) .wp-block-button__link {background: var(--wp--preset--color--sha); color: var(--wp--preset--color--text-dark)}
.ae-section-sha .wp-block-button:not(.is-style-outline):not(.is-style-ci) .wp-block-button__link:hover {background: var(--wp--preset--color--olive); color: var(--wp--preset--color--text-dark)}

/* Responsive */
@media screen and (max-width: 782px) {
	.admin-bar .wp-block-template-part[data-slug="header"], .admin-bar header.wp-block-template-part {top: 46px}
	.wp-block-template-part[data-slug="header"] .wp-block-site-logo img, header.wp-block-template-part .wp-block-site-logo img {width: 150px}
	footer .wp-block-site-logo img, .wp-block-template-part[data-slug="footer"] .wp-block-site-logo img {width: 150px}
	.wp-block-site-logo img {max-width: 100%; height: auto}
	.wp-block-site-logo {overflow: visible; flex-shrink: 1; min-width: 0}
	.wp-block-site-logo a {display: inline-block}
	.wp-block-template-part[data-slug="header"] .alignwide, header.wp-block-template-part .alignwide, .wp-block-template-part[data-slug="footer"] .alignwide, footer.wp-block-template-part .alignwide {padding-left: var(--wp--preset--spacing--sm); padding-right: var(--wp--preset--spacing--sm); box-sizing: border-box; max-width: 100%}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {text-align: center}
	.ae-author-box h1::after {margin-left: auto; margin-right: auto}
	.wp-block-query {grid-template-columns: 1fr}
	.wp-block-post-navigation-link a {font-size: .8rem}
	.ae-author-box {flex-direction: column; align-items: center; text-align: center}
	.ae-author-links {justify-content: center}
	#tipi-lightbox img {max-width: 80vw}
	#tipi-lightbox-prev, #tipi-lightbox-next {font-size: 2rem}
	#back-to-top {bottom: 1rem; right: 1rem}
	.ae-footer-copyright {flex-direction: column; align-items: center}
	.ae-footer-copyright .wp-block-navigation a {text-decoration: none}
	.ae-footer-copyright .wp-block-navigation a:hover {text-decoration: none}
}

@media screen and (max-width: 480px) {
	h1, .wp-block-post-title {font-size: 1.875rem}
	h2 {font-size: 1.5rem}
}
