/* Lemowise Agence — page d'accueil. Couleurs et polices : thème parent (theme.json). */

/* En-tête */
:root { --ag-header-h: 4.5rem; }
.ag-header { position: relative; z-index: 5; display: grid; align-items: center; height: var(--ag-header-h); box-sizing: border-box; padding: 0 var(--wp--preset--spacing--40); border-bottom: 1px solid var(--wp--preset--color--border); background: var(--ag-header-bg, var(--wp--preset--color--base)); transition: background-color 0.25s ease; }
.ag-header > * { width: 100%; }
.home .ag-header { border-bottom-color: transparent; }
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: 32px; }
.ag-main { margin-block-start: 0 !important; }
.ag-header__inner { gap: 1.5rem; }
.ag-header__cta .wp-block-button__link { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.ag-section .wp-block-button__link { padding: 0.7rem 1.3rem; font-size: 0.9375rem; }
@media (max-width: 781px) { .ag-header .ag-header__cta { display: none !important; } }
/* Lien « Contact » du menu : redondant avec le bouton « Prendre contact » sur grand écran (le
   bouton est caché en dessous de 782px, ci-dessus). En dessous, on le garde : c'est alors la
   seule porte d'entrée vers le contact, dans le menu déroulant mobile. */
@media (min-width: 782px) { .ag-header .wp-block-navigation-item:has(> a[href="/#contact"]) { display: none; } }

/* Sections */
html { scroll-behavior: smooth; }
.ag-section { padding: clamp(3.5rem, 7vw, 6rem) var(--wp--preset--spacing--40); scroll-margin-top: 1rem; }
.ag-section--sand { background: var(--wp--preset--color--surface); }
.ag-section--flush { padding-top: 0; }
.ag-section :where(.is-layout-flow) > * { margin-block: 0; }
.ag-h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.ag-h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
.ag-lead { font-size: 1.0625rem; color: var(--wp--preset--color--contrast-2); max-width: 34rem; margin: 0; }
.ag-muted { color: var(--wp--preset--color--contrast-2); font-size: 0.9375rem; line-height: 1.6; margin: 0; }
.ag-head { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: clamp(2rem, 4vw, 3rem) !important; max-width: 44rem; }
.ag-head--split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.ag-head > *, .ag-hero__text > * { margin: 0 !important; }
.ag-link { font-weight: 600; font-size: 0.9375rem; margin: 0; }
.ag-link a { text-decoration: none; }

/* Hero : plein écran, l'en-tête est posé dessus */
.ag-hero { margin-top: calc(var(--ag-header-h) * -1) !important; padding: 0; }
.ag-hero .ag-hero__panel { max-width: none; margin: 0; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; box-sizing: border-box; min-height: 100vh; min-height: 100svh; padding-top: var(--ag-header-h); overflow: hidden; background-color: var(--wp--preset--color--surface); background-image: radial-gradient(rgb(16 51 63 / 0.1) 1px, transparent 1px); background-size: 22px 22px; }
.ag-hero__text { display: flex; flex-direction: column; align-items: flex-start; align-self: center; gap: 1.25rem; padding: 2rem 4rem 2rem max(1.5rem, calc((100vw - 1200px) / 2)); }
.ag-hero__text > * { margin: 0 !important; }
.ag-hero__img { align-self: center; margin: 0 !important; }
.ag-hero__img img { display: block; width: 100%; max-width: none; height: auto; border-radius: 14px 0 0 14px; box-shadow: 0 30px 60px -24px rgb(16 51 63 / 0.45); }

/* Retour arrière : on rétablit l'état sans animation */
.ag-restoring *, .ag-restoring *::before, .ag-restoring *::after { transition: none !important; animation: none !important; }

/* Invitation à défiler */
.ag-hero__panel { position: relative; }
.ag-scroll { position: absolute; left: 50%; bottom: 1.75rem; width: 2.5rem; height: 2.5rem; margin-left: -1.25rem; display: block; border: 1.5px solid rgb(16 51 63 / 0.35); border-radius: 50%; background: rgb(255 255 255 / 0.5); animation: ag-nudge 2.4s ease-in-out infinite; transition: border-color 0.2s ease, background-color 0.2s ease; }
.ag-scroll::before { content: ""; position: absolute; left: 50%; top: 50%; width: 0.6rem; height: 0.6rem; margin: -0.5rem 0 0 -0.3rem; border-right: 2px solid var(--wp--preset--color--primary); border-bottom: 2px solid var(--wp--preset--color--primary); transform: rotate(45deg); }
.ag-scroll:hover, .ag-scroll:focus-visible { border-color: var(--wp--preset--color--primary); background: #fff; }
@keyframes ag-nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ag-scroll { animation: none; } }
.admin-bar .ag-scroll { bottom: calc(1.75rem + 32px); }
@media (max-width: 900px) { .ag-scroll { display: none; } }

/* Grilles et cartes */
.ag-grid { display: grid; gap: 1.5rem; align-items: stretch; }
.ag-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-card { display: flex; flex-direction: column; gap: 1rem; height: 100%; padding: 1.5rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--base); }
.ag-card.ag-card { box-sizing: border-box; }
.wp-block-group.ag-card > * { margin: 0; }
.ag-card h3 { font-size: 1.1rem; line-height: 1.3; }
.ag-tag { font-size: 0.8rem; letter-spacing: 0.02em; color: var(--wp--preset--color--contrast-2); margin-top: -0.75rem !important; }
.wp-block-list.ag-list { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.ag-list li { list-style: none; padding: 0.6rem 0; border-top: 1px solid var(--wp--preset--color--border); }
.ag-list li:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.ag-card .wp-block-buttons { margin-top: auto !important; padding-top: 0.5rem; }
.ag-card:has(.ag-featured) { border-color: var(--wp--preset--color--accent); box-shadow: 0 24px 48px -28px rgb(16 51 63 / 0.35); }

/* Ligne boutique */
.ag-row { display: grid; grid-template-columns: 26% 1fr auto; gap: 2rem; align-items: baseline; margin-top: 2.5rem !important; padding: 1.5rem 0; border-top: 1px solid var(--wp--preset--color--border); }
.ag-row > * { margin: 0 !important; }
.ag-row h3 { font-size: 1rem; }

/* Panneaux prusse */
.ag-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: clamp(2.5rem, 5vw, 4rem) !important; padding: clamp(2rem, 4vw, 3rem); border-radius: 14px; background: var(--wp--preset--color--primary); color: #e8e2d4; }
.ag-panel > .wp-block-group > * + * { margin-top: 1rem; }
.ag-panel h2, .ag-panel .ag-h2 { color: #fff; }
.ag-panel .lemo-eyebrow { color: #c9c2b0; }
.ag-panel p { color: #d9d3c4; }
.ag-panel__label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #c9c2b0 !important; }
.wp-block-list.ag-list--light { margin: 0; }
.ag-list--light li { padding: 0.85rem 0; color: #e8e2d4; border-top: 1px solid rgb(232 226 212 / 0.18); }
.ag-list--light li:last-child { border-bottom: 1px solid rgb(232 226 212 / 0.18); }
.ag-panel--cta { grid-template-columns: 1fr auto; margin-top: 0 !important; }
.ag-btn-light .wp-block-button__link { background: #e8e2d4; color: var(--wp--preset--color--primary); }
.ag-btn-light .wp-block-button__link:hover { background: #fff; }

/* Démarche */
.ag-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.ag-split__side { position: sticky; top: calc(var(--ag-header-h) + 2rem); display: flex; flex-direction: column; gap: 0.75rem; }
.ag-split__side > * { margin: 0 !important; }
.ag-step { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--wp--preset--color--border); }
.ag-step:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.ag-step > * { margin: 0 !important; }
.ag-step h3 { display: flex; gap: 0.75rem; font-size: 1rem; line-height: 1.4; }
.ag-step__n { display: inline-block; min-width: 2rem; font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.06em; color: var(--wp--preset--color--contrast-2); }

/* Actualités */
.ag-posts { gap: 2rem; }
.ag-posts > li > * + * { margin-top: 0.6rem; }
.ag-posts .wp-block-post-title { font-size: 1.05rem; line-height: 1.3; margin-block: 0; }
.ag-posts .wp-block-post-title a { text-decoration: none; }

/* Pied de page */
.ag-footer { padding: 3rem var(--wp--preset--spacing--40); }
.ag-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.ag-footer__brand > * + * { margin-top: 0.75rem; }
.ag-footer__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.ag-footer__links p { margin: 0; }
.ag-footer__links a { text-decoration: none; }

/* Tablette et mobile */
@media (max-width: 900px) {
	.ag-hero .ag-hero__panel, .ag-panel, .ag-panel--cta, .ag-split { grid-template-columns: 1fr; }
	.ag-hero .ag-hero__panel { min-height: 0; padding-bottom: 2rem; }
	.ag-hero__text { padding: 2rem clamp(1.5rem, 5vw, 4.5rem) 0; }
	.ag-split__side { position: static; }
	.ag-step { grid-template-columns: 1fr; gap: 0.4rem; }
	.ag-hero__img { margin-top: 1.75rem !important; padding-left: clamp(1.5rem, 5vw, 4.5rem); }
	.ag-hero__img img { width: 100%; border-radius: 12px; }
	.ag-grid--3 { grid-template-columns: 1fr; }
	.ag-row { grid-template-columns: 1fr; gap: 0.5rem; }
}
.ag-section .wp-block-button:not(.is-style-outline) .wp-block-button__link { border: 2px solid transparent; }

/* Hero : textes plus grands */
.ag-hero .ag-h1 { font-size: clamp(2.1rem, 3.5vw, 2.9rem); line-height: 1.06; }
.ag-hero .ag-lead { font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.55; max-width: 30rem; }
.ag-hero .wp-block-button__link { padding: 0.75rem 1.4rem; font-size: 0.9375rem; }
.ag-hero__text { gap: 1.5rem; }

/* Offres : deux colonnes repliables */
.ag-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.ag-offer { display: flex; flex-direction: column; gap: 1.1rem; padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--wp--preset--color--border); border-radius: 14px; background: var(--wp--preset--color--base); }
.wp-block-group.ag-offer > * { margin: 0; }
.ag-offer h3 { font-size: 1.25rem; line-height: 1.25; }
.ag-offer--dark { border-color: transparent; background: var(--wp--preset--color--primary); color: #e8e2d4; }
.ag-offer--dark h3 { color: #fff; }
.ag-offer--dark p { color: #d9d3c4; }
.ag-offer .wp-block-buttons { margin-top: 0.5rem !important; }
.ag-offer .wp-block-details { margin: 0; }
.ag-offer .wp-block-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--wp--preset--color--border); border-radius: 10px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); font-size: 0.9375rem; font-weight: 600; list-style: none; cursor: pointer; }
.ag-offer .wp-block-details > summary::-webkit-details-marker { display: none; }
.ag-offer .wp-block-details > summary::after { content: "+"; font-size: 1.25rem; font-weight: 400; line-height: 1; }
.ag-offer .wp-block-details[open] > summary::after { content: "–"; }
.ag-offer .wp-block-details > summary:hover { border-color: var(--wp--preset--color--primary); }
.ag-offer .wp-block-details > *:not(summary) { margin-top: 0; }
.ag-offer .wp-block-details[open] > summary { margin-bottom: 0.5rem; }
.ag-offer--dark .wp-block-details > summary { border-color: rgb(232 226 212 / 0.25); background: rgb(255 255 255 / 0.06); color: #fff; }
.ag-offer--dark .wp-block-details > summary:hover { border-color: #e8e2d4; }
.ag-formula { padding: 1rem 0.25rem; border-top: 1px solid var(--wp--preset--color--border); }
.ag-formula > * { margin: 0 !important; }
.ag-formula > * + * { margin-top: 0.3rem !important; }
.ag-formula h4 { font-size: 1rem; }
.ag-fine { font-size: 0.8125rem; color: var(--wp--preset--color--contrast-2); }
.ag-offer--dark .ag-step { grid-template-columns: 1fr; gap: 0.3rem; padding: 1rem 0.25rem; border-top-color: rgb(232 226 212 / 0.18); }
.ag-offer--dark .ag-step:last-child { border-bottom: 0; }
.ag-offer--dark .ag-step h3 { font-size: 0.95rem; color: #fff; }
.ag-offer--dark .ag-step .ag-muted { color: #d9d3c4; font-size: 0.875rem; }
.ag-offer--dark .ag-step__n { color: #c9c2b0; }
@media (max-width: 900px) { .ag-offers { grid-template-columns: 1fr; } }
.ag-offer--dark > p { font-size: 0.9375rem; line-height: 1.6; }

/* Offres : version calme (repliée) */
.ag-offers { align-items: stretch; }
.ag-offer { gap: 1.25rem; padding: clamp(1.75rem, 3vw, 2.5rem); }
.ag-offer h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.wp-block-list.ag-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.ag-chips li { list-style: none; padding: 0.3rem 0.8rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; font-size: 0.8125rem; color: var(--wp--preset--color--primary); }
.ag-offer--dark .ag-chips li { border-color: rgb(232 226 212 / 0.28); color: #e8e2d4; }
.ag-offer .wp-block-buttons { margin-top: auto !important; padding-top: 0.75rem; }
.ag-offer .wp-block-details > summary { padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.9375rem; }
.ag-offer .wp-block-details > summary:hover { border-color: transparent; text-decoration-color: currentColor; }
.ag-offer .wp-block-details[open] > summary { margin-bottom: 0.75rem; }
.ag-offer--dark .wp-block-details > summary { border: 0; background: none; color: #fff; text-decoration-color: rgb(232 226 212 / 0.4); }
.ag-offer--dark .wp-block-details > summary:hover { border-color: transparent; text-decoration-color: #fff; }
.ag-offer .wp-block-details > summary::after { font-size: 1.1rem; text-decoration: none; }
.ag-offer .wp-block-details > summary { display: inline-flex; justify-content: flex-start; gap: 0.6rem; text-decoration: none; }
.ag-offer .wp-block-details > summary { background-image: linear-gradient(currentColor, currentColor); background-size: 0 0; }
.ag-offer .wp-block-details > summary::after { display: inline-block; text-decoration: none; }
.ag-offers { align-items: start; }
.ag-offer .wp-block-buttons { margin-top: 0 !important; }

/* Offres : deux grandes cartes, puis le contenu s'ouvre dans un cadre */
.ag-tabs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ag-tabs .ag-tab { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; padding: 1.25rem; border: 1px solid var(--wp--preset--color--border); border-radius: 18px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); font: inherit; text-align: left; cursor: pointer; transition: padding 0.4s ease, border-color 0.2s, background-color 0.3s, color 0.3s, transform 0.25s, box-shadow 0.25s; }
.ag-tabs .ag-tab:hover { border-color: var(--wp--preset--color--primary); }
.ag-tabs:not(.is-compact) .ag-tab:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgb(16 51 63 / 0.4); }
.ag-tab__visual { display: grid; grid-template-rows: 1fr; width: 100%; margin-bottom: 0.75rem; transition: grid-template-rows 0.4s ease, margin 0.4s ease, opacity 0.3s ease; }
.ag-tab__visual-in { display: block; min-height: 0; overflow: hidden; border-radius: 12px; background: var(--wp--preset--color--surface); }
.ag-tab__visual svg { display: block; width: 100%; height: auto; }
.ag-tab__title { font-family: var(--wp--preset--font-family--heading); font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.ag-tab__text { font-size: 0.9375rem; line-height: 1.5; color: var(--wp--preset--color--contrast-2); transition: color 0.3s; }
.ag-tab__cta { display: inline-flex; gap: 0.5rem; margin-top: 0.5rem; font-size: 0.9375rem; font-weight: 600; transition: opacity 0.25s ease, max-height 0.4s ease; max-height: 2rem; overflow: hidden; }
.ag-tab__cta::after { content: "→"; transition: transform 0.2s; }
.wp-block-group.ag-tab > * { margin: 0; }
.ag-tab { text-align: left; }
.ag-tab__title { color: inherit !important; }
.ag-tab__cta { color: var(--wp--preset--color--primary); }
.ag-tabs .ag-tab.is-active .ag-tab__cta { color: #fff; }
.ag-tabs .ag-tab:hover .ag-tab__cta::after { transform: translateX(4px); }
/* Après le choix : les cartes se resserrent */
.ag-tabs.is-compact .ag-tab { padding: 1.1rem 1.3rem; }
.ag-tabs.is-compact .ag-tab__visual { grid-template-rows: 0fr; margin-bottom: 0; opacity: 0; }
.ag-tabs.is-compact .ag-tab__cta { max-height: 0; opacity: 0; margin-top: 0; }
.ag-tabs.is-compact .ag-tab__title { font-size: 1.15rem; }
.ag-tabs .ag-tab.is-active { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }
.ag-tabs .ag-tab.is-active .ag-tab__text { color: #d9d3c4; }
.ag-tabs.is-compact .ag-tab:not(.is-active):hover { background: var(--wp--preset--color--surface); }

/* Le cadre du contenu */
.ag-tabpanel { position: relative; margin-top: 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--wp--preset--color--border); border-radius: 18px; background: var(--wp--preset--color--base); }
.ag-js .ag-tabpanel { display: none; margin-top: 1.5rem; box-shadow: 0 30px 50px -36px rgb(16 51 63 / 0.35); }
.ag-js .ag-tabpanel.is-active { display: block; animation: ag-open 0.45s ease both; }
.ag-js .ag-tabpanel::before { content: ""; position: absolute; top: -0.5rem; width: 0.9rem; height: 0.9rem; margin-left: -0.45rem; border-top: 1px solid var(--wp--preset--color--primary); border-left: 1px solid var(--wp--preset--color--primary); background: var(--wp--preset--color--base); transform: rotate(45deg); }
.ag-tabpanel--site::before { left: 25%; }
.ag-tabpanel--outil::before { left: 75%; }
@keyframes ag-open { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ag-tabs .ag-tab, .ag-tab__visual, .ag-tab__cta { transition: none; } .ag-js .ag-tabpanel.is-active { animation: none; } }
.ag-tabpanel .ag-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.ag-tabpanel .ag-split__side { position: static; align-items: flex-start; }
.ag-tabpanel .ag-split__side > * + * { margin-top: 0.25rem; }
.ag-tabpanel .ag-split .wp-block-buttons { margin-top: 0.75rem !important; }
@media (max-width: 900px) { .ag-tabs { grid-template-columns: 1fr; } .ag-tabpanel .ag-split { grid-template-columns: 1fr; } .ag-tabpanel--site::before, .ag-tabpanel--outil::before { display: none; } }

/* Offres : mouvement plus fluide et progressif */
.ag-js { --ag-ease: cubic-bezier(0.16, 1, 0.3, 1); }
.ag-tabs .ag-tab { transition: padding 0.7s var(--ag-ease), border-color 0.25s, background-color 0.4s var(--ag-ease), color 0.4s var(--ag-ease), transform 0.5s var(--ag-ease), box-shadow 0.5s var(--ag-ease), opacity 0.7s var(--ag-ease); }
.ag-tabs .ag-tab:active { transform: scale(0.985); }
.ag-tab__visual { transition: grid-template-rows 0.7s var(--ag-ease), margin 0.7s var(--ag-ease), opacity 0.4s ease; }
.ag-tab__cta { transition: opacity 0.3s ease, max-height 0.6s var(--ag-ease), margin 0.6s var(--ag-ease); }
.ag-tab__visual svg { transition: transform 0.9s var(--ag-ease); transform-origin: 50% 60%; }
.ag-tabs:not(.is-compact) .ag-tab:hover .ag-tab__visual svg { transform: scale(1.045); }

/* Arrivée des cartes à l'écran (une seule fois) */
.ag-js .ag-tabs:not(.is-in) .ag-tab { opacity: 0; transform: translateY(28px); }
.ag-js .ag-tabs.is-in .ag-tab { opacity: 1; transform: none; }
.ag-js .ag-tabs.is-in .ag-tab:nth-child(2) { transition-delay: 0.12s, 0s, 0s, 0s, 0s, 0.12s; }

/* Petites animations des illustrations au survol */
.ag-tab__visual .bar, .ag-tab__visual .line, .ag-tab__visual .tile { transform-box: fill-box; }
.ag-tab__visual .bar { transform-origin: 50% 100%; }
.ag-tab__visual .line, .ag-tab__visual .tile { transform-origin: 0 50%; }
.ag-tabs:not(.is-compact) .ag-tab:hover .bar { animation: ag-grow 0.9s var(--ag-ease) both; animation-delay: calc(var(--i) * 70ms); }
.ag-tabs:not(.is-compact) .ag-tab:hover .line { animation: ag-write 0.8s var(--ag-ease) both; animation-delay: calc(var(--i) * 90ms); }
.ag-tabs:not(.is-compact) .ag-tab:hover .tile { animation: ag-pop 0.7s var(--ag-ease) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes ag-grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes ag-write { from { transform: scaleX(0.4); } to { transform: scaleX(1); } }
@keyframes ag-pop { from { transform: translateY(6px) scale(0.92); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Le cadre se déroule, puis son contenu arrive en cascade */
.ag-js .ag-tabpanel.is-active { animation: ag-unroll 0.75s var(--ag-ease) both; transform-origin: 50% 0; }
@keyframes ag-unroll { from { opacity: 0; clip-path: inset(0 0 100% 0 round 18px); transform: translateY(-10px) scale(0.985); } to { opacity: 1; clip-path: inset(-1.5rem -1.5rem -3rem -1.5rem round 18px); transform: none; } }
.ag-js .ag-tabpanel.is-active .ag-card, .ag-js .ag-tabpanel.is-active .ag-row, .ag-js .ag-tabpanel.is-active .ag-split__side > *, .ag-js .ag-tabpanel.is-active .ag-step { animation: ag-rise 0.7s var(--ag-ease) both; }
.ag-js .ag-tabpanel.is-active .ag-card:nth-child(1), .ag-js .ag-tabpanel.is-active .ag-split__side > :nth-child(1), .ag-js .ag-tabpanel.is-active .ag-step:nth-child(1) { animation-delay: 0.18s; }
.ag-js .ag-tabpanel.is-active .ag-card:nth-child(2), .ag-js .ag-tabpanel.is-active .ag-split__side > :nth-child(2), .ag-js .ag-tabpanel.is-active .ag-step:nth-child(2) { animation-delay: 0.26s; }
.ag-js .ag-tabpanel.is-active .ag-card:nth-child(3), .ag-js .ag-tabpanel.is-active .ag-split__side > :nth-child(3), .ag-js .ag-tabpanel.is-active .ag-step:nth-child(3) { animation-delay: 0.34s; }
.ag-js .ag-tabpanel.is-active .ag-row, .ag-js .ag-tabpanel.is-active .ag-split__side > :nth-child(n+4), .ag-js .ag-tabpanel.is-active .ag-step:nth-child(4) { animation-delay: 0.42s; }
.ag-js .ag-tabpanel.is-active .ag-step:nth-child(5) { animation-delay: 0.5s; }
.ag-js .ag-tabpanel.is-active .ag-step:nth-child(6) { animation-delay: 0.58s; }
@keyframes ag-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
	.ag-js .ag-tabs:not(.is-in) .ag-tab { opacity: 1; transform: none; }
	.ag-tabs .ag-tab, .ag-tab__visual, .ag-tab__cta, .ag-tab__visual svg { transition: none; }
	.ag-tab__visual .bar, .ag-tab__visual .line, .ag-tab__visual .tile, .ag-js .ag-tabpanel.is-active, .ag-js .ag-tabpanel.is-active * { animation: none !important; }
}

/* Icône des cartes resserrées : pastille sable + pictogramme */
.ag-tab::before, .ag-tab::after { content: ""; position: absolute; left: 1.1rem; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; opacity: 0; transform: scale(0.6); transform-origin: 0 50%; pointer-events: none; transition: opacity 0.35s ease, transform 0.7s var(--ag-ease, ease); }
.ag-tab::before { border-radius: 12px; background: var(--wp--preset--color--surface); }
.ag-tab::after { background: var(--wp--preset--color--primary); -webkit-mask: var(--ag-ic) center / 1.55rem no-repeat; mask: var(--ag-ic) center / 1.55rem no-repeat; }
.ag-tab--site { --ag-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 9h18M7 6.5h.01M10 6.5h.01'/%3E%3C/svg%3E"); }
.ag-tab--outil { --ag-ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='2'/%3E%3Cpath d='M17.25 13.5v7.5M13.5 17.25H21'/%3E%3C/svg%3E"); }
.ag-tabs.is-compact .ag-tab { padding-left: 5.2rem; }
.ag-tabs.is-compact .ag-tab::before, .ag-tabs.is-compact .ag-tab::after { opacity: 1; transform: scale(1); transition-delay: 0.25s; }
/* Formules : pancartes de tarif */
.ag-tabpanel .ag-grid--3 { gap: 1.25rem; align-items: stretch; }
.ag-plan { display: flex; flex-direction: column; gap: 0; height: 100%; padding: 1.75rem; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: var(--wp--preset--color--base); }
.wp-block-group.ag-plan > * { margin: 0; }
.ag-plan__tag { align-self: flex-start; margin-bottom: 1rem !important; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.ag-plan h3 { font-size: 1.35rem; line-height: 1.2; }
.ag-plan__desc { min-height: 3.2em; margin-top: 0.5rem !important; color: var(--wp--preset--color--contrast-2); font-size: 0.9375rem; line-height: 1.55; }
.ag-plan__price { margin-top: 0.1rem !important; font-family: var(--wp--preset--font-family--heading); font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--wp--preset--color--primary); }
.ag-plan__note { margin-top: 0.25rem !important; color: var(--wp--preset--color--contrast-2); font-size: 0.8125rem; }
.ag-plan .wp-block-buttons { margin-top: 1.25rem !important; }
.ag-plan .wp-block-button, .ag-plan .wp-block-button__link { width: 100%; }
.ag-plan .wp-block-button__link { display: block; text-align: center; }
.wp-block-list.ag-plan__list { list-style: none; margin: 1.5rem 0 0 !important; padding: 1.25rem 0 0; border-top: 1px solid var(--wp--preset--color--border); display: flex; flex-direction: column; gap: 0.7rem; font-size: 0.9375rem; }
.ag-plan__list li { list-style: none; position: relative; padding-left: 1.6rem; }
.ag-plan__list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 0.7rem; height: 0.4rem; border-left: 1.8px solid var(--wp--preset--color--primary); border-bottom: 1.8px solid var(--wp--preset--color--primary); transform: rotate(-45deg); }
/* Pancarte mise en avant (DIY) */
.ag-plan--featured { border-color: transparent; background: var(--wp--preset--color--primary); color: #e8e2d4; box-shadow: 0 28px 50px -30px rgb(16 51 63 / 0.55); }
.ag-plan--featured h3, .ag-plan--featured .ag-plan__price { color: #fff; }
.ag-plan--featured .ag-plan__tag { background: rgb(255 255 255 / 0.12); color: #e8e2d4; }
.ag-plan--featured .ag-plan__desc, .ag-plan--featured .ag-plan__note { color: #d0d8da; }
.ag-plan--featured .ag-plan__list { border-top-color: rgb(232 226 212 / 0.2); }
.ag-plan--featured .ag-plan__list li::before { border-color: #e8e2d4; }
@media (max-width: 900px) { .ag-plan__desc { min-height: 0; } }

.ag-panelhead { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.75rem !important; }
.ag-panelhead > * { margin: 0 !important; }
.ag-plan__for { margin-top: 0.9rem !important; padding-left: 0.85rem; border-left: 2px solid var(--wp--preset--color--border); color: var(--wp--preset--color--primary); font-size: 0.875rem; line-height: 1.5; }
.ag-plan--featured .ag-plan__for { border-left-color: rgb(232 226 212 / 0.4); color: #e8e2d4; }
.ag-plan__for { min-height: 4.6rem; }
@media (max-width: 900px) { .ag-plan__for { min-height: 0; } }

.ag-plan__from { margin-top: 1.25rem !important; color: var(--wp--preset--color--contrast-2); font-size: 0.8125rem; }
.ag-plan--featured .ag-plan__from { color: #d0d8da; }

/* Pancarte : le bouton en bas, après ce qui est compris */
.ag-plan .wp-block-buttons { margin-top: auto !important; padding-top: 1.75rem; }
.wp-block-list.ag-plan__list { margin-bottom: 0 !important; }

.ag-plan__list strong { font-weight: 700; color: var(--wp--preset--color--primary); }
.ag-plan--featured .ag-plan__list strong { color: #fff; }
.ag-plan__list li { line-height: 1.45; }

/* Pancartes : les lignes s'alignent entre elles (étiquette, titre, texte, prix, liste, bouton) */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 901px) {
		.ag-tabpanel .ag-grid--3 { row-gap: 0; }
		.ag-plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; height: auto; }
		.ag-plan__tag { justify-self: start; }
		.ag-plan__desc { min-height: 0; }
		.ag-plan__for { min-height: 0; }
		.ag-plan .wp-block-buttons { align-self: end; margin-top: 0 !important; }
	}
}

/* Listes « Ce qui est inclus » / « Reste à votre charge » */
.ag-plan__label { margin: 1.5rem 0 0 !important; padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--contrast-2); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.wp-block-list.ag-plan__list { margin-top: 0.9rem !important; padding-top: 0; border-top: 0; }
.ag-plan__label--charge { margin-top: 1.5rem !important; }
.ag-plan__list--charge li::before { width: 0.55rem; height: 0.55rem; top: 0.5em; left: 0.15rem; border: 1.6px solid currentColor; border-radius: 50%; transform: none; opacity: 0.7; }
.ag-plan--featured .ag-plan__label { border-top-color: rgb(232 226 212 / 0.2); color: #c9c2b0; }
@supports (grid-template-rows: subgrid) { @media (min-width: 901px) {  } }

.ag-plan__charge { margin: 1.1rem 0 0 !important; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); font-size: 0.8125rem; line-height: 1.5; }
.ag-plan__charge strong { font-weight: 700; }
.ag-plan--featured .ag-plan__charge { background: rgb(255 255 255 / 0.1); color: #e8e2d4; }

/* Deux formules */
.ag-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .ag-grid--2 { grid-template-columns: 1fr; } }

/* Besoins particuliers */
.ag-extras { margin-top: 2.5rem !important; }
.ag-extras > h3 { font-size: 1.15rem; }
.ag-extras > p { margin: 0.35rem 0 1rem !important; }
.ag-extras .ag-row { margin-top: 0 !important; padding: 1.1rem 0; align-items: baseline; }
.ag-extras .ag-row:last-child { border-bottom: 1px solid var(--wp--preset--color--border); }
.ag-extras .ag-row h4 { font-size: 1rem; }

/* Un seul bouton pour toute la section */
.ag-plan { padding-bottom: 1.5rem; }
.ag-extras .ag-row { grid-template-columns: 26% 1fr; }
.ag-cta-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem !important; padding: 1.25rem 1.5rem; border-radius: 14px; background: var(--wp--preset--color--surface); }
.ag-cta-strip > * { margin: 0 !important; }
.ag-cta-strip p { color: var(--wp--preset--color--primary); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 900px) { .ag-extras .ag-row { grid-template-columns: 1fr; } }

/* Pancarte mise en avant : au survol (ou au clavier), sur les écrans à souris */
.ag-plan, .ag-plan * { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.ag-plan { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1); }


/* Outil de gestion : trois blocs */
.ag-app-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.ag-app-top__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.ag-app-top__text > * { margin: 0 !important; }
.ag-usecases { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; width: 100%; margin-top: 0.5rem !important; }
.ag-usecase { margin: 0 !important; padding: 0.85rem 1rem; border: 1px solid var(--wp--preset--color--border); border-radius: 10px; color: var(--wp--preset--color--primary); font-size: 0.9rem; font-weight: 600; line-height: 1.35; }
.ag-app-top__img { margin: 0 !important; }
.ag-app-top__img img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 60px -30px rgb(16 51 63 / 0.45); }

.ag-flowwrap { margin-top: 2.5rem !important; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--border); }
.ag-flowwrap > h4 { font-size: 1.1rem; }
.ag-flowhint { margin: 0.25rem 0 0 !important; font-size: 0.875rem; }
.ag-flow { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; }
.ag-js .ag-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.ag-flow li { list-style: none; margin: 0; }
.ag-flow button { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; width: 100%; height: 100%; padding: 1rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary); font: inherit; text-align: left; cursor: pointer; transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ag-flow button:hover { border-color: var(--wp--preset--color--primary); }
.ag-flow button.is-active { border-color: var(--wp--preset--color--primary); background: var(--wp--preset--color--primary); color: #fff; }
.ag-flow__n { font-family: var(--wp--preset--font-family--mono); font-size: 0.75rem; letter-spacing: 0.06em; opacity: 0.7; }
.ag-flow__t { font-family: var(--wp--preset--font-family--heading); font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.ag-flow__s { font-size: 0.8125rem; line-height: 1.4; color: var(--wp--preset--color--contrast-2); }
.ag-flow button.is-active .ag-flow__s { color: #d0d8da; }
.ag-flow__full { margin: 0.5rem 0 0 !important; font-size: 0.875rem; color: var(--wp--preset--color--contrast-2); }
.ag-flow__detail { display: none; }
.ag-js .ag-flow__full { display: none; }
.ag-js .ag-flow__detail { display: block; margin-top: 1rem; padding: 1.25rem 1.5rem; border-radius: 12px; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); font-size: 0.9375rem; line-height: 1.6; }
.ag-flow__detail strong { display: block; margin-bottom: 0.25rem; font-family: var(--wp--preset--font-family--heading); font-size: 1rem; }
.ag-flow__detail.is-in { animation: ag-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

.ag-protect { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1.5rem; margin-top: 2rem !important; padding: 1.25rem 1.5rem; border-radius: 14px; background: var(--wp--preset--color--surface); }
.ag-protect > * { margin: 0 !important; }
.ag-protect__label { grid-column: 1 / -1; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.ag-protect__item { position: relative; padding-left: 1.6rem; font-size: 0.9rem; line-height: 1.5; color: var(--wp--preset--color--primary); }
.ag-protect__item::before { content: ""; position: absolute; left: 0.1rem; top: 0.4em; width: 0.7rem; height: 0.4rem; border-left: 1.8px solid var(--wp--preset--color--primary); border-bottom: 1.8px solid var(--wp--preset--color--primary); transform: rotate(-45deg); }
.ag-tabpanel--outil .ag-cta-strip { background: var(--wp--preset--color--primary); }
.ag-tabpanel--outil .ag-cta-strip p { color: #e8e2d4; }
.ag-tabpanel--outil .ag-cta-strip strong { color: #fff; }
.ag-tabpanel--outil .ag-cta-strip .wp-block-button__link { background: #e8e2d4; color: var(--wp--preset--color--primary); }
.ag-js .ag-tabpanel.is-active .ag-app-top__text > *, .ag-js .ag-tabpanel.is-active .ag-app-top__img, .ag-js .ag-tabpanel.is-active .ag-flowwrap, .ag-js .ag-tabpanel.is-active .ag-protect { animation: ag-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ag-js .ag-tabpanel.is-active .ag-app-top__text > :nth-child(2) { animation-delay: 0.22s; }
.ag-js .ag-tabpanel.is-active .ag-app-top__text > :nth-child(3) { animation-delay: 0.3s; }
.ag-js .ag-tabpanel.is-active .ag-app-top__img { animation-delay: 0.3s; }
.ag-js .ag-tabpanel.is-active .ag-flowwrap { animation-delay: 0.4s; }
.ag-js .ag-tabpanel.is-active .ag-protect { animation-delay: 0.5s; }
@media (max-width: 1100px) { .ag-js .ag-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ag-app-top { grid-template-columns: 1fr; } .ag-protect { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ag-js .ag-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-usecases { grid-template-columns: 1fr; } }
.ag-protect { border: 1px solid var(--wp--preset--color--border); background: transparent; }

/* Outil de gestion : deux temps, cadrer puis construire */
.ag-twostep { display: grid !important; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; align-items: stretch; }
.ag-twostep > * { margin: 0 !important; }
.ag-twostep__arrow { align-self: center; font-size: 1.75rem; color: var(--wp--preset--color--contrast-2); }
.ag-step2 { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.75rem; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; background: var(--wp--preset--color--base); }
.wp-block-group.ag-step2 > * { margin: 0; }
.ag-step2__n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--wp--preset--color--surface); color: var(--wp--preset--color--primary); font-family: var(--wp--preset--font-family--heading); font-size: 1rem; font-weight: 600; }
.ag-step2 h4 { font-size: 1.35rem; line-height: 1.2; }
.ag-step2__text { color: var(--wp--preset--color--contrast-2); font-size: 0.9375rem; line-height: 1.55; }
.wp-block-list.ag-step2__list { margin-top: 0.75rem !important; }
.ag-step2--b { border-color: transparent; background: var(--wp--preset--color--primary); color: #e8e2d4; }
.ag-step2--b h4 { color: #fff; }
.ag-step2--b .ag-step2__n { background: rgb(255 255 255 / 0.14); color: #fff; }
.ag-step2--b .ag-step2__text { color: #d0d8da; }
.ag-step2--b .ag-plan__list { border-top-color: rgb(232 226 212 / 0.2); }
.ag-step2--b .ag-plan__list strong { color: #fff; }
.ag-step2--b .ag-plan__list li::before { border-color: #e8e2d4; }
.ag-tabpanel--outil .ag-cta-strip { margin-top: 2rem !important; }
.ag-js .ag-tabpanel--outil.is-active .ag-step2, .ag-js .ag-tabpanel--outil.is-active .ag-twostep__arrow { animation: ag-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ag-js .ag-tabpanel--outil.is-active .ag-step2--a { animation-delay: 0.2s; }
.ag-js .ag-tabpanel--outil.is-active .ag-twostep__arrow { animation-delay: 0.32s; }
.ag-js .ag-tabpanel--outil.is-active .ag-step2--b { animation-delay: 0.42s; }
@media (max-width: 900px) { .ag-twostep { grid-template-columns: 1fr; } .ag-twostep__arrow { transform: rotate(90deg); justify-self: center; } }

/* Outil de gestion : trois étapes simples */
.ag-steps3 { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 0.5rem; }
.ag-s3 { position: relative; display: flex; flex-direction: column; gap: 0.6rem; }
.wp-block-group.ag-s3 > * { margin: 0; }
.ag-s3__n { position: relative; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 0.4rem !important; border-radius: 50%; background: var(--wp--preset--color--primary); color: #fff; font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; font-weight: 600; }
.ag-s3:not(:last-child)::before { content: ""; position: absolute; top: 1.3rem; left: 3rem; right: -1.75rem; height: 1px; background: var(--wp--preset--color--border); }
.ag-s3 h4 { font-size: 1.2rem; line-height: 1.25; }
.ag-s3 .ag-muted { font-size: 0.9375rem; line-height: 1.6; }
.ag-js .ag-tabpanel--outil.is-active .ag-s3 { animation: ag-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
.ag-js .ag-tabpanel--outil.is-active .ag-s3:nth-child(1) { animation-delay: 0.2s; }
.ag-js .ag-tabpanel--outil.is-active .ag-s3:nth-child(2) { animation-delay: 0.32s; }
.ag-js .ag-tabpanel--outil.is-active .ag-s3:nth-child(3) { animation-delay: 0.44s; }
@media (max-width: 900px) { .ag-steps3 { grid-template-columns: 1fr; gap: 1.5rem; } .ag-s3:not(:last-child)::before { display: none; } }

/* Flèche des grandes cartes : de la place pour qu'elle ne soit pas coupée au survol */
.ag-tab__cta { padding-right: 0.75rem; line-height: 1.6; }

/* Bouton « Voir un exemple » à côté du titre du cadre */
.ag-panelhead { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.5rem; align-items: center; }
.ag-panelhead > :not(.ag-panelhead__cta) { grid-column: 1; }
.ag-panelhead .ag-panelhead__cta { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0 !important; }
.ag-panelhead__cta .wp-block-button__link { padding: 0.65rem 1.2rem; font-size: 0.9375rem; white-space: nowrap; }
@media (max-width: 700px) { .ag-panelhead { grid-template-columns: 1fr; } .ag-panelhead .ag-panelhead__cta { grid-column: 1; grid-row: auto; margin-top: 0.75rem !important; } }

/* Article « retour d'expérience » : fiche synthétique */
.ag-case-facts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 0; margin: 2rem 0 2.5rem !important; padding: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; background: var(--wp--preset--color--surface); overflow: hidden; }
.ag-case-facts > * { display: flex; flex-direction: column; gap: 0.35rem; margin: 0 !important; padding: 1.25rem 1.5rem; }
.ag-case-facts > * + * { border-left: 1px solid var(--wp--preset--color--border); }
.ag-case-facts p { margin: 0 !important; }
.ag-case-facts__label { color: var(--wp--preset--color--contrast-2); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ag-case-facts > * > p:not(.ag-case-facts__label) { font-family: var(--wp--preset--font-family--heading); font-size: 1rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--wp--preset--color--primary); }
.ag-case-facts a { color: inherit; text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ag-case-facts a::after { content: " \2197"; text-decoration: none; display: inline-block; }
@media (max-width: 700px) { .ag-case-facts { grid-template-columns: 1fr; } .ag-case-facts > * + * { border-left: 0; border-top: 1px solid var(--wp--preset--color--border); } }

.ag-extras > h3 { margin-bottom: 1rem; }

/* Formulaire de contact sur la page d'accueil */
.ag-panel--form { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; margin-top: 0 !important; }
.ag-panel--form > .wp-block-group > * + * { margin-top: 1rem; }
.ag-panel__promise { color: #fff !important; font-weight: 600; }
.ag-form form { display: grid; gap: 0.9rem; }
.ag-form label { display: grid; gap: 0.35rem; color: #e8e2d4; font-size: 0.8125rem; font-weight: 600; }
.ag-form__lbl small { font-size: inherit; font-weight: 400; opacity: 0.75; }
.ag-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
.ag-form input[type="text"], .ag-form input[type="email"], .ag-form input[type="tel"], .ag-form select, .ag-form textarea { width: 100%; box-sizing: border-box; padding: 0.7rem 0.85rem; border: 1px solid transparent; border-radius: 8px; background: #fff; color: var(--wp--preset--color--contrast); font: inherit; font-size: 0.9375rem; font-weight: 400; }
.ag-form textarea { resize: vertical; min-height: 6.5rem; }
.ag-form input:focus, .ag-form select:focus, .ag-form textarea:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 1px; }
.ag-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; }
.ag-form__foot p { margin: 0; color: #c9c2b0; font-size: 0.8125rem; }
.ag-form button[type="submit"] { padding: 0.75rem 1.5rem; border: 0; border-radius: 6px; background: #e8e2d4; color: var(--wp--preset--color--primary); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.ag-form button[type="submit"]:hover { background: #fff; }
.ag-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ag-form__error { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 8px; background: rgb(255 255 255 / 0.12); color: #fff; font-size: 0.9375rem; }
.ag-form__done { display: grid; gap: 0.35rem; padding: 1.5rem; border-radius: 12px; background: rgb(255 255 255 / 0.1); color: #e8e2d4; }
.ag-form__done strong { color: #fff; font-size: 1.125rem; }
@media (max-width: 900px) { .ag-panel--form { grid-template-columns: 1fr; } .ag-form__row { grid-template-columns: 1fr; } }

/* Menu du téléphone (plein écran) : liens à gauche, grands, dans la police des titres */
.ag-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--surface); }
.ag-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 2rem; }
.ag-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; gap: 0.15rem !important; width: 100%; }
.ag-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start !important; width: 100%; }
.ag-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 0.7rem 0 !important; border-bottom: 1px solid var(--wp--preset--color--border); width: 100%; font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--wp--preset--color--primary); }

/* Dans l'éditeur WordPress : pas de décalage sous l'en-tête, hauteur naturelle */
.editor-styles-wrapper .ag-hero { margin-top: 0 !important; }
.editor-styles-wrapper .ag-hero .ag-hero__panel { min-height: 0; padding-top: 2rem; padding-bottom: 2rem; }
.editor-styles-wrapper .ag-tab { cursor: default; }

.ag-form__foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Page Actualités : bandeau compact, grille serrée */
.wp-site-blocks > * + * { margin-block-start: 0; }
.ag-news__band { padding: 2.25rem var(--wp--preset--spacing--40) 2rem; border-bottom: 1px solid var(--wp--preset--color--border); }
.ag-news__title { margin: 0; font-size: clamp(2rem, 4vw, 2.5rem); line-height: 1.1; }
.ag-news__lead { margin: 0.5rem 0 0; color: var(--wp--preset--color--contrast-2); font-size: 1.0625rem; }
.ag-news__list { padding: 2.5rem var(--wp--preset--spacing--40) 4rem; }
.ag-news__grid { gap: 2.25rem 1.5rem; }
.ag-news__grid > li { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; }
.ag-news__grid > li > * { margin: 0; }
.ag-news__grid .wp-block-post-featured-image { margin-bottom: 0.4rem; }
.ag-news__cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.ag-news__cat a { text-decoration: none; }
.ag-news__post-title { font-size: 1.1875rem; line-height: 1.25; }
.ag-news__post-title a { text-decoration: none; }
.ag-news__post-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ag-news__excerpt { font-size: 0.9375rem; color: var(--wp--preset--color--contrast-2); }
.ag-news__excerpt p { margin: 0; }
.ag-news__date { font-size: 0.8125rem; color: var(--wp--preset--color--contrast-2); }
.ag-news__list .wp-block-query-pagination { margin-top: 2.5rem; }
.ag-news__band .alignwide > * { margin: 0; }
.ag-news__band .ag-news__lead { margin-top: 0.5rem; }

/* Actualités épinglées : colonne « À la une » à droite (masquée s'il n'y en a pas) */
.ag-news__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.ag-news__layout:has(.ag-news__pinned-list > li) { grid-template-columns: minmax(0, 1fr) 19rem; }
.ag-news__layout:not(:has(.ag-news__pinned-list > li)) .ag-news__pinned { display: none; }
.ag-news__main, .ag-news__pinned { margin: 0 !important; }
.ag-news__pinned { position: sticky; top: calc(var(--ag-header-h) + 1.5rem); padding: 1.25rem; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; background: var(--wp--preset--color--base); }
.admin-bar .ag-news__pinned { top: calc(var(--ag-header-h) + 32px + 1.5rem); }
.ag-news__pinned-label { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--wp--preset--color--primary); }
.ag-news__pinned-label::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--wp--preset--color--accent); }
.ag-news__pinned-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.ag-news__pinned-list > li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.9rem; align-items: start; margin: 0; padding-top: 1.1rem; border-top: 1px solid var(--wp--preset--color--border); }
.ag-news__pinned-list > li:first-child { padding-top: 0; border-top: 0; }
.ag-news__pinned-list > li > * { margin: 0; }
.ag-news__pinned-list .wp-block-post-featured-image img { width: 100%; height: auto; }
.ag-news__pinned-text { display: flex; flex-direction: column; gap: 0.25rem; }
.ag-news__pinned-text > * { margin: 0 !important; }
.ag-news__pinned-title { font-size: 0.9375rem; line-height: 1.3; }
.ag-news__pinned-title a { text-decoration: none; }
.ag-news__pinned-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
	.ag-news__layout:has(.ag-news__pinned-list > li) { grid-template-columns: minmax(0, 1fr); }
	.ag-news__pinned { position: static; order: -1; }
}

/* Témoignage : pastille de citation du client */
.ag-quote-card { display: flex !important; align-items: flex-start; gap: 1.25rem; margin: 2.5rem 0 !important; padding: 1.5rem; border-radius: 14px; background: var(--wp--preset--color--surface); }
.ag-quote-card > * { margin: 0 !important; }
.ag-quote-card__photo { flex: 0 0 4.5rem; width: 4.5rem; }
.ag-quote-card__photo img { display: block; width: 4.5rem !important; height: 4.5rem !important; border-radius: 50%; object-fit: cover; }
.ag-quote-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ag-quote-card__body > * { margin: 0 !important; }
.ag-quote-card__text { font-family: var(--wp--preset--font-family--heading); font-size: 1.125rem; line-height: 1.45; color: var(--wp--preset--color--primary); }
.ag-quote-card__name { font-size: 0.875rem; line-height: 1.4; color: var(--wp--preset--color--contrast-2); }
.ag-quote-card__name strong { color: var(--wp--preset--color--primary); }
.ag-quote-card__todo { padding: 0.5rem 0.75rem; border-left: 3px solid var(--wp--preset--color--accent); background: rgb(255 255 255 / 0.6); font-size: 0.8125rem; }
@media (max-width: 600px) { .ag-quote-card { flex-direction: column; } }

/* Liens dans le texte des articles et des pages : bien visibles (soulignés en ocre) */
.single .wp-block-post-content :is(p, li) a:not(.wp-element-button),
.page:not(.home) .wp-block-post-content :is(p, li) a:not(.wp-element-button) { color: var(--wp--preset--color--primary); font-weight: 600; text-decoration: underline; text-decoration-color: var(--wp--preset--color--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: text-decoration-thickness 0.15s ease; }
.single .wp-block-post-content :is(p, li) a:not(.wp-element-button):hover,
.page:not(.home) .wp-block-post-content :is(p, li) a:not(.wp-element-button):hover { text-decoration-thickness: 3px; }

/* Formule mise en évidence quand on arrive par un lien direct (/#diy) */
.ag-plan.is-flash { animation: ag-flash 3.8s ease-in-out; }
@keyframes ag-flash {
	0% { border-color: var(--wp--preset--color--border); box-shadow: 0 0 0 0 rgb(197 140 62 / 0); }
	30%, 62% { border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 5px rgb(197 140 62 / 0.22); }
	100% { border-color: var(--wp--preset--color--border); box-shadow: 0 0 0 0 rgb(197 140 62 / 0); }
}
@media (prefers-reduced-motion: reduce) { .ag-plan.is-flash { animation: none; border-color: var(--wp--preset--color--accent); box-shadow: 0 0 0 4px rgb(197 140 62 / 0.25); } }
