/* Thème Capiforma : socle, en-tête, pied de page, pages en blocs. */

:root {
	--cf-ink: #22323d;
	--cf-ink-soft: #4b5a66;
	--cf-muted: #66747f;
	--cf-blue: #4667ae;
	--cf-blue-deep: #34508c;
	--cf-blue-wash: #e9eef8;
	--cf-apricot: #f4a76e;
	--cf-apricot-deep: #ec9050;
	--cf-apricot-wash: #fdf0e6;
	--cf-mist: #ecf0f2;
	--cf-line: #d9e0e5;
	--cf-display: "Tenor Sans", Georgia, serif;
	--cf-text: "Work Sans", system-ui, sans-serif;
	--cf-shell: 1320px;
	--cf-gutter: clamp(20px, 4vw, 48px);
	--cf-header-h: 84px;
	--cf-r-lg: 28px;
	--cf-r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--cf-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--cf-ink); font: 400 17px/1.65 var(--cf-text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--cf-blue); }
:focus-visible { outline: 3px solid var(--cf-apricot); outline-offset: 3px; }
.cf-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--cf-ink); color: #fff; text-decoration: none; }
.cf-skip:focus { top: 12px; }
.cf-wrap { width: 100%; max-width: calc(var(--cf-shell) + 2 * var(--cf-gutter)); margin: 0 auto; padding: 0 var(--cf-gutter); }
.cf-ico { width: 18px; height: 18px; flex: none; }

/* Boutons */
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--cf-blue); color: #fff; font: 600 15.5px/1.2 var(--cf-text); text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s; white-space: nowrap; }
.cf-btn:hover { background: var(--cf-blue-deep); color: #fff; }
.cf-btn--accent { background: var(--cf-apricot); color: var(--cf-ink); }
.cf-btn--accent:hover { background: var(--cf-apricot-deep); color: var(--cf-ink); }
.cf-btn--ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.cf-btn--ghost-light:hover { background: #fff; color: var(--cf-ink); }

/* ------------------------------------------------------------------ */
/* En-tête                                                             */
/* ------------------------------------------------------------------ */
.cf-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .cf-header { top: 32px; }
.cf-header.is-scrolled { border-bottom-color: var(--cf-line); box-shadow: 0 10px 30px -24px rgba(34, 50, 61, .5); }
.cf-header__bar { display: flex; align-items: center; gap: 28px; max-width: calc(var(--cf-shell) + 2 * var(--cf-gutter)); height: var(--cf-header-h); margin: 0 auto; padding: 0 var(--cf-gutter); }
.cf-header__logo { display: flex; flex: none; }
.cf-logo { display: block; width: auto; height: 48px; }
.cf-nav { flex: 1; }
.cf-nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.cf-nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 999px; background: none; color: var(--cf-ink); font: 600 15px/1.2 var(--cf-text); text-decoration: none; cursor: pointer; }
.cf-nav__link:hover, .cf-nav__link[aria-current="page"], .cf-nav__toggle[aria-expanded="true"] { background: var(--cf-mist); color: var(--cf-ink); }
.cf-nav__toggle .cf-ico { width: 16px; height: 16px; transition: transform .2s; }
.cf-nav__toggle[aria-expanded="true"] .cf-ico { transform: rotate(180deg); }
.cf-nav__mobile-extra { display: none; }
.cf-header__actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.cf-header__tel { display: inline-flex; align-items: center; gap: 8px; color: var(--cf-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.cf-header__tel .cf-ico { color: var(--cf-blue); }
.cf-header__tel:hover { color: var(--cf-blue); }
.cf-burger { display: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--cf-mist); color: var(--cf-ink); cursor: pointer; }
.cf-burger .cf-ico { width: 22px; height: 22px; margin: auto; display: block; }

/* Menu Formations */
.cf-nav__item--mega { position: static; }
.cf-mega { position: absolute; left: 0; right: 0; top: 100%; padding: 0 var(--cf-gutter) 24px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s; }
.cf-mega.is-open { visibility: visible; opacity: 1; transform: none; }
.cf-mega__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; max-width: var(--cf-shell); margin: 0 auto; padding: 28px; border-radius: var(--cf-r-lg); background: #fff; box-shadow: 0 30px 70px -30px rgba(34, 50, 61, .45), 0 0 0 1px var(--cf-line); }
.cf-mega__title { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--cf-muted); }
.cf-mega__themes ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.cf-mega__themes a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; color: var(--cf-ink); font-weight: 600; font-size: 15px; line-height: 1.35; text-decoration: none; }
.cf-mega__themes a:hover { background: var(--cf-blue-wash); color: var(--cf-blue-deep); }
.cf-mega__themes small { color: var(--cf-muted); font-weight: 400; }
.cf-mega__side { display: grid; gap: 10px; align-content: start; }
.cf-mega__card { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--cf-r-md); background: var(--cf-mist); color: var(--cf-ink); text-decoration: none; }
.cf-mega__card strong { font: 400 1.15rem/1.2 var(--cf-display); }
.cf-mega__card span { font-size: 14px; color: var(--cf-ink-soft); }
.cf-mega__card:hover { background: var(--cf-blue-wash); }
.cf-mega__card--accent { background: var(--cf-apricot-wash); }
.cf-mega__card--accent:hover { background: #fbe2cf; }

/* ------------------------------------------------------------------ */
/* Bandeau de page et contenu                                          */
/* ------------------------------------------------------------------ */
.cf-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--cf-blue); color: #fff; }
.cf-hero--compact { padding-bottom: clamp(36px, 4vw, 56px); }
.cf-hero__title { max-width: 20ch; margin: 0; font: 400 clamp(2.4rem, 4.4vw, 4.25rem)/1.04 var(--cf-display); letter-spacing: -.015em; color: #fff; text-wrap: balance; }
.cf-hero__lead { max-width: 62ch; margin: 20px 0 0; font-size: 1.2rem; line-height: 1.55; color: rgba(255, 255, 255, .88); }
.cf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }

.cf-page-content { padding: clamp(48px, 6vw, 88px) var(--cf-gutter) clamp(56px, 7vw, 104px); }
.cf-page-content > * { max-width: 780px; margin-left: max(0px, calc((100% - var(--cf-shell)) / 2)) !important; margin-right: auto !important; }
.cf-page-content > .alignwide { max-width: var(--cf-shell); margin-right: auto !important; }
.cf-page-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--cf-gutter)); margin-right: calc(-1 * var(--cf-gutter)); }
.cf-prose, .entry-content { font-size: 17px; }
.entry-content h2 { margin-block: 2.2em .6em; font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.15 var(--cf-display); letter-spacing: -.01em; text-wrap: balance; }
.entry-content h3 { margin-block: 1.8em .5em; font: 600 1.15rem/1.35 var(--cf-text); }
.entry-content h4 { margin-block: 1.5em .4em; font: 600 1.05rem/1.35 var(--cf-text); }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content p { margin-block: 0 1em; }
.entry-content ul:not([class*="cf-"]):not(.is-style-coches), .entry-content ol:not([class*="cf-"]) { margin-block: 0 1.2em; padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--cf-blue); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 15px; }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--cf-line); text-align: left; vertical-align: top; }
.entry-content blockquote { margin-block: 1.5em; padding: 0 0 0 20px; border-left: 3px solid var(--cf-apricot); font-size: 1.15rem; }
.entry-content hr { margin-block: 2.5em; border: 0; border-top: 1px solid var(--cf-line); }
.entry-content a:not(.wp-block-button__link):not(.cf-btn) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Blocs : sections pleine largeur */
.cf-main--full > .wp-block-group, .cf-main--full > .wp-block-cover { margin: 0; }
.cf-main--full .wp-block-group.alignfull { padding-left: var(--cf-gutter); padding-right: var(--cf-gutter); }
.cf-main--full > .wp-block-group.alignfull { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.cf-main--full > .wp-block-group.alignfull > * { max-width: var(--cf-shell); margin-left: auto; margin-right: auto; }
.cf-main--full > .wp-block-group.alignfull > .cf-narrow { max-width: 780px; margin-left: 0; }
.wp-block-group.is-style-section-brume { background: var(--cf-mist); }
.wp-block-group.is-style-section-bleue { background: var(--cf-blue); color: #fff; }
.wp-block-group.is-style-section-encre { background: var(--cf-ink); color: #fff; }
.is-style-section-bleue :is(h1, h2, h3, h4), .is-style-section-encre :is(h1, h2, h3, h4) { color: #fff; }
.is-style-section-bleue p, .is-style-section-encre p { color: rgba(255, 255, 255, .86); }
.is-style-section-bleue a:not(.wp-block-button__link), .is-style-section-encre a:not(.wp-block-button__link) { color: #fff; }
.wp-block-group.is-style-carte { padding: clamp(22px, 3vw, 32px); border: 1.5px solid var(--cf-line); border-radius: var(--cf-r-lg); background: #fff; }
.wp-block-group.is-style-carte-abricot { padding: clamp(22px, 3vw, 32px); border-radius: var(--cf-r-lg); background: var(--cf-apricot-wash); }
.is-style-section-brume .wp-block-group.is-style-carte { border-color: transparent; }
.cf-main--full h1, .cf-main--full .cf-display { font: 400 clamp(2.4rem, 4.6vw, 4.5rem)/1.04 var(--cf-display); letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.cf-main--full h2 { margin: 0 0 .5em; font: 400 clamp(1.75rem, 2.8vw, 2.5rem)/1.12 var(--cf-display); letter-spacing: -.01em; text-wrap: balance; }
.cf-main--full h3 { margin: 0 0 .4em; font: 600 1.15rem/1.35 var(--cf-text); }
.cf-main--full .wp-block-heading + p { margin-top: 0; }
p.is-style-chapo, .cf-main--full .is-style-chapo { font-size: 1.2rem; line-height: 1.55; color: var(--cf-ink-soft); max-width: 62ch; }
.is-style-section-bleue p.is-style-chapo, .is-style-section-encre p.is-style-chapo { color: rgba(255, 255, 255, .88); }
ul.is-style-coches { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
ul.is-style-coches li { position: relative; margin: 0; padding-left: 40px; }
ul.is-style-coches li::before { content: ""; position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; background: var(--cf-apricot-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c96a2b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.wp-block-image.is-style-arrondie img { border-radius: var(--cf-r-lg); }
.wp-block-image img { display: block; }
.cf-main--full .wp-block-columns { gap: clamp(28px, 4vw, 64px); margin-bottom: 0; }
.cf-main--full .wp-block-columns.cf-cards { gap: 16px; }
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { transition: background-color .18s, color .18s; }
.wp-block-button.is-style-contour .wp-block-button__link { background: transparent !important; color: var(--cf-blue) !important; box-shadow: inset 0 0 0 2px var(--cf-blue); }
.wp-block-button.is-style-contour .wp-block-button__link:hover { background: var(--cf-blue) !important; color: #fff !important; }
.is-style-section-bleue .wp-block-button.is-style-contour .wp-block-button__link, .is-style-section-encre .wp-block-button.is-style-contour .wp-block-button__link { color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.is-style-section-bleue .wp-block-button.is-style-contour .wp-block-button__link:hover, .is-style-section-encre .wp-block-button.is-style-contour .wp-block-button__link:hover { background: #fff !important; color: var(--cf-ink) !important; }
.wp-block-button.is-style-bleu .wp-block-button__link { background: var(--cf-blue) !important; color: #fff !important; }
.wp-block-button.is-style-bleu .wp-block-button__link:hover { background: var(--cf-blue-deep) !important; }

/* Questions fréquentes */
.wp-block-details { margin: 0; padding: 0; border-top: 1px solid var(--cf-line); }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--cf-line); }
.wp-block-details summary { position: relative; padding: 22px 44px 22px 0; font: 600 1.075rem/1.4 var(--cf-text); cursor: pointer; list-style: none; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--cf-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322323d' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: 0; padding-right: 44px; color: var(--cf-ink-soft); }
.wp-block-details[open] { padding-bottom: 14px; }

/* Composants des pages */
.cf-cards > .wp-block-column, .cf-grid > * { min-width: 0; }
.cf-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.cf-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cf-tile { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 26px; border: 1.5px solid var(--cf-line); border-radius: var(--cf-r-lg); background: #fff; transition: border-color .15s, box-shadow .15s; }
.cf-tile:hover { border-color: var(--cf-blue); box-shadow: 0 18px 40px -24px rgba(70, 103, 174, .55); }
.cf-tile h3 { margin: 0; font: 400 1.4rem/1.2 var(--cf-display) !important; }
.cf-tile h3 a { color: var(--cf-ink); text-decoration: none !important; }
.cf-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cf-tile p { margin: 0; color: var(--cf-ink-soft); font-size: 15.5px; }
.cf-tile .cf-tile__more { margin-top: auto; padding-top: 8px; color: var(--cf-blue); font-weight: 600; font-size: 15px; }
.is-style-section-brume .cf-tile { border-color: transparent; }
.cf-price { font: 400 2.6rem/1 var(--cf-display); color: var(--cf-ink); margin: 0; }
.cf-price small { font: 400 15px var(--cf-text); color: var(--cf-muted); margin-left: 6px; }
.cf-quote { margin: 0; font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.2 var(--cf-display); color: var(--cf-ink); text-wrap: balance; }
.cf-people { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cf-people li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--cf-line); }
.cf-people li:last-child { border-bottom: 1px solid var(--cf-line); }
.cf-people span { color: var(--cf-muted); }
.cf-people strong { font-weight: 600; text-align: right; }
.cf-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.cf-logos li { display: grid; place-items: center; height: 96px; padding: 16px; border-radius: var(--cf-r-md); background: #fff; }
.cf-logos img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.cf-logos li:hover img { filter: none; opacity: 1; }
.cf-hero-home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cf-hero-home .wp-block-image img { aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--cf-r-lg); }

/* ------------------------------------------------------------------ */
/* Pied de page                                                        */
/* ------------------------------------------------------------------ */
.cf-footer { background: var(--cf-ink); color: rgba(255, 255, 255, .78); font-size: 15px; }
.cf-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.cf-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cf-footer__top { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 40px; padding-top: clamp(56px, 7vw, 88px); padding-bottom: 48px; }
.cf-logo--white { height: 44px; filter: brightness(0) invert(1); }
.cf-footer__brand p { max-width: 30ch; margin: 18px 0 20px; }
.cf-footer__qualiopi { display: inline-block; padding: 8px; border-radius: 12px; background: #fff; }
.cf-footer__qualiopi img { display: block; width: 150px; height: auto; }
.cf-footer__title { margin: 0 0 14px; font: 400 1.2rem/1.2 var(--cf-display); color: #fff; }
.cf-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cf-footer__contact { margin-bottom: 20px !important; }
.cf-footer__contact a { display: inline-flex; align-items: flex-start; gap: 10px; }
.cf-footer__contact .cf-ico { margin-top: 2px; color: var(--cf-apricot); }
.cf-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 24px; padding-bottom: 32px; background: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)) top / 100% 1px no-repeat content-box; font-size: 14px; }
.cf-footer__bottom p { margin: 0; }
.cf-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ------------------------------------------------------------------ */
/* Adaptations                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 1180px) {
	.cf-header__tel span { display: none; }
}
@media (max-width: 1020px) {
	:root { --cf-header-h: 72px; }
	.cf-logo { height: 40px; }
	.cf-burger { display: block; }
	.cf-header__tel, .cf-header__cta { display: none; }
	.cf-nav { position: fixed; inset: var(--cf-header-h) 0 0 0; z-index: 99; display: flex; flex-direction: column; padding: 16px var(--cf-gutter) 32px; background: #fff; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
	.admin-bar .cf-nav { top: calc(var(--cf-header-h) + 46px); }
	.cf-nav.is-open { visibility: visible; opacity: 1; }
	.cf-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.cf-nav__link { justify-content: space-between; width: 100%; padding: 18px 4px; border-radius: 0; border-bottom: 1px solid var(--cf-line); font-size: 18px; }
	.cf-nav__link:hover, .cf-nav__link[aria-current="page"], .cf-nav__toggle[aria-expanded="true"] { background: none; color: var(--cf-blue); }
	.cf-mega { position: static; padding: 0; display: none; visibility: visible; opacity: 1; transform: none; }
	.cf-mega.is-open { display: block; }
	.cf-mega__inner { grid-template-columns: minmax(0, 1fr); padding: 12px 0; box-shadow: none; border-radius: 0; }
	.cf-mega__themes ul { grid-template-columns: minmax(0, 1fr); }
	.cf-nav__mobile-extra { display: grid; gap: 14px; margin-top: 24px; }
	.cf-nav__tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--cf-ink); font-weight: 600; text-decoration: none; }
	body.cf-menu-open { overflow: hidden; }
	.cf-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cf-hero-home { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 782px) {
	.admin-bar .cf-header { top: 46px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.cf-footer__top { grid-template-columns: minmax(0, 1fr); }
	.cf-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.cf-people li { flex-direction: column; gap: 2px; }
	.cf-people strong { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Compléments des pages en blocs */
.cf-kicker { margin: 0 0 12px; font-weight: 600; font-size: 15px; color: var(--cf-blue); }
.cf-muted { color: var(--cf-muted); font-size: 15px; }
.cf-proofline { margin-top: 24px; padding-left: 16px; border-left: 3px solid var(--cf-apricot); font-weight: 600; color: #fff !important; }
.cf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cf-main--full .wp-block-heading + .is-style-chapo { margin-bottom: 36px; }
.cf-cta .wp-block-heading { margin-bottom: 8px; }
.cf-cta .is-style-chapo { margin: 0; }
.cf-cta-actions .wp-block-buttons { justify-content: flex-end; }
.cf-split-block .wp-block-column:first-child { position: sticky; top: calc(var(--cf-header-h) + 32px); align-self: flex-start; }
.cf-home-hero .cfm-quicksearch { margin: 32px 0 20px; max-width: 620px; border-color: transparent; }
.cf-home-hero .wp-block-buttons { margin-top: 8px; }
.cf-home-hero h1 { color: #fff; }
.cf-lp-form { color: var(--cf-ink); }
.cf-lp-form .wp-block-heading { color: var(--cf-ink) !important; margin-bottom: 16px; }
.cf-lp-form p { color: var(--cf-ink-soft); }
.cf-lp-form .cfm-form-card--inline { padding: 0; box-shadow: none; background: none; }
.is-style-section-encre .cfm-proof strong { color: var(--cf-apricot); }
.is-style-section-encre .cfm-proof span { color: rgba(255, 255, 255, .78); }
.is-style-section-encre .cfm-proof-foot, .is-style-section-encre .cfm-proof-foot a { color: rgba(255, 255, 255, .8); }
.is-style-section-encre .cfm-proof-foot .cfm-ico { color: var(--cf-apricot); }
.cf-main--full .cfm-verbatims .cfm-h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
.cf-main--full .is-style-section-brume .cfm-agenda__row { background: #fff; }
@media (max-width: 1020px) {
	.cf-cta-actions .wp-block-buttons { justify-content: flex-start; }
	.cf-split-block .wp-block-column:first-child { position: static; }
}

/* Coexistence avec les blocs de l'extension */
.cf-grid > *, .cf-grid > * + * { margin: 0 !important; }
.entry-content .cfm a:not(.cfm-link) { text-decoration: none; }
.entry-content .cfm blockquote { margin: 0; padding: 0; border: 0; font-size: inherit; }
.cf-logos-more { margin-top: 20px; text-align: center; }
.cf-main--full h1 + .is-style-chapo, .cf-main--full h1 + p { margin-top: 20px; }

@media (max-width: 480px) {
	.cfm-quicksearch input[type="search"] { padding-left: 40px; font-size: 16px; }
	.cfm-quicksearch .cfm-ico { left: 16px; }
	.cfm-quicksearch .cfm-btn { min-height: 46px; padding: 10px 14px; font-size: 14px; }
}

/* ------------------------------------------------------------------ */
/* Mobile : barre de navigation basse et ajustements                   */
/* ------------------------------------------------------------------ */
:root { --cf-nav-h: 68px; }
.cf-bottomnav, .cf-header__call { display: none; }

@media (max-width: 1020px) {
	body.cf-has-bottomnav { padding-bottom: calc(var(--cf-nav-h) + env(safe-area-inset-bottom, 0px)); }
	.cf-header__call { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--cf-mist); color: var(--cf-ink); }
	.cf-header__call .cf-ico { width: 20px; height: 20px; }
	.cf-nav { bottom: calc(var(--cf-nav-h) + env(safe-area-inset-bottom, 0px)); }

	.cf-bottomnav { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: calc(var(--cf-nav-h) + env(safe-area-inset-bottom, 0px)); padding: 6px 6px env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--cf-line); box-shadow: 0 -10px 30px -24px rgba(34, 50, 61, .45); transition: transform .22s ease; }
	body.cf-typing .cf-bottomnav { transform: translateY(110%); }
	.cf-bottomnav__item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 56px; padding: 0 2px 6px; border: 0; background: none; color: var(--cf-ink-soft); font: 600 11.5px/1.1 var(--cf-text); text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
	.cf-bottomnav__item .cf-ico { width: 23px; height: 23px; }
	.cf-bottomnav__item[aria-current="page"], .cf-bottomnav__item[aria-expanded="true"] { color: var(--cf-blue); }
	.cf-bottomnav__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.cf-bottomnav__cta { position: relative; color: var(--cf-ink); }
	.cf-bottomnav__cta .cf-ico { width: 46px; height: 46px; padding: 12px; margin-top: -22px; border-radius: 50%; background: var(--cf-apricot); color: var(--cf-ink); box-shadow: 0 8px 20px -8px rgba(236, 144, 80, .9), 0 0 0 4px #fff; }
	.cf-bottomnav__item:focus-visible { outline-offset: -2px; border-radius: 12px; }

	.cky-btn-revisit-wrapper { bottom: calc(var(--cf-nav-h) + 14px + env(safe-area-inset-bottom, 0px)) !important; }

	/* Sections plus compactes */
	.cf-main--full > .wp-block-group.alignfull { padding-top: 52px; padding-bottom: 52px; }
	.cf-main--full .wp-block-heading + .is-style-chapo { margin-bottom: 24px; }
	.cf-hero-home .wp-block-image img { aspect-ratio: 16 / 11; }
	.cf-cta .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.cf-cta .wp-block-button, .cf-cta .wp-block-button__link { width: 100%; text-align: center; }
	.cf-mega__card { padding: 14px 16px; }
}

@media (max-width: 760px) {
	.cf-hero__title, .cf-main--full h1 { font-size: clamp(2.05rem, 9vw, 2.6rem); }
	.cf-main--full h2, .entry-content h2 { font-size: clamp(1.6rem, 7vw, 2rem); }
	.cf-hero { padding: 40px 0 36px; }
	.cf-page-content { padding-top: 40px; padding-bottom: 56px; }

	/* Grilles longues : défilement horizontal au doigt */
	.cf-grid--4 { display: flex !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: calc(-1 * var(--cf-gutter)) !important; margin-right: calc(-1 * var(--cf-gutter)) !important; padding: 4px var(--cf-gutter) 14px; scrollbar-width: none; }
	.cf-grid--4::-webkit-scrollbar { display: none; }
	.cf-grid--4 > * { flex: 0 0 80%; scroll-snap-align: start; }
	.cf-tile { padding: 20px; gap: 8px; }
	.cf-tile h3 { font-size: 1.25rem !important; }
	.cf-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.cf-logos li { height: 72px; padding: 10px; }
	.cf-logos img { max-height: 40px; }
	.wp-block-group.is-style-carte, .wp-block-group.is-style-carte-abricot { padding: 22px; }
	.cf-price { font-size: 2.2rem; }
	.cf-quote { font-size: 1.7rem; }

	/* Pied de page */
	.cf-footer__top { gap: 28px; padding-top: 48px; padding-bottom: 32px; }
	.cf-footer__col ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
	.cf-footer__contact { grid-template-columns: minmax(0, 1fr) !important; }
	.cf-footer__bottom { flex-direction: column; }
}
@media (max-width: 1020px) {
	/* Un filtre d'arrière-plan sur l'en-tête capturerait le panneau de menu (position fixe). */
	.cf-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.cf-nav { top: var(--cf-header-h); }
	.admin-bar .cf-nav { top: calc(var(--cf-header-h) + 46px); }
	.cf-mega.is-open { display: block; }
	.cf-nav__mobile-extra .cf-btn { width: 100%; }
}
/* Aucun débordement horizontal (rangées défilantes à marges négatives) */
html, body, main#primary { overflow-x: clip; }
@media (max-width: 760px) {
	.cfm-proof { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 20px !important; }
	.cfm-proof strong { font-size: 2.2rem !important; }
}

/* ------------------------------------------------------------------ */
/* V2 : en-tête qui se compacte, soulignement animé, logos              */
/* ------------------------------------------------------------------ */
.cf-header__bar { transition: height .3s cubic-bezier(.2, .75, .2, 1); }
.cf-logo { transition: height .3s cubic-bezier(.2, .75, .2, 1); }
@media (min-width: 1021px) {
	body.cf-scrolled { --cf-header-h: 68px; }
	body.cf-scrolled .cf-logo { height: 38px; }
	.cf-nav__link { position: relative; border-radius: 0; padding: 10px 12px; }
	.cf-nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--cf-apricot); transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2, .75, .2, 1); }
	.cf-nav__link:hover, .cf-nav__link[aria-current="page"], .cf-nav__toggle[aria-expanded="true"] { background: none; }
	.cf-nav__link:hover::after, .cf-nav__link[aria-current="page"]::after, .cf-nav__toggle[aria-expanded="true"]::after { transform: scaleX(1); }
	.cf-mega.is-open .cf-mega__themes li, .cf-mega.is-open .cf-mega__card { animation: cfMegaIn .35s cubic-bezier(.2, .75, .2, 1) both; }
	.cf-mega.is-open .cf-mega__themes li:nth-child(2n) { animation-delay: .03s; }
	.cf-mega.is-open .cf-mega__card:nth-child(2) { animation-delay: .06s; }
	.cf-mega.is-open .cf-mega__card:nth-child(3) { animation-delay: .1s; }
}
@keyframes cfMegaIn { from { opacity: 0; transform: translateY(8px); } }
.cf-main--full > .cf-home-logos { padding: 0 var(--cf-gutter) clamp(56px, 7vw, 88px); }
.cf-main--full > .cf-home-logos > * { max-width: var(--cf-shell); margin-left: auto; margin-right: auto; }
.cf-main--full .cf-home-logos__title { margin-bottom: 20px; font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.cf-home-logos .cf-logos li { border: 1px solid var(--cf-line); transition: border-color .25s, transform .25s; }
.cf-home-logos .cf-logos li:hover { border-color: var(--cf-blue); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
	.cf-header__bar, .cf-logo { transition: none; }
}

/* ------------------------------------------------------------------ */
/* Correctifs mobile : en-tête et barre d'outils, logos, CookieYes      */
/* ------------------------------------------------------------------ */
/* La position suit la hauteur réelle de la barre d'outils WordPress (--cf-ab, mesurée en JS). */
.admin-bar .cf-header { top: var(--cf-ab, 0px); }
@media (max-width: 1020px) {
	.admin-bar .cf-nav { top: calc(var(--cf-header-h) + var(--cf-ab, 0px)); }
}
/* Bulle CookieYes masquée : le choix reste modifiable via le lien « Gérer les cookies » du pied de page. */
.cky-btn-revisit-wrapper { display: none !important; }
.cf-cookies-link { cursor: pointer; }
@media (max-width: 760px) {
	.cf-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cf-logos li { height: 104px; padding: 14px; }
	.cf-logos img { max-height: 64px; max-width: 100%; filter: none; opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Boutons : remplissage oblique au survol, texte toujours lisible      */
/* ------------------------------------------------------------------ */
.cf-btn, .wp-block-button__link { position: relative; overflow: hidden; isolation: isolate; transition: color .3s, transform .15s; }
.cf-btn::before, .wp-block-button__link::before { content: ""; position: absolute; inset: -2px -30%; z-index: -1; background: var(--sweep, var(--cf-ink)); transform: translateX(-108%) skewX(-14deg); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.cf-btn:hover::before, .wp-block-button__link:hover::before { transform: translateX(0) skewX(-14deg); }
.cf-btn:active, .wp-block-button__link:active { transform: scale(.97); }
/* Bleu : remplissage encre, texte blanc */
.cf-btn { --sweep: var(--cf-ink); }
.cf-btn:hover { background: var(--cf-blue); color: #fff; }
/* Abricot : remplissage encre, texte blanc */
.cf-btn--accent:hover { background: var(--cf-apricot); color: #fff; }
/* Contour blanc (sur fond foncé) : remplissage blanc, texte encre */
.cf-btn--ghost-light { --sweep: #fff; }
.cf-btn--ghost-light:hover { background: transparent; color: var(--cf-ink); }
/* Boutons de blocs : abricot par défaut */
.wp-block-button__link { --sweep: var(--cf-ink); }
.wp-block-button__link:hover { background-color: var(--cf-apricot) !important; color: #fff !important; }
.wp-block-button.is-style-bleu .wp-block-button__link:hover { background: var(--cf-blue) !important; color: #fff !important; }
.wp-block-button.is-style-contour .wp-block-button__link { --sweep: var(--cf-blue); }
.wp-block-button.is-style-contour .wp-block-button__link:hover { background: transparent !important; color: #fff !important; }
.is-style-section-bleue .wp-block-button.is-style-contour .wp-block-button__link, .is-style-section-encre .wp-block-button.is-style-contour .wp-block-button__link { --sweep: #fff; }
.is-style-section-bleue .wp-block-button.is-style-contour .wp-block-button__link:hover, .is-style-section-encre .wp-block-button.is-style-contour .wp-block-button__link:hover { background: transparent !important; color: var(--cf-ink) !important; }
@media (prefers-reduced-motion: reduce) {
	.cf-btn::before, .wp-block-button__link::before { transition: none; }
	.cf-btn:hover, .wp-block-button__link:hover { background-color: var(--cf-ink) !important; }
}

/* Sans JavaScript : valeurs WordPress par défaut de la barre d'outils (fixe au-delà de 600 px). */
@media (min-width: 783px) { .admin-bar { --cf-ab-fallback: 32px; } }
@media (min-width: 601px) and (max-width: 782px) { .admin-bar { --cf-ab-fallback: 46px; } }
.admin-bar .cf-header { top: var(--cf-ab, var(--cf-ab-fallback, 0px)); }

/* Logos clients : chaque logo occupe toute sa case, en couleur */
.cf-logos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.cf-logos li { height: 128px; padding: 16px 20px; }
.cf-logos img { width: 100%; height: 100%; max-height: none; max-width: none; object-fit: contain; filter: none; opacity: 1; }
@media (max-width: 760px) {
	.cf-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.cf-logos li { height: 112px; padding: 12px 14px; }
}

/* Logos clients : contenus et centrés dans leur case (repli sans script), recadrés par theme.js */
.cf-logos li { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cf-logos img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.cf-logos li.is-fit img { position: absolute; max-width: none; max-height: none; object-fit: fill; }

/* Méga menu : pictogramme sur les trois cartes */
.cf-mega__card { grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: start; }
.cf-mega__card .cf-mega__ico { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--cf-blue); transition: transform .25s cubic-bezier(.2, .75, .2, 1); }
.cf-mega__card .cf-mega__ico .cf-ico { width: 21px; height: 21px; }
.cf-mega__card--accent .cf-mega__ico { color: #9c511c; }
.cf-mega__card:hover .cf-mega__ico { transform: rotate(-6deg) scale(1.06); }
.cf-mega__card strong { align-self: end; }
@media (prefers-reduced-motion: reduce) { .cf-mega__card:hover .cf-mega__ico { transform: none; } }

/* En-tête mobile : bouton menu à côté de l'appel */
.cf-header__burger { display: none; }
@media (max-width: 1020px) {
	.cf-header__actions { gap: 8px; }
	.cf-header__burger { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--cf-ink); color: #fff; cursor: pointer; }
	.cf-burger-ico { position: relative; display: block; width: 18px; height: 12px; }
	.cf-burger-ico i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
	.cf-burger-ico i:nth-child(1) { top: 0; }
	.cf-burger-ico i:nth-child(2) { top: 5px; }
	.cf-burger-ico i:nth-child(3) { top: 10px; }
	.cf-burger-ico.is-open i:nth-child(1) { top: 5px; transform: rotate(45deg); }
	.cf-burger-ico.is-open i:nth-child(2) { opacity: 0; }
	.cf-burger-ico.is-open i:nth-child(3) { top: 5px; transform: rotate(-45deg); }
}
@media (prefers-reduced-motion: reduce) { .cf-burger-ico i { transition: none; } }

/* Barre du bas : fond plein (le texte de la page ne transparaît plus) */
@media (max-width: 1020px) {
	.cf-bottomnav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.cf-bottomnav__cta .cf-ico { box-shadow: 0 6px 16px -8px rgba(236, 144, 80, .9), 0 0 0 4px #fff; }
}

/* CookieYes : la fenêtre des préférences, fermée, ne prend aucune place (sur Android, un élément fixe
   plus large que l'écran élargissait toute la page) ; ouverte, elle ne dépasse jamais l'écran. */
.cky-modal:not(.cky-modal-open) { display: none !important; }
.cky-modal, .cky-modal .cky-preference-center { max-width: calc(100vw - 24px) !important; box-sizing: border-box; }
.cky-consent-container, .cky-consent-bar { max-width: 100vw !important; box-sizing: border-box; }

/* Filet de sécurité : la page ne défile jamais en largeur sur mobile. */
html { overflow-x: hidden; }
